configure 597 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for vcmi VERSION.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  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. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  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); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell [email protected] about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # 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
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME='vcmi'
  647. PACKAGE_TARNAME='vcmi'
  648. PACKAGE_VERSION='VERSION'
  649. PACKAGE_STRING='vcmi VERSION'
  650. PACKAGE_BUGREPORT=''
  651. # Factoring default headers for most tests.
  652. ac_includes_default="\
  653. #include <stdio.h>
  654. #ifdef HAVE_SYS_TYPES_H
  655. # include <sys/types.h>
  656. #endif
  657. #ifdef HAVE_SYS_STAT_H
  658. # include <sys/stat.h>
  659. #endif
  660. #ifdef STDC_HEADERS
  661. # include <stdlib.h>
  662. # include <stddef.h>
  663. #else
  664. # ifdef HAVE_STDLIB_H
  665. # include <stdlib.h>
  666. # endif
  667. #endif
  668. #ifdef HAVE_STRING_H
  669. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  670. # include <memory.h>
  671. # endif
  672. # include <string.h>
  673. #endif
  674. #ifdef HAVE_STRINGS_H
  675. # include <strings.h>
  676. #endif
  677. #ifdef HAVE_INTTYPES_H
  678. # include <inttypes.h>
  679. #endif
  680. #ifdef HAVE_STDINT_H
  681. # include <stdint.h>
  682. #endif
  683. #ifdef HAVE_UNISTD_H
  684. # include <unistd.h>
  685. #endif"
  686. ac_subst_vars='LTLIBOBJS
  687. LIBOBJS
  688. SDL_CXXFLAGS
  689. SDL_LIBS
  690. HAVE_SDL_CONFIG
  691. BOOST_IOSTREAMS_LIB
  692. BOOST_THREAD_LIB
  693. BOOST_FILESYSTEM_LIB
  694. BOOST_SYSTEM_LIB
  695. BOOST_LDFLAGS
  696. BOOST_CPPFLAGS
  697. CXXCPP
  698. CPP
  699. OTOOL64
  700. OTOOL
  701. LIPO
  702. NMEDIT
  703. DSYMUTIL
  704. lt_ECHO
  705. RANLIB
  706. AR
  707. OBJDUMP
  708. LN_S
  709. NM
  710. ac_ct_DUMPBIN
  711. DUMPBIN
  712. LD
  713. FGREP
  714. EGREP
  715. GREP
  716. SED
  717. am__fastdepCC_FALSE
  718. am__fastdepCC_TRUE
  719. CCDEPMODE
  720. ac_ct_CC
  721. CFLAGS
  722. CC
  723. host_os
  724. host_vendor
  725. host_cpu
  726. host
  727. build_os
  728. build_vendor
  729. build_cpu
  730. build
  731. LIBTOOL
  732. am__fastdepCXX_FALSE
  733. am__fastdepCXX_TRUE
  734. CXXDEPMODE
  735. AMDEPBACKSLASH
  736. AMDEP_FALSE
  737. AMDEP_TRUE
  738. am__quote
  739. am__include
  740. DEPDIR
  741. OBJEXT
  742. EXEEXT
  743. ac_ct_CXX
  744. CPPFLAGS
  745. LDFLAGS
  746. CXXFLAGS
  747. CXX
  748. am__untar
  749. am__tar
  750. AMTAR
  751. am__leading_dot
  752. SET_MAKE
  753. AWK
  754. mkdir_p
  755. MKDIR_P
  756. INSTALL_STRIP_PROGRAM
  757. STRIP
  758. install_sh
  759. MAKEINFO
  760. AUTOHEADER
  761. AUTOMAKE
  762. AUTOCONF
  763. ACLOCAL
  764. VERSION
  765. PACKAGE
  766. CYGPATH_W
  767. am__isrc
  768. INSTALL_DATA
  769. INSTALL_SCRIPT
  770. INSTALL_PROGRAM
  771. target_alias
  772. host_alias
  773. build_alias
  774. LIBS
  775. ECHO_T
  776. ECHO_N
  777. ECHO_C
  778. DEFS
  779. mandir
  780. localedir
  781. libdir
  782. psdir
  783. pdfdir
  784. dvidir
  785. htmldir
  786. infodir
  787. docdir
  788. oldincludedir
  789. includedir
  790. localstatedir
  791. sharedstatedir
  792. sysconfdir
  793. datadir
  794. datarootdir
  795. libexecdir
  796. sbindir
  797. bindir
  798. program_transform_name
  799. prefix
  800. exec_prefix
  801. PACKAGE_BUGREPORT
  802. PACKAGE_STRING
  803. PACKAGE_VERSION
  804. PACKAGE_TARNAME
  805. PACKAGE_NAME
  806. PATH_SEPARATOR
  807. SHELL'
  808. ac_subst_files=''
  809. ac_user_opts='
  810. enable_option_checking
  811. enable_dependency_tracking
  812. enable_shared
  813. enable_static
  814. with_pic
  815. enable_fast_install
  816. with_gnu_ld
  817. enable_libtool_lock
  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. '
  826. ac_precious_vars='build_alias
  827. host_alias
  828. target_alias
  829. CXX
  830. CXXFLAGS
  831. LDFLAGS
  832. LIBS
  833. CPPFLAGS
  834. CCC
  835. CC
  836. CFLAGS
  837. CPP
  838. CXXCPP'
  839. # Initialize some variables set by options.
  840. ac_init_help=
  841. ac_init_version=false
  842. ac_unrecognized_opts=
  843. ac_unrecognized_sep=
  844. # The variables have the same names as the options, with
  845. # dashes changed to underlines.
  846. cache_file=/dev/null
  847. exec_prefix=NONE
  848. no_create=
  849. no_recursion=
  850. prefix=NONE
  851. program_prefix=NONE
  852. program_suffix=NONE
  853. program_transform_name=s,x,x,
  854. silent=
  855. site=
  856. srcdir=
  857. verbose=
  858. x_includes=NONE
  859. x_libraries=NONE
  860. # Installation directory options.
  861. # These are left unexpanded so users can "make install exec_prefix=/foo"
  862. # and all the variables that are supposed to be based on exec_prefix
  863. # by default will actually change.
  864. # Use braces instead of parens because sh, perl, etc. also accept them.
  865. # (The list follows the same order as the GNU Coding Standards.)
  866. bindir='${exec_prefix}/bin'
  867. sbindir='${exec_prefix}/sbin'
  868. libexecdir='${exec_prefix}/libexec'
  869. datarootdir='${prefix}/share'
  870. datadir='${datarootdir}'
  871. sysconfdir='${prefix}/etc'
  872. sharedstatedir='${prefix}/com'
  873. localstatedir='${prefix}/var'
  874. includedir='${prefix}/include'
  875. oldincludedir='/usr/include'
  876. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  877. infodir='${datarootdir}/info'
  878. htmldir='${docdir}'
  879. dvidir='${docdir}'
  880. pdfdir='${docdir}'
  881. psdir='${docdir}'
  882. libdir='${exec_prefix}/lib'
  883. localedir='${datarootdir}/locale'
  884. mandir='${datarootdir}/man'
  885. ac_prev=
  886. ac_dashdash=
  887. for ac_option
  888. do
  889. # If the previous option needs an argument, assign it.
  890. if test -n "$ac_prev"; then
  891. eval $ac_prev=\$ac_option
  892. ac_prev=
  893. continue
  894. fi
  895. case $ac_option in
  896. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  897. *) ac_optarg=yes ;;
  898. esac
  899. # Accept the important Cygnus configure options, so we can diagnose typos.
  900. case $ac_dashdash$ac_option in
  901. --)
  902. ac_dashdash=yes ;;
  903. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  904. ac_prev=bindir ;;
  905. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  906. bindir=$ac_optarg ;;
  907. -build | --build | --buil | --bui | --bu)
  908. ac_prev=build_alias ;;
  909. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  910. build_alias=$ac_optarg ;;
  911. -cache-file | --cache-file | --cache-fil | --cache-fi \
  912. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  913. ac_prev=cache_file ;;
  914. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  915. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  916. cache_file=$ac_optarg ;;
  917. --config-cache | -C)
  918. cache_file=config.cache ;;
  919. -datadir | --datadir | --datadi | --datad)
  920. ac_prev=datadir ;;
  921. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  922. datadir=$ac_optarg ;;
  923. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  924. | --dataroo | --dataro | --datar)
  925. ac_prev=datarootdir ;;
  926. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  927. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  928. datarootdir=$ac_optarg ;;
  929. -disable-* | --disable-*)
  930. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  931. # Reject names that are not valid shell variable names.
  932. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  933. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  934. { (exit 1); exit 1; }; }
  935. ac_useropt_orig=$ac_useropt
  936. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  937. case $ac_user_opts in
  938. *"
  939. "enable_$ac_useropt"
  940. "*) ;;
  941. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  942. ac_unrecognized_sep=', ';;
  943. esac
  944. eval enable_$ac_useropt=no ;;
  945. -docdir | --docdir | --docdi | --doc | --do)
  946. ac_prev=docdir ;;
  947. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  948. docdir=$ac_optarg ;;
  949. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  950. ac_prev=dvidir ;;
  951. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  952. dvidir=$ac_optarg ;;
  953. -enable-* | --enable-*)
  954. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  955. # Reject names that are not valid shell variable names.
  956. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  957. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  958. { (exit 1); exit 1; }; }
  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_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1131. { (exit 1); exit 1; }; }
  1132. ac_useropt_orig=$ac_useropt
  1133. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1134. case $ac_user_opts in
  1135. *"
  1136. "with_$ac_useropt"
  1137. "*) ;;
  1138. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1139. ac_unrecognized_sep=', ';;
  1140. esac
  1141. eval with_$ac_useropt=\$ac_optarg ;;
  1142. -without-* | --without-*)
  1143. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1144. # Reject names that are not valid shell variable names.
  1145. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1146. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1147. { (exit 1); exit 1; }; }
  1148. ac_useropt_orig=$ac_useropt
  1149. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1150. case $ac_user_opts in
  1151. *"
  1152. "with_$ac_useropt"
  1153. "*) ;;
  1154. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1155. ac_unrecognized_sep=', ';;
  1156. esac
  1157. eval with_$ac_useropt=no ;;
  1158. --x)
  1159. # Obsolete; use --with-x.
  1160. with_x=yes ;;
  1161. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1162. | --x-incl | --x-inc | --x-in | --x-i)
  1163. ac_prev=x_includes ;;
  1164. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1165. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1166. x_includes=$ac_optarg ;;
  1167. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1168. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1169. ac_prev=x_libraries ;;
  1170. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1171. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1172. x_libraries=$ac_optarg ;;
  1173. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1174. Try \`$0 --help' for more information." >&2
  1175. { (exit 1); exit 1; }; }
  1176. ;;
  1177. *=*)
  1178. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1179. # Reject names that are not valid shell variable names.
  1180. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1181. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1182. { (exit 1); exit 1; }; }
  1183. eval $ac_envvar=\$ac_optarg
  1184. export $ac_envvar ;;
  1185. *)
  1186. # FIXME: should be removed in autoconf 3.0.
  1187. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1188. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1189. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1190. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1191. ;;
  1192. esac
  1193. done
  1194. if test -n "$ac_prev"; then
  1195. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1196. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1197. { (exit 1); exit 1; }; }
  1198. fi
  1199. if test -n "$ac_unrecognized_opts"; then
  1200. case $enable_option_checking in
  1201. no) ;;
  1202. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1203. { (exit 1); exit 1; }; } ;;
  1204. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1205. esac
  1206. fi
  1207. # Check all directory arguments for consistency.
  1208. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1209. datadir sysconfdir sharedstatedir localstatedir includedir \
  1210. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1211. libdir localedir mandir
  1212. do
  1213. eval ac_val=\$$ac_var
  1214. # Remove trailing slashes.
  1215. case $ac_val in
  1216. */ )
  1217. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1218. eval $ac_var=\$ac_val;;
  1219. esac
  1220. # Be sure to have absolute directory names.
  1221. case $ac_val in
  1222. [\\/$]* | ?:[\\/]* ) continue;;
  1223. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1224. esac
  1225. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1226. { (exit 1); exit 1; }; }
  1227. done
  1228. # There might be people who depend on the old broken behavior: `$host'
  1229. # used to hold the argument of --host etc.
  1230. # FIXME: To remove some day.
  1231. build=$build_alias
  1232. host=$host_alias
  1233. target=$target_alias
  1234. # FIXME: To remove some day.
  1235. if test "x$host_alias" != x; then
  1236. if test "x$build_alias" = x; then
  1237. cross_compiling=maybe
  1238. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1239. If a cross compiler is detected then cross compile mode will be used." >&2
  1240. elif test "x$build_alias" != "x$host_alias"; then
  1241. cross_compiling=yes
  1242. fi
  1243. fi
  1244. ac_tool_prefix=
  1245. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1246. test "$silent" = yes && exec 6>/dev/null
  1247. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1248. ac_ls_di=`ls -di .` &&
  1249. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1250. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1251. { (exit 1); exit 1; }; }
  1252. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1253. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1254. { (exit 1); exit 1; }; }
  1255. # Find the source files, if location was not specified.
  1256. if test -z "$srcdir"; then
  1257. ac_srcdir_defaulted=yes
  1258. # Try the directory containing this script, then the parent directory.
  1259. ac_confdir=`$as_dirname -- "$as_myself" ||
  1260. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1261. X"$as_myself" : 'X\(//\)[^/]' \| \
  1262. X"$as_myself" : 'X\(//\)$' \| \
  1263. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1264. $as_echo X"$as_myself" |
  1265. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1266. s//\1/
  1267. q
  1268. }
  1269. /^X\(\/\/\)[^/].*/{
  1270. s//\1/
  1271. q
  1272. }
  1273. /^X\(\/\/\)$/{
  1274. s//\1/
  1275. q
  1276. }
  1277. /^X\(\/\).*/{
  1278. s//\1/
  1279. q
  1280. }
  1281. s/.*/./; q'`
  1282. srcdir=$ac_confdir
  1283. if test ! -r "$srcdir/$ac_unique_file"; then
  1284. srcdir=..
  1285. fi
  1286. else
  1287. ac_srcdir_defaulted=no
  1288. fi
  1289. if test ! -r "$srcdir/$ac_unique_file"; then
  1290. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1291. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1292. { (exit 1); exit 1; }; }
  1293. fi
  1294. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1295. ac_abs_confdir=`(
  1296. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1297. { (exit 1); exit 1; }; }
  1298. pwd)`
  1299. # When building in place, set srcdir=.
  1300. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1301. srcdir=.
  1302. fi
  1303. # Remove unnecessary trailing slashes from srcdir.
  1304. # Double slashes in file names in object file debugging info
  1305. # mess up M-x gdb in Emacs.
  1306. case $srcdir in
  1307. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1308. esac
  1309. for ac_var in $ac_precious_vars; do
  1310. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1311. eval ac_env_${ac_var}_value=\$${ac_var}
  1312. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1313. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1314. done
  1315. #
  1316. # Report the --help message.
  1317. #
  1318. if test "$ac_init_help" = "long"; then
  1319. # Omit some internal or obsolete options to make the list less imposing.
  1320. # This message is too long to be a string in the A/UX 3.1 sh.
  1321. cat <<_ACEOF
  1322. \`configure' configures vcmi VERSION to adapt to many kinds of systems.
  1323. Usage: $0 [OPTION]... [VAR=VALUE]...
  1324. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1325. VAR=VALUE. See below for descriptions of some of the useful variables.
  1326. Defaults for the options are specified in brackets.
  1327. Configuration:
  1328. -h, --help display this help and exit
  1329. --help=short display options specific to this package
  1330. --help=recursive display the short help of all the included packages
  1331. -V, --version display version information and exit
  1332. -q, --quiet, --silent do not print \`checking...' messages
  1333. --cache-file=FILE cache test results in FILE [disabled]
  1334. -C, --config-cache alias for \`--cache-file=config.cache'
  1335. -n, --no-create do not create output files
  1336. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1337. Installation directories:
  1338. --prefix=PREFIX install architecture-independent files in PREFIX
  1339. [$ac_default_prefix]
  1340. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1341. [PREFIX]
  1342. By default, \`make install' will install all the files in
  1343. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1344. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1345. for instance \`--prefix=\$HOME'.
  1346. For better control, use the options below.
  1347. Fine tuning of the installation directories:
  1348. --bindir=DIR user executables [EPREFIX/bin]
  1349. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1350. --libexecdir=DIR program executables [EPREFIX/libexec]
  1351. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1352. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1353. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1354. --libdir=DIR object code libraries [EPREFIX/lib]
  1355. --includedir=DIR C header files [PREFIX/include]
  1356. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1357. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1358. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1359. --infodir=DIR info documentation [DATAROOTDIR/info]
  1360. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1361. --mandir=DIR man documentation [DATAROOTDIR/man]
  1362. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1363. --htmldir=DIR html documentation [DOCDIR]
  1364. --dvidir=DIR dvi documentation [DOCDIR]
  1365. --pdfdir=DIR pdf documentation [DOCDIR]
  1366. --psdir=DIR ps documentation [DOCDIR]
  1367. _ACEOF
  1368. cat <<\_ACEOF
  1369. Program names:
  1370. --program-prefix=PREFIX prepend PREFIX to installed program names
  1371. --program-suffix=SUFFIX append SUFFIX to installed program names
  1372. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1373. System types:
  1374. --build=BUILD configure for building on BUILD [guessed]
  1375. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1376. _ACEOF
  1377. fi
  1378. if test -n "$ac_init_help"; then
  1379. case $ac_init_help in
  1380. short | recursive ) echo "Configuration of vcmi VERSION:";;
  1381. esac
  1382. cat <<\_ACEOF
  1383. Optional Features:
  1384. --disable-option-checking ignore unrecognized --enable/--with options
  1385. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1386. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1387. --disable-dependency-tracking speeds up one-time build
  1388. --enable-dependency-tracking do not reject slow dependency extractors
  1389. --enable-shared[=PKGS] build shared libraries [default=yes]
  1390. --enable-static[=PKGS] build static libraries [default=no]
  1391. --enable-fast-install[=PKGS]
  1392. optimize for fast installation [default=yes]
  1393. --disable-libtool-lock avoid locking (might break parallel builds)
  1394. --disable-debug turn off debugging (default=enable)
  1395. Optional Packages:
  1396. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1397. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1398. --with-pic try to use only PIC/non-PIC objects [default=use
  1399. both]
  1400. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1401. --with-boost[=DIR] use boost (default is yes) - it is possible to
  1402. specify the root directory for boost (optional)
  1403. --with-boost-libdir=LIB_DIR
  1404. Force given directory for boost libraries. Note that
  1405. this will overwrite library path detection, so use
  1406. this parameter only if default library detection
  1407. fails and you know exactly where your boost
  1408. libraries are located.
  1409. --with-boost-system[=special-lib]
  1410. use the System library from boost - it is possible
  1411. to specify a certain library for the linker e.g.
  1412. --with-boost-system=boost_system-gcc-mt
  1413. --with-boost-filesystem[=special-lib]
  1414. use the Filesystem library from boost - it is
  1415. possible to specify a certain library for the linker
  1416. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1417. --with-boost-thread[=special-lib]
  1418. use the Thread library from boost - it is possible
  1419. to specify a certain library for the linker e.g.
  1420. --with-boost-thread=boost_thread-gcc-mt
  1421. --with-boost-iostreams[=special-lib]
  1422. use the IOStreams library from boost - it is
  1423. possible to specify a certain library for the
  1424. linker e.g.
  1425. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1426. Some influential environment variables:
  1427. CXX C++ compiler command
  1428. CXXFLAGS C++ compiler flags
  1429. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1430. nonstandard directory <lib dir>
  1431. LIBS libraries to pass to the linker, e.g. -l<library>
  1432. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1433. you have headers in a nonstandard directory <include dir>
  1434. CC C compiler command
  1435. CFLAGS C compiler flags
  1436. CPP C preprocessor
  1437. CXXCPP C++ preprocessor
  1438. Use these variables to override the choices made by `configure' or to help
  1439. it to find libraries and programs with nonstandard names/locations.
  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 VERSION
  1498. generated by GNU Autoconf 2.63
  1499. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1500. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1501. This configure script is free software; the Free Software Foundation
  1502. gives unlimited permission to copy, distribute and modify it.
  1503. _ACEOF
  1504. exit
  1505. fi
  1506. cat >config.log <<_ACEOF
  1507. This file contains any messages produced by compilers while
  1508. running configure, to aid debugging if configure makes a mistake.
  1509. It was created by vcmi $as_me VERSION, which was
  1510. generated by GNU Autoconf 2.63. Invocation command line was
  1511. $ $0 $@
  1512. _ACEOF
  1513. exec 5>>config.log
  1514. {
  1515. cat <<_ASUNAME
  1516. ## --------- ##
  1517. ## Platform. ##
  1518. ## --------- ##
  1519. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1520. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1521. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1522. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1523. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1524. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1525. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1526. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1527. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1528. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1529. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1530. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1531. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1532. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1533. _ASUNAME
  1534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1535. for as_dir in $PATH
  1536. do
  1537. IFS=$as_save_IFS
  1538. test -z "$as_dir" && as_dir=.
  1539. $as_echo "PATH: $as_dir"
  1540. done
  1541. IFS=$as_save_IFS
  1542. } >&5
  1543. cat >&5 <<_ACEOF
  1544. ## ----------- ##
  1545. ## Core tests. ##
  1546. ## ----------- ##
  1547. _ACEOF
  1548. # Keep a trace of the command line.
  1549. # Strip out --no-create and --no-recursion so they do not pile up.
  1550. # Strip out --silent because we don't want to record it for future runs.
  1551. # Also quote any args containing shell meta-characters.
  1552. # Make two passes to allow for proper duplicate-argument suppression.
  1553. ac_configure_args=
  1554. ac_configure_args0=
  1555. ac_configure_args1=
  1556. ac_must_keep_next=false
  1557. for ac_pass in 1 2
  1558. do
  1559. for ac_arg
  1560. do
  1561. case $ac_arg in
  1562. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1563. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1564. | -silent | --silent | --silen | --sile | --sil)
  1565. continue ;;
  1566. *\'*)
  1567. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1568. esac
  1569. case $ac_pass in
  1570. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1571. 2)
  1572. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1573. if test $ac_must_keep_next = true; then
  1574. ac_must_keep_next=false # Got value, back to normal.
  1575. else
  1576. case $ac_arg in
  1577. *=* | --config-cache | -C | -disable-* | --disable-* \
  1578. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1579. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1580. | -with-* | --with-* | -without-* | --without-* | --x)
  1581. case "$ac_configure_args0 " in
  1582. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1583. esac
  1584. ;;
  1585. -* ) ac_must_keep_next=true ;;
  1586. esac
  1587. fi
  1588. ac_configure_args="$ac_configure_args '$ac_arg'"
  1589. ;;
  1590. esac
  1591. done
  1592. done
  1593. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1594. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1595. # When interrupted or exit'd, cleanup temporary files, and complete
  1596. # config.log. We remove comments because anyway the quotes in there
  1597. # would cause problems or look ugly.
  1598. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1599. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1600. trap 'exit_status=$?
  1601. # Save into config.log some information that might help in debugging.
  1602. {
  1603. echo
  1604. cat <<\_ASBOX
  1605. ## ---------------- ##
  1606. ## Cache variables. ##
  1607. ## ---------------- ##
  1608. _ASBOX
  1609. echo
  1610. # The following way of writing the cache mishandles newlines in values,
  1611. (
  1612. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1613. eval ac_val=\$$ac_var
  1614. case $ac_val in #(
  1615. *${as_nl}*)
  1616. case $ac_var in #(
  1617. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1618. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1619. esac
  1620. case $ac_var in #(
  1621. _ | IFS | as_nl) ;; #(
  1622. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1623. *) $as_unset $ac_var ;;
  1624. esac ;;
  1625. esac
  1626. done
  1627. (set) 2>&1 |
  1628. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1629. *${as_nl}ac_space=\ *)
  1630. sed -n \
  1631. "s/'\''/'\''\\\\'\'''\''/g;
  1632. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1633. ;; #(
  1634. *)
  1635. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1636. ;;
  1637. esac |
  1638. sort
  1639. )
  1640. echo
  1641. cat <<\_ASBOX
  1642. ## ----------------- ##
  1643. ## Output variables. ##
  1644. ## ----------------- ##
  1645. _ASBOX
  1646. echo
  1647. for ac_var in $ac_subst_vars
  1648. do
  1649. eval ac_val=\$$ac_var
  1650. case $ac_val in
  1651. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1652. esac
  1653. $as_echo "$ac_var='\''$ac_val'\''"
  1654. done | sort
  1655. echo
  1656. if test -n "$ac_subst_files"; then
  1657. cat <<\_ASBOX
  1658. ## ------------------- ##
  1659. ## File substitutions. ##
  1660. ## ------------------- ##
  1661. _ASBOX
  1662. echo
  1663. for ac_var in $ac_subst_files
  1664. do
  1665. eval ac_val=\$$ac_var
  1666. case $ac_val in
  1667. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1668. esac
  1669. $as_echo "$ac_var='\''$ac_val'\''"
  1670. done | sort
  1671. echo
  1672. fi
  1673. if test -s confdefs.h; then
  1674. cat <<\_ASBOX
  1675. ## ----------- ##
  1676. ## confdefs.h. ##
  1677. ## ----------- ##
  1678. _ASBOX
  1679. echo
  1680. cat confdefs.h
  1681. echo
  1682. fi
  1683. test "$ac_signal" != 0 &&
  1684. $as_echo "$as_me: caught signal $ac_signal"
  1685. $as_echo "$as_me: exit $exit_status"
  1686. } >&5
  1687. rm -f core *.core core.conftest.* &&
  1688. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1689. exit $exit_status
  1690. ' 0
  1691. for ac_signal in 1 2 13 15; do
  1692. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1693. done
  1694. ac_signal=0
  1695. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1696. rm -f -r conftest* confdefs.h
  1697. # Predefined preprocessor variables.
  1698. cat >>confdefs.h <<_ACEOF
  1699. #define PACKAGE_NAME "$PACKAGE_NAME"
  1700. _ACEOF
  1701. cat >>confdefs.h <<_ACEOF
  1702. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1703. _ACEOF
  1704. cat >>confdefs.h <<_ACEOF
  1705. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1706. _ACEOF
  1707. cat >>confdefs.h <<_ACEOF
  1708. #define PACKAGE_STRING "$PACKAGE_STRING"
  1709. _ACEOF
  1710. cat >>confdefs.h <<_ACEOF
  1711. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1712. _ACEOF
  1713. # Let the site file select an alternate cache file if it wants to.
  1714. # Prefer an explicitly selected file to automatically selected ones.
  1715. ac_site_file1=NONE
  1716. ac_site_file2=NONE
  1717. if test -n "$CONFIG_SITE"; then
  1718. ac_site_file1=$CONFIG_SITE
  1719. elif test "x$prefix" != xNONE; then
  1720. ac_site_file1=$prefix/share/config.site
  1721. ac_site_file2=$prefix/etc/config.site
  1722. else
  1723. ac_site_file1=$ac_default_prefix/share/config.site
  1724. ac_site_file2=$ac_default_prefix/etc/config.site
  1725. fi
  1726. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1727. do
  1728. test "x$ac_site_file" = xNONE && continue
  1729. if test -r "$ac_site_file"; then
  1730. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1731. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1732. sed 's/^/| /' "$ac_site_file" >&5
  1733. . "$ac_site_file"
  1734. fi
  1735. done
  1736. if test -r "$cache_file"; then
  1737. # Some versions of bash will fail to source /dev/null (special
  1738. # files actually), so we avoid doing that.
  1739. if test -f "$cache_file"; then
  1740. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1741. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1742. case $cache_file in
  1743. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1744. *) . "./$cache_file";;
  1745. esac
  1746. fi
  1747. else
  1748. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1749. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1750. >$cache_file
  1751. fi
  1752. # Check that the precious variables saved in the cache have kept the same
  1753. # value.
  1754. ac_cache_corrupted=false
  1755. for ac_var in $ac_precious_vars; do
  1756. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1757. eval ac_new_set=\$ac_env_${ac_var}_set
  1758. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1759. eval ac_new_val=\$ac_env_${ac_var}_value
  1760. case $ac_old_set,$ac_new_set in
  1761. set,)
  1762. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1763. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1764. ac_cache_corrupted=: ;;
  1765. ,set)
  1766. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1767. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1768. ac_cache_corrupted=: ;;
  1769. ,);;
  1770. *)
  1771. if test "x$ac_old_val" != "x$ac_new_val"; then
  1772. # differences in whitespace do not lead to failure.
  1773. ac_old_val_w=`echo x $ac_old_val`
  1774. ac_new_val_w=`echo x $ac_new_val`
  1775. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1776. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1777. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1778. ac_cache_corrupted=:
  1779. else
  1780. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1781. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1782. eval $ac_var=\$ac_old_val
  1783. fi
  1784. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1785. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1786. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1787. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1788. fi;;
  1789. esac
  1790. # Pass precious variables to config.status.
  1791. if test "$ac_new_set" = set; then
  1792. case $ac_new_val in
  1793. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1794. *) ac_arg=$ac_var=$ac_new_val ;;
  1795. esac
  1796. case " $ac_configure_args " in
  1797. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1798. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1799. esac
  1800. fi
  1801. done
  1802. if $ac_cache_corrupted; then
  1803. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1804. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1805. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1806. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1807. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1808. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1809. { (exit 1); exit 1; }; }
  1810. fi
  1811. ac_ext=c
  1812. ac_cpp='$CPP $CPPFLAGS'
  1813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1816. am__api_version='1.10'
  1817. ac_aux_dir=
  1818. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1819. if test -f "$ac_dir/install-sh"; then
  1820. ac_aux_dir=$ac_dir
  1821. ac_install_sh="$ac_aux_dir/install-sh -c"
  1822. break
  1823. elif test -f "$ac_dir/install.sh"; then
  1824. ac_aux_dir=$ac_dir
  1825. ac_install_sh="$ac_aux_dir/install.sh -c"
  1826. break
  1827. elif test -f "$ac_dir/shtool"; then
  1828. ac_aux_dir=$ac_dir
  1829. ac_install_sh="$ac_aux_dir/shtool install -c"
  1830. break
  1831. fi
  1832. done
  1833. if test -z "$ac_aux_dir"; then
  1834. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1835. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1836. { (exit 1); exit 1; }; }
  1837. fi
  1838. # These three variables are undocumented and unsupported,
  1839. # and are intended to be withdrawn in a future Autoconf release.
  1840. # They can cause serious problems if a builder's source tree is in a directory
  1841. # whose full name contains unusual characters.
  1842. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1843. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1844. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1845. # Find a good install program. We prefer a C program (faster),
  1846. # so one script is as good as another. But avoid the broken or
  1847. # incompatible versions:
  1848. # SysV /etc/install, /usr/sbin/install
  1849. # SunOS /usr/etc/install
  1850. # IRIX /sbin/install
  1851. # AIX /bin/install
  1852. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1853. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1854. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1855. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1856. # OS/2's system install, which has a completely different semantic
  1857. # ./install, which can be erroneously created by make from ./install.sh.
  1858. # Reject install programs that cannot install multiple files.
  1859. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1860. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1861. if test -z "$INSTALL"; then
  1862. if test "${ac_cv_path_install+set}" = set; then
  1863. $as_echo_n "(cached) " >&6
  1864. else
  1865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1866. for as_dir in $PATH
  1867. do
  1868. IFS=$as_save_IFS
  1869. test -z "$as_dir" && as_dir=.
  1870. # Account for people who put trailing slashes in PATH elements.
  1871. case $as_dir/ in
  1872. ./ | .// | /cC/* | \
  1873. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1874. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1875. /usr/ucb/* ) ;;
  1876. *)
  1877. # OSF1 and SCO ODT 3.0 have their own names for install.
  1878. # Don't use installbsd from OSF since it installs stuff as root
  1879. # by default.
  1880. for ac_prog in ginstall scoinst install; do
  1881. for ac_exec_ext in '' $ac_executable_extensions; do
  1882. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1883. if test $ac_prog = install &&
  1884. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1885. # AIX install. It has an incompatible calling convention.
  1886. :
  1887. elif test $ac_prog = install &&
  1888. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1889. # program-specific install script used by HP pwplus--don't use.
  1890. :
  1891. else
  1892. rm -rf conftest.one conftest.two conftest.dir
  1893. echo one > conftest.one
  1894. echo two > conftest.two
  1895. mkdir conftest.dir
  1896. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1897. test -s conftest.one && test -s conftest.two &&
  1898. test -s conftest.dir/conftest.one &&
  1899. test -s conftest.dir/conftest.two
  1900. then
  1901. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1902. break 3
  1903. fi
  1904. fi
  1905. fi
  1906. done
  1907. done
  1908. ;;
  1909. esac
  1910. done
  1911. IFS=$as_save_IFS
  1912. rm -rf conftest.one conftest.two conftest.dir
  1913. fi
  1914. if test "${ac_cv_path_install+set}" = set; then
  1915. INSTALL=$ac_cv_path_install
  1916. else
  1917. # As a last resort, use the slow shell script. Don't cache a
  1918. # value for INSTALL within a source directory, because that will
  1919. # break other packages using the cache if that directory is
  1920. # removed, or if the value is a relative name.
  1921. INSTALL=$ac_install_sh
  1922. fi
  1923. fi
  1924. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1925. $as_echo "$INSTALL" >&6; }
  1926. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1927. # It thinks the first close brace ends the variable substitution.
  1928. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1929. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1930. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1931. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1932. $as_echo_n "checking whether build environment is sane... " >&6; }
  1933. # Just in case
  1934. sleep 1
  1935. echo timestamp > conftest.file
  1936. # Do `set' in a subshell so we don't clobber the current shell's
  1937. # arguments. Must try -L first in case configure is actually a
  1938. # symlink; some systems play weird games with the mod time of symlinks
  1939. # (eg FreeBSD returns the mod time of the symlink's containing
  1940. # directory).
  1941. if (
  1942. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1943. if test "$*" = "X"; then
  1944. # -L didn't work.
  1945. set X `ls -t $srcdir/configure conftest.file`
  1946. fi
  1947. rm -f conftest.file
  1948. if test "$*" != "X $srcdir/configure conftest.file" \
  1949. && test "$*" != "X conftest.file $srcdir/configure"; then
  1950. # If neither matched, then we have a broken ls. This can happen
  1951. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1952. # broken ls alias from the environment. This has actually
  1953. # happened. Such a system could not be considered "sane".
  1954. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1955. alias in your environment" >&5
  1956. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1957. alias in your environment" >&2;}
  1958. { (exit 1); exit 1; }; }
  1959. fi
  1960. test "$2" = conftest.file
  1961. )
  1962. then
  1963. # Ok.
  1964. :
  1965. else
  1966. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1967. Check your system clock" >&5
  1968. $as_echo "$as_me: error: newly created file is older than distributed files!
  1969. Check your system clock" >&2;}
  1970. { (exit 1); exit 1; }; }
  1971. fi
  1972. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1973. $as_echo "yes" >&6; }
  1974. test "$program_prefix" != NONE &&
  1975. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1976. # Use a double $ so make ignores it.
  1977. test "$program_suffix" != NONE &&
  1978. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1979. # Double any \ or $.
  1980. # By default was `s,x,x', remove it if useless.
  1981. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1982. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1983. # expand $ac_aux_dir to an absolute path
  1984. am_aux_dir=`cd $ac_aux_dir && pwd`
  1985. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1986. # Use eval to expand $SHELL
  1987. if eval "$MISSING --run true"; then
  1988. am_missing_run="$MISSING --run "
  1989. else
  1990. am_missing_run=
  1991. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1992. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1993. fi
  1994. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1995. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  1996. if test -z "$MKDIR_P"; then
  1997. if test "${ac_cv_path_mkdir+set}" = set; then
  1998. $as_echo_n "(cached) " >&6
  1999. else
  2000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2001. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2002. do
  2003. IFS=$as_save_IFS
  2004. test -z "$as_dir" && as_dir=.
  2005. for ac_prog in mkdir gmkdir; do
  2006. for ac_exec_ext in '' $ac_executable_extensions; do
  2007. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2008. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2009. 'mkdir (GNU coreutils) '* | \
  2010. 'mkdir (coreutils) '* | \
  2011. 'mkdir (fileutils) '4.1*)
  2012. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2013. break 3;;
  2014. esac
  2015. done
  2016. done
  2017. done
  2018. IFS=$as_save_IFS
  2019. fi
  2020. if test "${ac_cv_path_mkdir+set}" = set; then
  2021. MKDIR_P="$ac_cv_path_mkdir -p"
  2022. else
  2023. # As a last resort, use the slow shell script. Don't cache a
  2024. # value for MKDIR_P within a source directory, because that will
  2025. # break other packages using the cache if that directory is
  2026. # removed, or if the value is a relative name.
  2027. test -d ./--version && rmdir ./--version
  2028. MKDIR_P="$ac_install_sh -d"
  2029. fi
  2030. fi
  2031. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2032. $as_echo "$MKDIR_P" >&6; }
  2033. mkdir_p="$MKDIR_P"
  2034. case $mkdir_p in
  2035. [\\/$]* | ?:[\\/]*) ;;
  2036. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2037. esac
  2038. for ac_prog in gawk mawk nawk awk
  2039. do
  2040. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2041. set dummy $ac_prog; ac_word=$2
  2042. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2043. $as_echo_n "checking for $ac_word... " >&6; }
  2044. if test "${ac_cv_prog_AWK+set}" = set; then
  2045. $as_echo_n "(cached) " >&6
  2046. else
  2047. if test -n "$AWK"; then
  2048. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2049. else
  2050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2051. for as_dir in $PATH
  2052. do
  2053. IFS=$as_save_IFS
  2054. test -z "$as_dir" && as_dir=.
  2055. for ac_exec_ext in '' $ac_executable_extensions; do
  2056. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2057. ac_cv_prog_AWK="$ac_prog"
  2058. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2059. break 2
  2060. fi
  2061. done
  2062. done
  2063. IFS=$as_save_IFS
  2064. fi
  2065. fi
  2066. AWK=$ac_cv_prog_AWK
  2067. if test -n "$AWK"; then
  2068. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2069. $as_echo "$AWK" >&6; }
  2070. else
  2071. { $as_echo "$as_me:$LINENO: result: no" >&5
  2072. $as_echo "no" >&6; }
  2073. fi
  2074. test -n "$AWK" && break
  2075. done
  2076. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2077. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2078. set x ${MAKE-make}
  2079. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2080. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2081. $as_echo_n "(cached) " >&6
  2082. else
  2083. cat >conftest.make <<\_ACEOF
  2084. SHELL = /bin/sh
  2085. all:
  2086. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2087. _ACEOF
  2088. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2089. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2090. *@@@%%%=?*=@@@%%%*)
  2091. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2092. *)
  2093. eval ac_cv_prog_make_${ac_make}_set=no;;
  2094. esac
  2095. rm -f conftest.make
  2096. fi
  2097. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2098. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2099. $as_echo "yes" >&6; }
  2100. SET_MAKE=
  2101. else
  2102. { $as_echo "$as_me:$LINENO: result: no" >&5
  2103. $as_echo "no" >&6; }
  2104. SET_MAKE="MAKE=${MAKE-make}"
  2105. fi
  2106. rm -rf .tst 2>/dev/null
  2107. mkdir .tst 2>/dev/null
  2108. if test -d .tst; then
  2109. am__leading_dot=.
  2110. else
  2111. am__leading_dot=_
  2112. fi
  2113. rmdir .tst 2>/dev/null
  2114. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2115. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2116. # is not polluted with repeated "-I."
  2117. am__isrc=' -I$(srcdir)'
  2118. # test to see if srcdir already configured
  2119. if test -f $srcdir/config.status; then
  2120. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2121. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2122. { (exit 1); exit 1; }; }
  2123. fi
  2124. fi
  2125. # test whether we have cygpath
  2126. if test -z "$CYGPATH_W"; then
  2127. if (cygpath --version) >/dev/null 2>/dev/null; then
  2128. CYGPATH_W='cygpath -w'
  2129. else
  2130. CYGPATH_W=echo
  2131. fi
  2132. fi
  2133. # Define the identity of the package.
  2134. PACKAGE='vcmi'
  2135. VERSION='VERSION'
  2136. cat >>confdefs.h <<_ACEOF
  2137. #define PACKAGE "$PACKAGE"
  2138. _ACEOF
  2139. cat >>confdefs.h <<_ACEOF
  2140. #define VERSION "$VERSION"
  2141. _ACEOF
  2142. # Some tools Automake needs.
  2143. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2144. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2145. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2146. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2147. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2148. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2149. # Installed binaries are usually stripped using `strip' when the user
  2150. # run `make install-strip'. However `strip' might not be the right
  2151. # tool to use in cross-compilation environments, therefore Automake
  2152. # will honor the `STRIP' environment variable to overrule this program.
  2153. if test "$cross_compiling" != no; then
  2154. if test -n "$ac_tool_prefix"; then
  2155. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2156. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2157. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2158. $as_echo_n "checking for $ac_word... " >&6; }
  2159. if test "${ac_cv_prog_STRIP+set}" = set; then
  2160. $as_echo_n "(cached) " >&6
  2161. else
  2162. if test -n "$STRIP"; then
  2163. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2164. else
  2165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2166. for as_dir in $PATH
  2167. do
  2168. IFS=$as_save_IFS
  2169. test -z "$as_dir" && as_dir=.
  2170. for ac_exec_ext in '' $ac_executable_extensions; do
  2171. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2172. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2173. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2174. break 2
  2175. fi
  2176. done
  2177. done
  2178. IFS=$as_save_IFS
  2179. fi
  2180. fi
  2181. STRIP=$ac_cv_prog_STRIP
  2182. if test -n "$STRIP"; then
  2183. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2184. $as_echo "$STRIP" >&6; }
  2185. else
  2186. { $as_echo "$as_me:$LINENO: result: no" >&5
  2187. $as_echo "no" >&6; }
  2188. fi
  2189. fi
  2190. if test -z "$ac_cv_prog_STRIP"; then
  2191. ac_ct_STRIP=$STRIP
  2192. # Extract the first word of "strip", so it can be a program name with args.
  2193. set dummy strip; ac_word=$2
  2194. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2195. $as_echo_n "checking for $ac_word... " >&6; }
  2196. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2197. $as_echo_n "(cached) " >&6
  2198. else
  2199. if test -n "$ac_ct_STRIP"; then
  2200. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2201. else
  2202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2203. for as_dir in $PATH
  2204. do
  2205. IFS=$as_save_IFS
  2206. test -z "$as_dir" && as_dir=.
  2207. for ac_exec_ext in '' $ac_executable_extensions; do
  2208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2209. ac_cv_prog_ac_ct_STRIP="strip"
  2210. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2211. break 2
  2212. fi
  2213. done
  2214. done
  2215. IFS=$as_save_IFS
  2216. fi
  2217. fi
  2218. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2219. if test -n "$ac_ct_STRIP"; then
  2220. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2221. $as_echo "$ac_ct_STRIP" >&6; }
  2222. else
  2223. { $as_echo "$as_me:$LINENO: result: no" >&5
  2224. $as_echo "no" >&6; }
  2225. fi
  2226. if test "x$ac_ct_STRIP" = x; then
  2227. STRIP=":"
  2228. else
  2229. case $cross_compiling:$ac_tool_warned in
  2230. yes:)
  2231. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2233. ac_tool_warned=yes ;;
  2234. esac
  2235. STRIP=$ac_ct_STRIP
  2236. fi
  2237. else
  2238. STRIP="$ac_cv_prog_STRIP"
  2239. fi
  2240. fi
  2241. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2242. # We need awk for the "check" target. The system "awk" is bad on
  2243. # some platforms.
  2244. # Always define AMTAR for backward compatibility.
  2245. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2246. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2247. # Checks for build toolchain
  2248. ac_ext=cpp
  2249. ac_cpp='$CXXCPP $CPPFLAGS'
  2250. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2251. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2252. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2253. ac_ext=cpp
  2254. ac_cpp='$CXXCPP $CPPFLAGS'
  2255. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2256. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2257. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2258. if test -z "$CXX"; then
  2259. if test -n "$CCC"; then
  2260. CXX=$CCC
  2261. else
  2262. if test -n "$ac_tool_prefix"; then
  2263. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2264. do
  2265. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2266. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2267. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2268. $as_echo_n "checking for $ac_word... " >&6; }
  2269. if test "${ac_cv_prog_CXX+set}" = set; then
  2270. $as_echo_n "(cached) " >&6
  2271. else
  2272. if test -n "$CXX"; then
  2273. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2274. else
  2275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2276. for as_dir in $PATH
  2277. do
  2278. IFS=$as_save_IFS
  2279. test -z "$as_dir" && as_dir=.
  2280. for ac_exec_ext in '' $ac_executable_extensions; do
  2281. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2282. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2283. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2284. break 2
  2285. fi
  2286. done
  2287. done
  2288. IFS=$as_save_IFS
  2289. fi
  2290. fi
  2291. CXX=$ac_cv_prog_CXX
  2292. if test -n "$CXX"; then
  2293. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2294. $as_echo "$CXX" >&6; }
  2295. else
  2296. { $as_echo "$as_me:$LINENO: result: no" >&5
  2297. $as_echo "no" >&6; }
  2298. fi
  2299. test -n "$CXX" && break
  2300. done
  2301. fi
  2302. if test -z "$CXX"; then
  2303. ac_ct_CXX=$CXX
  2304. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2305. do
  2306. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2307. set dummy $ac_prog; ac_word=$2
  2308. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2309. $as_echo_n "checking for $ac_word... " >&6; }
  2310. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2311. $as_echo_n "(cached) " >&6
  2312. else
  2313. if test -n "$ac_ct_CXX"; then
  2314. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2315. else
  2316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2317. for as_dir in $PATH
  2318. do
  2319. IFS=$as_save_IFS
  2320. test -z "$as_dir" && as_dir=.
  2321. for ac_exec_ext in '' $ac_executable_extensions; do
  2322. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2323. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2324. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2325. break 2
  2326. fi
  2327. done
  2328. done
  2329. IFS=$as_save_IFS
  2330. fi
  2331. fi
  2332. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2333. if test -n "$ac_ct_CXX"; then
  2334. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2335. $as_echo "$ac_ct_CXX" >&6; }
  2336. else
  2337. { $as_echo "$as_me:$LINENO: result: no" >&5
  2338. $as_echo "no" >&6; }
  2339. fi
  2340. test -n "$ac_ct_CXX" && break
  2341. done
  2342. if test "x$ac_ct_CXX" = x; then
  2343. CXX="g++"
  2344. else
  2345. case $cross_compiling:$ac_tool_warned in
  2346. yes:)
  2347. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2348. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2349. ac_tool_warned=yes ;;
  2350. esac
  2351. CXX=$ac_ct_CXX
  2352. fi
  2353. fi
  2354. fi
  2355. fi
  2356. # Provide some information about the compiler.
  2357. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2358. set X $ac_compile
  2359. ac_compiler=$2
  2360. { (ac_try="$ac_compiler --version >&5"
  2361. case "(($ac_try" in
  2362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2363. *) ac_try_echo=$ac_try;;
  2364. esac
  2365. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2366. $as_echo "$ac_try_echo") >&5
  2367. (eval "$ac_compiler --version >&5") 2>&5
  2368. ac_status=$?
  2369. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2370. (exit $ac_status); }
  2371. { (ac_try="$ac_compiler -v >&5"
  2372. case "(($ac_try" in
  2373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2374. *) ac_try_echo=$ac_try;;
  2375. esac
  2376. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2377. $as_echo "$ac_try_echo") >&5
  2378. (eval "$ac_compiler -v >&5") 2>&5
  2379. ac_status=$?
  2380. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2381. (exit $ac_status); }
  2382. { (ac_try="$ac_compiler -V >&5"
  2383. case "(($ac_try" in
  2384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2385. *) ac_try_echo=$ac_try;;
  2386. esac
  2387. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2388. $as_echo "$ac_try_echo") >&5
  2389. (eval "$ac_compiler -V >&5") 2>&5
  2390. ac_status=$?
  2391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2392. (exit $ac_status); }
  2393. cat >conftest.$ac_ext <<_ACEOF
  2394. /* confdefs.h. */
  2395. _ACEOF
  2396. cat confdefs.h >>conftest.$ac_ext
  2397. cat >>conftest.$ac_ext <<_ACEOF
  2398. /* end confdefs.h. */
  2399. int
  2400. main ()
  2401. {
  2402. ;
  2403. return 0;
  2404. }
  2405. _ACEOF
  2406. ac_clean_files_save=$ac_clean_files
  2407. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2408. # Try to create an executable without -o first, disregard a.out.
  2409. # It will help us diagnose broken compilers, and finding out an intuition
  2410. # of exeext.
  2411. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2412. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2413. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2414. # The possible output files:
  2415. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2416. ac_rmfiles=
  2417. for ac_file in $ac_files
  2418. do
  2419. case $ac_file in
  2420. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2421. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2422. esac
  2423. done
  2424. rm -f $ac_rmfiles
  2425. if { (ac_try="$ac_link_default"
  2426. case "(($ac_try" in
  2427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2428. *) ac_try_echo=$ac_try;;
  2429. esac
  2430. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2431. $as_echo "$ac_try_echo") >&5
  2432. (eval "$ac_link_default") 2>&5
  2433. ac_status=$?
  2434. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2435. (exit $ac_status); }; then
  2436. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2437. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2438. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2439. # so that the user can short-circuit this test for compilers unknown to
  2440. # Autoconf.
  2441. for ac_file in $ac_files ''
  2442. do
  2443. test -f "$ac_file" || continue
  2444. case $ac_file in
  2445. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2446. ;;
  2447. [ab].out )
  2448. # We found the default executable, but exeext='' is most
  2449. # certainly right.
  2450. break;;
  2451. *.* )
  2452. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2453. then :; else
  2454. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2455. fi
  2456. # We set ac_cv_exeext here because the later test for it is not
  2457. # safe: cross compilers may not add the suffix if given an `-o'
  2458. # argument, so we may need to know it at that point already.
  2459. # Even if this section looks crufty: it has the advantage of
  2460. # actually working.
  2461. break;;
  2462. * )
  2463. break;;
  2464. esac
  2465. done
  2466. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2467. else
  2468. ac_file=''
  2469. fi
  2470. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2471. $as_echo "$ac_file" >&6; }
  2472. if test -z "$ac_file"; then
  2473. $as_echo "$as_me: failed program was:" >&5
  2474. sed 's/^/| /' conftest.$ac_ext >&5
  2475. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2476. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2477. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2478. See \`config.log' for more details." >&5
  2479. $as_echo "$as_me: error: C++ compiler cannot create executables
  2480. See \`config.log' for more details." >&2;}
  2481. { (exit 77); exit 77; }; }; }
  2482. fi
  2483. ac_exeext=$ac_cv_exeext
  2484. # Check that the compiler produces executables we can run. If not, either
  2485. # the compiler is broken, or we cross compile.
  2486. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2487. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2488. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2489. # If not cross compiling, check that we can run a simple program.
  2490. if test "$cross_compiling" != yes; then
  2491. if { ac_try='./$ac_file'
  2492. { (case "(($ac_try" in
  2493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2494. *) ac_try_echo=$ac_try;;
  2495. esac
  2496. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2497. $as_echo "$ac_try_echo") >&5
  2498. (eval "$ac_try") 2>&5
  2499. ac_status=$?
  2500. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2501. (exit $ac_status); }; }; then
  2502. cross_compiling=no
  2503. else
  2504. if test "$cross_compiling" = maybe; then
  2505. cross_compiling=yes
  2506. else
  2507. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2508. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2509. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2510. If you meant to cross compile, use \`--host'.
  2511. See \`config.log' for more details." >&5
  2512. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2513. If you meant to cross compile, use \`--host'.
  2514. See \`config.log' for more details." >&2;}
  2515. { (exit 1); exit 1; }; }; }
  2516. fi
  2517. fi
  2518. fi
  2519. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2520. $as_echo "yes" >&6; }
  2521. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2522. ac_clean_files=$ac_clean_files_save
  2523. # Check that the compiler produces executables we can run. If not, either
  2524. # the compiler is broken, or we cross compile.
  2525. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2526. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2527. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2528. $as_echo "$cross_compiling" >&6; }
  2529. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2530. $as_echo_n "checking for suffix of executables... " >&6; }
  2531. if { (ac_try="$ac_link"
  2532. case "(($ac_try" in
  2533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2534. *) ac_try_echo=$ac_try;;
  2535. esac
  2536. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2537. $as_echo "$ac_try_echo") >&5
  2538. (eval "$ac_link") 2>&5
  2539. ac_status=$?
  2540. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); }; then
  2542. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2543. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2544. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2545. # `rm'.
  2546. for ac_file in conftest.exe conftest conftest.*; do
  2547. test -f "$ac_file" || continue
  2548. case $ac_file in
  2549. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2550. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2551. break;;
  2552. * ) break;;
  2553. esac
  2554. done
  2555. else
  2556. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2557. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2558. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2559. See \`config.log' for more details." >&5
  2560. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2561. See \`config.log' for more details." >&2;}
  2562. { (exit 1); exit 1; }; }; }
  2563. fi
  2564. rm -f conftest$ac_cv_exeext
  2565. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2566. $as_echo "$ac_cv_exeext" >&6; }
  2567. rm -f conftest.$ac_ext
  2568. EXEEXT=$ac_cv_exeext
  2569. ac_exeext=$EXEEXT
  2570. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2571. $as_echo_n "checking for suffix of object files... " >&6; }
  2572. if test "${ac_cv_objext+set}" = set; then
  2573. $as_echo_n "(cached) " >&6
  2574. else
  2575. cat >conftest.$ac_ext <<_ACEOF
  2576. /* confdefs.h. */
  2577. _ACEOF
  2578. cat confdefs.h >>conftest.$ac_ext
  2579. cat >>conftest.$ac_ext <<_ACEOF
  2580. /* end confdefs.h. */
  2581. int
  2582. main ()
  2583. {
  2584. ;
  2585. return 0;
  2586. }
  2587. _ACEOF
  2588. rm -f conftest.o conftest.obj
  2589. if { (ac_try="$ac_compile"
  2590. case "(($ac_try" in
  2591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2592. *) ac_try_echo=$ac_try;;
  2593. esac
  2594. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2595. $as_echo "$ac_try_echo") >&5
  2596. (eval "$ac_compile") 2>&5
  2597. ac_status=$?
  2598. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2599. (exit $ac_status); }; then
  2600. for ac_file in conftest.o conftest.obj conftest.*; do
  2601. test -f "$ac_file" || continue;
  2602. case $ac_file in
  2603. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2604. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2605. break;;
  2606. esac
  2607. done
  2608. else
  2609. $as_echo "$as_me: failed program was:" >&5
  2610. sed 's/^/| /' conftest.$ac_ext >&5
  2611. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2612. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2613. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2614. See \`config.log' for more details." >&5
  2615. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2616. See \`config.log' for more details." >&2;}
  2617. { (exit 1); exit 1; }; }; }
  2618. fi
  2619. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2620. fi
  2621. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2622. $as_echo "$ac_cv_objext" >&6; }
  2623. OBJEXT=$ac_cv_objext
  2624. ac_objext=$OBJEXT
  2625. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2626. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2627. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2628. $as_echo_n "(cached) " >&6
  2629. else
  2630. cat >conftest.$ac_ext <<_ACEOF
  2631. /* confdefs.h. */
  2632. _ACEOF
  2633. cat confdefs.h >>conftest.$ac_ext
  2634. cat >>conftest.$ac_ext <<_ACEOF
  2635. /* end confdefs.h. */
  2636. int
  2637. main ()
  2638. {
  2639. #ifndef __GNUC__
  2640. choke me
  2641. #endif
  2642. ;
  2643. return 0;
  2644. }
  2645. _ACEOF
  2646. rm -f conftest.$ac_objext
  2647. if { (ac_try="$ac_compile"
  2648. case "(($ac_try" in
  2649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2650. *) ac_try_echo=$ac_try;;
  2651. esac
  2652. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2653. $as_echo "$ac_try_echo") >&5
  2654. (eval "$ac_compile") 2>conftest.er1
  2655. ac_status=$?
  2656. grep -v '^ *+' conftest.er1 >conftest.err
  2657. rm -f conftest.er1
  2658. cat conftest.err >&5
  2659. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2660. (exit $ac_status); } && {
  2661. test -z "$ac_cxx_werror_flag" ||
  2662. test ! -s conftest.err
  2663. } && test -s conftest.$ac_objext; then
  2664. ac_compiler_gnu=yes
  2665. else
  2666. $as_echo "$as_me: failed program was:" >&5
  2667. sed 's/^/| /' conftest.$ac_ext >&5
  2668. ac_compiler_gnu=no
  2669. fi
  2670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2671. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2672. fi
  2673. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2674. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2675. if test $ac_compiler_gnu = yes; then
  2676. GXX=yes
  2677. else
  2678. GXX=
  2679. fi
  2680. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2681. ac_save_CXXFLAGS=$CXXFLAGS
  2682. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2683. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2684. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2685. $as_echo_n "(cached) " >&6
  2686. else
  2687. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2688. ac_cxx_werror_flag=yes
  2689. ac_cv_prog_cxx_g=no
  2690. CXXFLAGS="-g"
  2691. cat >conftest.$ac_ext <<_ACEOF
  2692. /* confdefs.h. */
  2693. _ACEOF
  2694. cat confdefs.h >>conftest.$ac_ext
  2695. cat >>conftest.$ac_ext <<_ACEOF
  2696. /* end confdefs.h. */
  2697. int
  2698. main ()
  2699. {
  2700. ;
  2701. return 0;
  2702. }
  2703. _ACEOF
  2704. rm -f conftest.$ac_objext
  2705. if { (ac_try="$ac_compile"
  2706. case "(($ac_try" in
  2707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2708. *) ac_try_echo=$ac_try;;
  2709. esac
  2710. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2711. $as_echo "$ac_try_echo") >&5
  2712. (eval "$ac_compile") 2>conftest.er1
  2713. ac_status=$?
  2714. grep -v '^ *+' conftest.er1 >conftest.err
  2715. rm -f conftest.er1
  2716. cat conftest.err >&5
  2717. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2718. (exit $ac_status); } && {
  2719. test -z "$ac_cxx_werror_flag" ||
  2720. test ! -s conftest.err
  2721. } && test -s conftest.$ac_objext; then
  2722. ac_cv_prog_cxx_g=yes
  2723. else
  2724. $as_echo "$as_me: failed program was:" >&5
  2725. sed 's/^/| /' conftest.$ac_ext >&5
  2726. CXXFLAGS=""
  2727. cat >conftest.$ac_ext <<_ACEOF
  2728. /* confdefs.h. */
  2729. _ACEOF
  2730. cat confdefs.h >>conftest.$ac_ext
  2731. cat >>conftest.$ac_ext <<_ACEOF
  2732. /* end confdefs.h. */
  2733. int
  2734. main ()
  2735. {
  2736. ;
  2737. return 0;
  2738. }
  2739. _ACEOF
  2740. rm -f conftest.$ac_objext
  2741. if { (ac_try="$ac_compile"
  2742. case "(($ac_try" in
  2743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2744. *) ac_try_echo=$ac_try;;
  2745. esac
  2746. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2747. $as_echo "$ac_try_echo") >&5
  2748. (eval "$ac_compile") 2>conftest.er1
  2749. ac_status=$?
  2750. grep -v '^ *+' conftest.er1 >conftest.err
  2751. rm -f conftest.er1
  2752. cat conftest.err >&5
  2753. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2754. (exit $ac_status); } && {
  2755. test -z "$ac_cxx_werror_flag" ||
  2756. test ! -s conftest.err
  2757. } && test -s conftest.$ac_objext; then
  2758. :
  2759. else
  2760. $as_echo "$as_me: failed program was:" >&5
  2761. sed 's/^/| /' conftest.$ac_ext >&5
  2762. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2763. CXXFLAGS="-g"
  2764. cat >conftest.$ac_ext <<_ACEOF
  2765. /* confdefs.h. */
  2766. _ACEOF
  2767. cat confdefs.h >>conftest.$ac_ext
  2768. cat >>conftest.$ac_ext <<_ACEOF
  2769. /* end confdefs.h. */
  2770. int
  2771. main ()
  2772. {
  2773. ;
  2774. return 0;
  2775. }
  2776. _ACEOF
  2777. rm -f conftest.$ac_objext
  2778. if { (ac_try="$ac_compile"
  2779. case "(($ac_try" in
  2780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2781. *) ac_try_echo=$ac_try;;
  2782. esac
  2783. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2784. $as_echo "$ac_try_echo") >&5
  2785. (eval "$ac_compile") 2>conftest.er1
  2786. ac_status=$?
  2787. grep -v '^ *+' conftest.er1 >conftest.err
  2788. rm -f conftest.er1
  2789. cat conftest.err >&5
  2790. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2791. (exit $ac_status); } && {
  2792. test -z "$ac_cxx_werror_flag" ||
  2793. test ! -s conftest.err
  2794. } && test -s conftest.$ac_objext; then
  2795. ac_cv_prog_cxx_g=yes
  2796. else
  2797. $as_echo "$as_me: failed program was:" >&5
  2798. sed 's/^/| /' conftest.$ac_ext >&5
  2799. fi
  2800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2801. fi
  2802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2803. fi
  2804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2805. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2806. fi
  2807. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2808. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2809. if test "$ac_test_CXXFLAGS" = set; then
  2810. CXXFLAGS=$ac_save_CXXFLAGS
  2811. elif test $ac_cv_prog_cxx_g = yes; then
  2812. if test "$GXX" = yes; then
  2813. CXXFLAGS="-g -O2"
  2814. else
  2815. CXXFLAGS="-g"
  2816. fi
  2817. else
  2818. if test "$GXX" = yes; then
  2819. CXXFLAGS="-O2"
  2820. else
  2821. CXXFLAGS=
  2822. fi
  2823. fi
  2824. ac_ext=cpp
  2825. ac_cpp='$CXXCPP $CPPFLAGS'
  2826. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2827. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2828. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2829. DEPDIR="${am__leading_dot}deps"
  2830. ac_config_commands="$ac_config_commands depfiles"
  2831. am_make=${MAKE-make}
  2832. cat > confinc << 'END'
  2833. am__doit:
  2834. @echo done
  2835. .PHONY: am__doit
  2836. END
  2837. # If we don't find an include directive, just comment out the code.
  2838. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2839. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2840. am__include="#"
  2841. am__quote=
  2842. _am_result=none
  2843. # First try GNU make style include.
  2844. echo "include confinc" > confmf
  2845. # We grep out `Entering directory' and `Leaving directory'
  2846. # messages which can occur if `w' ends up in MAKEFLAGS.
  2847. # In particular we don't look at `^make:' because GNU make might
  2848. # be invoked under some other name (usually "gmake"), in which
  2849. # case it prints its new name instead of `make'.
  2850. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2851. am__include=include
  2852. am__quote=
  2853. _am_result=GNU
  2854. fi
  2855. # Now try BSD make style include.
  2856. if test "$am__include" = "#"; then
  2857. echo '.include "confinc"' > confmf
  2858. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2859. am__include=.include
  2860. am__quote="\""
  2861. _am_result=BSD
  2862. fi
  2863. fi
  2864. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2865. $as_echo "$_am_result" >&6; }
  2866. rm -f confinc confmf
  2867. # Check whether --enable-dependency-tracking was given.
  2868. if test "${enable_dependency_tracking+set}" = set; then
  2869. enableval=$enable_dependency_tracking;
  2870. fi
  2871. if test "x$enable_dependency_tracking" != xno; then
  2872. am_depcomp="$ac_aux_dir/depcomp"
  2873. AMDEPBACKSLASH='\'
  2874. fi
  2875. if test "x$enable_dependency_tracking" != xno; then
  2876. AMDEP_TRUE=
  2877. AMDEP_FALSE='#'
  2878. else
  2879. AMDEP_TRUE='#'
  2880. AMDEP_FALSE=
  2881. fi
  2882. depcc="$CXX" am_compiler_list=
  2883. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2884. $as_echo_n "checking dependency style of $depcc... " >&6; }
  2885. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2886. $as_echo_n "(cached) " >&6
  2887. else
  2888. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2889. # We make a subdir and do the tests there. Otherwise we can end up
  2890. # making bogus files that we don't know about and never remove. For
  2891. # instance it was reported that on HP-UX the gcc test will end up
  2892. # making a dummy file named `D' -- because `-MD' means `put the output
  2893. # in D'.
  2894. mkdir conftest.dir
  2895. # Copy depcomp to subdir because otherwise we won't find it if we're
  2896. # using a relative directory.
  2897. cp "$am_depcomp" conftest.dir
  2898. cd conftest.dir
  2899. # We will build objects and dependencies in a subdirectory because
  2900. # it helps to detect inapplicable dependency modes. For instance
  2901. # both Tru64's cc and ICC support -MD to output dependencies as a
  2902. # side effect of compilation, but ICC will put the dependencies in
  2903. # the current directory while Tru64 will put them in the object
  2904. # directory.
  2905. mkdir sub
  2906. am_cv_CXX_dependencies_compiler_type=none
  2907. if test "$am_compiler_list" = ""; then
  2908. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2909. fi
  2910. for depmode in $am_compiler_list; do
  2911. # Setup a source with many dependencies, because some compilers
  2912. # like to wrap large dependency lists on column 80 (with \), and
  2913. # we should not choose a depcomp mode which is confused by this.
  2914. #
  2915. # We need to recreate these files for each test, as the compiler may
  2916. # overwrite some of them when testing with obscure command lines.
  2917. # This happens at least with the AIX C compiler.
  2918. : > sub/conftest.c
  2919. for i in 1 2 3 4 5 6; do
  2920. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2921. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2922. # Solaris 8's {/usr,}/bin/sh.
  2923. touch sub/conftst$i.h
  2924. done
  2925. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2926. case $depmode in
  2927. nosideeffect)
  2928. # after this tag, mechanisms are not by side-effect, so they'll
  2929. # only be used when explicitly requested
  2930. if test "x$enable_dependency_tracking" = xyes; then
  2931. continue
  2932. else
  2933. break
  2934. fi
  2935. ;;
  2936. none) break ;;
  2937. esac
  2938. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2939. # mode. It turns out that the SunPro C++ compiler does not properly
  2940. # handle `-M -o', and we need to detect this.
  2941. if depmode=$depmode \
  2942. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2943. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2944. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2945. >/dev/null 2>conftest.err &&
  2946. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  2947. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2948. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2949. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2950. # icc doesn't choke on unknown options, it will just issue warnings
  2951. # or remarks (even with -Werror). So we grep stderr for any message
  2952. # that says an option was ignored or not supported.
  2953. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2954. # icc: Command line warning: ignoring option '-M'; no argument required
  2955. # The diagnosis changed in icc 8.0:
  2956. # icc: Command line remark: option '-MP' not supported
  2957. if (grep 'ignoring option' conftest.err ||
  2958. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2959. am_cv_CXX_dependencies_compiler_type=$depmode
  2960. break
  2961. fi
  2962. fi
  2963. done
  2964. cd ..
  2965. rm -rf conftest.dir
  2966. else
  2967. am_cv_CXX_dependencies_compiler_type=none
  2968. fi
  2969. fi
  2970. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2971. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  2972. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2973. if
  2974. test "x$enable_dependency_tracking" != xno \
  2975. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2976. am__fastdepCXX_TRUE=
  2977. am__fastdepCXX_FALSE='#'
  2978. else
  2979. am__fastdepCXX_TRUE='#'
  2980. am__fastdepCXX_FALSE=
  2981. fi
  2982. # Check whether --enable-shared was given.
  2983. if test "${enable_shared+set}" = set; then
  2984. enableval=$enable_shared; p=${PACKAGE-default}
  2985. case $enableval in
  2986. yes) enable_shared=yes ;;
  2987. no) enable_shared=no ;;
  2988. *)
  2989. enable_shared=no
  2990. # Look at the argument we got. We use all the common list separators.
  2991. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2992. for pkg in $enableval; do
  2993. IFS="$lt_save_ifs"
  2994. if test "X$pkg" = "X$p"; then
  2995. enable_shared=yes
  2996. fi
  2997. done
  2998. IFS="$lt_save_ifs"
  2999. ;;
  3000. esac
  3001. else
  3002. enable_shared=yes
  3003. fi
  3004. # Check whether --enable-static was given.
  3005. if test "${enable_static+set}" = set; then
  3006. enableval=$enable_static; p=${PACKAGE-default}
  3007. case $enableval in
  3008. yes) enable_static=yes ;;
  3009. no) enable_static=no ;;
  3010. *)
  3011. enable_static=no
  3012. # Look at the argument we got. We use all the common list separators.
  3013. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3014. for pkg in $enableval; do
  3015. IFS="$lt_save_ifs"
  3016. if test "X$pkg" = "X$p"; then
  3017. enable_static=yes
  3018. fi
  3019. done
  3020. IFS="$lt_save_ifs"
  3021. ;;
  3022. esac
  3023. else
  3024. enable_static=no
  3025. fi
  3026. case `pwd` in
  3027. *\ * | *\ *)
  3028. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3029. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3030. esac
  3031. macro_version='2.2.6'
  3032. macro_revision='1.3012'
  3033. ltmain="$ac_aux_dir/ltmain.sh"
  3034. # Make sure we can run config.sub.
  3035. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3036. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3037. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3038. { (exit 1); exit 1; }; }
  3039. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  3040. $as_echo_n "checking build system type... " >&6; }
  3041. if test "${ac_cv_build+set}" = set; then
  3042. $as_echo_n "(cached) " >&6
  3043. else
  3044. ac_build_alias=$build_alias
  3045. test "x$ac_build_alias" = x &&
  3046. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3047. test "x$ac_build_alias" = x &&
  3048. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3049. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3050. { (exit 1); exit 1; }; }
  3051. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3052. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3053. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3054. { (exit 1); exit 1; }; }
  3055. fi
  3056. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3057. $as_echo "$ac_cv_build" >&6; }
  3058. case $ac_cv_build in
  3059. *-*-*) ;;
  3060. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3061. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  3062. { (exit 1); exit 1; }; };;
  3063. esac
  3064. build=$ac_cv_build
  3065. ac_save_IFS=$IFS; IFS='-'
  3066. set x $ac_cv_build
  3067. shift
  3068. build_cpu=$1
  3069. build_vendor=$2
  3070. shift; shift
  3071. # Remember, the first character of IFS is used to create $*,
  3072. # except with old shells:
  3073. build_os=$*
  3074. IFS=$ac_save_IFS
  3075. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3076. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  3077. $as_echo_n "checking host system type... " >&6; }
  3078. if test "${ac_cv_host+set}" = set; then
  3079. $as_echo_n "(cached) " >&6
  3080. else
  3081. if test "x$host_alias" = x; then
  3082. ac_cv_host=$ac_cv_build
  3083. else
  3084. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3085. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3086. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3087. { (exit 1); exit 1; }; }
  3088. fi
  3089. fi
  3090. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3091. $as_echo "$ac_cv_host" >&6; }
  3092. case $ac_cv_host in
  3093. *-*-*) ;;
  3094. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3095. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  3096. { (exit 1); exit 1; }; };;
  3097. esac
  3098. host=$ac_cv_host
  3099. ac_save_IFS=$IFS; IFS='-'
  3100. set x $ac_cv_host
  3101. shift
  3102. host_cpu=$1
  3103. host_vendor=$2
  3104. shift; shift
  3105. # Remember, the first character of IFS is used to create $*,
  3106. # except with old shells:
  3107. host_os=$*
  3108. IFS=$ac_save_IFS
  3109. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3110. ac_ext=c
  3111. ac_cpp='$CPP $CPPFLAGS'
  3112. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3113. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3114. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3115. if test -n "$ac_tool_prefix"; then
  3116. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3117. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3118. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3119. $as_echo_n "checking for $ac_word... " >&6; }
  3120. if test "${ac_cv_prog_CC+set}" = set; then
  3121. $as_echo_n "(cached) " >&6
  3122. else
  3123. if test -n "$CC"; then
  3124. ac_cv_prog_CC="$CC" # Let the user override the test.
  3125. else
  3126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3127. for as_dir in $PATH
  3128. do
  3129. IFS=$as_save_IFS
  3130. test -z "$as_dir" && as_dir=.
  3131. for ac_exec_ext in '' $ac_executable_extensions; do
  3132. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3133. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3134. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3135. break 2
  3136. fi
  3137. done
  3138. done
  3139. IFS=$as_save_IFS
  3140. fi
  3141. fi
  3142. CC=$ac_cv_prog_CC
  3143. if test -n "$CC"; then
  3144. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3145. $as_echo "$CC" >&6; }
  3146. else
  3147. { $as_echo "$as_me:$LINENO: result: no" >&5
  3148. $as_echo "no" >&6; }
  3149. fi
  3150. fi
  3151. if test -z "$ac_cv_prog_CC"; then
  3152. ac_ct_CC=$CC
  3153. # Extract the first word of "gcc", so it can be a program name with args.
  3154. set dummy gcc; ac_word=$2
  3155. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3156. $as_echo_n "checking for $ac_word... " >&6; }
  3157. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3158. $as_echo_n "(cached) " >&6
  3159. else
  3160. if test -n "$ac_ct_CC"; then
  3161. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3162. else
  3163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3164. for as_dir in $PATH
  3165. do
  3166. IFS=$as_save_IFS
  3167. test -z "$as_dir" && as_dir=.
  3168. for ac_exec_ext in '' $ac_executable_extensions; do
  3169. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3170. ac_cv_prog_ac_ct_CC="gcc"
  3171. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3172. break 2
  3173. fi
  3174. done
  3175. done
  3176. IFS=$as_save_IFS
  3177. fi
  3178. fi
  3179. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3180. if test -n "$ac_ct_CC"; then
  3181. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3182. $as_echo "$ac_ct_CC" >&6; }
  3183. else
  3184. { $as_echo "$as_me:$LINENO: result: no" >&5
  3185. $as_echo "no" >&6; }
  3186. fi
  3187. if test "x$ac_ct_CC" = x; then
  3188. CC=""
  3189. else
  3190. case $cross_compiling:$ac_tool_warned in
  3191. yes:)
  3192. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3193. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3194. ac_tool_warned=yes ;;
  3195. esac
  3196. CC=$ac_ct_CC
  3197. fi
  3198. else
  3199. CC="$ac_cv_prog_CC"
  3200. fi
  3201. if test -z "$CC"; then
  3202. if test -n "$ac_tool_prefix"; then
  3203. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3204. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3205. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3206. $as_echo_n "checking for $ac_word... " >&6; }
  3207. if test "${ac_cv_prog_CC+set}" = set; then
  3208. $as_echo_n "(cached) " >&6
  3209. else
  3210. if test -n "$CC"; then
  3211. ac_cv_prog_CC="$CC" # Let the user override the test.
  3212. else
  3213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3214. for as_dir in $PATH
  3215. do
  3216. IFS=$as_save_IFS
  3217. test -z "$as_dir" && as_dir=.
  3218. for ac_exec_ext in '' $ac_executable_extensions; do
  3219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3220. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3221. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3222. break 2
  3223. fi
  3224. done
  3225. done
  3226. IFS=$as_save_IFS
  3227. fi
  3228. fi
  3229. CC=$ac_cv_prog_CC
  3230. if test -n "$CC"; then
  3231. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3232. $as_echo "$CC" >&6; }
  3233. else
  3234. { $as_echo "$as_me:$LINENO: result: no" >&5
  3235. $as_echo "no" >&6; }
  3236. fi
  3237. fi
  3238. fi
  3239. if test -z "$CC"; then
  3240. # Extract the first word of "cc", so it can be a program name with args.
  3241. set dummy cc; ac_word=$2
  3242. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3243. $as_echo_n "checking for $ac_word... " >&6; }
  3244. if test "${ac_cv_prog_CC+set}" = set; then
  3245. $as_echo_n "(cached) " >&6
  3246. else
  3247. if test -n "$CC"; then
  3248. ac_cv_prog_CC="$CC" # Let the user override the test.
  3249. else
  3250. ac_prog_rejected=no
  3251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3252. for as_dir in $PATH
  3253. do
  3254. IFS=$as_save_IFS
  3255. test -z "$as_dir" && as_dir=.
  3256. for ac_exec_ext in '' $ac_executable_extensions; do
  3257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3258. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3259. ac_prog_rejected=yes
  3260. continue
  3261. fi
  3262. ac_cv_prog_CC="cc"
  3263. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3264. break 2
  3265. fi
  3266. done
  3267. done
  3268. IFS=$as_save_IFS
  3269. if test $ac_prog_rejected = yes; then
  3270. # We found a bogon in the path, so make sure we never use it.
  3271. set dummy $ac_cv_prog_CC
  3272. shift
  3273. if test $# != 0; then
  3274. # We chose a different compiler from the bogus one.
  3275. # However, it has the same basename, so the bogon will be chosen
  3276. # first if we set CC to just the basename; use the full file name.
  3277. shift
  3278. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3279. fi
  3280. fi
  3281. fi
  3282. fi
  3283. CC=$ac_cv_prog_CC
  3284. if test -n "$CC"; then
  3285. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3286. $as_echo "$CC" >&6; }
  3287. else
  3288. { $as_echo "$as_me:$LINENO: result: no" >&5
  3289. $as_echo "no" >&6; }
  3290. fi
  3291. fi
  3292. if test -z "$CC"; then
  3293. if test -n "$ac_tool_prefix"; then
  3294. for ac_prog in cl.exe
  3295. do
  3296. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3297. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3298. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3299. $as_echo_n "checking for $ac_word... " >&6; }
  3300. if test "${ac_cv_prog_CC+set}" = set; then
  3301. $as_echo_n "(cached) " >&6
  3302. else
  3303. if test -n "$CC"; then
  3304. ac_cv_prog_CC="$CC" # Let the user override the test.
  3305. else
  3306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3307. for as_dir in $PATH
  3308. do
  3309. IFS=$as_save_IFS
  3310. test -z "$as_dir" && as_dir=.
  3311. for ac_exec_ext in '' $ac_executable_extensions; do
  3312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3313. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3314. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3315. break 2
  3316. fi
  3317. done
  3318. done
  3319. IFS=$as_save_IFS
  3320. fi
  3321. fi
  3322. CC=$ac_cv_prog_CC
  3323. if test -n "$CC"; then
  3324. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3325. $as_echo "$CC" >&6; }
  3326. else
  3327. { $as_echo "$as_me:$LINENO: result: no" >&5
  3328. $as_echo "no" >&6; }
  3329. fi
  3330. test -n "$CC" && break
  3331. done
  3332. fi
  3333. if test -z "$CC"; then
  3334. ac_ct_CC=$CC
  3335. for ac_prog in cl.exe
  3336. do
  3337. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3338. set dummy $ac_prog; ac_word=$2
  3339. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3340. $as_echo_n "checking for $ac_word... " >&6; }
  3341. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3342. $as_echo_n "(cached) " >&6
  3343. else
  3344. if test -n "$ac_ct_CC"; then
  3345. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3346. else
  3347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3348. for as_dir in $PATH
  3349. do
  3350. IFS=$as_save_IFS
  3351. test -z "$as_dir" && as_dir=.
  3352. for ac_exec_ext in '' $ac_executable_extensions; do
  3353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3354. ac_cv_prog_ac_ct_CC="$ac_prog"
  3355. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3356. break 2
  3357. fi
  3358. done
  3359. done
  3360. IFS=$as_save_IFS
  3361. fi
  3362. fi
  3363. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3364. if test -n "$ac_ct_CC"; then
  3365. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3366. $as_echo "$ac_ct_CC" >&6; }
  3367. else
  3368. { $as_echo "$as_me:$LINENO: result: no" >&5
  3369. $as_echo "no" >&6; }
  3370. fi
  3371. test -n "$ac_ct_CC" && break
  3372. done
  3373. if test "x$ac_ct_CC" = x; then
  3374. CC=""
  3375. else
  3376. case $cross_compiling:$ac_tool_warned in
  3377. yes:)
  3378. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3379. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3380. ac_tool_warned=yes ;;
  3381. esac
  3382. CC=$ac_ct_CC
  3383. fi
  3384. fi
  3385. fi
  3386. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3387. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3388. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3389. See \`config.log' for more details." >&5
  3390. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3391. See \`config.log' for more details." >&2;}
  3392. { (exit 1); exit 1; }; }; }
  3393. # Provide some information about the compiler.
  3394. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3395. set X $ac_compile
  3396. ac_compiler=$2
  3397. { (ac_try="$ac_compiler --version >&5"
  3398. case "(($ac_try" in
  3399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3400. *) ac_try_echo=$ac_try;;
  3401. esac
  3402. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3403. $as_echo "$ac_try_echo") >&5
  3404. (eval "$ac_compiler --version >&5") 2>&5
  3405. ac_status=$?
  3406. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3407. (exit $ac_status); }
  3408. { (ac_try="$ac_compiler -v >&5"
  3409. case "(($ac_try" in
  3410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3411. *) ac_try_echo=$ac_try;;
  3412. esac
  3413. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3414. $as_echo "$ac_try_echo") >&5
  3415. (eval "$ac_compiler -v >&5") 2>&5
  3416. ac_status=$?
  3417. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3418. (exit $ac_status); }
  3419. { (ac_try="$ac_compiler -V >&5"
  3420. case "(($ac_try" in
  3421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3422. *) ac_try_echo=$ac_try;;
  3423. esac
  3424. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3425. $as_echo "$ac_try_echo") >&5
  3426. (eval "$ac_compiler -V >&5") 2>&5
  3427. ac_status=$?
  3428. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3429. (exit $ac_status); }
  3430. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3431. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3432. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3433. $as_echo_n "(cached) " >&6
  3434. else
  3435. cat >conftest.$ac_ext <<_ACEOF
  3436. /* confdefs.h. */
  3437. _ACEOF
  3438. cat confdefs.h >>conftest.$ac_ext
  3439. cat >>conftest.$ac_ext <<_ACEOF
  3440. /* end confdefs.h. */
  3441. int
  3442. main ()
  3443. {
  3444. #ifndef __GNUC__
  3445. choke me
  3446. #endif
  3447. ;
  3448. return 0;
  3449. }
  3450. _ACEOF
  3451. rm -f conftest.$ac_objext
  3452. if { (ac_try="$ac_compile"
  3453. case "(($ac_try" in
  3454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3455. *) ac_try_echo=$ac_try;;
  3456. esac
  3457. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3458. $as_echo "$ac_try_echo") >&5
  3459. (eval "$ac_compile") 2>conftest.er1
  3460. ac_status=$?
  3461. grep -v '^ *+' conftest.er1 >conftest.err
  3462. rm -f conftest.er1
  3463. cat conftest.err >&5
  3464. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3465. (exit $ac_status); } && {
  3466. test -z "$ac_c_werror_flag" ||
  3467. test ! -s conftest.err
  3468. } && test -s conftest.$ac_objext; then
  3469. ac_compiler_gnu=yes
  3470. else
  3471. $as_echo "$as_me: failed program was:" >&5
  3472. sed 's/^/| /' conftest.$ac_ext >&5
  3473. ac_compiler_gnu=no
  3474. fi
  3475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3476. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3477. fi
  3478. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3479. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3480. if test $ac_compiler_gnu = yes; then
  3481. GCC=yes
  3482. else
  3483. GCC=
  3484. fi
  3485. ac_test_CFLAGS=${CFLAGS+set}
  3486. ac_save_CFLAGS=$CFLAGS
  3487. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3488. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3489. if test "${ac_cv_prog_cc_g+set}" = set; then
  3490. $as_echo_n "(cached) " >&6
  3491. else
  3492. ac_save_c_werror_flag=$ac_c_werror_flag
  3493. ac_c_werror_flag=yes
  3494. ac_cv_prog_cc_g=no
  3495. CFLAGS="-g"
  3496. cat >conftest.$ac_ext <<_ACEOF
  3497. /* confdefs.h. */
  3498. _ACEOF
  3499. cat confdefs.h >>conftest.$ac_ext
  3500. cat >>conftest.$ac_ext <<_ACEOF
  3501. /* end confdefs.h. */
  3502. int
  3503. main ()
  3504. {
  3505. ;
  3506. return 0;
  3507. }
  3508. _ACEOF
  3509. rm -f conftest.$ac_objext
  3510. if { (ac_try="$ac_compile"
  3511. case "(($ac_try" in
  3512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3513. *) ac_try_echo=$ac_try;;
  3514. esac
  3515. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3516. $as_echo "$ac_try_echo") >&5
  3517. (eval "$ac_compile") 2>conftest.er1
  3518. ac_status=$?
  3519. grep -v '^ *+' conftest.er1 >conftest.err
  3520. rm -f conftest.er1
  3521. cat conftest.err >&5
  3522. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3523. (exit $ac_status); } && {
  3524. test -z "$ac_c_werror_flag" ||
  3525. test ! -s conftest.err
  3526. } && test -s conftest.$ac_objext; then
  3527. ac_cv_prog_cc_g=yes
  3528. else
  3529. $as_echo "$as_me: failed program was:" >&5
  3530. sed 's/^/| /' conftest.$ac_ext >&5
  3531. CFLAGS=""
  3532. cat >conftest.$ac_ext <<_ACEOF
  3533. /* confdefs.h. */
  3534. _ACEOF
  3535. cat confdefs.h >>conftest.$ac_ext
  3536. cat >>conftest.$ac_ext <<_ACEOF
  3537. /* end confdefs.h. */
  3538. int
  3539. main ()
  3540. {
  3541. ;
  3542. return 0;
  3543. }
  3544. _ACEOF
  3545. rm -f conftest.$ac_objext
  3546. if { (ac_try="$ac_compile"
  3547. case "(($ac_try" in
  3548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3549. *) ac_try_echo=$ac_try;;
  3550. esac
  3551. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3552. $as_echo "$ac_try_echo") >&5
  3553. (eval "$ac_compile") 2>conftest.er1
  3554. ac_status=$?
  3555. grep -v '^ *+' conftest.er1 >conftest.err
  3556. rm -f conftest.er1
  3557. cat conftest.err >&5
  3558. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3559. (exit $ac_status); } && {
  3560. test -z "$ac_c_werror_flag" ||
  3561. test ! -s conftest.err
  3562. } && test -s conftest.$ac_objext; then
  3563. :
  3564. else
  3565. $as_echo "$as_me: failed program was:" >&5
  3566. sed 's/^/| /' conftest.$ac_ext >&5
  3567. ac_c_werror_flag=$ac_save_c_werror_flag
  3568. CFLAGS="-g"
  3569. cat >conftest.$ac_ext <<_ACEOF
  3570. /* confdefs.h. */
  3571. _ACEOF
  3572. cat confdefs.h >>conftest.$ac_ext
  3573. cat >>conftest.$ac_ext <<_ACEOF
  3574. /* end confdefs.h. */
  3575. int
  3576. main ()
  3577. {
  3578. ;
  3579. return 0;
  3580. }
  3581. _ACEOF
  3582. rm -f conftest.$ac_objext
  3583. if { (ac_try="$ac_compile"
  3584. case "(($ac_try" in
  3585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3586. *) ac_try_echo=$ac_try;;
  3587. esac
  3588. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3589. $as_echo "$ac_try_echo") >&5
  3590. (eval "$ac_compile") 2>conftest.er1
  3591. ac_status=$?
  3592. grep -v '^ *+' conftest.er1 >conftest.err
  3593. rm -f conftest.er1
  3594. cat conftest.err >&5
  3595. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3596. (exit $ac_status); } && {
  3597. test -z "$ac_c_werror_flag" ||
  3598. test ! -s conftest.err
  3599. } && test -s conftest.$ac_objext; then
  3600. ac_cv_prog_cc_g=yes
  3601. else
  3602. $as_echo "$as_me: failed program was:" >&5
  3603. sed 's/^/| /' conftest.$ac_ext >&5
  3604. fi
  3605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3606. fi
  3607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3608. fi
  3609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3610. ac_c_werror_flag=$ac_save_c_werror_flag
  3611. fi
  3612. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3613. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3614. if test "$ac_test_CFLAGS" = set; then
  3615. CFLAGS=$ac_save_CFLAGS
  3616. elif test $ac_cv_prog_cc_g = yes; then
  3617. if test "$GCC" = yes; then
  3618. CFLAGS="-g -O2"
  3619. else
  3620. CFLAGS="-g"
  3621. fi
  3622. else
  3623. if test "$GCC" = yes; then
  3624. CFLAGS="-O2"
  3625. else
  3626. CFLAGS=
  3627. fi
  3628. fi
  3629. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3630. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3631. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3632. $as_echo_n "(cached) " >&6
  3633. else
  3634. ac_cv_prog_cc_c89=no
  3635. ac_save_CC=$CC
  3636. cat >conftest.$ac_ext <<_ACEOF
  3637. /* confdefs.h. */
  3638. _ACEOF
  3639. cat confdefs.h >>conftest.$ac_ext
  3640. cat >>conftest.$ac_ext <<_ACEOF
  3641. /* end confdefs.h. */
  3642. #include <stdarg.h>
  3643. #include <stdio.h>
  3644. #include <sys/types.h>
  3645. #include <sys/stat.h>
  3646. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3647. struct buf { int x; };
  3648. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3649. static char *e (p, i)
  3650. char **p;
  3651. int i;
  3652. {
  3653. return p[i];
  3654. }
  3655. static char *f (char * (*g) (char **, int), char **p, ...)
  3656. {
  3657. char *s;
  3658. va_list v;
  3659. va_start (v,p);
  3660. s = g (p, va_arg (v,int));
  3661. va_end (v);
  3662. return s;
  3663. }
  3664. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3665. function prototypes and stuff, but not '\xHH' hex character constants.
  3666. These don't provoke an error unfortunately, instead are silently treated
  3667. as 'x'. The following induces an error, until -std is added to get
  3668. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3669. array size at least. It's necessary to write '\x00'==0 to get something
  3670. that's true only with -std. */
  3671. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3672. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3673. inside strings and character constants. */
  3674. #define FOO(x) 'x'
  3675. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3676. int test (int i, double x);
  3677. struct s1 {int (*f) (int a);};
  3678. struct s2 {int (*f) (double a);};
  3679. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3680. int argc;
  3681. char **argv;
  3682. int
  3683. main ()
  3684. {
  3685. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3686. ;
  3687. return 0;
  3688. }
  3689. _ACEOF
  3690. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3691. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3692. do
  3693. CC="$ac_save_CC $ac_arg"
  3694. rm -f conftest.$ac_objext
  3695. if { (ac_try="$ac_compile"
  3696. case "(($ac_try" in
  3697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3698. *) ac_try_echo=$ac_try;;
  3699. esac
  3700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3701. $as_echo "$ac_try_echo") >&5
  3702. (eval "$ac_compile") 2>conftest.er1
  3703. ac_status=$?
  3704. grep -v '^ *+' conftest.er1 >conftest.err
  3705. rm -f conftest.er1
  3706. cat conftest.err >&5
  3707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3708. (exit $ac_status); } && {
  3709. test -z "$ac_c_werror_flag" ||
  3710. test ! -s conftest.err
  3711. } && test -s conftest.$ac_objext; then
  3712. ac_cv_prog_cc_c89=$ac_arg
  3713. else
  3714. $as_echo "$as_me: failed program was:" >&5
  3715. sed 's/^/| /' conftest.$ac_ext >&5
  3716. fi
  3717. rm -f core conftest.err conftest.$ac_objext
  3718. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3719. done
  3720. rm -f conftest.$ac_ext
  3721. CC=$ac_save_CC
  3722. fi
  3723. # AC_CACHE_VAL
  3724. case "x$ac_cv_prog_cc_c89" in
  3725. x)
  3726. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3727. $as_echo "none needed" >&6; } ;;
  3728. xno)
  3729. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3730. $as_echo "unsupported" >&6; } ;;
  3731. *)
  3732. CC="$CC $ac_cv_prog_cc_c89"
  3733. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3734. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3735. esac
  3736. ac_ext=cpp
  3737. ac_cpp='$CXXCPP $CPPFLAGS'
  3738. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3739. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3740. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3741. depcc="$CC" am_compiler_list=
  3742. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3743. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3744. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3745. $as_echo_n "(cached) " >&6
  3746. else
  3747. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3748. # We make a subdir and do the tests there. Otherwise we can end up
  3749. # making bogus files that we don't know about and never remove. For
  3750. # instance it was reported that on HP-UX the gcc test will end up
  3751. # making a dummy file named `D' -- because `-MD' means `put the output
  3752. # in D'.
  3753. mkdir conftest.dir
  3754. # Copy depcomp to subdir because otherwise we won't find it if we're
  3755. # using a relative directory.
  3756. cp "$am_depcomp" conftest.dir
  3757. cd conftest.dir
  3758. # We will build objects and dependencies in a subdirectory because
  3759. # it helps to detect inapplicable dependency modes. For instance
  3760. # both Tru64's cc and ICC support -MD to output dependencies as a
  3761. # side effect of compilation, but ICC will put the dependencies in
  3762. # the current directory while Tru64 will put them in the object
  3763. # directory.
  3764. mkdir sub
  3765. am_cv_CC_dependencies_compiler_type=none
  3766. if test "$am_compiler_list" = ""; then
  3767. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3768. fi
  3769. for depmode in $am_compiler_list; do
  3770. # Setup a source with many dependencies, because some compilers
  3771. # like to wrap large dependency lists on column 80 (with \), and
  3772. # we should not choose a depcomp mode which is confused by this.
  3773. #
  3774. # We need to recreate these files for each test, as the compiler may
  3775. # overwrite some of them when testing with obscure command lines.
  3776. # This happens at least with the AIX C compiler.
  3777. : > sub/conftest.c
  3778. for i in 1 2 3 4 5 6; do
  3779. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3780. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3781. # Solaris 8's {/usr,}/bin/sh.
  3782. touch sub/conftst$i.h
  3783. done
  3784. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3785. case $depmode in
  3786. nosideeffect)
  3787. # after this tag, mechanisms are not by side-effect, so they'll
  3788. # only be used when explicitly requested
  3789. if test "x$enable_dependency_tracking" = xyes; then
  3790. continue
  3791. else
  3792. break
  3793. fi
  3794. ;;
  3795. none) break ;;
  3796. esac
  3797. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3798. # mode. It turns out that the SunPro C++ compiler does not properly
  3799. # handle `-M -o', and we need to detect this.
  3800. if depmode=$depmode \
  3801. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3802. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3803. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3804. >/dev/null 2>conftest.err &&
  3805. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3806. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3807. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3808. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3809. # icc doesn't choke on unknown options, it will just issue warnings
  3810. # or remarks (even with -Werror). So we grep stderr for any message
  3811. # that says an option was ignored or not supported.
  3812. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3813. # icc: Command line warning: ignoring option '-M'; no argument required
  3814. # The diagnosis changed in icc 8.0:
  3815. # icc: Command line remark: option '-MP' not supported
  3816. if (grep 'ignoring option' conftest.err ||
  3817. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3818. am_cv_CC_dependencies_compiler_type=$depmode
  3819. break
  3820. fi
  3821. fi
  3822. done
  3823. cd ..
  3824. rm -rf conftest.dir
  3825. else
  3826. am_cv_CC_dependencies_compiler_type=none
  3827. fi
  3828. fi
  3829. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3830. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3831. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3832. if
  3833. test "x$enable_dependency_tracking" != xno \
  3834. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3835. am__fastdepCC_TRUE=
  3836. am__fastdepCC_FALSE='#'
  3837. else
  3838. am__fastdepCC_TRUE='#'
  3839. am__fastdepCC_FALSE=
  3840. fi
  3841. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3842. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3843. if test "${ac_cv_path_SED+set}" = set; then
  3844. $as_echo_n "(cached) " >&6
  3845. else
  3846. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3847. for ac_i in 1 2 3 4 5 6 7; do
  3848. ac_script="$ac_script$as_nl$ac_script"
  3849. done
  3850. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3851. $as_unset ac_script || ac_script=
  3852. if test -z "$SED"; then
  3853. ac_path_SED_found=false
  3854. # Loop through the user's path and test for each of PROGNAME-LIST
  3855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3856. for as_dir in $PATH
  3857. do
  3858. IFS=$as_save_IFS
  3859. test -z "$as_dir" && as_dir=.
  3860. for ac_prog in sed gsed; do
  3861. for ac_exec_ext in '' $ac_executable_extensions; do
  3862. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3863. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3864. # Check for GNU ac_path_SED and select it if it is found.
  3865. # Check for GNU $ac_path_SED
  3866. case `"$ac_path_SED" --version 2>&1` in
  3867. *GNU*)
  3868. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3869. *)
  3870. ac_count=0
  3871. $as_echo_n 0123456789 >"conftest.in"
  3872. while :
  3873. do
  3874. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3875. mv "conftest.tmp" "conftest.in"
  3876. cp "conftest.in" "conftest.nl"
  3877. $as_echo '' >> "conftest.nl"
  3878. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3879. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3880. ac_count=`expr $ac_count + 1`
  3881. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3882. # Best one so far, save it but keep looking for a better one
  3883. ac_cv_path_SED="$ac_path_SED"
  3884. ac_path_SED_max=$ac_count
  3885. fi
  3886. # 10*(2^10) chars as input seems more than enough
  3887. test $ac_count -gt 10 && break
  3888. done
  3889. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3890. esac
  3891. $ac_path_SED_found && break 3
  3892. done
  3893. done
  3894. done
  3895. IFS=$as_save_IFS
  3896. if test -z "$ac_cv_path_SED"; then
  3897. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  3898. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  3899. { (exit 1); exit 1; }; }
  3900. fi
  3901. else
  3902. ac_cv_path_SED=$SED
  3903. fi
  3904. fi
  3905. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  3906. $as_echo "$ac_cv_path_SED" >&6; }
  3907. SED="$ac_cv_path_SED"
  3908. rm -f conftest.sed
  3909. test -z "$SED" && SED=sed
  3910. Xsed="$SED -e 1s/^X//"
  3911. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3912. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3913. if test "${ac_cv_path_GREP+set}" = set; then
  3914. $as_echo_n "(cached) " >&6
  3915. else
  3916. if test -z "$GREP"; then
  3917. ac_path_GREP_found=false
  3918. # Loop through the user's path and test for each of PROGNAME-LIST
  3919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3920. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3921. do
  3922. IFS=$as_save_IFS
  3923. test -z "$as_dir" && as_dir=.
  3924. for ac_prog in grep ggrep; do
  3925. for ac_exec_ext in '' $ac_executable_extensions; do
  3926. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3927. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3928. # Check for GNU ac_path_GREP and select it if it is found.
  3929. # Check for GNU $ac_path_GREP
  3930. case `"$ac_path_GREP" --version 2>&1` in
  3931. *GNU*)
  3932. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3933. *)
  3934. ac_count=0
  3935. $as_echo_n 0123456789 >"conftest.in"
  3936. while :
  3937. do
  3938. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3939. mv "conftest.tmp" "conftest.in"
  3940. cp "conftest.in" "conftest.nl"
  3941. $as_echo 'GREP' >> "conftest.nl"
  3942. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3943. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3944. ac_count=`expr $ac_count + 1`
  3945. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3946. # Best one so far, save it but keep looking for a better one
  3947. ac_cv_path_GREP="$ac_path_GREP"
  3948. ac_path_GREP_max=$ac_count
  3949. fi
  3950. # 10*(2^10) chars as input seems more than enough
  3951. test $ac_count -gt 10 && break
  3952. done
  3953. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3954. esac
  3955. $ac_path_GREP_found && break 3
  3956. done
  3957. done
  3958. done
  3959. IFS=$as_save_IFS
  3960. if test -z "$ac_cv_path_GREP"; then
  3961. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3962. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3963. { (exit 1); exit 1; }; }
  3964. fi
  3965. else
  3966. ac_cv_path_GREP=$GREP
  3967. fi
  3968. fi
  3969. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3970. $as_echo "$ac_cv_path_GREP" >&6; }
  3971. GREP="$ac_cv_path_GREP"
  3972. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3973. $as_echo_n "checking for egrep... " >&6; }
  3974. if test "${ac_cv_path_EGREP+set}" = set; then
  3975. $as_echo_n "(cached) " >&6
  3976. else
  3977. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3978. then ac_cv_path_EGREP="$GREP -E"
  3979. else
  3980. if test -z "$EGREP"; then
  3981. ac_path_EGREP_found=false
  3982. # Loop through the user's path and test for each of PROGNAME-LIST
  3983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3984. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3985. do
  3986. IFS=$as_save_IFS
  3987. test -z "$as_dir" && as_dir=.
  3988. for ac_prog in egrep; do
  3989. for ac_exec_ext in '' $ac_executable_extensions; do
  3990. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3991. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3992. # Check for GNU ac_path_EGREP and select it if it is found.
  3993. # Check for GNU $ac_path_EGREP
  3994. case `"$ac_path_EGREP" --version 2>&1` in
  3995. *GNU*)
  3996. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3997. *)
  3998. ac_count=0
  3999. $as_echo_n 0123456789 >"conftest.in"
  4000. while :
  4001. do
  4002. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4003. mv "conftest.tmp" "conftest.in"
  4004. cp "conftest.in" "conftest.nl"
  4005. $as_echo 'EGREP' >> "conftest.nl"
  4006. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4007. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4008. ac_count=`expr $ac_count + 1`
  4009. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4010. # Best one so far, save it but keep looking for a better one
  4011. ac_cv_path_EGREP="$ac_path_EGREP"
  4012. ac_path_EGREP_max=$ac_count
  4013. fi
  4014. # 10*(2^10) chars as input seems more than enough
  4015. test $ac_count -gt 10 && break
  4016. done
  4017. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4018. esac
  4019. $ac_path_EGREP_found && break 3
  4020. done
  4021. done
  4022. done
  4023. IFS=$as_save_IFS
  4024. if test -z "$ac_cv_path_EGREP"; then
  4025. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4026. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4027. { (exit 1); exit 1; }; }
  4028. fi
  4029. else
  4030. ac_cv_path_EGREP=$EGREP
  4031. fi
  4032. fi
  4033. fi
  4034. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4035. $as_echo "$ac_cv_path_EGREP" >&6; }
  4036. EGREP="$ac_cv_path_EGREP"
  4037. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4038. $as_echo_n "checking for fgrep... " >&6; }
  4039. if test "${ac_cv_path_FGREP+set}" = set; then
  4040. $as_echo_n "(cached) " >&6
  4041. else
  4042. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4043. then ac_cv_path_FGREP="$GREP -F"
  4044. else
  4045. if test -z "$FGREP"; then
  4046. ac_path_FGREP_found=false
  4047. # Loop through the user's path and test for each of PROGNAME-LIST
  4048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4049. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4050. do
  4051. IFS=$as_save_IFS
  4052. test -z "$as_dir" && as_dir=.
  4053. for ac_prog in fgrep; do
  4054. for ac_exec_ext in '' $ac_executable_extensions; do
  4055. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4056. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4057. # Check for GNU ac_path_FGREP and select it if it is found.
  4058. # Check for GNU $ac_path_FGREP
  4059. case `"$ac_path_FGREP" --version 2>&1` in
  4060. *GNU*)
  4061. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4062. *)
  4063. ac_count=0
  4064. $as_echo_n 0123456789 >"conftest.in"
  4065. while :
  4066. do
  4067. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4068. mv "conftest.tmp" "conftest.in"
  4069. cp "conftest.in" "conftest.nl"
  4070. $as_echo 'FGREP' >> "conftest.nl"
  4071. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4072. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4073. ac_count=`expr $ac_count + 1`
  4074. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4075. # Best one so far, save it but keep looking for a better one
  4076. ac_cv_path_FGREP="$ac_path_FGREP"
  4077. ac_path_FGREP_max=$ac_count
  4078. fi
  4079. # 10*(2^10) chars as input seems more than enough
  4080. test $ac_count -gt 10 && break
  4081. done
  4082. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4083. esac
  4084. $ac_path_FGREP_found && break 3
  4085. done
  4086. done
  4087. done
  4088. IFS=$as_save_IFS
  4089. if test -z "$ac_cv_path_FGREP"; then
  4090. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4091. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4092. { (exit 1); exit 1; }; }
  4093. fi
  4094. else
  4095. ac_cv_path_FGREP=$FGREP
  4096. fi
  4097. fi
  4098. fi
  4099. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4100. $as_echo "$ac_cv_path_FGREP" >&6; }
  4101. FGREP="$ac_cv_path_FGREP"
  4102. test -z "$GREP" && GREP=grep
  4103. # Check whether --with-gnu-ld was given.
  4104. if test "${with_gnu_ld+set}" = set; then
  4105. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4106. else
  4107. with_gnu_ld=no
  4108. fi
  4109. ac_prog=ld
  4110. if test "$GCC" = yes; then
  4111. # Check if gcc -print-prog-name=ld gives a path.
  4112. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4113. $as_echo_n "checking for ld used by $CC... " >&6; }
  4114. case $host in
  4115. *-*-mingw*)
  4116. # gcc leaves a trailing carriage return which upsets mingw
  4117. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4118. *)
  4119. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4120. esac
  4121. case $ac_prog in
  4122. # Accept absolute paths.
  4123. [\\/]* | ?:[\\/]*)
  4124. re_direlt='/[^/][^/]*/\.\./'
  4125. # Canonicalize the pathname of ld
  4126. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4127. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4128. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4129. done
  4130. test -z "$LD" && LD="$ac_prog"
  4131. ;;
  4132. "")
  4133. # If it fails, then pretend we aren't using GCC.
  4134. ac_prog=ld
  4135. ;;
  4136. *)
  4137. # If it is relative, then search for the first ld in PATH.
  4138. with_gnu_ld=unknown
  4139. ;;
  4140. esac
  4141. elif test "$with_gnu_ld" = yes; then
  4142. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4143. $as_echo_n "checking for GNU ld... " >&6; }
  4144. else
  4145. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4146. $as_echo_n "checking for non-GNU ld... " >&6; }
  4147. fi
  4148. if test "${lt_cv_path_LD+set}" = set; then
  4149. $as_echo_n "(cached) " >&6
  4150. else
  4151. if test -z "$LD"; then
  4152. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4153. for ac_dir in $PATH; do
  4154. IFS="$lt_save_ifs"
  4155. test -z "$ac_dir" && ac_dir=.
  4156. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4157. lt_cv_path_LD="$ac_dir/$ac_prog"
  4158. # Check to see if the program is GNU ld. I'd rather use --version,
  4159. # but apparently some variants of GNU ld only accept -v.
  4160. # Break only if it was the GNU/non-GNU ld that we prefer.
  4161. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4162. *GNU* | *'with BFD'*)
  4163. test "$with_gnu_ld" != no && break
  4164. ;;
  4165. *)
  4166. test "$with_gnu_ld" != yes && break
  4167. ;;
  4168. esac
  4169. fi
  4170. done
  4171. IFS="$lt_save_ifs"
  4172. else
  4173. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4174. fi
  4175. fi
  4176. LD="$lt_cv_path_LD"
  4177. if test -n "$LD"; then
  4178. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4179. $as_echo "$LD" >&6; }
  4180. else
  4181. { $as_echo "$as_me:$LINENO: result: no" >&5
  4182. $as_echo "no" >&6; }
  4183. fi
  4184. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4185. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4186. { (exit 1); exit 1; }; }
  4187. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4188. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4189. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4190. $as_echo_n "(cached) " >&6
  4191. else
  4192. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4193. case `$LD -v 2>&1 </dev/null` in
  4194. *GNU* | *'with BFD'*)
  4195. lt_cv_prog_gnu_ld=yes
  4196. ;;
  4197. *)
  4198. lt_cv_prog_gnu_ld=no
  4199. ;;
  4200. esac
  4201. fi
  4202. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4203. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4204. with_gnu_ld=$lt_cv_prog_gnu_ld
  4205. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4206. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4207. if test "${lt_cv_path_NM+set}" = set; then
  4208. $as_echo_n "(cached) " >&6
  4209. else
  4210. if test -n "$NM"; then
  4211. # Let the user override the test.
  4212. lt_cv_path_NM="$NM"
  4213. else
  4214. lt_nm_to_check="${ac_tool_prefix}nm"
  4215. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4216. lt_nm_to_check="$lt_nm_to_check nm"
  4217. fi
  4218. for lt_tmp_nm in $lt_nm_to_check; do
  4219. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4220. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4221. IFS="$lt_save_ifs"
  4222. test -z "$ac_dir" && ac_dir=.
  4223. tmp_nm="$ac_dir/$lt_tmp_nm"
  4224. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4225. # Check to see if the nm accepts a BSD-compat flag.
  4226. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4227. # nm: unknown option "B" ignored
  4228. # Tru64's nm complains that /dev/null is an invalid object file
  4229. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4230. */dev/null* | *'Invalid file or object type'*)
  4231. lt_cv_path_NM="$tmp_nm -B"
  4232. break
  4233. ;;
  4234. *)
  4235. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4236. */dev/null*)
  4237. lt_cv_path_NM="$tmp_nm -p"
  4238. break
  4239. ;;
  4240. *)
  4241. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4242. continue # so that we can try to find one that supports BSD flags
  4243. ;;
  4244. esac
  4245. ;;
  4246. esac
  4247. fi
  4248. done
  4249. IFS="$lt_save_ifs"
  4250. done
  4251. : ${lt_cv_path_NM=no}
  4252. fi
  4253. fi
  4254. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4255. $as_echo "$lt_cv_path_NM" >&6; }
  4256. if test "$lt_cv_path_NM" != "no"; then
  4257. NM="$lt_cv_path_NM"
  4258. else
  4259. # Didn't find any BSD compatible name lister, look for dumpbin.
  4260. if test -n "$ac_tool_prefix"; then
  4261. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4262. do
  4263. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4264. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4265. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4266. $as_echo_n "checking for $ac_word... " >&6; }
  4267. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4268. $as_echo_n "(cached) " >&6
  4269. else
  4270. if test -n "$DUMPBIN"; then
  4271. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4272. else
  4273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4274. for as_dir in $PATH
  4275. do
  4276. IFS=$as_save_IFS
  4277. test -z "$as_dir" && as_dir=.
  4278. for ac_exec_ext in '' $ac_executable_extensions; do
  4279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4280. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4281. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4282. break 2
  4283. fi
  4284. done
  4285. done
  4286. IFS=$as_save_IFS
  4287. fi
  4288. fi
  4289. DUMPBIN=$ac_cv_prog_DUMPBIN
  4290. if test -n "$DUMPBIN"; then
  4291. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4292. $as_echo "$DUMPBIN" >&6; }
  4293. else
  4294. { $as_echo "$as_me:$LINENO: result: no" >&5
  4295. $as_echo "no" >&6; }
  4296. fi
  4297. test -n "$DUMPBIN" && break
  4298. done
  4299. fi
  4300. if test -z "$DUMPBIN"; then
  4301. ac_ct_DUMPBIN=$DUMPBIN
  4302. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4303. do
  4304. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4305. set dummy $ac_prog; ac_word=$2
  4306. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4307. $as_echo_n "checking for $ac_word... " >&6; }
  4308. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4309. $as_echo_n "(cached) " >&6
  4310. else
  4311. if test -n "$ac_ct_DUMPBIN"; then
  4312. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4313. else
  4314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4315. for as_dir in $PATH
  4316. do
  4317. IFS=$as_save_IFS
  4318. test -z "$as_dir" && as_dir=.
  4319. for ac_exec_ext in '' $ac_executable_extensions; do
  4320. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4321. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4322. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4323. break 2
  4324. fi
  4325. done
  4326. done
  4327. IFS=$as_save_IFS
  4328. fi
  4329. fi
  4330. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4331. if test -n "$ac_ct_DUMPBIN"; then
  4332. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4333. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4334. else
  4335. { $as_echo "$as_me:$LINENO: result: no" >&5
  4336. $as_echo "no" >&6; }
  4337. fi
  4338. test -n "$ac_ct_DUMPBIN" && break
  4339. done
  4340. if test "x$ac_ct_DUMPBIN" = x; then
  4341. DUMPBIN=":"
  4342. else
  4343. case $cross_compiling:$ac_tool_warned in
  4344. yes:)
  4345. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4347. ac_tool_warned=yes ;;
  4348. esac
  4349. DUMPBIN=$ac_ct_DUMPBIN
  4350. fi
  4351. fi
  4352. if test "$DUMPBIN" != ":"; then
  4353. NM="$DUMPBIN"
  4354. fi
  4355. fi
  4356. test -z "$NM" && NM=nm
  4357. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4358. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4359. if test "${lt_cv_nm_interface+set}" = set; then
  4360. $as_echo_n "(cached) " >&6
  4361. else
  4362. lt_cv_nm_interface="BSD nm"
  4363. echo "int some_variable = 0;" > conftest.$ac_ext
  4364. (eval echo "\"\$as_me:4916: $ac_compile\"" >&5)
  4365. (eval "$ac_compile" 2>conftest.err)
  4366. cat conftest.err >&5
  4367. (eval echo "\"\$as_me:4919: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4368. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4369. cat conftest.err >&5
  4370. (eval echo "\"\$as_me:4922: output\"" >&5)
  4371. cat conftest.out >&5
  4372. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4373. lt_cv_nm_interface="MS dumpbin"
  4374. fi
  4375. rm -f conftest*
  4376. fi
  4377. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4378. $as_echo "$lt_cv_nm_interface" >&6; }
  4379. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4380. $as_echo_n "checking whether ln -s works... " >&6; }
  4381. LN_S=$as_ln_s
  4382. if test "$LN_S" = "ln -s"; then
  4383. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4384. $as_echo "yes" >&6; }
  4385. else
  4386. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4387. $as_echo "no, using $LN_S" >&6; }
  4388. fi
  4389. # find the maximum length of command line arguments
  4390. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4391. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4392. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4393. $as_echo_n "(cached) " >&6
  4394. else
  4395. i=0
  4396. teststring="ABCD"
  4397. case $build_os in
  4398. msdosdjgpp*)
  4399. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4400. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4401. # during glob expansion). Even if it were fixed, the result of this
  4402. # check would be larger than it should be.
  4403. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4404. ;;
  4405. gnu*)
  4406. # Under GNU Hurd, this test is not required because there is
  4407. # no limit to the length of command line arguments.
  4408. # Libtool will interpret -1 as no limit whatsoever
  4409. lt_cv_sys_max_cmd_len=-1;
  4410. ;;
  4411. cygwin* | mingw* | cegcc*)
  4412. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4413. # about 5 minutes as the teststring grows exponentially.
  4414. # Worse, since 9x/ME are not pre-emptively multitasking,
  4415. # you end up with a "frozen" computer, even though with patience
  4416. # the test eventually succeeds (with a max line length of 256k).
  4417. # Instead, let's just punt: use the minimum linelength reported by
  4418. # all of the supported platforms: 8192 (on NT/2K/XP).
  4419. lt_cv_sys_max_cmd_len=8192;
  4420. ;;
  4421. amigaos*)
  4422. # On AmigaOS with pdksh, this test takes hours, literally.
  4423. # So we just punt and use a minimum line length of 8192.
  4424. lt_cv_sys_max_cmd_len=8192;
  4425. ;;
  4426. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4427. # This has been around since 386BSD, at least. Likely further.
  4428. if test -x /sbin/sysctl; then
  4429. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4430. elif test -x /usr/sbin/sysctl; then
  4431. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4432. else
  4433. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4434. fi
  4435. # And add a safety zone
  4436. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4437. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4438. ;;
  4439. interix*)
  4440. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4441. lt_cv_sys_max_cmd_len=196608
  4442. ;;
  4443. osf*)
  4444. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4445. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4446. # nice to cause kernel panics so lets avoid the loop below.
  4447. # First set a reasonable default.
  4448. lt_cv_sys_max_cmd_len=16384
  4449. #
  4450. if test -x /sbin/sysconfig; then
  4451. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4452. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4453. esac
  4454. fi
  4455. ;;
  4456. sco3.2v5*)
  4457. lt_cv_sys_max_cmd_len=102400
  4458. ;;
  4459. sysv5* | sco5v6* | sysv4.2uw2*)
  4460. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4461. if test -n "$kargmax"; then
  4462. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4463. else
  4464. lt_cv_sys_max_cmd_len=32768
  4465. fi
  4466. ;;
  4467. *)
  4468. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4469. if test -n "$lt_cv_sys_max_cmd_len"; then
  4470. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4471. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4472. else
  4473. # Make teststring a little bigger before we do anything with it.
  4474. # a 1K string should be a reasonable start.
  4475. for i in 1 2 3 4 5 6 7 8 ; do
  4476. teststring=$teststring$teststring
  4477. done
  4478. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4479. # If test is not a shell built-in, we'll probably end up computing a
  4480. # maximum length that is only half of the actual maximum length, but
  4481. # we can't tell.
  4482. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4483. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4484. test $i != 17 # 1/2 MB should be enough
  4485. do
  4486. i=`expr $i + 1`
  4487. teststring=$teststring$teststring
  4488. done
  4489. # Only check the string length outside the loop.
  4490. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4491. teststring=
  4492. # Add a significant safety factor because C++ compilers can tack on
  4493. # massive amounts of additional arguments before passing them to the
  4494. # linker. It appears as though 1/2 is a usable value.
  4495. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4496. fi
  4497. ;;
  4498. esac
  4499. fi
  4500. if test -n $lt_cv_sys_max_cmd_len ; then
  4501. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4502. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4503. else
  4504. { $as_echo "$as_me:$LINENO: result: none" >&5
  4505. $as_echo "none" >&6; }
  4506. fi
  4507. max_cmd_len=$lt_cv_sys_max_cmd_len
  4508. : ${CP="cp -f"}
  4509. : ${MV="mv -f"}
  4510. : ${RM="rm -f"}
  4511. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4512. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4513. # Try some XSI features
  4514. xsi_shell=no
  4515. ( _lt_dummy="a/b/c"
  4516. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4517. = c,a/b,, \
  4518. && eval 'test $(( 1 + 1 )) -eq 2 \
  4519. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4520. && xsi_shell=yes
  4521. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4522. $as_echo "$xsi_shell" >&6; }
  4523. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4524. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4525. lt_shell_append=no
  4526. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4527. >/dev/null 2>&1 \
  4528. && lt_shell_append=yes
  4529. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4530. $as_echo "$lt_shell_append" >&6; }
  4531. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4532. lt_unset=unset
  4533. else
  4534. lt_unset=false
  4535. fi
  4536. # test EBCDIC or ASCII
  4537. case `echo X|tr X '\101'` in
  4538. A) # ASCII based system
  4539. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4540. lt_SP2NL='tr \040 \012'
  4541. lt_NL2SP='tr \015\012 \040\040'
  4542. ;;
  4543. *) # EBCDIC based system
  4544. lt_SP2NL='tr \100 \n'
  4545. lt_NL2SP='tr \r\n \100\100'
  4546. ;;
  4547. esac
  4548. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4549. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4550. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4551. $as_echo_n "(cached) " >&6
  4552. else
  4553. lt_cv_ld_reload_flag='-r'
  4554. fi
  4555. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4556. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4557. reload_flag=$lt_cv_ld_reload_flag
  4558. case $reload_flag in
  4559. "" | " "*) ;;
  4560. *) reload_flag=" $reload_flag" ;;
  4561. esac
  4562. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4563. case $host_os in
  4564. darwin*)
  4565. if test "$GCC" = yes; then
  4566. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4567. else
  4568. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4569. fi
  4570. ;;
  4571. esac
  4572. if test -n "$ac_tool_prefix"; then
  4573. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4574. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4575. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4576. $as_echo_n "checking for $ac_word... " >&6; }
  4577. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4578. $as_echo_n "(cached) " >&6
  4579. else
  4580. if test -n "$OBJDUMP"; then
  4581. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4582. else
  4583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4584. for as_dir in $PATH
  4585. do
  4586. IFS=$as_save_IFS
  4587. test -z "$as_dir" && as_dir=.
  4588. for ac_exec_ext in '' $ac_executable_extensions; do
  4589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4590. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4591. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4592. break 2
  4593. fi
  4594. done
  4595. done
  4596. IFS=$as_save_IFS
  4597. fi
  4598. fi
  4599. OBJDUMP=$ac_cv_prog_OBJDUMP
  4600. if test -n "$OBJDUMP"; then
  4601. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4602. $as_echo "$OBJDUMP" >&6; }
  4603. else
  4604. { $as_echo "$as_me:$LINENO: result: no" >&5
  4605. $as_echo "no" >&6; }
  4606. fi
  4607. fi
  4608. if test -z "$ac_cv_prog_OBJDUMP"; then
  4609. ac_ct_OBJDUMP=$OBJDUMP
  4610. # Extract the first word of "objdump", so it can be a program name with args.
  4611. set dummy objdump; ac_word=$2
  4612. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4613. $as_echo_n "checking for $ac_word... " >&6; }
  4614. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4615. $as_echo_n "(cached) " >&6
  4616. else
  4617. if test -n "$ac_ct_OBJDUMP"; then
  4618. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4619. else
  4620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4621. for as_dir in $PATH
  4622. do
  4623. IFS=$as_save_IFS
  4624. test -z "$as_dir" && as_dir=.
  4625. for ac_exec_ext in '' $ac_executable_extensions; do
  4626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4627. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4628. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4629. break 2
  4630. fi
  4631. done
  4632. done
  4633. IFS=$as_save_IFS
  4634. fi
  4635. fi
  4636. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4637. if test -n "$ac_ct_OBJDUMP"; then
  4638. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4639. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4640. else
  4641. { $as_echo "$as_me:$LINENO: result: no" >&5
  4642. $as_echo "no" >&6; }
  4643. fi
  4644. if test "x$ac_ct_OBJDUMP" = x; then
  4645. OBJDUMP="false"
  4646. else
  4647. case $cross_compiling:$ac_tool_warned in
  4648. yes:)
  4649. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4650. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4651. ac_tool_warned=yes ;;
  4652. esac
  4653. OBJDUMP=$ac_ct_OBJDUMP
  4654. fi
  4655. else
  4656. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4657. fi
  4658. test -z "$OBJDUMP" && OBJDUMP=objdump
  4659. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4660. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4661. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4662. $as_echo_n "(cached) " >&6
  4663. else
  4664. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4665. lt_cv_file_magic_test_file=
  4666. lt_cv_deplibs_check_method='unknown'
  4667. # Need to set the preceding variable on all platforms that support
  4668. # interlibrary dependencies.
  4669. # 'none' -- dependencies not supported.
  4670. # `unknown' -- same as none, but documents that we really don't know.
  4671. # 'pass_all' -- all dependencies passed with no checks.
  4672. # 'test_compile' -- check by making test program.
  4673. # 'file_magic [[regex]]' -- check by looking for files in library path
  4674. # which responds to the $file_magic_cmd with a given extended regex.
  4675. # If you have `file' or equivalent on your system and you're not sure
  4676. # whether `pass_all' will *always* work, you probably want this one.
  4677. case $host_os in
  4678. aix[4-9]*)
  4679. lt_cv_deplibs_check_method=pass_all
  4680. ;;
  4681. beos*)
  4682. lt_cv_deplibs_check_method=pass_all
  4683. ;;
  4684. bsdi[45]*)
  4685. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4686. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4687. lt_cv_file_magic_test_file=/shlib/libc.so
  4688. ;;
  4689. cygwin*)
  4690. # func_win32_libid is a shell function defined in ltmain.sh
  4691. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4692. lt_cv_file_magic_cmd='func_win32_libid'
  4693. ;;
  4694. mingw* | pw32*)
  4695. # Base MSYS/MinGW do not provide the 'file' command needed by
  4696. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4697. # unless we find 'file', for example because we are cross-compiling.
  4698. if ( file / ) >/dev/null 2>&1; then
  4699. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4700. lt_cv_file_magic_cmd='func_win32_libid'
  4701. else
  4702. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4703. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4704. fi
  4705. ;;
  4706. cegcc)
  4707. # use the weaker test based on 'objdump'. See mingw*.
  4708. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4709. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4710. ;;
  4711. darwin* | rhapsody*)
  4712. lt_cv_deplibs_check_method=pass_all
  4713. ;;
  4714. freebsd* | dragonfly*)
  4715. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4716. case $host_cpu in
  4717. i*86 )
  4718. # Not sure whether the presence of OpenBSD here was a mistake.
  4719. # Let's accept both of them until this is cleared up.
  4720. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4721. lt_cv_file_magic_cmd=/usr/bin/file
  4722. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4723. ;;
  4724. esac
  4725. else
  4726. lt_cv_deplibs_check_method=pass_all
  4727. fi
  4728. ;;
  4729. gnu*)
  4730. lt_cv_deplibs_check_method=pass_all
  4731. ;;
  4732. hpux10.20* | hpux11*)
  4733. lt_cv_file_magic_cmd=/usr/bin/file
  4734. case $host_cpu in
  4735. ia64*)
  4736. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4737. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4738. ;;
  4739. hppa*64*)
  4740. 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]'
  4741. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4742. ;;
  4743. *)
  4744. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4745. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4746. ;;
  4747. esac
  4748. ;;
  4749. interix[3-9]*)
  4750. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4751. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4752. ;;
  4753. irix5* | irix6* | nonstopux*)
  4754. case $LD in
  4755. *-32|*"-32 ") libmagic=32-bit;;
  4756. *-n32|*"-n32 ") libmagic=N32;;
  4757. *-64|*"-64 ") libmagic=64-bit;;
  4758. *) libmagic=never-match;;
  4759. esac
  4760. lt_cv_deplibs_check_method=pass_all
  4761. ;;
  4762. # This must be Linux ELF.
  4763. linux* | k*bsd*-gnu)
  4764. lt_cv_deplibs_check_method=pass_all
  4765. ;;
  4766. netbsd* | netbsdelf*-gnu)
  4767. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4768. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4769. else
  4770. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4771. fi
  4772. ;;
  4773. newos6*)
  4774. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4775. lt_cv_file_magic_cmd=/usr/bin/file
  4776. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4777. ;;
  4778. *nto* | *qnx*)
  4779. lt_cv_deplibs_check_method=pass_all
  4780. ;;
  4781. openbsd*)
  4782. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4783. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4784. else
  4785. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4786. fi
  4787. ;;
  4788. osf3* | osf4* | osf5*)
  4789. lt_cv_deplibs_check_method=pass_all
  4790. ;;
  4791. rdos*)
  4792. lt_cv_deplibs_check_method=pass_all
  4793. ;;
  4794. solaris*)
  4795. lt_cv_deplibs_check_method=pass_all
  4796. ;;
  4797. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4798. lt_cv_deplibs_check_method=pass_all
  4799. ;;
  4800. sysv4 | sysv4.3*)
  4801. case $host_vendor in
  4802. motorola)
  4803. 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]'
  4804. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4805. ;;
  4806. ncr)
  4807. lt_cv_deplibs_check_method=pass_all
  4808. ;;
  4809. sequent)
  4810. lt_cv_file_magic_cmd='/bin/file'
  4811. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4812. ;;
  4813. sni)
  4814. lt_cv_file_magic_cmd='/bin/file'
  4815. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4816. lt_cv_file_magic_test_file=/lib/libc.so
  4817. ;;
  4818. siemens)
  4819. lt_cv_deplibs_check_method=pass_all
  4820. ;;
  4821. pc)
  4822. lt_cv_deplibs_check_method=pass_all
  4823. ;;
  4824. esac
  4825. ;;
  4826. tpf*)
  4827. lt_cv_deplibs_check_method=pass_all
  4828. ;;
  4829. esac
  4830. fi
  4831. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4832. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4833. file_magic_cmd=$lt_cv_file_magic_cmd
  4834. deplibs_check_method=$lt_cv_deplibs_check_method
  4835. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4836. if test -n "$ac_tool_prefix"; then
  4837. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4838. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4839. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4840. $as_echo_n "checking for $ac_word... " >&6; }
  4841. if test "${ac_cv_prog_AR+set}" = set; then
  4842. $as_echo_n "(cached) " >&6
  4843. else
  4844. if test -n "$AR"; then
  4845. ac_cv_prog_AR="$AR" # Let the user override the test.
  4846. else
  4847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4848. for as_dir in $PATH
  4849. do
  4850. IFS=$as_save_IFS
  4851. test -z "$as_dir" && as_dir=.
  4852. for ac_exec_ext in '' $ac_executable_extensions; do
  4853. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4854. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4855. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4856. break 2
  4857. fi
  4858. done
  4859. done
  4860. IFS=$as_save_IFS
  4861. fi
  4862. fi
  4863. AR=$ac_cv_prog_AR
  4864. if test -n "$AR"; then
  4865. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4866. $as_echo "$AR" >&6; }
  4867. else
  4868. { $as_echo "$as_me:$LINENO: result: no" >&5
  4869. $as_echo "no" >&6; }
  4870. fi
  4871. fi
  4872. if test -z "$ac_cv_prog_AR"; then
  4873. ac_ct_AR=$AR
  4874. # Extract the first word of "ar", so it can be a program name with args.
  4875. set dummy ar; ac_word=$2
  4876. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4877. $as_echo_n "checking for $ac_word... " >&6; }
  4878. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4879. $as_echo_n "(cached) " >&6
  4880. else
  4881. if test -n "$ac_ct_AR"; then
  4882. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4883. else
  4884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4885. for as_dir in $PATH
  4886. do
  4887. IFS=$as_save_IFS
  4888. test -z "$as_dir" && as_dir=.
  4889. for ac_exec_ext in '' $ac_executable_extensions; do
  4890. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4891. ac_cv_prog_ac_ct_AR="ar"
  4892. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4893. break 2
  4894. fi
  4895. done
  4896. done
  4897. IFS=$as_save_IFS
  4898. fi
  4899. fi
  4900. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4901. if test -n "$ac_ct_AR"; then
  4902. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4903. $as_echo "$ac_ct_AR" >&6; }
  4904. else
  4905. { $as_echo "$as_me:$LINENO: result: no" >&5
  4906. $as_echo "no" >&6; }
  4907. fi
  4908. if test "x$ac_ct_AR" = x; then
  4909. AR="false"
  4910. else
  4911. case $cross_compiling:$ac_tool_warned in
  4912. yes:)
  4913. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4914. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4915. ac_tool_warned=yes ;;
  4916. esac
  4917. AR=$ac_ct_AR
  4918. fi
  4919. else
  4920. AR="$ac_cv_prog_AR"
  4921. fi
  4922. test -z "$AR" && AR=ar
  4923. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4924. if test -n "$ac_tool_prefix"; then
  4925. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4926. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4927. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4928. $as_echo_n "checking for $ac_word... " >&6; }
  4929. if test "${ac_cv_prog_STRIP+set}" = set; then
  4930. $as_echo_n "(cached) " >&6
  4931. else
  4932. if test -n "$STRIP"; then
  4933. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4934. else
  4935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4936. for as_dir in $PATH
  4937. do
  4938. IFS=$as_save_IFS
  4939. test -z "$as_dir" && as_dir=.
  4940. for ac_exec_ext in '' $ac_executable_extensions; do
  4941. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4942. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4943. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4944. break 2
  4945. fi
  4946. done
  4947. done
  4948. IFS=$as_save_IFS
  4949. fi
  4950. fi
  4951. STRIP=$ac_cv_prog_STRIP
  4952. if test -n "$STRIP"; then
  4953. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4954. $as_echo "$STRIP" >&6; }
  4955. else
  4956. { $as_echo "$as_me:$LINENO: result: no" >&5
  4957. $as_echo "no" >&6; }
  4958. fi
  4959. fi
  4960. if test -z "$ac_cv_prog_STRIP"; then
  4961. ac_ct_STRIP=$STRIP
  4962. # Extract the first word of "strip", so it can be a program name with args.
  4963. set dummy strip; ac_word=$2
  4964. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4965. $as_echo_n "checking for $ac_word... " >&6; }
  4966. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4967. $as_echo_n "(cached) " >&6
  4968. else
  4969. if test -n "$ac_ct_STRIP"; then
  4970. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4971. else
  4972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4973. for as_dir in $PATH
  4974. do
  4975. IFS=$as_save_IFS
  4976. test -z "$as_dir" && as_dir=.
  4977. for ac_exec_ext in '' $ac_executable_extensions; do
  4978. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4979. ac_cv_prog_ac_ct_STRIP="strip"
  4980. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4981. break 2
  4982. fi
  4983. done
  4984. done
  4985. IFS=$as_save_IFS
  4986. fi
  4987. fi
  4988. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4989. if test -n "$ac_ct_STRIP"; then
  4990. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4991. $as_echo "$ac_ct_STRIP" >&6; }
  4992. else
  4993. { $as_echo "$as_me:$LINENO: result: no" >&5
  4994. $as_echo "no" >&6; }
  4995. fi
  4996. if test "x$ac_ct_STRIP" = x; then
  4997. STRIP=":"
  4998. else
  4999. case $cross_compiling:$ac_tool_warned in
  5000. yes:)
  5001. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5002. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5003. ac_tool_warned=yes ;;
  5004. esac
  5005. STRIP=$ac_ct_STRIP
  5006. fi
  5007. else
  5008. STRIP="$ac_cv_prog_STRIP"
  5009. fi
  5010. test -z "$STRIP" && STRIP=:
  5011. if test -n "$ac_tool_prefix"; then
  5012. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5013. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5014. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5015. $as_echo_n "checking for $ac_word... " >&6; }
  5016. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5017. $as_echo_n "(cached) " >&6
  5018. else
  5019. if test -n "$RANLIB"; then
  5020. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5021. else
  5022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5023. for as_dir in $PATH
  5024. do
  5025. IFS=$as_save_IFS
  5026. test -z "$as_dir" && as_dir=.
  5027. for ac_exec_ext in '' $ac_executable_extensions; do
  5028. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5029. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5030. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5031. break 2
  5032. fi
  5033. done
  5034. done
  5035. IFS=$as_save_IFS
  5036. fi
  5037. fi
  5038. RANLIB=$ac_cv_prog_RANLIB
  5039. if test -n "$RANLIB"; then
  5040. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5041. $as_echo "$RANLIB" >&6; }
  5042. else
  5043. { $as_echo "$as_me:$LINENO: result: no" >&5
  5044. $as_echo "no" >&6; }
  5045. fi
  5046. fi
  5047. if test -z "$ac_cv_prog_RANLIB"; then
  5048. ac_ct_RANLIB=$RANLIB
  5049. # Extract the first word of "ranlib", so it can be a program name with args.
  5050. set dummy ranlib; ac_word=$2
  5051. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5052. $as_echo_n "checking for $ac_word... " >&6; }
  5053. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5054. $as_echo_n "(cached) " >&6
  5055. else
  5056. if test -n "$ac_ct_RANLIB"; then
  5057. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5058. else
  5059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5060. for as_dir in $PATH
  5061. do
  5062. IFS=$as_save_IFS
  5063. test -z "$as_dir" && as_dir=.
  5064. for ac_exec_ext in '' $ac_executable_extensions; do
  5065. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5066. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5067. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5068. break 2
  5069. fi
  5070. done
  5071. done
  5072. IFS=$as_save_IFS
  5073. fi
  5074. fi
  5075. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5076. if test -n "$ac_ct_RANLIB"; then
  5077. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5078. $as_echo "$ac_ct_RANLIB" >&6; }
  5079. else
  5080. { $as_echo "$as_me:$LINENO: result: no" >&5
  5081. $as_echo "no" >&6; }
  5082. fi
  5083. if test "x$ac_ct_RANLIB" = x; then
  5084. RANLIB=":"
  5085. else
  5086. case $cross_compiling:$ac_tool_warned in
  5087. yes:)
  5088. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5089. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5090. ac_tool_warned=yes ;;
  5091. esac
  5092. RANLIB=$ac_ct_RANLIB
  5093. fi
  5094. else
  5095. RANLIB="$ac_cv_prog_RANLIB"
  5096. fi
  5097. test -z "$RANLIB" && RANLIB=:
  5098. # Determine commands to create old-style static archives.
  5099. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5100. old_postinstall_cmds='chmod 644 $oldlib'
  5101. old_postuninstall_cmds=
  5102. if test -n "$RANLIB"; then
  5103. case $host_os in
  5104. openbsd*)
  5105. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5106. ;;
  5107. *)
  5108. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5109. ;;
  5110. esac
  5111. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5112. fi
  5113. # If no C compiler was specified, use CC.
  5114. LTCC=${LTCC-"$CC"}
  5115. # If no C compiler flags were specified, use CFLAGS.
  5116. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5117. # Allow CC to be a program name with arguments.
  5118. compiler=$CC
  5119. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5120. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5121. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5122. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5123. $as_echo_n "(cached) " >&6
  5124. else
  5125. # These are sane defaults that work on at least a few old systems.
  5126. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5127. # Character class describing NM global symbol codes.
  5128. symcode='[BCDEGRST]'
  5129. # Regexp to match symbols that can be accessed directly from C.
  5130. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5131. # Define system-specific variables.
  5132. case $host_os in
  5133. aix*)
  5134. symcode='[BCDT]'
  5135. ;;
  5136. cygwin* | mingw* | pw32* | cegcc*)
  5137. symcode='[ABCDGISTW]'
  5138. ;;
  5139. hpux*)
  5140. if test "$host_cpu" = ia64; then
  5141. symcode='[ABCDEGRST]'
  5142. fi
  5143. ;;
  5144. irix* | nonstopux*)
  5145. symcode='[BCDEGRST]'
  5146. ;;
  5147. osf*)
  5148. symcode='[BCDEGQRST]'
  5149. ;;
  5150. solaris*)
  5151. symcode='[BDRT]'
  5152. ;;
  5153. sco3.2v5*)
  5154. symcode='[DT]'
  5155. ;;
  5156. sysv4.2uw2*)
  5157. symcode='[DT]'
  5158. ;;
  5159. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5160. symcode='[ABDT]'
  5161. ;;
  5162. sysv4)
  5163. symcode='[DFNSTU]'
  5164. ;;
  5165. esac
  5166. # If we're using GNU nm, then use its standard symbol codes.
  5167. case `$NM -V 2>&1` in
  5168. *GNU* | *'with BFD'*)
  5169. symcode='[ABCDGIRSTW]' ;;
  5170. esac
  5171. # Transform an extracted symbol line into a proper C declaration.
  5172. # Some systems (esp. on ia64) link data and code symbols differently,
  5173. # so use this general approach.
  5174. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5175. # Transform an extracted symbol line into symbol name and symbol address
  5176. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5177. 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'"
  5178. # Handle CRLF in mingw tool chain
  5179. opt_cr=
  5180. case $build_os in
  5181. mingw*)
  5182. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5183. ;;
  5184. esac
  5185. # Try without a prefix underscore, then with it.
  5186. for ac_symprfx in "" "_"; do
  5187. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5188. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5189. # Write the raw and C identifiers.
  5190. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5191. # Fake it for dumpbin and say T for any non-static function
  5192. # and D for any global variable.
  5193. # Also find C++ and __fastcall symbols from MSVC++,
  5194. # which start with @ or ?.
  5195. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5196. " {last_section=section; section=\$ 3};"\
  5197. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5198. " \$ 0!~/External *\|/{next};"\
  5199. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5200. " {if(hide[section]) next};"\
  5201. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5202. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5203. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5204. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5205. " ' prfx=^$ac_symprfx"
  5206. else
  5207. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5208. fi
  5209. # Check to see that the pipe works correctly.
  5210. pipe_works=no
  5211. rm -f conftest*
  5212. cat > conftest.$ac_ext <<_LT_EOF
  5213. #ifdef __cplusplus
  5214. extern "C" {
  5215. #endif
  5216. char nm_test_var;
  5217. void nm_test_func(void);
  5218. void nm_test_func(void){}
  5219. #ifdef __cplusplus
  5220. }
  5221. #endif
  5222. int main(){nm_test_var='a';nm_test_func();return(0);}
  5223. _LT_EOF
  5224. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5225. (eval $ac_compile) 2>&5
  5226. ac_status=$?
  5227. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5228. (exit $ac_status); }; then
  5229. # Now try to grab the symbols.
  5230. nlist=conftest.nm
  5231. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5232. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5233. ac_status=$?
  5234. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5235. (exit $ac_status); } && test -s "$nlist"; then
  5236. # Try sorting and uniquifying the output.
  5237. if sort "$nlist" | uniq > "$nlist"T; then
  5238. mv -f "$nlist"T "$nlist"
  5239. else
  5240. rm -f "$nlist"T
  5241. fi
  5242. # Make sure that we snagged all the symbols we need.
  5243. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5244. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5245. cat <<_LT_EOF > conftest.$ac_ext
  5246. #ifdef __cplusplus
  5247. extern "C" {
  5248. #endif
  5249. _LT_EOF
  5250. # Now generate the symbol file.
  5251. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5252. cat <<_LT_EOF >> conftest.$ac_ext
  5253. /* The mapping between symbol names and symbols. */
  5254. const struct {
  5255. const char *name;
  5256. void *address;
  5257. }
  5258. lt__PROGRAM__LTX_preloaded_symbols[] =
  5259. {
  5260. { "@PROGRAM@", (void *) 0 },
  5261. _LT_EOF
  5262. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5263. cat <<\_LT_EOF >> conftest.$ac_ext
  5264. {0, (void *) 0}
  5265. };
  5266. /* This works around a problem in FreeBSD linker */
  5267. #ifdef FREEBSD_WORKAROUND
  5268. static const void *lt_preloaded_setup() {
  5269. return lt__PROGRAM__LTX_preloaded_symbols;
  5270. }
  5271. #endif
  5272. #ifdef __cplusplus
  5273. }
  5274. #endif
  5275. _LT_EOF
  5276. # Now try linking the two files.
  5277. mv conftest.$ac_objext conftstm.$ac_objext
  5278. lt_save_LIBS="$LIBS"
  5279. lt_save_CFLAGS="$CFLAGS"
  5280. LIBS="conftstm.$ac_objext"
  5281. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5282. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5283. (eval $ac_link) 2>&5
  5284. ac_status=$?
  5285. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5286. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5287. pipe_works=yes
  5288. fi
  5289. LIBS="$lt_save_LIBS"
  5290. CFLAGS="$lt_save_CFLAGS"
  5291. else
  5292. echo "cannot find nm_test_func in $nlist" >&5
  5293. fi
  5294. else
  5295. echo "cannot find nm_test_var in $nlist" >&5
  5296. fi
  5297. else
  5298. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5299. fi
  5300. else
  5301. echo "$progname: failed program was:" >&5
  5302. cat conftest.$ac_ext >&5
  5303. fi
  5304. rm -rf conftest* conftst*
  5305. # Do not use the global_symbol_pipe unless it works.
  5306. if test "$pipe_works" = yes; then
  5307. break
  5308. else
  5309. lt_cv_sys_global_symbol_pipe=
  5310. fi
  5311. done
  5312. fi
  5313. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5314. lt_cv_sys_global_symbol_to_cdecl=
  5315. fi
  5316. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5317. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5318. $as_echo "failed" >&6; }
  5319. else
  5320. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5321. $as_echo "ok" >&6; }
  5322. fi
  5323. # Check whether --enable-libtool-lock was given.
  5324. if test "${enable_libtool_lock+set}" = set; then
  5325. enableval=$enable_libtool_lock;
  5326. fi
  5327. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5328. # Some flags need to be propagated to the compiler or linker for good
  5329. # libtool support.
  5330. case $host in
  5331. ia64-*-hpux*)
  5332. # Find out which ABI we are using.
  5333. echo 'int i;' > conftest.$ac_ext
  5334. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5335. (eval $ac_compile) 2>&5
  5336. ac_status=$?
  5337. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5338. (exit $ac_status); }; then
  5339. case `/usr/bin/file conftest.$ac_objext` in
  5340. *ELF-32*)
  5341. HPUX_IA64_MODE="32"
  5342. ;;
  5343. *ELF-64*)
  5344. HPUX_IA64_MODE="64"
  5345. ;;
  5346. esac
  5347. fi
  5348. rm -rf conftest*
  5349. ;;
  5350. *-*-irix6*)
  5351. # Find out which ABI we are using.
  5352. echo '#line 6128 "configure"' > conftest.$ac_ext
  5353. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5354. (eval $ac_compile) 2>&5
  5355. ac_status=$?
  5356. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5357. (exit $ac_status); }; then
  5358. if test "$lt_cv_prog_gnu_ld" = yes; then
  5359. case `/usr/bin/file conftest.$ac_objext` in
  5360. *32-bit*)
  5361. LD="${LD-ld} -melf32bsmip"
  5362. ;;
  5363. *N32*)
  5364. LD="${LD-ld} -melf32bmipn32"
  5365. ;;
  5366. *64-bit*)
  5367. LD="${LD-ld} -melf64bmip"
  5368. ;;
  5369. esac
  5370. else
  5371. case `/usr/bin/file conftest.$ac_objext` in
  5372. *32-bit*)
  5373. LD="${LD-ld} -32"
  5374. ;;
  5375. *N32*)
  5376. LD="${LD-ld} -n32"
  5377. ;;
  5378. *64-bit*)
  5379. LD="${LD-ld} -64"
  5380. ;;
  5381. esac
  5382. fi
  5383. fi
  5384. rm -rf conftest*
  5385. ;;
  5386. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5387. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5388. # Find out which ABI we are using.
  5389. echo 'int i;' > conftest.$ac_ext
  5390. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5391. (eval $ac_compile) 2>&5
  5392. ac_status=$?
  5393. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5394. (exit $ac_status); }; then
  5395. case `/usr/bin/file conftest.o` in
  5396. *32-bit*)
  5397. case $host in
  5398. x86_64-*kfreebsd*-gnu)
  5399. LD="${LD-ld} -m elf_i386_fbsd"
  5400. ;;
  5401. x86_64-*linux*)
  5402. LD="${LD-ld} -m elf_i386"
  5403. ;;
  5404. ppc64-*linux*|powerpc64-*linux*)
  5405. LD="${LD-ld} -m elf32ppclinux"
  5406. ;;
  5407. s390x-*linux*)
  5408. LD="${LD-ld} -m elf_s390"
  5409. ;;
  5410. sparc64-*linux*)
  5411. LD="${LD-ld} -m elf32_sparc"
  5412. ;;
  5413. esac
  5414. ;;
  5415. *64-bit*)
  5416. case $host in
  5417. x86_64-*kfreebsd*-gnu)
  5418. LD="${LD-ld} -m elf_x86_64_fbsd"
  5419. ;;
  5420. x86_64-*linux*)
  5421. LD="${LD-ld} -m elf_x86_64"
  5422. ;;
  5423. ppc*-*linux*|powerpc*-*linux*)
  5424. LD="${LD-ld} -m elf64ppc"
  5425. ;;
  5426. s390*-*linux*|s390*-*tpf*)
  5427. LD="${LD-ld} -m elf64_s390"
  5428. ;;
  5429. sparc*-*linux*)
  5430. LD="${LD-ld} -m elf64_sparc"
  5431. ;;
  5432. esac
  5433. ;;
  5434. esac
  5435. fi
  5436. rm -rf conftest*
  5437. ;;
  5438. *-*-sco3.2v5*)
  5439. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5440. SAVE_CFLAGS="$CFLAGS"
  5441. CFLAGS="$CFLAGS -belf"
  5442. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5443. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5444. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5445. $as_echo_n "(cached) " >&6
  5446. else
  5447. ac_ext=c
  5448. ac_cpp='$CPP $CPPFLAGS'
  5449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5452. cat >conftest.$ac_ext <<_ACEOF
  5453. /* confdefs.h. */
  5454. _ACEOF
  5455. cat confdefs.h >>conftest.$ac_ext
  5456. cat >>conftest.$ac_ext <<_ACEOF
  5457. /* end confdefs.h. */
  5458. int
  5459. main ()
  5460. {
  5461. ;
  5462. return 0;
  5463. }
  5464. _ACEOF
  5465. rm -f conftest.$ac_objext conftest$ac_exeext
  5466. if { (ac_try="$ac_link"
  5467. case "(($ac_try" in
  5468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5469. *) ac_try_echo=$ac_try;;
  5470. esac
  5471. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5472. $as_echo "$ac_try_echo") >&5
  5473. (eval "$ac_link") 2>conftest.er1
  5474. ac_status=$?
  5475. grep -v '^ *+' conftest.er1 >conftest.err
  5476. rm -f conftest.er1
  5477. cat conftest.err >&5
  5478. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5479. (exit $ac_status); } && {
  5480. test -z "$ac_c_werror_flag" ||
  5481. test ! -s conftest.err
  5482. } && test -s conftest$ac_exeext && {
  5483. test "$cross_compiling" = yes ||
  5484. $as_test_x conftest$ac_exeext
  5485. }; then
  5486. lt_cv_cc_needs_belf=yes
  5487. else
  5488. $as_echo "$as_me: failed program was:" >&5
  5489. sed 's/^/| /' conftest.$ac_ext >&5
  5490. lt_cv_cc_needs_belf=no
  5491. fi
  5492. rm -rf conftest.dSYM
  5493. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5494. conftest$ac_exeext conftest.$ac_ext
  5495. ac_ext=c
  5496. ac_cpp='$CPP $CPPFLAGS'
  5497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5500. fi
  5501. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5502. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5503. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5504. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5505. CFLAGS="$SAVE_CFLAGS"
  5506. fi
  5507. ;;
  5508. sparc*-*solaris*)
  5509. # Find out which ABI we are using.
  5510. echo 'int i;' > conftest.$ac_ext
  5511. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5512. (eval $ac_compile) 2>&5
  5513. ac_status=$?
  5514. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5515. (exit $ac_status); }; then
  5516. case `/usr/bin/file conftest.o` in
  5517. *64-bit*)
  5518. case $lt_cv_prog_gnu_ld in
  5519. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5520. *)
  5521. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5522. LD="${LD-ld} -64"
  5523. fi
  5524. ;;
  5525. esac
  5526. ;;
  5527. esac
  5528. fi
  5529. rm -rf conftest*
  5530. ;;
  5531. esac
  5532. need_locks="$enable_libtool_lock"
  5533. case $host_os in
  5534. rhapsody* | darwin*)
  5535. if test -n "$ac_tool_prefix"; then
  5536. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5537. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5538. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5539. $as_echo_n "checking for $ac_word... " >&6; }
  5540. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5541. $as_echo_n "(cached) " >&6
  5542. else
  5543. if test -n "$DSYMUTIL"; then
  5544. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5545. else
  5546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5547. for as_dir in $PATH
  5548. do
  5549. IFS=$as_save_IFS
  5550. test -z "$as_dir" && as_dir=.
  5551. for ac_exec_ext in '' $ac_executable_extensions; do
  5552. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5553. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5554. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5555. break 2
  5556. fi
  5557. done
  5558. done
  5559. IFS=$as_save_IFS
  5560. fi
  5561. fi
  5562. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5563. if test -n "$DSYMUTIL"; then
  5564. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5565. $as_echo "$DSYMUTIL" >&6; }
  5566. else
  5567. { $as_echo "$as_me:$LINENO: result: no" >&5
  5568. $as_echo "no" >&6; }
  5569. fi
  5570. fi
  5571. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5572. ac_ct_DSYMUTIL=$DSYMUTIL
  5573. # Extract the first word of "dsymutil", so it can be a program name with args.
  5574. set dummy dsymutil; ac_word=$2
  5575. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5576. $as_echo_n "checking for $ac_word... " >&6; }
  5577. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5578. $as_echo_n "(cached) " >&6
  5579. else
  5580. if test -n "$ac_ct_DSYMUTIL"; then
  5581. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5582. else
  5583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5584. for as_dir in $PATH
  5585. do
  5586. IFS=$as_save_IFS
  5587. test -z "$as_dir" && as_dir=.
  5588. for ac_exec_ext in '' $ac_executable_extensions; do
  5589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5590. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5591. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5592. break 2
  5593. fi
  5594. done
  5595. done
  5596. IFS=$as_save_IFS
  5597. fi
  5598. fi
  5599. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5600. if test -n "$ac_ct_DSYMUTIL"; then
  5601. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5602. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5603. else
  5604. { $as_echo "$as_me:$LINENO: result: no" >&5
  5605. $as_echo "no" >&6; }
  5606. fi
  5607. if test "x$ac_ct_DSYMUTIL" = x; then
  5608. DSYMUTIL=":"
  5609. else
  5610. case $cross_compiling:$ac_tool_warned in
  5611. yes:)
  5612. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5613. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5614. ac_tool_warned=yes ;;
  5615. esac
  5616. DSYMUTIL=$ac_ct_DSYMUTIL
  5617. fi
  5618. else
  5619. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5620. fi
  5621. if test -n "$ac_tool_prefix"; then
  5622. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5623. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5624. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5625. $as_echo_n "checking for $ac_word... " >&6; }
  5626. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5627. $as_echo_n "(cached) " >&6
  5628. else
  5629. if test -n "$NMEDIT"; then
  5630. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5631. else
  5632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5633. for as_dir in $PATH
  5634. do
  5635. IFS=$as_save_IFS
  5636. test -z "$as_dir" && as_dir=.
  5637. for ac_exec_ext in '' $ac_executable_extensions; do
  5638. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5639. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5640. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5641. break 2
  5642. fi
  5643. done
  5644. done
  5645. IFS=$as_save_IFS
  5646. fi
  5647. fi
  5648. NMEDIT=$ac_cv_prog_NMEDIT
  5649. if test -n "$NMEDIT"; then
  5650. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5651. $as_echo "$NMEDIT" >&6; }
  5652. else
  5653. { $as_echo "$as_me:$LINENO: result: no" >&5
  5654. $as_echo "no" >&6; }
  5655. fi
  5656. fi
  5657. if test -z "$ac_cv_prog_NMEDIT"; then
  5658. ac_ct_NMEDIT=$NMEDIT
  5659. # Extract the first word of "nmedit", so it can be a program name with args.
  5660. set dummy nmedit; ac_word=$2
  5661. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5662. $as_echo_n "checking for $ac_word... " >&6; }
  5663. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5664. $as_echo_n "(cached) " >&6
  5665. else
  5666. if test -n "$ac_ct_NMEDIT"; then
  5667. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5668. else
  5669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5670. for as_dir in $PATH
  5671. do
  5672. IFS=$as_save_IFS
  5673. test -z "$as_dir" && as_dir=.
  5674. for ac_exec_ext in '' $ac_executable_extensions; do
  5675. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5676. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5677. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5678. break 2
  5679. fi
  5680. done
  5681. done
  5682. IFS=$as_save_IFS
  5683. fi
  5684. fi
  5685. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5686. if test -n "$ac_ct_NMEDIT"; then
  5687. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5688. $as_echo "$ac_ct_NMEDIT" >&6; }
  5689. else
  5690. { $as_echo "$as_me:$LINENO: result: no" >&5
  5691. $as_echo "no" >&6; }
  5692. fi
  5693. if test "x$ac_ct_NMEDIT" = x; then
  5694. NMEDIT=":"
  5695. else
  5696. case $cross_compiling:$ac_tool_warned in
  5697. yes:)
  5698. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5700. ac_tool_warned=yes ;;
  5701. esac
  5702. NMEDIT=$ac_ct_NMEDIT
  5703. fi
  5704. else
  5705. NMEDIT="$ac_cv_prog_NMEDIT"
  5706. fi
  5707. if test -n "$ac_tool_prefix"; then
  5708. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5709. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5710. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5711. $as_echo_n "checking for $ac_word... " >&6; }
  5712. if test "${ac_cv_prog_LIPO+set}" = set; then
  5713. $as_echo_n "(cached) " >&6
  5714. else
  5715. if test -n "$LIPO"; then
  5716. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5717. else
  5718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5719. for as_dir in $PATH
  5720. do
  5721. IFS=$as_save_IFS
  5722. test -z "$as_dir" && as_dir=.
  5723. for ac_exec_ext in '' $ac_executable_extensions; do
  5724. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5725. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5726. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5727. break 2
  5728. fi
  5729. done
  5730. done
  5731. IFS=$as_save_IFS
  5732. fi
  5733. fi
  5734. LIPO=$ac_cv_prog_LIPO
  5735. if test -n "$LIPO"; then
  5736. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5737. $as_echo "$LIPO" >&6; }
  5738. else
  5739. { $as_echo "$as_me:$LINENO: result: no" >&5
  5740. $as_echo "no" >&6; }
  5741. fi
  5742. fi
  5743. if test -z "$ac_cv_prog_LIPO"; then
  5744. ac_ct_LIPO=$LIPO
  5745. # Extract the first word of "lipo", so it can be a program name with args.
  5746. set dummy lipo; ac_word=$2
  5747. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5748. $as_echo_n "checking for $ac_word... " >&6; }
  5749. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5750. $as_echo_n "(cached) " >&6
  5751. else
  5752. if test -n "$ac_ct_LIPO"; then
  5753. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5754. else
  5755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5756. for as_dir in $PATH
  5757. do
  5758. IFS=$as_save_IFS
  5759. test -z "$as_dir" && as_dir=.
  5760. for ac_exec_ext in '' $ac_executable_extensions; do
  5761. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5762. ac_cv_prog_ac_ct_LIPO="lipo"
  5763. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5764. break 2
  5765. fi
  5766. done
  5767. done
  5768. IFS=$as_save_IFS
  5769. fi
  5770. fi
  5771. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5772. if test -n "$ac_ct_LIPO"; then
  5773. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5774. $as_echo "$ac_ct_LIPO" >&6; }
  5775. else
  5776. { $as_echo "$as_me:$LINENO: result: no" >&5
  5777. $as_echo "no" >&6; }
  5778. fi
  5779. if test "x$ac_ct_LIPO" = x; then
  5780. LIPO=":"
  5781. else
  5782. case $cross_compiling:$ac_tool_warned in
  5783. yes:)
  5784. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5785. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5786. ac_tool_warned=yes ;;
  5787. esac
  5788. LIPO=$ac_ct_LIPO
  5789. fi
  5790. else
  5791. LIPO="$ac_cv_prog_LIPO"
  5792. fi
  5793. if test -n "$ac_tool_prefix"; then
  5794. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5795. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5796. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5797. $as_echo_n "checking for $ac_word... " >&6; }
  5798. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5799. $as_echo_n "(cached) " >&6
  5800. else
  5801. if test -n "$OTOOL"; then
  5802. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5803. else
  5804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5805. for as_dir in $PATH
  5806. do
  5807. IFS=$as_save_IFS
  5808. test -z "$as_dir" && as_dir=.
  5809. for ac_exec_ext in '' $ac_executable_extensions; do
  5810. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5811. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5812. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5813. break 2
  5814. fi
  5815. done
  5816. done
  5817. IFS=$as_save_IFS
  5818. fi
  5819. fi
  5820. OTOOL=$ac_cv_prog_OTOOL
  5821. if test -n "$OTOOL"; then
  5822. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5823. $as_echo "$OTOOL" >&6; }
  5824. else
  5825. { $as_echo "$as_me:$LINENO: result: no" >&5
  5826. $as_echo "no" >&6; }
  5827. fi
  5828. fi
  5829. if test -z "$ac_cv_prog_OTOOL"; then
  5830. ac_ct_OTOOL=$OTOOL
  5831. # Extract the first word of "otool", so it can be a program name with args.
  5832. set dummy otool; ac_word=$2
  5833. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5834. $as_echo_n "checking for $ac_word... " >&6; }
  5835. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5836. $as_echo_n "(cached) " >&6
  5837. else
  5838. if test -n "$ac_ct_OTOOL"; then
  5839. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5840. else
  5841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5842. for as_dir in $PATH
  5843. do
  5844. IFS=$as_save_IFS
  5845. test -z "$as_dir" && as_dir=.
  5846. for ac_exec_ext in '' $ac_executable_extensions; do
  5847. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5848. ac_cv_prog_ac_ct_OTOOL="otool"
  5849. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5850. break 2
  5851. fi
  5852. done
  5853. done
  5854. IFS=$as_save_IFS
  5855. fi
  5856. fi
  5857. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5858. if test -n "$ac_ct_OTOOL"; then
  5859. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  5860. $as_echo "$ac_ct_OTOOL" >&6; }
  5861. else
  5862. { $as_echo "$as_me:$LINENO: result: no" >&5
  5863. $as_echo "no" >&6; }
  5864. fi
  5865. if test "x$ac_ct_OTOOL" = x; then
  5866. OTOOL=":"
  5867. else
  5868. case $cross_compiling:$ac_tool_warned in
  5869. yes:)
  5870. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5871. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5872. ac_tool_warned=yes ;;
  5873. esac
  5874. OTOOL=$ac_ct_OTOOL
  5875. fi
  5876. else
  5877. OTOOL="$ac_cv_prog_OTOOL"
  5878. fi
  5879. if test -n "$ac_tool_prefix"; then
  5880. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5881. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5882. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5883. $as_echo_n "checking for $ac_word... " >&6; }
  5884. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  5885. $as_echo_n "(cached) " >&6
  5886. else
  5887. if test -n "$OTOOL64"; then
  5888. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5889. else
  5890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5891. for as_dir in $PATH
  5892. do
  5893. IFS=$as_save_IFS
  5894. test -z "$as_dir" && as_dir=.
  5895. for ac_exec_ext in '' $ac_executable_extensions; do
  5896. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5897. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5898. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5899. break 2
  5900. fi
  5901. done
  5902. done
  5903. IFS=$as_save_IFS
  5904. fi
  5905. fi
  5906. OTOOL64=$ac_cv_prog_OTOOL64
  5907. if test -n "$OTOOL64"; then
  5908. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  5909. $as_echo "$OTOOL64" >&6; }
  5910. else
  5911. { $as_echo "$as_me:$LINENO: result: no" >&5
  5912. $as_echo "no" >&6; }
  5913. fi
  5914. fi
  5915. if test -z "$ac_cv_prog_OTOOL64"; then
  5916. ac_ct_OTOOL64=$OTOOL64
  5917. # Extract the first word of "otool64", so it can be a program name with args.
  5918. set dummy otool64; ac_word=$2
  5919. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5920. $as_echo_n "checking for $ac_word... " >&6; }
  5921. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  5922. $as_echo_n "(cached) " >&6
  5923. else
  5924. if test -n "$ac_ct_OTOOL64"; then
  5925. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5926. else
  5927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5928. for as_dir in $PATH
  5929. do
  5930. IFS=$as_save_IFS
  5931. test -z "$as_dir" && as_dir=.
  5932. for ac_exec_ext in '' $ac_executable_extensions; do
  5933. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5934. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5935. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5936. break 2
  5937. fi
  5938. done
  5939. done
  5940. IFS=$as_save_IFS
  5941. fi
  5942. fi
  5943. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5944. if test -n "$ac_ct_OTOOL64"; then
  5945. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  5946. $as_echo "$ac_ct_OTOOL64" >&6; }
  5947. else
  5948. { $as_echo "$as_me:$LINENO: result: no" >&5
  5949. $as_echo "no" >&6; }
  5950. fi
  5951. if test "x$ac_ct_OTOOL64" = x; then
  5952. OTOOL64=":"
  5953. else
  5954. case $cross_compiling:$ac_tool_warned in
  5955. yes:)
  5956. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5957. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5958. ac_tool_warned=yes ;;
  5959. esac
  5960. OTOOL64=$ac_ct_OTOOL64
  5961. fi
  5962. else
  5963. OTOOL64="$ac_cv_prog_OTOOL64"
  5964. fi
  5965. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  5966. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5967. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  5968. $as_echo_n "(cached) " >&6
  5969. else
  5970. lt_cv_apple_cc_single_mod=no
  5971. if test -z "${LT_MULTI_MODULE}"; then
  5972. # By default we will add the -single_module flag. You can override
  5973. # by either setting the environment variable LT_MULTI_MODULE
  5974. # non-empty at configure time, or by adding -multi_module to the
  5975. # link flags.
  5976. rm -rf libconftest.dylib*
  5977. echo "int foo(void){return 1;}" > conftest.c
  5978. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5979. -dynamiclib -Wl,-single_module conftest.c" >&5
  5980. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5981. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5982. _lt_result=$?
  5983. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5984. lt_cv_apple_cc_single_mod=yes
  5985. else
  5986. cat conftest.err >&5
  5987. fi
  5988. rm -rf libconftest.dylib*
  5989. rm -f conftest.*
  5990. fi
  5991. fi
  5992. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  5993. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5994. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  5995. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5996. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  5997. $as_echo_n "(cached) " >&6
  5998. else
  5999. lt_cv_ld_exported_symbols_list=no
  6000. save_LDFLAGS=$LDFLAGS
  6001. echo "_main" > conftest.sym
  6002. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6003. cat >conftest.$ac_ext <<_ACEOF
  6004. /* confdefs.h. */
  6005. _ACEOF
  6006. cat confdefs.h >>conftest.$ac_ext
  6007. cat >>conftest.$ac_ext <<_ACEOF
  6008. /* end confdefs.h. */
  6009. int
  6010. main ()
  6011. {
  6012. ;
  6013. return 0;
  6014. }
  6015. _ACEOF
  6016. rm -f conftest.$ac_objext conftest$ac_exeext
  6017. if { (ac_try="$ac_link"
  6018. case "(($ac_try" in
  6019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6020. *) ac_try_echo=$ac_try;;
  6021. esac
  6022. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6023. $as_echo "$ac_try_echo") >&5
  6024. (eval "$ac_link") 2>conftest.er1
  6025. ac_status=$?
  6026. grep -v '^ *+' conftest.er1 >conftest.err
  6027. rm -f conftest.er1
  6028. cat conftest.err >&5
  6029. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6030. (exit $ac_status); } && {
  6031. test -z "$ac_c_werror_flag" ||
  6032. test ! -s conftest.err
  6033. } && test -s conftest$ac_exeext && {
  6034. test "$cross_compiling" = yes ||
  6035. $as_test_x conftest$ac_exeext
  6036. }; then
  6037. lt_cv_ld_exported_symbols_list=yes
  6038. else
  6039. $as_echo "$as_me: failed program was:" >&5
  6040. sed 's/^/| /' conftest.$ac_ext >&5
  6041. lt_cv_ld_exported_symbols_list=no
  6042. fi
  6043. rm -rf conftest.dSYM
  6044. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6045. conftest$ac_exeext conftest.$ac_ext
  6046. LDFLAGS="$save_LDFLAGS"
  6047. fi
  6048. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6049. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6050. case $host_os in
  6051. rhapsody* | darwin1.[012])
  6052. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6053. darwin1.*)
  6054. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6055. darwin*) # darwin 5.x on
  6056. # if running on 10.5 or later, the deployment target defaults
  6057. # to the OS version, if on x86, and 10.4, the deployment
  6058. # target defaults to 10.4. Don't you love it?
  6059. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6060. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6061. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6062. 10.[012]*)
  6063. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6064. 10.*)
  6065. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6066. esac
  6067. ;;
  6068. esac
  6069. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6070. _lt_dar_single_mod='$single_module'
  6071. fi
  6072. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6073. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6074. else
  6075. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6076. fi
  6077. if test "$DSYMUTIL" != ":"; then
  6078. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6079. else
  6080. _lt_dsymutil=
  6081. fi
  6082. ;;
  6083. esac
  6084. ac_ext=c
  6085. ac_cpp='$CPP $CPPFLAGS'
  6086. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6087. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6088. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6089. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6090. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6091. # On Suns, sometimes $CPP names a directory.
  6092. if test -n "$CPP" && test -d "$CPP"; then
  6093. CPP=
  6094. fi
  6095. if test -z "$CPP"; then
  6096. if test "${ac_cv_prog_CPP+set}" = set; then
  6097. $as_echo_n "(cached) " >&6
  6098. else
  6099. # Double quotes because CPP needs to be expanded
  6100. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6101. do
  6102. ac_preproc_ok=false
  6103. for ac_c_preproc_warn_flag in '' yes
  6104. do
  6105. # Use a header file that comes with gcc, so configuring glibc
  6106. # with a fresh cross-compiler works.
  6107. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6108. # <limits.h> exists even on freestanding compilers.
  6109. # On the NeXT, cc -E runs the code through the compiler's parser,
  6110. # not just through cpp. "Syntax error" is here to catch this case.
  6111. cat >conftest.$ac_ext <<_ACEOF
  6112. /* confdefs.h. */
  6113. _ACEOF
  6114. cat confdefs.h >>conftest.$ac_ext
  6115. cat >>conftest.$ac_ext <<_ACEOF
  6116. /* end confdefs.h. */
  6117. #ifdef __STDC__
  6118. # include <limits.h>
  6119. #else
  6120. # include <assert.h>
  6121. #endif
  6122. Syntax error
  6123. _ACEOF
  6124. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6125. case "(($ac_try" in
  6126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6127. *) ac_try_echo=$ac_try;;
  6128. esac
  6129. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6130. $as_echo "$ac_try_echo") >&5
  6131. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6132. ac_status=$?
  6133. grep -v '^ *+' conftest.er1 >conftest.err
  6134. rm -f conftest.er1
  6135. cat conftest.err >&5
  6136. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6137. (exit $ac_status); } >/dev/null && {
  6138. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6139. test ! -s conftest.err
  6140. }; then
  6141. :
  6142. else
  6143. $as_echo "$as_me: failed program was:" >&5
  6144. sed 's/^/| /' conftest.$ac_ext >&5
  6145. # Broken: fails on valid input.
  6146. continue
  6147. fi
  6148. rm -f conftest.err conftest.$ac_ext
  6149. # OK, works on sane cases. Now check whether nonexistent headers
  6150. # can be detected and how.
  6151. cat >conftest.$ac_ext <<_ACEOF
  6152. /* confdefs.h. */
  6153. _ACEOF
  6154. cat confdefs.h >>conftest.$ac_ext
  6155. cat >>conftest.$ac_ext <<_ACEOF
  6156. /* end confdefs.h. */
  6157. #include <ac_nonexistent.h>
  6158. _ACEOF
  6159. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6160. case "(($ac_try" in
  6161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6162. *) ac_try_echo=$ac_try;;
  6163. esac
  6164. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6165. $as_echo "$ac_try_echo") >&5
  6166. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6167. ac_status=$?
  6168. grep -v '^ *+' conftest.er1 >conftest.err
  6169. rm -f conftest.er1
  6170. cat conftest.err >&5
  6171. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6172. (exit $ac_status); } >/dev/null && {
  6173. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6174. test ! -s conftest.err
  6175. }; then
  6176. # Broken: success on invalid input.
  6177. continue
  6178. else
  6179. $as_echo "$as_me: failed program was:" >&5
  6180. sed 's/^/| /' conftest.$ac_ext >&5
  6181. # Passes both tests.
  6182. ac_preproc_ok=:
  6183. break
  6184. fi
  6185. rm -f conftest.err conftest.$ac_ext
  6186. done
  6187. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6188. rm -f conftest.err conftest.$ac_ext
  6189. if $ac_preproc_ok; then
  6190. break
  6191. fi
  6192. done
  6193. ac_cv_prog_CPP=$CPP
  6194. fi
  6195. CPP=$ac_cv_prog_CPP
  6196. else
  6197. ac_cv_prog_CPP=$CPP
  6198. fi
  6199. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  6200. $as_echo "$CPP" >&6; }
  6201. ac_preproc_ok=false
  6202. for ac_c_preproc_warn_flag in '' yes
  6203. do
  6204. # Use a header file that comes with gcc, so configuring glibc
  6205. # with a fresh cross-compiler works.
  6206. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6207. # <limits.h> exists even on freestanding compilers.
  6208. # On the NeXT, cc -E runs the code through the compiler's parser,
  6209. # not just through cpp. "Syntax error" is here to catch this case.
  6210. cat >conftest.$ac_ext <<_ACEOF
  6211. /* confdefs.h. */
  6212. _ACEOF
  6213. cat confdefs.h >>conftest.$ac_ext
  6214. cat >>conftest.$ac_ext <<_ACEOF
  6215. /* end confdefs.h. */
  6216. #ifdef __STDC__
  6217. # include <limits.h>
  6218. #else
  6219. # include <assert.h>
  6220. #endif
  6221. Syntax error
  6222. _ACEOF
  6223. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6224. case "(($ac_try" in
  6225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6226. *) ac_try_echo=$ac_try;;
  6227. esac
  6228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6229. $as_echo "$ac_try_echo") >&5
  6230. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6231. ac_status=$?
  6232. grep -v '^ *+' conftest.er1 >conftest.err
  6233. rm -f conftest.er1
  6234. cat conftest.err >&5
  6235. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6236. (exit $ac_status); } >/dev/null && {
  6237. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6238. test ! -s conftest.err
  6239. }; then
  6240. :
  6241. else
  6242. $as_echo "$as_me: failed program was:" >&5
  6243. sed 's/^/| /' conftest.$ac_ext >&5
  6244. # Broken: fails on valid input.
  6245. continue
  6246. fi
  6247. rm -f conftest.err conftest.$ac_ext
  6248. # OK, works on sane cases. Now check whether nonexistent headers
  6249. # can be detected and how.
  6250. cat >conftest.$ac_ext <<_ACEOF
  6251. /* confdefs.h. */
  6252. _ACEOF
  6253. cat confdefs.h >>conftest.$ac_ext
  6254. cat >>conftest.$ac_ext <<_ACEOF
  6255. /* end confdefs.h. */
  6256. #include <ac_nonexistent.h>
  6257. _ACEOF
  6258. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6259. case "(($ac_try" in
  6260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6261. *) ac_try_echo=$ac_try;;
  6262. esac
  6263. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6264. $as_echo "$ac_try_echo") >&5
  6265. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6266. ac_status=$?
  6267. grep -v '^ *+' conftest.er1 >conftest.err
  6268. rm -f conftest.er1
  6269. cat conftest.err >&5
  6270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6271. (exit $ac_status); } >/dev/null && {
  6272. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6273. test ! -s conftest.err
  6274. }; then
  6275. # Broken: success on invalid input.
  6276. continue
  6277. else
  6278. $as_echo "$as_me: failed program was:" >&5
  6279. sed 's/^/| /' conftest.$ac_ext >&5
  6280. # Passes both tests.
  6281. ac_preproc_ok=:
  6282. break
  6283. fi
  6284. rm -f conftest.err conftest.$ac_ext
  6285. done
  6286. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6287. rm -f conftest.err conftest.$ac_ext
  6288. if $ac_preproc_ok; then
  6289. :
  6290. else
  6291. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6292. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6293. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6294. See \`config.log' for more details." >&5
  6295. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6296. See \`config.log' for more details." >&2;}
  6297. { (exit 1); exit 1; }; }; }
  6298. fi
  6299. ac_ext=c
  6300. ac_cpp='$CPP $CPPFLAGS'
  6301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6304. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6305. $as_echo_n "checking for ANSI C header files... " >&6; }
  6306. if test "${ac_cv_header_stdc+set}" = set; then
  6307. $as_echo_n "(cached) " >&6
  6308. else
  6309. cat >conftest.$ac_ext <<_ACEOF
  6310. /* confdefs.h. */
  6311. _ACEOF
  6312. cat confdefs.h >>conftest.$ac_ext
  6313. cat >>conftest.$ac_ext <<_ACEOF
  6314. /* end confdefs.h. */
  6315. #include <stdlib.h>
  6316. #include <stdarg.h>
  6317. #include <string.h>
  6318. #include <float.h>
  6319. int
  6320. main ()
  6321. {
  6322. ;
  6323. return 0;
  6324. }
  6325. _ACEOF
  6326. rm -f conftest.$ac_objext
  6327. if { (ac_try="$ac_compile"
  6328. case "(($ac_try" in
  6329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6330. *) ac_try_echo=$ac_try;;
  6331. esac
  6332. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6333. $as_echo "$ac_try_echo") >&5
  6334. (eval "$ac_compile") 2>conftest.er1
  6335. ac_status=$?
  6336. grep -v '^ *+' conftest.er1 >conftest.err
  6337. rm -f conftest.er1
  6338. cat conftest.err >&5
  6339. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6340. (exit $ac_status); } && {
  6341. test -z "$ac_c_werror_flag" ||
  6342. test ! -s conftest.err
  6343. } && test -s conftest.$ac_objext; then
  6344. ac_cv_header_stdc=yes
  6345. else
  6346. $as_echo "$as_me: failed program was:" >&5
  6347. sed 's/^/| /' conftest.$ac_ext >&5
  6348. ac_cv_header_stdc=no
  6349. fi
  6350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6351. if test $ac_cv_header_stdc = yes; then
  6352. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6353. cat >conftest.$ac_ext <<_ACEOF
  6354. /* confdefs.h. */
  6355. _ACEOF
  6356. cat confdefs.h >>conftest.$ac_ext
  6357. cat >>conftest.$ac_ext <<_ACEOF
  6358. /* end confdefs.h. */
  6359. #include <string.h>
  6360. _ACEOF
  6361. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6362. $EGREP "memchr" >/dev/null 2>&1; then
  6363. :
  6364. else
  6365. ac_cv_header_stdc=no
  6366. fi
  6367. rm -f conftest*
  6368. fi
  6369. if test $ac_cv_header_stdc = yes; then
  6370. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6371. cat >conftest.$ac_ext <<_ACEOF
  6372. /* confdefs.h. */
  6373. _ACEOF
  6374. cat confdefs.h >>conftest.$ac_ext
  6375. cat >>conftest.$ac_ext <<_ACEOF
  6376. /* end confdefs.h. */
  6377. #include <stdlib.h>
  6378. _ACEOF
  6379. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6380. $EGREP "free" >/dev/null 2>&1; then
  6381. :
  6382. else
  6383. ac_cv_header_stdc=no
  6384. fi
  6385. rm -f conftest*
  6386. fi
  6387. if test $ac_cv_header_stdc = yes; then
  6388. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6389. if test "$cross_compiling" = yes; then
  6390. :
  6391. else
  6392. cat >conftest.$ac_ext <<_ACEOF
  6393. /* confdefs.h. */
  6394. _ACEOF
  6395. cat confdefs.h >>conftest.$ac_ext
  6396. cat >>conftest.$ac_ext <<_ACEOF
  6397. /* end confdefs.h. */
  6398. #include <ctype.h>
  6399. #include <stdlib.h>
  6400. #if ((' ' & 0x0FF) == 0x020)
  6401. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6402. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6403. #else
  6404. # define ISLOWER(c) \
  6405. (('a' <= (c) && (c) <= 'i') \
  6406. || ('j' <= (c) && (c) <= 'r') \
  6407. || ('s' <= (c) && (c) <= 'z'))
  6408. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6409. #endif
  6410. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6411. int
  6412. main ()
  6413. {
  6414. int i;
  6415. for (i = 0; i < 256; i++)
  6416. if (XOR (islower (i), ISLOWER (i))
  6417. || toupper (i) != TOUPPER (i))
  6418. return 2;
  6419. return 0;
  6420. }
  6421. _ACEOF
  6422. rm -f conftest$ac_exeext
  6423. if { (ac_try="$ac_link"
  6424. case "(($ac_try" in
  6425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6426. *) ac_try_echo=$ac_try;;
  6427. esac
  6428. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6429. $as_echo "$ac_try_echo") >&5
  6430. (eval "$ac_link") 2>&5
  6431. ac_status=$?
  6432. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6433. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6434. { (case "(($ac_try" in
  6435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6436. *) ac_try_echo=$ac_try;;
  6437. esac
  6438. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6439. $as_echo "$ac_try_echo") >&5
  6440. (eval "$ac_try") 2>&5
  6441. ac_status=$?
  6442. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6443. (exit $ac_status); }; }; then
  6444. :
  6445. else
  6446. $as_echo "$as_me: program exited with status $ac_status" >&5
  6447. $as_echo "$as_me: failed program was:" >&5
  6448. sed 's/^/| /' conftest.$ac_ext >&5
  6449. ( exit $ac_status )
  6450. ac_cv_header_stdc=no
  6451. fi
  6452. rm -rf conftest.dSYM
  6453. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6454. fi
  6455. fi
  6456. fi
  6457. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6458. $as_echo "$ac_cv_header_stdc" >&6; }
  6459. if test $ac_cv_header_stdc = yes; then
  6460. cat >>confdefs.h <<\_ACEOF
  6461. #define STDC_HEADERS 1
  6462. _ACEOF
  6463. fi
  6464. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6465. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6466. inttypes.h stdint.h unistd.h
  6467. do
  6468. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6469. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6470. $as_echo_n "checking for $ac_header... " >&6; }
  6471. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6472. $as_echo_n "(cached) " >&6
  6473. else
  6474. cat >conftest.$ac_ext <<_ACEOF
  6475. /* confdefs.h. */
  6476. _ACEOF
  6477. cat confdefs.h >>conftest.$ac_ext
  6478. cat >>conftest.$ac_ext <<_ACEOF
  6479. /* end confdefs.h. */
  6480. $ac_includes_default
  6481. #include <$ac_header>
  6482. _ACEOF
  6483. rm -f conftest.$ac_objext
  6484. if { (ac_try="$ac_compile"
  6485. case "(($ac_try" in
  6486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6487. *) ac_try_echo=$ac_try;;
  6488. esac
  6489. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6490. $as_echo "$ac_try_echo") >&5
  6491. (eval "$ac_compile") 2>conftest.er1
  6492. ac_status=$?
  6493. grep -v '^ *+' conftest.er1 >conftest.err
  6494. rm -f conftest.er1
  6495. cat conftest.err >&5
  6496. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6497. (exit $ac_status); } && {
  6498. test -z "$ac_c_werror_flag" ||
  6499. test ! -s conftest.err
  6500. } && test -s conftest.$ac_objext; then
  6501. eval "$as_ac_Header=yes"
  6502. else
  6503. $as_echo "$as_me: failed program was:" >&5
  6504. sed 's/^/| /' conftest.$ac_ext >&5
  6505. eval "$as_ac_Header=no"
  6506. fi
  6507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6508. fi
  6509. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6510. $as_echo "$as_val"'`
  6511. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6512. $as_echo "$ac_res" >&6; }
  6513. as_val=`eval 'as_val=${'$as_ac_Header'}
  6514. $as_echo "$as_val"'`
  6515. if test "x$as_val" = x""yes; then
  6516. cat >>confdefs.h <<_ACEOF
  6517. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6518. _ACEOF
  6519. fi
  6520. done
  6521. for ac_header in dlfcn.h
  6522. do
  6523. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6524. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6525. $as_echo_n "checking for $ac_header... " >&6; }
  6526. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6527. $as_echo_n "(cached) " >&6
  6528. else
  6529. cat >conftest.$ac_ext <<_ACEOF
  6530. /* confdefs.h. */
  6531. _ACEOF
  6532. cat confdefs.h >>conftest.$ac_ext
  6533. cat >>conftest.$ac_ext <<_ACEOF
  6534. /* end confdefs.h. */
  6535. $ac_includes_default
  6536. #include <$ac_header>
  6537. _ACEOF
  6538. rm -f conftest.$ac_objext
  6539. if { (ac_try="$ac_compile"
  6540. case "(($ac_try" in
  6541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6542. *) ac_try_echo=$ac_try;;
  6543. esac
  6544. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6545. $as_echo "$ac_try_echo") >&5
  6546. (eval "$ac_compile") 2>conftest.er1
  6547. ac_status=$?
  6548. grep -v '^ *+' conftest.er1 >conftest.err
  6549. rm -f conftest.er1
  6550. cat conftest.err >&5
  6551. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6552. (exit $ac_status); } && {
  6553. test -z "$ac_c_werror_flag" ||
  6554. test ! -s conftest.err
  6555. } && test -s conftest.$ac_objext; then
  6556. eval "$as_ac_Header=yes"
  6557. else
  6558. $as_echo "$as_me: failed program was:" >&5
  6559. sed 's/^/| /' conftest.$ac_ext >&5
  6560. eval "$as_ac_Header=no"
  6561. fi
  6562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6563. fi
  6564. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6565. $as_echo "$as_val"'`
  6566. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6567. $as_echo "$ac_res" >&6; }
  6568. as_val=`eval 'as_val=${'$as_ac_Header'}
  6569. $as_echo "$as_val"'`
  6570. if test "x$as_val" = x""yes; then
  6571. cat >>confdefs.h <<_ACEOF
  6572. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6573. _ACEOF
  6574. fi
  6575. done
  6576. ac_ext=cpp
  6577. ac_cpp='$CXXCPP $CPPFLAGS'
  6578. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6579. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6580. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6581. if test -z "$CXX"; then
  6582. if test -n "$CCC"; then
  6583. CXX=$CCC
  6584. else
  6585. if test -n "$ac_tool_prefix"; then
  6586. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6587. do
  6588. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6589. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6590. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6591. $as_echo_n "checking for $ac_word... " >&6; }
  6592. if test "${ac_cv_prog_CXX+set}" = set; then
  6593. $as_echo_n "(cached) " >&6
  6594. else
  6595. if test -n "$CXX"; then
  6596. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6597. else
  6598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6599. for as_dir in $PATH
  6600. do
  6601. IFS=$as_save_IFS
  6602. test -z "$as_dir" && as_dir=.
  6603. for ac_exec_ext in '' $ac_executable_extensions; do
  6604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6605. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6606. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6607. break 2
  6608. fi
  6609. done
  6610. done
  6611. IFS=$as_save_IFS
  6612. fi
  6613. fi
  6614. CXX=$ac_cv_prog_CXX
  6615. if test -n "$CXX"; then
  6616. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  6617. $as_echo "$CXX" >&6; }
  6618. else
  6619. { $as_echo "$as_me:$LINENO: result: no" >&5
  6620. $as_echo "no" >&6; }
  6621. fi
  6622. test -n "$CXX" && break
  6623. done
  6624. fi
  6625. if test -z "$CXX"; then
  6626. ac_ct_CXX=$CXX
  6627. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6628. do
  6629. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6630. set dummy $ac_prog; ac_word=$2
  6631. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6632. $as_echo_n "checking for $ac_word... " >&6; }
  6633. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  6634. $as_echo_n "(cached) " >&6
  6635. else
  6636. if test -n "$ac_ct_CXX"; then
  6637. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6638. else
  6639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6640. for as_dir in $PATH
  6641. do
  6642. IFS=$as_save_IFS
  6643. test -z "$as_dir" && as_dir=.
  6644. for ac_exec_ext in '' $ac_executable_extensions; do
  6645. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6646. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6647. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6648. break 2
  6649. fi
  6650. done
  6651. done
  6652. IFS=$as_save_IFS
  6653. fi
  6654. fi
  6655. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6656. if test -n "$ac_ct_CXX"; then
  6657. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  6658. $as_echo "$ac_ct_CXX" >&6; }
  6659. else
  6660. { $as_echo "$as_me:$LINENO: result: no" >&5
  6661. $as_echo "no" >&6; }
  6662. fi
  6663. test -n "$ac_ct_CXX" && break
  6664. done
  6665. if test "x$ac_ct_CXX" = x; then
  6666. CXX="g++"
  6667. else
  6668. case $cross_compiling:$ac_tool_warned in
  6669. yes:)
  6670. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6671. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6672. ac_tool_warned=yes ;;
  6673. esac
  6674. CXX=$ac_ct_CXX
  6675. fi
  6676. fi
  6677. fi
  6678. fi
  6679. # Provide some information about the compiler.
  6680. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  6681. set X $ac_compile
  6682. ac_compiler=$2
  6683. { (ac_try="$ac_compiler --version >&5"
  6684. case "(($ac_try" in
  6685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6686. *) ac_try_echo=$ac_try;;
  6687. esac
  6688. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6689. $as_echo "$ac_try_echo") >&5
  6690. (eval "$ac_compiler --version >&5") 2>&5
  6691. ac_status=$?
  6692. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6693. (exit $ac_status); }
  6694. { (ac_try="$ac_compiler -v >&5"
  6695. case "(($ac_try" in
  6696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6697. *) ac_try_echo=$ac_try;;
  6698. esac
  6699. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6700. $as_echo "$ac_try_echo") >&5
  6701. (eval "$ac_compiler -v >&5") 2>&5
  6702. ac_status=$?
  6703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6704. (exit $ac_status); }
  6705. { (ac_try="$ac_compiler -V >&5"
  6706. case "(($ac_try" in
  6707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6708. *) ac_try_echo=$ac_try;;
  6709. esac
  6710. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6711. $as_echo "$ac_try_echo") >&5
  6712. (eval "$ac_compiler -V >&5") 2>&5
  6713. ac_status=$?
  6714. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6715. (exit $ac_status); }
  6716. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  6717. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6718. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  6719. $as_echo_n "(cached) " >&6
  6720. else
  6721. cat >conftest.$ac_ext <<_ACEOF
  6722. /* confdefs.h. */
  6723. _ACEOF
  6724. cat confdefs.h >>conftest.$ac_ext
  6725. cat >>conftest.$ac_ext <<_ACEOF
  6726. /* end confdefs.h. */
  6727. int
  6728. main ()
  6729. {
  6730. #ifndef __GNUC__
  6731. choke me
  6732. #endif
  6733. ;
  6734. return 0;
  6735. }
  6736. _ACEOF
  6737. rm -f conftest.$ac_objext
  6738. if { (ac_try="$ac_compile"
  6739. case "(($ac_try" in
  6740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6741. *) ac_try_echo=$ac_try;;
  6742. esac
  6743. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6744. $as_echo "$ac_try_echo") >&5
  6745. (eval "$ac_compile") 2>conftest.er1
  6746. ac_status=$?
  6747. grep -v '^ *+' conftest.er1 >conftest.err
  6748. rm -f conftest.er1
  6749. cat conftest.err >&5
  6750. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751. (exit $ac_status); } && {
  6752. test -z "$ac_cxx_werror_flag" ||
  6753. test ! -s conftest.err
  6754. } && test -s conftest.$ac_objext; then
  6755. ac_compiler_gnu=yes
  6756. else
  6757. $as_echo "$as_me: failed program was:" >&5
  6758. sed 's/^/| /' conftest.$ac_ext >&5
  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:$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:$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 >conftest.$ac_ext <<_ACEOF
  6783. /* confdefs.h. */
  6784. _ACEOF
  6785. cat confdefs.h >>conftest.$ac_ext
  6786. cat >>conftest.$ac_ext <<_ACEOF
  6787. /* end confdefs.h. */
  6788. int
  6789. main ()
  6790. {
  6791. ;
  6792. return 0;
  6793. }
  6794. _ACEOF
  6795. rm -f conftest.$ac_objext
  6796. if { (ac_try="$ac_compile"
  6797. case "(($ac_try" in
  6798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6799. *) ac_try_echo=$ac_try;;
  6800. esac
  6801. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6802. $as_echo "$ac_try_echo") >&5
  6803. (eval "$ac_compile") 2>conftest.er1
  6804. ac_status=$?
  6805. grep -v '^ *+' conftest.er1 >conftest.err
  6806. rm -f conftest.er1
  6807. cat conftest.err >&5
  6808. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6809. (exit $ac_status); } && {
  6810. test -z "$ac_cxx_werror_flag" ||
  6811. test ! -s conftest.err
  6812. } && test -s conftest.$ac_objext; then
  6813. ac_cv_prog_cxx_g=yes
  6814. else
  6815. $as_echo "$as_me: failed program was:" >&5
  6816. sed 's/^/| /' conftest.$ac_ext >&5
  6817. CXXFLAGS=""
  6818. cat >conftest.$ac_ext <<_ACEOF
  6819. /* confdefs.h. */
  6820. _ACEOF
  6821. cat confdefs.h >>conftest.$ac_ext
  6822. cat >>conftest.$ac_ext <<_ACEOF
  6823. /* end confdefs.h. */
  6824. int
  6825. main ()
  6826. {
  6827. ;
  6828. return 0;
  6829. }
  6830. _ACEOF
  6831. rm -f conftest.$ac_objext
  6832. if { (ac_try="$ac_compile"
  6833. case "(($ac_try" in
  6834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6835. *) ac_try_echo=$ac_try;;
  6836. esac
  6837. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6838. $as_echo "$ac_try_echo") >&5
  6839. (eval "$ac_compile") 2>conftest.er1
  6840. ac_status=$?
  6841. grep -v '^ *+' conftest.er1 >conftest.err
  6842. rm -f conftest.er1
  6843. cat conftest.err >&5
  6844. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6845. (exit $ac_status); } && {
  6846. test -z "$ac_cxx_werror_flag" ||
  6847. test ! -s conftest.err
  6848. } && test -s conftest.$ac_objext; then
  6849. :
  6850. else
  6851. $as_echo "$as_me: failed program was:" >&5
  6852. sed 's/^/| /' conftest.$ac_ext >&5
  6853. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6854. CXXFLAGS="-g"
  6855. cat >conftest.$ac_ext <<_ACEOF
  6856. /* confdefs.h. */
  6857. _ACEOF
  6858. cat confdefs.h >>conftest.$ac_ext
  6859. cat >>conftest.$ac_ext <<_ACEOF
  6860. /* end confdefs.h. */
  6861. int
  6862. main ()
  6863. {
  6864. ;
  6865. return 0;
  6866. }
  6867. _ACEOF
  6868. rm -f conftest.$ac_objext
  6869. if { (ac_try="$ac_compile"
  6870. case "(($ac_try" in
  6871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6872. *) ac_try_echo=$ac_try;;
  6873. esac
  6874. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6875. $as_echo "$ac_try_echo") >&5
  6876. (eval "$ac_compile") 2>conftest.er1
  6877. ac_status=$?
  6878. grep -v '^ *+' conftest.er1 >conftest.err
  6879. rm -f conftest.er1
  6880. cat conftest.err >&5
  6881. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6882. (exit $ac_status); } && {
  6883. test -z "$ac_cxx_werror_flag" ||
  6884. test ! -s conftest.err
  6885. } && test -s conftest.$ac_objext; then
  6886. ac_cv_prog_cxx_g=yes
  6887. else
  6888. $as_echo "$as_me: failed program was:" >&5
  6889. sed 's/^/| /' conftest.$ac_ext >&5
  6890. fi
  6891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6892. fi
  6893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6894. fi
  6895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6896. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6897. fi
  6898. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  6899. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6900. if test "$ac_test_CXXFLAGS" = set; then
  6901. CXXFLAGS=$ac_save_CXXFLAGS
  6902. elif test $ac_cv_prog_cxx_g = yes; then
  6903. if test "$GXX" = yes; then
  6904. CXXFLAGS="-g -O2"
  6905. else
  6906. CXXFLAGS="-g"
  6907. fi
  6908. else
  6909. if test "$GXX" = yes; then
  6910. CXXFLAGS="-O2"
  6911. else
  6912. CXXFLAGS=
  6913. fi
  6914. fi
  6915. ac_ext=cpp
  6916. ac_cpp='$CXXCPP $CPPFLAGS'
  6917. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6918. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6919. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6920. depcc="$CXX" am_compiler_list=
  6921. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  6922. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6923. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  6924. $as_echo_n "(cached) " >&6
  6925. else
  6926. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6927. # We make a subdir and do the tests there. Otherwise we can end up
  6928. # making bogus files that we don't know about and never remove. For
  6929. # instance it was reported that on HP-UX the gcc test will end up
  6930. # making a dummy file named `D' -- because `-MD' means `put the output
  6931. # in D'.
  6932. mkdir conftest.dir
  6933. # Copy depcomp to subdir because otherwise we won't find it if we're
  6934. # using a relative directory.
  6935. cp "$am_depcomp" conftest.dir
  6936. cd conftest.dir
  6937. # We will build objects and dependencies in a subdirectory because
  6938. # it helps to detect inapplicable dependency modes. For instance
  6939. # both Tru64's cc and ICC support -MD to output dependencies as a
  6940. # side effect of compilation, but ICC will put the dependencies in
  6941. # the current directory while Tru64 will put them in the object
  6942. # directory.
  6943. mkdir sub
  6944. am_cv_CXX_dependencies_compiler_type=none
  6945. if test "$am_compiler_list" = ""; then
  6946. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6947. fi
  6948. for depmode in $am_compiler_list; do
  6949. # Setup a source with many dependencies, because some compilers
  6950. # like to wrap large dependency lists on column 80 (with \), and
  6951. # we should not choose a depcomp mode which is confused by this.
  6952. #
  6953. # We need to recreate these files for each test, as the compiler may
  6954. # overwrite some of them when testing with obscure command lines.
  6955. # This happens at least with the AIX C compiler.
  6956. : > sub/conftest.c
  6957. for i in 1 2 3 4 5 6; do
  6958. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6959. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6960. # Solaris 8's {/usr,}/bin/sh.
  6961. touch sub/conftst$i.h
  6962. done
  6963. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6964. case $depmode in
  6965. nosideeffect)
  6966. # after this tag, mechanisms are not by side-effect, so they'll
  6967. # only be used when explicitly requested
  6968. if test "x$enable_dependency_tracking" = xyes; then
  6969. continue
  6970. else
  6971. break
  6972. fi
  6973. ;;
  6974. none) break ;;
  6975. esac
  6976. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6977. # mode. It turns out that the SunPro C++ compiler does not properly
  6978. # handle `-M -o', and we need to detect this.
  6979. if depmode=$depmode \
  6980. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6981. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6982. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6983. >/dev/null 2>conftest.err &&
  6984. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6985. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6986. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6987. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6988. # icc doesn't choke on unknown options, it will just issue warnings
  6989. # or remarks (even with -Werror). So we grep stderr for any message
  6990. # that says an option was ignored or not supported.
  6991. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6992. # icc: Command line warning: ignoring option '-M'; no argument required
  6993. # The diagnosis changed in icc 8.0:
  6994. # icc: Command line remark: option '-MP' not supported
  6995. if (grep 'ignoring option' conftest.err ||
  6996. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6997. am_cv_CXX_dependencies_compiler_type=$depmode
  6998. break
  6999. fi
  7000. fi
  7001. done
  7002. cd ..
  7003. rm -rf conftest.dir
  7004. else
  7005. am_cv_CXX_dependencies_compiler_type=none
  7006. fi
  7007. fi
  7008. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7009. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7010. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7011. if
  7012. test "x$enable_dependency_tracking" != xno \
  7013. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7014. am__fastdepCXX_TRUE=
  7015. am__fastdepCXX_FALSE='#'
  7016. else
  7017. am__fastdepCXX_TRUE='#'
  7018. am__fastdepCXX_FALSE=
  7019. fi
  7020. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7021. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7022. (test "X$CXX" != "Xg++"))) ; then
  7023. ac_ext=cpp
  7024. ac_cpp='$CXXCPP $CPPFLAGS'
  7025. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7026. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7027. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7028. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  7029. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7030. if test -z "$CXXCPP"; then
  7031. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  7032. $as_echo_n "(cached) " >&6
  7033. else
  7034. # Double quotes because CXXCPP needs to be expanded
  7035. for CXXCPP in "$CXX -E" "/lib/cpp"
  7036. do
  7037. ac_preproc_ok=false
  7038. for ac_cxx_preproc_warn_flag in '' yes
  7039. do
  7040. # Use a header file that comes with gcc, so configuring glibc
  7041. # with a fresh cross-compiler works.
  7042. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7043. # <limits.h> exists even on freestanding compilers.
  7044. # On the NeXT, cc -E runs the code through the compiler's parser,
  7045. # not just through cpp. "Syntax error" is here to catch this case.
  7046. cat >conftest.$ac_ext <<_ACEOF
  7047. /* confdefs.h. */
  7048. _ACEOF
  7049. cat confdefs.h >>conftest.$ac_ext
  7050. cat >>conftest.$ac_ext <<_ACEOF
  7051. /* end confdefs.h. */
  7052. #ifdef __STDC__
  7053. # include <limits.h>
  7054. #else
  7055. # include <assert.h>
  7056. #endif
  7057. Syntax error
  7058. _ACEOF
  7059. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7060. case "(($ac_try" in
  7061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7062. *) ac_try_echo=$ac_try;;
  7063. esac
  7064. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7065. $as_echo "$ac_try_echo") >&5
  7066. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7067. ac_status=$?
  7068. grep -v '^ *+' conftest.er1 >conftest.err
  7069. rm -f conftest.er1
  7070. cat conftest.err >&5
  7071. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7072. (exit $ac_status); } >/dev/null && {
  7073. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7074. test ! -s conftest.err
  7075. }; then
  7076. :
  7077. else
  7078. $as_echo "$as_me: failed program was:" >&5
  7079. sed 's/^/| /' conftest.$ac_ext >&5
  7080. # Broken: fails on valid input.
  7081. continue
  7082. fi
  7083. rm -f conftest.err conftest.$ac_ext
  7084. # OK, works on sane cases. Now check whether nonexistent headers
  7085. # can be detected and how.
  7086. cat >conftest.$ac_ext <<_ACEOF
  7087. /* confdefs.h. */
  7088. _ACEOF
  7089. cat confdefs.h >>conftest.$ac_ext
  7090. cat >>conftest.$ac_ext <<_ACEOF
  7091. /* end confdefs.h. */
  7092. #include <ac_nonexistent.h>
  7093. _ACEOF
  7094. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7095. case "(($ac_try" in
  7096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7097. *) ac_try_echo=$ac_try;;
  7098. esac
  7099. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7100. $as_echo "$ac_try_echo") >&5
  7101. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7102. ac_status=$?
  7103. grep -v '^ *+' conftest.er1 >conftest.err
  7104. rm -f conftest.er1
  7105. cat conftest.err >&5
  7106. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7107. (exit $ac_status); } >/dev/null && {
  7108. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7109. test ! -s conftest.err
  7110. }; then
  7111. # Broken: success on invalid input.
  7112. continue
  7113. else
  7114. $as_echo "$as_me: failed program was:" >&5
  7115. sed 's/^/| /' conftest.$ac_ext >&5
  7116. # Passes both tests.
  7117. ac_preproc_ok=:
  7118. break
  7119. fi
  7120. rm -f conftest.err conftest.$ac_ext
  7121. done
  7122. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7123. rm -f conftest.err conftest.$ac_ext
  7124. if $ac_preproc_ok; then
  7125. break
  7126. fi
  7127. done
  7128. ac_cv_prog_CXXCPP=$CXXCPP
  7129. fi
  7130. CXXCPP=$ac_cv_prog_CXXCPP
  7131. else
  7132. ac_cv_prog_CXXCPP=$CXXCPP
  7133. fi
  7134. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  7135. $as_echo "$CXXCPP" >&6; }
  7136. ac_preproc_ok=false
  7137. for ac_cxx_preproc_warn_flag in '' yes
  7138. do
  7139. # Use a header file that comes with gcc, so configuring glibc
  7140. # with a fresh cross-compiler works.
  7141. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7142. # <limits.h> exists even on freestanding compilers.
  7143. # On the NeXT, cc -E runs the code through the compiler's parser,
  7144. # not just through cpp. "Syntax error" is here to catch this case.
  7145. cat >conftest.$ac_ext <<_ACEOF
  7146. /* confdefs.h. */
  7147. _ACEOF
  7148. cat confdefs.h >>conftest.$ac_ext
  7149. cat >>conftest.$ac_ext <<_ACEOF
  7150. /* end confdefs.h. */
  7151. #ifdef __STDC__
  7152. # include <limits.h>
  7153. #else
  7154. # include <assert.h>
  7155. #endif
  7156. Syntax error
  7157. _ACEOF
  7158. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7159. case "(($ac_try" in
  7160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7161. *) ac_try_echo=$ac_try;;
  7162. esac
  7163. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7164. $as_echo "$ac_try_echo") >&5
  7165. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7166. ac_status=$?
  7167. grep -v '^ *+' conftest.er1 >conftest.err
  7168. rm -f conftest.er1
  7169. cat conftest.err >&5
  7170. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7171. (exit $ac_status); } >/dev/null && {
  7172. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7173. test ! -s conftest.err
  7174. }; then
  7175. :
  7176. else
  7177. $as_echo "$as_me: failed program was:" >&5
  7178. sed 's/^/| /' conftest.$ac_ext >&5
  7179. # Broken: fails on valid input.
  7180. continue
  7181. fi
  7182. rm -f conftest.err conftest.$ac_ext
  7183. # OK, works on sane cases. Now check whether nonexistent headers
  7184. # can be detected and how.
  7185. cat >conftest.$ac_ext <<_ACEOF
  7186. /* confdefs.h. */
  7187. _ACEOF
  7188. cat confdefs.h >>conftest.$ac_ext
  7189. cat >>conftest.$ac_ext <<_ACEOF
  7190. /* end confdefs.h. */
  7191. #include <ac_nonexistent.h>
  7192. _ACEOF
  7193. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7194. case "(($ac_try" in
  7195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7196. *) ac_try_echo=$ac_try;;
  7197. esac
  7198. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7199. $as_echo "$ac_try_echo") >&5
  7200. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7201. ac_status=$?
  7202. grep -v '^ *+' conftest.er1 >conftest.err
  7203. rm -f conftest.er1
  7204. cat conftest.err >&5
  7205. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7206. (exit $ac_status); } >/dev/null && {
  7207. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7208. test ! -s conftest.err
  7209. }; then
  7210. # Broken: success on invalid input.
  7211. continue
  7212. else
  7213. $as_echo "$as_me: failed program was:" >&5
  7214. sed 's/^/| /' conftest.$ac_ext >&5
  7215. # Passes both tests.
  7216. ac_preproc_ok=:
  7217. break
  7218. fi
  7219. rm -f conftest.err conftest.$ac_ext
  7220. done
  7221. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7222. rm -f conftest.err conftest.$ac_ext
  7223. if $ac_preproc_ok; then
  7224. :
  7225. else
  7226. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7227. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7228. _lt_caught_CXX_error=yes; }
  7229. fi
  7230. ac_ext=cpp
  7231. ac_cpp='$CXXCPP $CPPFLAGS'
  7232. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7233. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7234. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7235. else
  7236. _lt_caught_CXX_error=yes
  7237. fi
  7238. # Set options
  7239. enable_dlopen=no
  7240. enable_win32_dll=no
  7241. # Check whether --with-pic was given.
  7242. if test "${with_pic+set}" = set; then
  7243. withval=$with_pic; pic_mode="$withval"
  7244. else
  7245. pic_mode=default
  7246. fi
  7247. test -z "$pic_mode" && pic_mode=default
  7248. # Check whether --enable-fast-install was given.
  7249. if test "${enable_fast_install+set}" = set; then
  7250. enableval=$enable_fast_install; p=${PACKAGE-default}
  7251. case $enableval in
  7252. yes) enable_fast_install=yes ;;
  7253. no) enable_fast_install=no ;;
  7254. *)
  7255. enable_fast_install=no
  7256. # Look at the argument we got. We use all the common list separators.
  7257. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7258. for pkg in $enableval; do
  7259. IFS="$lt_save_ifs"
  7260. if test "X$pkg" = "X$p"; then
  7261. enable_fast_install=yes
  7262. fi
  7263. done
  7264. IFS="$lt_save_ifs"
  7265. ;;
  7266. esac
  7267. else
  7268. enable_fast_install=yes
  7269. fi
  7270. # This can be used to rebuild libtool when needed
  7271. LIBTOOL_DEPS="$ltmain"
  7272. # Always use our own libtool.
  7273. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7274. test -z "$LN_S" && LN_S="ln -s"
  7275. if test -n "${ZSH_VERSION+set}" ; then
  7276. setopt NO_GLOB_SUBST
  7277. fi
  7278. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7279. $as_echo_n "checking for objdir... " >&6; }
  7280. if test "${lt_cv_objdir+set}" = set; then
  7281. $as_echo_n "(cached) " >&6
  7282. else
  7283. rm -f .libs 2>/dev/null
  7284. mkdir .libs 2>/dev/null
  7285. if test -d .libs; then
  7286. lt_cv_objdir=.libs
  7287. else
  7288. # MS-DOS does not allow filenames that begin with a dot.
  7289. lt_cv_objdir=_libs
  7290. fi
  7291. rmdir .libs 2>/dev/null
  7292. fi
  7293. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7294. $as_echo "$lt_cv_objdir" >&6; }
  7295. objdir=$lt_cv_objdir
  7296. cat >>confdefs.h <<_ACEOF
  7297. #define LT_OBJDIR "$lt_cv_objdir/"
  7298. _ACEOF
  7299. case $host_os in
  7300. aix3*)
  7301. # AIX sometimes has problems with the GCC collect2 program. For some
  7302. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7303. # vanish in a puff of smoke.
  7304. if test "X${COLLECT_NAMES+set}" != Xset; then
  7305. COLLECT_NAMES=
  7306. export COLLECT_NAMES
  7307. fi
  7308. ;;
  7309. esac
  7310. # Sed substitution that helps us do robust quoting. It backslashifies
  7311. # metacharacters that are still active within double-quoted strings.
  7312. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7313. # Same as above, but do not quote variable references.
  7314. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7315. # Sed substitution to delay expansion of an escaped shell variable in a
  7316. # double_quote_subst'ed string.
  7317. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7318. # Sed substitution to delay expansion of an escaped single quote.
  7319. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7320. # Sed substitution to avoid accidental globbing in evaled expressions
  7321. no_glob_subst='s/\*/\\\*/g'
  7322. # Global variables:
  7323. ofile=libtool
  7324. can_build_shared=yes
  7325. # All known linkers require a `.a' archive for static linking (except MSVC,
  7326. # which needs '.lib').
  7327. libext=a
  7328. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7329. old_CC="$CC"
  7330. old_CFLAGS="$CFLAGS"
  7331. # Set sane defaults for various variables
  7332. test -z "$CC" && CC=cc
  7333. test -z "$LTCC" && LTCC=$CC
  7334. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7335. test -z "$LD" && LD=ld
  7336. test -z "$ac_objext" && ac_objext=o
  7337. for cc_temp in $compiler""; do
  7338. case $cc_temp in
  7339. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7340. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7341. \-*) ;;
  7342. *) break;;
  7343. esac
  7344. done
  7345. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7346. # Only perform the check for file, if the check method requires it
  7347. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7348. case $deplibs_check_method in
  7349. file_magic*)
  7350. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7351. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7352. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7353. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7354. $as_echo_n "(cached) " >&6
  7355. else
  7356. case $MAGIC_CMD in
  7357. [\\/*] | ?:[\\/]*)
  7358. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7359. ;;
  7360. *)
  7361. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7362. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7363. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7364. for ac_dir in $ac_dummy; do
  7365. IFS="$lt_save_ifs"
  7366. test -z "$ac_dir" && ac_dir=.
  7367. if test -f $ac_dir/${ac_tool_prefix}file; then
  7368. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7369. if test -n "$file_magic_test_file"; then
  7370. case $deplibs_check_method in
  7371. "file_magic "*)
  7372. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7373. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7374. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7375. $EGREP "$file_magic_regex" > /dev/null; then
  7376. :
  7377. else
  7378. cat <<_LT_EOF 1>&2
  7379. *** Warning: the command libtool uses to detect shared libraries,
  7380. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7381. *** The result is that libtool may fail to recognize shared libraries
  7382. *** as such. This will affect the creation of libtool libraries that
  7383. *** depend on shared libraries, but programs linked with such libtool
  7384. *** libraries will work regardless of this problem. Nevertheless, you
  7385. *** may want to report the problem to your system manager and/or to
  7386. *** [email protected]
  7387. _LT_EOF
  7388. fi ;;
  7389. esac
  7390. fi
  7391. break
  7392. fi
  7393. done
  7394. IFS="$lt_save_ifs"
  7395. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7396. ;;
  7397. esac
  7398. fi
  7399. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7400. if test -n "$MAGIC_CMD"; then
  7401. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7402. $as_echo "$MAGIC_CMD" >&6; }
  7403. else
  7404. { $as_echo "$as_me:$LINENO: result: no" >&5
  7405. $as_echo "no" >&6; }
  7406. fi
  7407. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7408. if test -n "$ac_tool_prefix"; then
  7409. { $as_echo "$as_me:$LINENO: checking for file" >&5
  7410. $as_echo_n "checking for file... " >&6; }
  7411. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7412. $as_echo_n "(cached) " >&6
  7413. else
  7414. case $MAGIC_CMD in
  7415. [\\/*] | ?:[\\/]*)
  7416. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7417. ;;
  7418. *)
  7419. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7420. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7421. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7422. for ac_dir in $ac_dummy; do
  7423. IFS="$lt_save_ifs"
  7424. test -z "$ac_dir" && ac_dir=.
  7425. if test -f $ac_dir/file; then
  7426. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7427. if test -n "$file_magic_test_file"; then
  7428. case $deplibs_check_method in
  7429. "file_magic "*)
  7430. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7431. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7432. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7433. $EGREP "$file_magic_regex" > /dev/null; then
  7434. :
  7435. else
  7436. cat <<_LT_EOF 1>&2
  7437. *** Warning: the command libtool uses to detect shared libraries,
  7438. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7439. *** The result is that libtool may fail to recognize shared libraries
  7440. *** as such. This will affect the creation of libtool libraries that
  7441. *** depend on shared libraries, but programs linked with such libtool
  7442. *** libraries will work regardless of this problem. Nevertheless, you
  7443. *** may want to report the problem to your system manager and/or to
  7444. *** [email protected]
  7445. _LT_EOF
  7446. fi ;;
  7447. esac
  7448. fi
  7449. break
  7450. fi
  7451. done
  7452. IFS="$lt_save_ifs"
  7453. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7454. ;;
  7455. esac
  7456. fi
  7457. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7458. if test -n "$MAGIC_CMD"; then
  7459. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7460. $as_echo "$MAGIC_CMD" >&6; }
  7461. else
  7462. { $as_echo "$as_me:$LINENO: result: no" >&5
  7463. $as_echo "no" >&6; }
  7464. fi
  7465. else
  7466. MAGIC_CMD=:
  7467. fi
  7468. fi
  7469. fi
  7470. ;;
  7471. esac
  7472. # Use C for the default configuration in the libtool script
  7473. lt_save_CC="$CC"
  7474. ac_ext=c
  7475. ac_cpp='$CPP $CPPFLAGS'
  7476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7479. # Source file extension for C test sources.
  7480. ac_ext=c
  7481. # Object file extension for compiled C test sources.
  7482. objext=o
  7483. objext=$objext
  7484. # Code to be used in simple compile tests
  7485. lt_simple_compile_test_code="int some_variable = 0;"
  7486. # Code to be used in simple link tests
  7487. lt_simple_link_test_code='int main(){return(0);}'
  7488. # If no C compiler was specified, use CC.
  7489. LTCC=${LTCC-"$CC"}
  7490. # If no C compiler flags were specified, use CFLAGS.
  7491. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7492. # Allow CC to be a program name with arguments.
  7493. compiler=$CC
  7494. # Save the default compiler, since it gets overwritten when the other
  7495. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7496. compiler_DEFAULT=$CC
  7497. # save warnings/boilerplate of simple test code
  7498. ac_outfile=conftest.$ac_objext
  7499. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7500. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7501. _lt_compiler_boilerplate=`cat conftest.err`
  7502. $RM conftest*
  7503. ac_outfile=conftest.$ac_objext
  7504. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7505. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7506. _lt_linker_boilerplate=`cat conftest.err`
  7507. $RM -r conftest*
  7508. ## CAVEAT EMPTOR:
  7509. ## There is no encapsulation within the following macros, do not change
  7510. ## the running order or otherwise move them around unless you know exactly
  7511. ## what you are doing...
  7512. if test -n "$compiler"; then
  7513. lt_prog_compiler_no_builtin_flag=
  7514. if test "$GCC" = yes; then
  7515. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7516. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7517. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7518. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7519. $as_echo_n "(cached) " >&6
  7520. else
  7521. lt_cv_prog_compiler_rtti_exceptions=no
  7522. ac_outfile=conftest.$ac_objext
  7523. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7524. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7525. # Insert the option either (1) after the last *FLAGS variable, or
  7526. # (2) before a word containing "conftest.", or (3) at the end.
  7527. # Note that $ac_compile itself does not contain backslashes and begins
  7528. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7529. # The option is referenced via a variable to avoid confusing sed.
  7530. lt_compile=`echo "$ac_compile" | $SED \
  7531. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7532. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7533. -e 's:$: $lt_compiler_flag:'`
  7534. (eval echo "\"\$as_me:8644: $lt_compile\"" >&5)
  7535. (eval "$lt_compile" 2>conftest.err)
  7536. ac_status=$?
  7537. cat conftest.err >&5
  7538. echo "$as_me:8648: \$? = $ac_status" >&5
  7539. if (exit $ac_status) && test -s "$ac_outfile"; then
  7540. # The compiler can only warn and ignore the option if not recognized
  7541. # So say no if there are warnings other than the usual output.
  7542. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7543. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7544. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7545. lt_cv_prog_compiler_rtti_exceptions=yes
  7546. fi
  7547. fi
  7548. $RM conftest*
  7549. fi
  7550. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7551. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7552. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7553. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7554. else
  7555. :
  7556. fi
  7557. fi
  7558. lt_prog_compiler_wl=
  7559. lt_prog_compiler_pic=
  7560. lt_prog_compiler_static=
  7561. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7562. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7563. if test "$GCC" = yes; then
  7564. lt_prog_compiler_wl='-Wl,'
  7565. lt_prog_compiler_static='-static'
  7566. case $host_os in
  7567. aix*)
  7568. # All AIX code is PIC.
  7569. if test "$host_cpu" = ia64; then
  7570. # AIX 5 now supports IA64 processor
  7571. lt_prog_compiler_static='-Bstatic'
  7572. fi
  7573. ;;
  7574. amigaos*)
  7575. case $host_cpu in
  7576. powerpc)
  7577. # see comment about AmigaOS4 .so support
  7578. lt_prog_compiler_pic='-fPIC'
  7579. ;;
  7580. m68k)
  7581. # FIXME: we need at least 68020 code to build shared libraries, but
  7582. # adding the `-m68020' flag to GCC prevents building anything better,
  7583. # like `-m68040'.
  7584. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7585. ;;
  7586. esac
  7587. ;;
  7588. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7589. # PIC is the default for these OSes.
  7590. ;;
  7591. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7592. # This hack is so that the source file can tell whether it is being
  7593. # built for inclusion in a dll (and should export symbols for example).
  7594. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7595. # (--disable-auto-import) libraries
  7596. lt_prog_compiler_pic='-DDLL_EXPORT'
  7597. ;;
  7598. darwin* | rhapsody*)
  7599. # PIC is the default on this platform
  7600. # Common symbols not allowed in MH_DYLIB files
  7601. lt_prog_compiler_pic='-fno-common'
  7602. ;;
  7603. hpux*)
  7604. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7605. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7606. # sets the default TLS model and affects inlining.
  7607. case $host_cpu in
  7608. hppa*64*)
  7609. # +Z the default
  7610. ;;
  7611. *)
  7612. lt_prog_compiler_pic='-fPIC'
  7613. ;;
  7614. esac
  7615. ;;
  7616. interix[3-9]*)
  7617. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7618. # Instead, we relocate shared libraries at runtime.
  7619. ;;
  7620. msdosdjgpp*)
  7621. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7622. # on systems that don't support them.
  7623. lt_prog_compiler_can_build_shared=no
  7624. enable_shared=no
  7625. ;;
  7626. *nto* | *qnx*)
  7627. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7628. # it will coredump.
  7629. lt_prog_compiler_pic='-fPIC -shared'
  7630. ;;
  7631. sysv4*MP*)
  7632. if test -d /usr/nec; then
  7633. lt_prog_compiler_pic=-Kconform_pic
  7634. fi
  7635. ;;
  7636. *)
  7637. lt_prog_compiler_pic='-fPIC'
  7638. ;;
  7639. esac
  7640. else
  7641. # PORTME Check for flag to pass linker flags through the system compiler.
  7642. case $host_os in
  7643. aix*)
  7644. lt_prog_compiler_wl='-Wl,'
  7645. if test "$host_cpu" = ia64; then
  7646. # AIX 5 now supports IA64 processor
  7647. lt_prog_compiler_static='-Bstatic'
  7648. else
  7649. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7650. fi
  7651. ;;
  7652. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7653. # This hack is so that the source file can tell whether it is being
  7654. # built for inclusion in a dll (and should export symbols for example).
  7655. lt_prog_compiler_pic='-DDLL_EXPORT'
  7656. ;;
  7657. hpux9* | hpux10* | hpux11*)
  7658. lt_prog_compiler_wl='-Wl,'
  7659. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7660. # not for PA HP-UX.
  7661. case $host_cpu in
  7662. hppa*64*|ia64*)
  7663. # +Z the default
  7664. ;;
  7665. *)
  7666. lt_prog_compiler_pic='+Z'
  7667. ;;
  7668. esac
  7669. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7670. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7671. ;;
  7672. irix5* | irix6* | nonstopux*)
  7673. lt_prog_compiler_wl='-Wl,'
  7674. # PIC (with -KPIC) is the default.
  7675. lt_prog_compiler_static='-non_shared'
  7676. ;;
  7677. linux* | k*bsd*-gnu)
  7678. case $cc_basename in
  7679. # old Intel for x86_64 which still supported -KPIC.
  7680. ecc*)
  7681. lt_prog_compiler_wl='-Wl,'
  7682. lt_prog_compiler_pic='-KPIC'
  7683. lt_prog_compiler_static='-static'
  7684. ;;
  7685. # icc used to be incompatible with GCC.
  7686. # ICC 10 doesn't accept -KPIC any more.
  7687. icc* | ifort*)
  7688. lt_prog_compiler_wl='-Wl,'
  7689. lt_prog_compiler_pic='-fPIC'
  7690. lt_prog_compiler_static='-static'
  7691. ;;
  7692. # Lahey Fortran 8.1.
  7693. lf95*)
  7694. lt_prog_compiler_wl='-Wl,'
  7695. lt_prog_compiler_pic='--shared'
  7696. lt_prog_compiler_static='--static'
  7697. ;;
  7698. pgcc* | pgf77* | pgf90* | pgf95*)
  7699. # Portland Group compilers (*not* the Pentium gcc compiler,
  7700. # which looks to be a dead project)
  7701. lt_prog_compiler_wl='-Wl,'
  7702. lt_prog_compiler_pic='-fpic'
  7703. lt_prog_compiler_static='-Bstatic'
  7704. ;;
  7705. ccc*)
  7706. lt_prog_compiler_wl='-Wl,'
  7707. # All Alpha code is PIC.
  7708. lt_prog_compiler_static='-non_shared'
  7709. ;;
  7710. xl*)
  7711. # IBM XL C 8.0/Fortran 10.1 on PPC
  7712. lt_prog_compiler_wl='-Wl,'
  7713. lt_prog_compiler_pic='-qpic'
  7714. lt_prog_compiler_static='-qstaticlink'
  7715. ;;
  7716. *)
  7717. case `$CC -V 2>&1 | sed 5q` in
  7718. *Sun\ C*)
  7719. # Sun C 5.9
  7720. lt_prog_compiler_pic='-KPIC'
  7721. lt_prog_compiler_static='-Bstatic'
  7722. lt_prog_compiler_wl='-Wl,'
  7723. ;;
  7724. *Sun\ F*)
  7725. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7726. lt_prog_compiler_pic='-KPIC'
  7727. lt_prog_compiler_static='-Bstatic'
  7728. lt_prog_compiler_wl=''
  7729. ;;
  7730. esac
  7731. ;;
  7732. esac
  7733. ;;
  7734. newsos6)
  7735. lt_prog_compiler_pic='-KPIC'
  7736. lt_prog_compiler_static='-Bstatic'
  7737. ;;
  7738. *nto* | *qnx*)
  7739. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7740. # it will coredump.
  7741. lt_prog_compiler_pic='-fPIC -shared'
  7742. ;;
  7743. osf3* | osf4* | osf5*)
  7744. lt_prog_compiler_wl='-Wl,'
  7745. # All OSF/1 code is PIC.
  7746. lt_prog_compiler_static='-non_shared'
  7747. ;;
  7748. rdos*)
  7749. lt_prog_compiler_static='-non_shared'
  7750. ;;
  7751. solaris*)
  7752. lt_prog_compiler_pic='-KPIC'
  7753. lt_prog_compiler_static='-Bstatic'
  7754. case $cc_basename in
  7755. f77* | f90* | f95*)
  7756. lt_prog_compiler_wl='-Qoption ld ';;
  7757. *)
  7758. lt_prog_compiler_wl='-Wl,';;
  7759. esac
  7760. ;;
  7761. sunos4*)
  7762. lt_prog_compiler_wl='-Qoption ld '
  7763. lt_prog_compiler_pic='-PIC'
  7764. lt_prog_compiler_static='-Bstatic'
  7765. ;;
  7766. sysv4 | sysv4.2uw2* | sysv4.3*)
  7767. lt_prog_compiler_wl='-Wl,'
  7768. lt_prog_compiler_pic='-KPIC'
  7769. lt_prog_compiler_static='-Bstatic'
  7770. ;;
  7771. sysv4*MP*)
  7772. if test -d /usr/nec ;then
  7773. lt_prog_compiler_pic='-Kconform_pic'
  7774. lt_prog_compiler_static='-Bstatic'
  7775. fi
  7776. ;;
  7777. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7778. lt_prog_compiler_wl='-Wl,'
  7779. lt_prog_compiler_pic='-KPIC'
  7780. lt_prog_compiler_static='-Bstatic'
  7781. ;;
  7782. unicos*)
  7783. lt_prog_compiler_wl='-Wl,'
  7784. lt_prog_compiler_can_build_shared=no
  7785. ;;
  7786. uts4*)
  7787. lt_prog_compiler_pic='-pic'
  7788. lt_prog_compiler_static='-Bstatic'
  7789. ;;
  7790. *)
  7791. lt_prog_compiler_can_build_shared=no
  7792. ;;
  7793. esac
  7794. fi
  7795. case $host_os in
  7796. # For platforms which do not support PIC, -DPIC is meaningless:
  7797. *djgpp*)
  7798. lt_prog_compiler_pic=
  7799. ;;
  7800. *)
  7801. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7802. ;;
  7803. esac
  7804. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7805. $as_echo "$lt_prog_compiler_pic" >&6; }
  7806. #
  7807. # Check to make sure the PIC flag actually works.
  7808. #
  7809. if test -n "$lt_prog_compiler_pic"; then
  7810. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7811. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7812. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  7813. $as_echo_n "(cached) " >&6
  7814. else
  7815. lt_cv_prog_compiler_pic_works=no
  7816. ac_outfile=conftest.$ac_objext
  7817. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7818. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7819. # Insert the option either (1) after the last *FLAGS variable, or
  7820. # (2) before a word containing "conftest.", or (3) at the end.
  7821. # Note that $ac_compile itself does not contain backslashes and begins
  7822. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7823. # The option is referenced via a variable to avoid confusing sed.
  7824. lt_compile=`echo "$ac_compile" | $SED \
  7825. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7826. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7827. -e 's:$: $lt_compiler_flag:'`
  7828. (eval echo "\"\$as_me:8983: $lt_compile\"" >&5)
  7829. (eval "$lt_compile" 2>conftest.err)
  7830. ac_status=$?
  7831. cat conftest.err >&5
  7832. echo "$as_me:8987: \$? = $ac_status" >&5
  7833. if (exit $ac_status) && test -s "$ac_outfile"; then
  7834. # The compiler can only warn and ignore the option if not recognized
  7835. # So say no if there are warnings other than the usual output.
  7836. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7837. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7838. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7839. lt_cv_prog_compiler_pic_works=yes
  7840. fi
  7841. fi
  7842. $RM conftest*
  7843. fi
  7844. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  7845. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7846. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7847. case $lt_prog_compiler_pic in
  7848. "" | " "*) ;;
  7849. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7850. esac
  7851. else
  7852. lt_prog_compiler_pic=
  7853. lt_prog_compiler_can_build_shared=no
  7854. fi
  7855. fi
  7856. #
  7857. # Check to make sure the static flag actually works.
  7858. #
  7859. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7860. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7861. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7862. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  7863. $as_echo_n "(cached) " >&6
  7864. else
  7865. lt_cv_prog_compiler_static_works=no
  7866. save_LDFLAGS="$LDFLAGS"
  7867. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7868. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7869. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7870. # The linker can only warn and ignore the option if not recognized
  7871. # So say no if there are warnings
  7872. if test -s conftest.err; then
  7873. # Append any errors to the config.log.
  7874. cat conftest.err 1>&5
  7875. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7876. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7877. if diff conftest.exp conftest.er2 >/dev/null; then
  7878. lt_cv_prog_compiler_static_works=yes
  7879. fi
  7880. else
  7881. lt_cv_prog_compiler_static_works=yes
  7882. fi
  7883. fi
  7884. $RM -r conftest*
  7885. LDFLAGS="$save_LDFLAGS"
  7886. fi
  7887. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  7888. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7889. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7890. :
  7891. else
  7892. lt_prog_compiler_static=
  7893. fi
  7894. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7895. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7896. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7897. $as_echo_n "(cached) " >&6
  7898. else
  7899. lt_cv_prog_compiler_c_o=no
  7900. $RM -r conftest 2>/dev/null
  7901. mkdir conftest
  7902. cd conftest
  7903. mkdir out
  7904. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7905. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7906. # Insert the option either (1) after the last *FLAGS variable, or
  7907. # (2) before a word containing "conftest.", or (3) at the end.
  7908. # Note that $ac_compile itself does not contain backslashes and begins
  7909. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7910. lt_compile=`echo "$ac_compile" | $SED \
  7911. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7912. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7913. -e 's:$: $lt_compiler_flag:'`
  7914. (eval echo "\"\$as_me:9088: $lt_compile\"" >&5)
  7915. (eval "$lt_compile" 2>out/conftest.err)
  7916. ac_status=$?
  7917. cat out/conftest.err >&5
  7918. echo "$as_me:9092: \$? = $ac_status" >&5
  7919. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7920. then
  7921. # The compiler can only warn and ignore the option if not recognized
  7922. # So say no if there are warnings
  7923. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7924. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7925. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7926. lt_cv_prog_compiler_c_o=yes
  7927. fi
  7928. fi
  7929. chmod u+w . 2>&5
  7930. $RM conftest*
  7931. # SGI C++ compiler will create directory out/ii_files/ for
  7932. # template instantiation
  7933. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7934. $RM out/* && rmdir out
  7935. cd ..
  7936. $RM -r conftest
  7937. $RM conftest*
  7938. fi
  7939. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7940. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7941. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7942. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7943. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7944. $as_echo_n "(cached) " >&6
  7945. else
  7946. lt_cv_prog_compiler_c_o=no
  7947. $RM -r conftest 2>/dev/null
  7948. mkdir conftest
  7949. cd conftest
  7950. mkdir out
  7951. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7952. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7953. # Insert the option either (1) after the last *FLAGS variable, or
  7954. # (2) before a word containing "conftest.", or (3) at the end.
  7955. # Note that $ac_compile itself does not contain backslashes and begins
  7956. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7957. lt_compile=`echo "$ac_compile" | $SED \
  7958. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7959. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7960. -e 's:$: $lt_compiler_flag:'`
  7961. (eval echo "\"\$as_me:9143: $lt_compile\"" >&5)
  7962. (eval "$lt_compile" 2>out/conftest.err)
  7963. ac_status=$?
  7964. cat out/conftest.err >&5
  7965. echo "$as_me:9147: \$? = $ac_status" >&5
  7966. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7967. then
  7968. # The compiler can only warn and ignore the option if not recognized
  7969. # So say no if there are warnings
  7970. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7971. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7972. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7973. lt_cv_prog_compiler_c_o=yes
  7974. fi
  7975. fi
  7976. chmod u+w . 2>&5
  7977. $RM conftest*
  7978. # SGI C++ compiler will create directory out/ii_files/ for
  7979. # template instantiation
  7980. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7981. $RM out/* && rmdir out
  7982. cd ..
  7983. $RM -r conftest
  7984. $RM conftest*
  7985. fi
  7986. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7987. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7988. hard_links="nottested"
  7989. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7990. # do not overwrite the value of need_locks provided by the user
  7991. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7992. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7993. hard_links=yes
  7994. $RM conftest*
  7995. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7996. touch conftest.a
  7997. ln conftest.a conftest.b 2>&5 || hard_links=no
  7998. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7999. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  8000. $as_echo "$hard_links" >&6; }
  8001. if test "$hard_links" = no; then
  8002. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8003. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8004. need_locks=warn
  8005. fi
  8006. else
  8007. need_locks=no
  8008. fi
  8009. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8010. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8011. runpath_var=
  8012. allow_undefined_flag=
  8013. always_export_symbols=no
  8014. archive_cmds=
  8015. archive_expsym_cmds=
  8016. compiler_needs_object=no
  8017. enable_shared_with_static_runtimes=no
  8018. export_dynamic_flag_spec=
  8019. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8020. hardcode_automatic=no
  8021. hardcode_direct=no
  8022. hardcode_direct_absolute=no
  8023. hardcode_libdir_flag_spec=
  8024. hardcode_libdir_flag_spec_ld=
  8025. hardcode_libdir_separator=
  8026. hardcode_minus_L=no
  8027. hardcode_shlibpath_var=unsupported
  8028. inherit_rpath=no
  8029. link_all_deplibs=unknown
  8030. module_cmds=
  8031. module_expsym_cmds=
  8032. old_archive_from_new_cmds=
  8033. old_archive_from_expsyms_cmds=
  8034. thread_safe_flag_spec=
  8035. whole_archive_flag_spec=
  8036. # include_expsyms should be a list of space-separated symbols to be *always*
  8037. # included in the symbol list
  8038. include_expsyms=
  8039. # exclude_expsyms can be an extended regexp of symbols to exclude
  8040. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8041. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8042. # as well as any symbol that contains `d'.
  8043. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8044. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8045. # platforms (ab)use it in PIC code, but their linkers get confused if
  8046. # the symbol is explicitly referenced. Since portable code cannot
  8047. # rely on this symbol name, it's probably fine to never include it in
  8048. # preloaded symbol tables.
  8049. # Exclude shared library initialization/finalization symbols.
  8050. extract_expsyms_cmds=
  8051. case $host_os in
  8052. cygwin* | mingw* | pw32* | cegcc*)
  8053. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8054. # When not using gcc, we currently assume that we are using
  8055. # Microsoft Visual C++.
  8056. if test "$GCC" != yes; then
  8057. with_gnu_ld=no
  8058. fi
  8059. ;;
  8060. interix*)
  8061. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8062. with_gnu_ld=yes
  8063. ;;
  8064. openbsd*)
  8065. with_gnu_ld=no
  8066. ;;
  8067. esac
  8068. ld_shlibs=yes
  8069. if test "$with_gnu_ld" = yes; then
  8070. # If archive_cmds runs LD, not CC, wlarc should be empty
  8071. wlarc='${wl}'
  8072. # Set some defaults for GNU ld with shared library support. These
  8073. # are reset later if shared libraries are not supported. Putting them
  8074. # here allows them to be overridden if necessary.
  8075. runpath_var=LD_RUN_PATH
  8076. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8077. export_dynamic_flag_spec='${wl}--export-dynamic'
  8078. # ancient GNU ld didn't support --whole-archive et. al.
  8079. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8080. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8081. else
  8082. whole_archive_flag_spec=
  8083. fi
  8084. supports_anon_versioning=no
  8085. case `$LD -v 2>&1` in
  8086. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8087. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8088. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8089. *\ 2.11.*) ;; # other 2.11 versions
  8090. *) supports_anon_versioning=yes ;;
  8091. esac
  8092. # See if GNU ld supports shared libraries.
  8093. case $host_os in
  8094. aix[3-9]*)
  8095. # On AIX/PPC, the GNU linker is very broken
  8096. if test "$host_cpu" != ia64; then
  8097. ld_shlibs=no
  8098. cat <<_LT_EOF 1>&2
  8099. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8100. *** to be unable to reliably create shared libraries on AIX.
  8101. *** Therefore, libtool is disabling shared libraries support. If you
  8102. *** really care for shared libraries, you may want to modify your PATH
  8103. *** so that a non-GNU linker is found, and then restart.
  8104. _LT_EOF
  8105. fi
  8106. ;;
  8107. amigaos*)
  8108. case $host_cpu in
  8109. powerpc)
  8110. # see comment about AmigaOS4 .so support
  8111. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8112. archive_expsym_cmds=''
  8113. ;;
  8114. m68k)
  8115. 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)'
  8116. hardcode_libdir_flag_spec='-L$libdir'
  8117. hardcode_minus_L=yes
  8118. ;;
  8119. esac
  8120. ;;
  8121. beos*)
  8122. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8123. allow_undefined_flag=unsupported
  8124. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8125. # support --undefined. This deserves some investigation. FIXME
  8126. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8127. else
  8128. ld_shlibs=no
  8129. fi
  8130. ;;
  8131. cygwin* | mingw* | pw32* | cegcc*)
  8132. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8133. # as there is no search path for DLLs.
  8134. hardcode_libdir_flag_spec='-L$libdir'
  8135. allow_undefined_flag=unsupported
  8136. always_export_symbols=no
  8137. enable_shared_with_static_runtimes=yes
  8138. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8139. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8140. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8141. # If the export-symbols file already is a .def file (1st line
  8142. # is EXPORTS), use it as is; otherwise, prepend...
  8143. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8144. cp $export_symbols $output_objdir/$soname.def;
  8145. else
  8146. echo EXPORTS > $output_objdir/$soname.def;
  8147. cat $export_symbols >> $output_objdir/$soname.def;
  8148. fi~
  8149. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8150. else
  8151. ld_shlibs=no
  8152. fi
  8153. ;;
  8154. interix[3-9]*)
  8155. hardcode_direct=no
  8156. hardcode_shlibpath_var=no
  8157. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8158. export_dynamic_flag_spec='${wl}-E'
  8159. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8160. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8161. # default) and relocated if they conflict, which is a slow very memory
  8162. # consuming and fragmenting process. To avoid this, we pick a random,
  8163. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8164. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8165. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8166. 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'
  8167. ;;
  8168. gnu* | linux* | tpf* | k*bsd*-gnu)
  8169. tmp_diet=no
  8170. if test "$host_os" = linux-dietlibc; then
  8171. case $cc_basename in
  8172. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8173. esac
  8174. fi
  8175. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8176. && test "$tmp_diet" = no
  8177. then
  8178. tmp_addflag=
  8179. tmp_sharedflag='-shared'
  8180. case $cc_basename,$host_cpu in
  8181. pgcc*) # Portland Group C compiler
  8182. 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'
  8183. tmp_addflag=' $pic_flag'
  8184. ;;
  8185. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8186. 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'
  8187. tmp_addflag=' $pic_flag -Mnomain' ;;
  8188. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8189. tmp_addflag=' -i_dynamic' ;;
  8190. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8191. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8192. ifc* | ifort*) # Intel Fortran compiler
  8193. tmp_addflag=' -nofor_main' ;;
  8194. lf95*) # Lahey Fortran 8.1
  8195. whole_archive_flag_spec=
  8196. tmp_sharedflag='--shared' ;;
  8197. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8198. tmp_sharedflag='-qmkshrobj'
  8199. tmp_addflag= ;;
  8200. esac
  8201. case `$CC -V 2>&1 | sed 5q` in
  8202. *Sun\ C*) # Sun C 5.9
  8203. 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'
  8204. compiler_needs_object=yes
  8205. tmp_sharedflag='-G' ;;
  8206. *Sun\ F*) # Sun Fortran 8.3
  8207. tmp_sharedflag='-G' ;;
  8208. esac
  8209. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8210. if test "x$supports_anon_versioning" = xyes; then
  8211. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8212. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8213. echo "local: *; };" >> $output_objdir/$libname.ver~
  8214. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8215. fi
  8216. case $cc_basename in
  8217. xlf*)
  8218. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8219. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8220. hardcode_libdir_flag_spec=
  8221. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8222. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8223. if test "x$supports_anon_versioning" = xyes; then
  8224. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8225. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8226. echo "local: *; };" >> $output_objdir/$libname.ver~
  8227. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8228. fi
  8229. ;;
  8230. esac
  8231. else
  8232. ld_shlibs=no
  8233. fi
  8234. ;;
  8235. netbsd* | netbsdelf*-gnu)
  8236. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8237. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8238. wlarc=
  8239. else
  8240. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8241. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8242. fi
  8243. ;;
  8244. solaris*)
  8245. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8246. ld_shlibs=no
  8247. cat <<_LT_EOF 1>&2
  8248. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8249. *** create shared libraries on Solaris systems. Therefore, libtool
  8250. *** is disabling shared libraries support. We urge you to upgrade GNU
  8251. *** binutils to release 2.9.1 or newer. Another option is to modify
  8252. *** your PATH or compiler configuration so that the native linker is
  8253. *** used, and then restart.
  8254. _LT_EOF
  8255. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8256. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8257. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8258. else
  8259. ld_shlibs=no
  8260. fi
  8261. ;;
  8262. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8263. case `$LD -v 2>&1` in
  8264. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8265. ld_shlibs=no
  8266. cat <<_LT_EOF 1>&2
  8267. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8268. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8269. *** is disabling shared libraries support. We urge you to upgrade GNU
  8270. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8271. *** your PATH or compiler configuration so that the native linker is
  8272. *** used, and then restart.
  8273. _LT_EOF
  8274. ;;
  8275. *)
  8276. # For security reasons, it is highly recommended that you always
  8277. # use absolute paths for naming shared libraries, and exclude the
  8278. # DT_RUNPATH tag from executables and libraries. But doing so
  8279. # requires that you compile everything twice, which is a pain.
  8280. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8281. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8282. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8283. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8284. else
  8285. ld_shlibs=no
  8286. fi
  8287. ;;
  8288. esac
  8289. ;;
  8290. sunos4*)
  8291. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8292. wlarc=
  8293. hardcode_direct=yes
  8294. hardcode_shlibpath_var=no
  8295. ;;
  8296. *)
  8297. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8298. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8299. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8300. else
  8301. ld_shlibs=no
  8302. fi
  8303. ;;
  8304. esac
  8305. if test "$ld_shlibs" = no; then
  8306. runpath_var=
  8307. hardcode_libdir_flag_spec=
  8308. export_dynamic_flag_spec=
  8309. whole_archive_flag_spec=
  8310. fi
  8311. else
  8312. # PORTME fill in a description of your system's linker (not GNU ld)
  8313. case $host_os in
  8314. aix3*)
  8315. allow_undefined_flag=unsupported
  8316. always_export_symbols=yes
  8317. 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'
  8318. # Note: this linker hardcodes the directories in LIBPATH if there
  8319. # are no directories specified by -L.
  8320. hardcode_minus_L=yes
  8321. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8322. # Neither direct hardcoding nor static linking is supported with a
  8323. # broken collect2.
  8324. hardcode_direct=unsupported
  8325. fi
  8326. ;;
  8327. aix[4-9]*)
  8328. if test "$host_cpu" = ia64; then
  8329. # On IA64, the linker does run time linking by default, so we don't
  8330. # have to do anything special.
  8331. aix_use_runtimelinking=no
  8332. exp_sym_flag='-Bexport'
  8333. no_entry_flag=""
  8334. else
  8335. # If we're using GNU nm, then we don't want the "-C" option.
  8336. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8337. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8338. 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'
  8339. else
  8340. 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'
  8341. fi
  8342. aix_use_runtimelinking=no
  8343. # Test if we are trying to use run time linking or normal
  8344. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8345. # need to do runtime linking.
  8346. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8347. for ld_flag in $LDFLAGS; do
  8348. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8349. aix_use_runtimelinking=yes
  8350. break
  8351. fi
  8352. done
  8353. ;;
  8354. esac
  8355. exp_sym_flag='-bexport'
  8356. no_entry_flag='-bnoentry'
  8357. fi
  8358. # When large executables or shared objects are built, AIX ld can
  8359. # have problems creating the table of contents. If linking a library
  8360. # or program results in "error TOC overflow" add -mminimal-toc to
  8361. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8362. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8363. archive_cmds=''
  8364. hardcode_direct=yes
  8365. hardcode_direct_absolute=yes
  8366. hardcode_libdir_separator=':'
  8367. link_all_deplibs=yes
  8368. file_list_spec='${wl}-f,'
  8369. if test "$GCC" = yes; then
  8370. case $host_os in aix4.[012]|aix4.[012].*)
  8371. # We only want to do this on AIX 4.2 and lower, the check
  8372. # below for broken collect2 doesn't work under 4.3+
  8373. collect2name=`${CC} -print-prog-name=collect2`
  8374. if test -f "$collect2name" &&
  8375. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8376. then
  8377. # We have reworked collect2
  8378. :
  8379. else
  8380. # We have old collect2
  8381. hardcode_direct=unsupported
  8382. # It fails to find uninstalled libraries when the uninstalled
  8383. # path is not listed in the libpath. Setting hardcode_minus_L
  8384. # to unsupported forces relinking
  8385. hardcode_minus_L=yes
  8386. hardcode_libdir_flag_spec='-L$libdir'
  8387. hardcode_libdir_separator=
  8388. fi
  8389. ;;
  8390. esac
  8391. shared_flag='-shared'
  8392. if test "$aix_use_runtimelinking" = yes; then
  8393. shared_flag="$shared_flag "'${wl}-G'
  8394. fi
  8395. link_all_deplibs=no
  8396. else
  8397. # not using gcc
  8398. if test "$host_cpu" = ia64; then
  8399. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8400. # chokes on -Wl,-G. The following line is correct:
  8401. shared_flag='-G'
  8402. else
  8403. if test "$aix_use_runtimelinking" = yes; then
  8404. shared_flag='${wl}-G'
  8405. else
  8406. shared_flag='${wl}-bM:SRE'
  8407. fi
  8408. fi
  8409. fi
  8410. export_dynamic_flag_spec='${wl}-bexpall'
  8411. # It seems that -bexpall does not export symbols beginning with
  8412. # underscore (_), so it is better to generate a list of symbols to export.
  8413. always_export_symbols=yes
  8414. if test "$aix_use_runtimelinking" = yes; then
  8415. # Warning - without using the other runtime loading flags (-brtl),
  8416. # -berok will link without error, but may produce a broken library.
  8417. allow_undefined_flag='-berok'
  8418. # Determine the default libpath from the value encoded in an
  8419. # empty executable.
  8420. cat >conftest.$ac_ext <<_ACEOF
  8421. /* confdefs.h. */
  8422. _ACEOF
  8423. cat confdefs.h >>conftest.$ac_ext
  8424. cat >>conftest.$ac_ext <<_ACEOF
  8425. /* end confdefs.h. */
  8426. int
  8427. main ()
  8428. {
  8429. ;
  8430. return 0;
  8431. }
  8432. _ACEOF
  8433. rm -f conftest.$ac_objext conftest$ac_exeext
  8434. if { (ac_try="$ac_link"
  8435. case "(($ac_try" in
  8436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8437. *) ac_try_echo=$ac_try;;
  8438. esac
  8439. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8440. $as_echo "$ac_try_echo") >&5
  8441. (eval "$ac_link") 2>conftest.er1
  8442. ac_status=$?
  8443. grep -v '^ *+' conftest.er1 >conftest.err
  8444. rm -f conftest.er1
  8445. cat conftest.err >&5
  8446. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8447. (exit $ac_status); } && {
  8448. test -z "$ac_c_werror_flag" ||
  8449. test ! -s conftest.err
  8450. } && test -s conftest$ac_exeext && {
  8451. test "$cross_compiling" = yes ||
  8452. $as_test_x conftest$ac_exeext
  8453. }; then
  8454. lt_aix_libpath_sed='
  8455. /Import File Strings/,/^$/ {
  8456. /^0/ {
  8457. s/^0 *\(.*\)$/\1/
  8458. p
  8459. }
  8460. }'
  8461. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8462. # Check for a 64-bit object if we didn't find anything.
  8463. if test -z "$aix_libpath"; then
  8464. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8465. fi
  8466. else
  8467. $as_echo "$as_me: failed program was:" >&5
  8468. sed 's/^/| /' conftest.$ac_ext >&5
  8469. fi
  8470. rm -rf conftest.dSYM
  8471. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8472. conftest$ac_exeext conftest.$ac_ext
  8473. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8474. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8475. 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"
  8476. else
  8477. if test "$host_cpu" = ia64; then
  8478. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8479. allow_undefined_flag="-z nodefs"
  8480. 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"
  8481. else
  8482. # Determine the default libpath from the value encoded in an
  8483. # empty executable.
  8484. cat >conftest.$ac_ext <<_ACEOF
  8485. /* confdefs.h. */
  8486. _ACEOF
  8487. cat confdefs.h >>conftest.$ac_ext
  8488. cat >>conftest.$ac_ext <<_ACEOF
  8489. /* end confdefs.h. */
  8490. int
  8491. main ()
  8492. {
  8493. ;
  8494. return 0;
  8495. }
  8496. _ACEOF
  8497. rm -f conftest.$ac_objext conftest$ac_exeext
  8498. if { (ac_try="$ac_link"
  8499. case "(($ac_try" in
  8500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8501. *) ac_try_echo=$ac_try;;
  8502. esac
  8503. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8504. $as_echo "$ac_try_echo") >&5
  8505. (eval "$ac_link") 2>conftest.er1
  8506. ac_status=$?
  8507. grep -v '^ *+' conftest.er1 >conftest.err
  8508. rm -f conftest.er1
  8509. cat conftest.err >&5
  8510. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8511. (exit $ac_status); } && {
  8512. test -z "$ac_c_werror_flag" ||
  8513. test ! -s conftest.err
  8514. } && test -s conftest$ac_exeext && {
  8515. test "$cross_compiling" = yes ||
  8516. $as_test_x conftest$ac_exeext
  8517. }; then
  8518. lt_aix_libpath_sed='
  8519. /Import File Strings/,/^$/ {
  8520. /^0/ {
  8521. s/^0 *\(.*\)$/\1/
  8522. p
  8523. }
  8524. }'
  8525. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8526. # Check for a 64-bit object if we didn't find anything.
  8527. if test -z "$aix_libpath"; then
  8528. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8529. fi
  8530. else
  8531. $as_echo "$as_me: failed program was:" >&5
  8532. sed 's/^/| /' conftest.$ac_ext >&5
  8533. fi
  8534. rm -rf conftest.dSYM
  8535. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8536. conftest$ac_exeext conftest.$ac_ext
  8537. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8538. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8539. # Warning - without using the other run time loading flags,
  8540. # -berok will link without error, but may produce a broken library.
  8541. no_undefined_flag=' ${wl}-bernotok'
  8542. allow_undefined_flag=' ${wl}-berok'
  8543. # Exported symbols can be pulled into shared objects from archives
  8544. whole_archive_flag_spec='$convenience'
  8545. archive_cmds_need_lc=yes
  8546. # This is similar to how AIX traditionally builds its shared libraries.
  8547. 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'
  8548. fi
  8549. fi
  8550. ;;
  8551. amigaos*)
  8552. case $host_cpu in
  8553. powerpc)
  8554. # see comment about AmigaOS4 .so support
  8555. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8556. archive_expsym_cmds=''
  8557. ;;
  8558. m68k)
  8559. 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)'
  8560. hardcode_libdir_flag_spec='-L$libdir'
  8561. hardcode_minus_L=yes
  8562. ;;
  8563. esac
  8564. ;;
  8565. bsdi[45]*)
  8566. export_dynamic_flag_spec=-rdynamic
  8567. ;;
  8568. cygwin* | mingw* | pw32* | cegcc*)
  8569. # When not using gcc, we currently assume that we are using
  8570. # Microsoft Visual C++.
  8571. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8572. # no search path for DLLs.
  8573. hardcode_libdir_flag_spec=' '
  8574. allow_undefined_flag=unsupported
  8575. # Tell ltmain to make .lib files, not .a files.
  8576. libext=lib
  8577. # Tell ltmain to make .dll files, not .so files.
  8578. shrext_cmds=".dll"
  8579. # FIXME: Setting linknames here is a bad hack.
  8580. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8581. # The linker will automatically build a .lib file if we build a DLL.
  8582. old_archive_from_new_cmds='true'
  8583. # FIXME: Should let the user specify the lib program.
  8584. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8585. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8586. enable_shared_with_static_runtimes=yes
  8587. ;;
  8588. darwin* | rhapsody*)
  8589. archive_cmds_need_lc=no
  8590. hardcode_direct=no
  8591. hardcode_automatic=yes
  8592. hardcode_shlibpath_var=unsupported
  8593. whole_archive_flag_spec=''
  8594. link_all_deplibs=yes
  8595. allow_undefined_flag="$_lt_dar_allow_undefined"
  8596. case $cc_basename in
  8597. ifort*) _lt_dar_can_shared=yes ;;
  8598. *) _lt_dar_can_shared=$GCC ;;
  8599. esac
  8600. if test "$_lt_dar_can_shared" = "yes"; then
  8601. output_verbose_link_cmd=echo
  8602. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8603. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8604. 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}"
  8605. 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}"
  8606. else
  8607. ld_shlibs=no
  8608. fi
  8609. ;;
  8610. dgux*)
  8611. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8612. hardcode_libdir_flag_spec='-L$libdir'
  8613. hardcode_shlibpath_var=no
  8614. ;;
  8615. freebsd1*)
  8616. ld_shlibs=no
  8617. ;;
  8618. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8619. # support. Future versions do this automatically, but an explicit c++rt0.o
  8620. # does not break anything, and helps significantly (at the cost of a little
  8621. # extra space).
  8622. freebsd2.2*)
  8623. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8624. hardcode_libdir_flag_spec='-R$libdir'
  8625. hardcode_direct=yes
  8626. hardcode_shlibpath_var=no
  8627. ;;
  8628. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8629. freebsd2*)
  8630. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8631. hardcode_direct=yes
  8632. hardcode_minus_L=yes
  8633. hardcode_shlibpath_var=no
  8634. ;;
  8635. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8636. freebsd* | dragonfly*)
  8637. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8638. hardcode_libdir_flag_spec='-R$libdir'
  8639. hardcode_direct=yes
  8640. hardcode_shlibpath_var=no
  8641. ;;
  8642. hpux9*)
  8643. if test "$GCC" = yes; then
  8644. 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'
  8645. else
  8646. 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'
  8647. fi
  8648. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8649. hardcode_libdir_separator=:
  8650. hardcode_direct=yes
  8651. # hardcode_minus_L: Not really in the search PATH,
  8652. # but as the default location of the library.
  8653. hardcode_minus_L=yes
  8654. export_dynamic_flag_spec='${wl}-E'
  8655. ;;
  8656. hpux10*)
  8657. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8658. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8659. else
  8660. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8661. fi
  8662. if test "$with_gnu_ld" = no; then
  8663. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8664. hardcode_libdir_flag_spec_ld='+b $libdir'
  8665. hardcode_libdir_separator=:
  8666. hardcode_direct=yes
  8667. hardcode_direct_absolute=yes
  8668. export_dynamic_flag_spec='${wl}-E'
  8669. # hardcode_minus_L: Not really in the search PATH,
  8670. # but as the default location of the library.
  8671. hardcode_minus_L=yes
  8672. fi
  8673. ;;
  8674. hpux11*)
  8675. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8676. case $host_cpu in
  8677. hppa*64*)
  8678. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8679. ;;
  8680. ia64*)
  8681. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8682. ;;
  8683. *)
  8684. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8685. ;;
  8686. esac
  8687. else
  8688. case $host_cpu in
  8689. hppa*64*)
  8690. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8691. ;;
  8692. ia64*)
  8693. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8694. ;;
  8695. *)
  8696. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8697. ;;
  8698. esac
  8699. fi
  8700. if test "$with_gnu_ld" = no; then
  8701. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8702. hardcode_libdir_separator=:
  8703. case $host_cpu in
  8704. hppa*64*|ia64*)
  8705. hardcode_direct=no
  8706. hardcode_shlibpath_var=no
  8707. ;;
  8708. *)
  8709. hardcode_direct=yes
  8710. hardcode_direct_absolute=yes
  8711. export_dynamic_flag_spec='${wl}-E'
  8712. # hardcode_minus_L: Not really in the search PATH,
  8713. # but as the default location of the library.
  8714. hardcode_minus_L=yes
  8715. ;;
  8716. esac
  8717. fi
  8718. ;;
  8719. irix5* | irix6* | nonstopux*)
  8720. if test "$GCC" = yes; then
  8721. 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'
  8722. # Try to use the -exported_symbol ld option, if it does not
  8723. # work, assume that -exports_file does not work either and
  8724. # implicitly export all symbols.
  8725. save_LDFLAGS="$LDFLAGS"
  8726. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8727. cat >conftest.$ac_ext <<_ACEOF
  8728. int foo(void) {}
  8729. _ACEOF
  8730. rm -f conftest.$ac_objext conftest$ac_exeext
  8731. if { (ac_try="$ac_link"
  8732. case "(($ac_try" in
  8733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8734. *) ac_try_echo=$ac_try;;
  8735. esac
  8736. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8737. $as_echo "$ac_try_echo") >&5
  8738. (eval "$ac_link") 2>conftest.er1
  8739. ac_status=$?
  8740. grep -v '^ *+' conftest.er1 >conftest.err
  8741. rm -f conftest.er1
  8742. cat conftest.err >&5
  8743. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8744. (exit $ac_status); } && {
  8745. test -z "$ac_c_werror_flag" ||
  8746. test ! -s conftest.err
  8747. } && test -s conftest$ac_exeext && {
  8748. test "$cross_compiling" = yes ||
  8749. $as_test_x conftest$ac_exeext
  8750. }; then
  8751. 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'
  8752. else
  8753. $as_echo "$as_me: failed program was:" >&5
  8754. sed 's/^/| /' conftest.$ac_ext >&5
  8755. fi
  8756. rm -rf conftest.dSYM
  8757. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8758. conftest$ac_exeext conftest.$ac_ext
  8759. LDFLAGS="$save_LDFLAGS"
  8760. else
  8761. 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'
  8762. 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'
  8763. fi
  8764. archive_cmds_need_lc='no'
  8765. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8766. hardcode_libdir_separator=:
  8767. inherit_rpath=yes
  8768. link_all_deplibs=yes
  8769. ;;
  8770. netbsd* | netbsdelf*-gnu)
  8771. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8772. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8773. else
  8774. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8775. fi
  8776. hardcode_libdir_flag_spec='-R$libdir'
  8777. hardcode_direct=yes
  8778. hardcode_shlibpath_var=no
  8779. ;;
  8780. newsos6)
  8781. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8782. hardcode_direct=yes
  8783. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8784. hardcode_libdir_separator=:
  8785. hardcode_shlibpath_var=no
  8786. ;;
  8787. *nto* | *qnx*)
  8788. ;;
  8789. openbsd*)
  8790. if test -f /usr/libexec/ld.so; then
  8791. hardcode_direct=yes
  8792. hardcode_shlibpath_var=no
  8793. hardcode_direct_absolute=yes
  8794. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8795. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8796. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8797. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8798. export_dynamic_flag_spec='${wl}-E'
  8799. else
  8800. case $host_os in
  8801. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8802. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8803. hardcode_libdir_flag_spec='-R$libdir'
  8804. ;;
  8805. *)
  8806. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8807. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8808. ;;
  8809. esac
  8810. fi
  8811. else
  8812. ld_shlibs=no
  8813. fi
  8814. ;;
  8815. os2*)
  8816. hardcode_libdir_flag_spec='-L$libdir'
  8817. hardcode_minus_L=yes
  8818. allow_undefined_flag=unsupported
  8819. 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'
  8820. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8821. ;;
  8822. osf3*)
  8823. if test "$GCC" = yes; then
  8824. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8825. 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'
  8826. else
  8827. allow_undefined_flag=' -expect_unresolved \*'
  8828. 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'
  8829. fi
  8830. archive_cmds_need_lc='no'
  8831. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8832. hardcode_libdir_separator=:
  8833. ;;
  8834. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8835. if test "$GCC" = yes; then
  8836. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8837. 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'
  8838. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8839. else
  8840. allow_undefined_flag=' -expect_unresolved \*'
  8841. 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'
  8842. 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~
  8843. $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'
  8844. # Both c and cxx compiler support -rpath directly
  8845. hardcode_libdir_flag_spec='-rpath $libdir'
  8846. fi
  8847. archive_cmds_need_lc='no'
  8848. hardcode_libdir_separator=:
  8849. ;;
  8850. solaris*)
  8851. no_undefined_flag=' -z defs'
  8852. if test "$GCC" = yes; then
  8853. wlarc='${wl}'
  8854. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8855. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8856. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8857. else
  8858. case `$CC -V 2>&1` in
  8859. *"Compilers 5.0"*)
  8860. wlarc=''
  8861. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8862. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8863. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8864. ;;
  8865. *)
  8866. wlarc='${wl}'
  8867. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8868. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8869. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8870. ;;
  8871. esac
  8872. fi
  8873. hardcode_libdir_flag_spec='-R$libdir'
  8874. hardcode_shlibpath_var=no
  8875. case $host_os in
  8876. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8877. *)
  8878. # The compiler driver will combine and reorder linker options,
  8879. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8880. # but is careful enough not to reorder.
  8881. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8882. if test "$GCC" = yes; then
  8883. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8884. else
  8885. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8886. fi
  8887. ;;
  8888. esac
  8889. link_all_deplibs=yes
  8890. ;;
  8891. sunos4*)
  8892. if test "x$host_vendor" = xsequent; then
  8893. # Use $CC to link under sequent, because it throws in some extra .o
  8894. # files that make .init and .fini sections work.
  8895. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8896. else
  8897. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8898. fi
  8899. hardcode_libdir_flag_spec='-L$libdir'
  8900. hardcode_direct=yes
  8901. hardcode_minus_L=yes
  8902. hardcode_shlibpath_var=no
  8903. ;;
  8904. sysv4)
  8905. case $host_vendor in
  8906. sni)
  8907. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8908. hardcode_direct=yes # is this really true???
  8909. ;;
  8910. siemens)
  8911. ## LD is ld it makes a PLAMLIB
  8912. ## CC just makes a GrossModule.
  8913. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8914. reload_cmds='$CC -r -o $output$reload_objs'
  8915. hardcode_direct=no
  8916. ;;
  8917. motorola)
  8918. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8919. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8920. ;;
  8921. esac
  8922. runpath_var='LD_RUN_PATH'
  8923. hardcode_shlibpath_var=no
  8924. ;;
  8925. sysv4.3*)
  8926. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8927. hardcode_shlibpath_var=no
  8928. export_dynamic_flag_spec='-Bexport'
  8929. ;;
  8930. sysv4*MP*)
  8931. if test -d /usr/nec; then
  8932. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8933. hardcode_shlibpath_var=no
  8934. runpath_var=LD_RUN_PATH
  8935. hardcode_runpath_var=yes
  8936. ld_shlibs=yes
  8937. fi
  8938. ;;
  8939. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8940. no_undefined_flag='${wl}-z,text'
  8941. archive_cmds_need_lc=no
  8942. hardcode_shlibpath_var=no
  8943. runpath_var='LD_RUN_PATH'
  8944. if test "$GCC" = yes; then
  8945. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8946. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8947. else
  8948. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8949. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8950. fi
  8951. ;;
  8952. sysv5* | sco3.2v5* | sco5v6*)
  8953. # Note: We can NOT use -z defs as we might desire, because we do not
  8954. # link with -lc, and that would cause any symbols used from libc to
  8955. # always be unresolved, which means just about no library would
  8956. # ever link correctly. If we're not using GNU ld we use -z text
  8957. # though, which does catch some bad symbols but isn't as heavy-handed
  8958. # as -z defs.
  8959. no_undefined_flag='${wl}-z,text'
  8960. allow_undefined_flag='${wl}-z,nodefs'
  8961. archive_cmds_need_lc=no
  8962. hardcode_shlibpath_var=no
  8963. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8964. hardcode_libdir_separator=':'
  8965. link_all_deplibs=yes
  8966. export_dynamic_flag_spec='${wl}-Bexport'
  8967. runpath_var='LD_RUN_PATH'
  8968. if test "$GCC" = yes; then
  8969. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8970. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8971. else
  8972. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8973. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8974. fi
  8975. ;;
  8976. uts4*)
  8977. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8978. hardcode_libdir_flag_spec='-L$libdir'
  8979. hardcode_shlibpath_var=no
  8980. ;;
  8981. *)
  8982. ld_shlibs=no
  8983. ;;
  8984. esac
  8985. if test x$host_vendor = xsni; then
  8986. case $host in
  8987. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8988. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8989. ;;
  8990. esac
  8991. fi
  8992. fi
  8993. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8994. $as_echo "$ld_shlibs" >&6; }
  8995. test "$ld_shlibs" = no && can_build_shared=no
  8996. with_gnu_ld=$with_gnu_ld
  8997. #
  8998. # Do we need to explicitly link libc?
  8999. #
  9000. case "x$archive_cmds_need_lc" in
  9001. x|xyes)
  9002. # Assume -lc should be added
  9003. archive_cmds_need_lc=yes
  9004. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9005. case $archive_cmds in
  9006. *'~'*)
  9007. # FIXME: we may have to deal with multi-command sequences.
  9008. ;;
  9009. '$CC '*)
  9010. # Test whether the compiler implicitly links with -lc since on some
  9011. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9012. # to ld, don't add -lc before -lgcc.
  9013. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9014. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9015. $RM conftest*
  9016. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9017. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9018. (eval $ac_compile) 2>&5
  9019. ac_status=$?
  9020. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9021. (exit $ac_status); } 2>conftest.err; then
  9022. soname=conftest
  9023. lib=conftest
  9024. libobjs=conftest.$ac_objext
  9025. deplibs=
  9026. wl=$lt_prog_compiler_wl
  9027. pic_flag=$lt_prog_compiler_pic
  9028. compiler_flags=-v
  9029. linker_flags=-v
  9030. verstring=
  9031. output_objdir=.
  9032. libname=conftest
  9033. lt_save_allow_undefined_flag=$allow_undefined_flag
  9034. allow_undefined_flag=
  9035. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9036. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9037. ac_status=$?
  9038. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9039. (exit $ac_status); }
  9040. then
  9041. archive_cmds_need_lc=no
  9042. else
  9043. archive_cmds_need_lc=yes
  9044. fi
  9045. allow_undefined_flag=$lt_save_allow_undefined_flag
  9046. else
  9047. cat conftest.err 1>&5
  9048. fi
  9049. $RM conftest*
  9050. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9051. $as_echo "$archive_cmds_need_lc" >&6; }
  9052. ;;
  9053. esac
  9054. fi
  9055. ;;
  9056. esac
  9057. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9058. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9059. if test "$GCC" = yes; then
  9060. case $host_os in
  9061. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9062. *) lt_awk_arg="/^libraries:/" ;;
  9063. esac
  9064. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9065. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9066. # if the path contains ";" then we assume it to be the separator
  9067. # otherwise default to the standard path separator (i.e. ":") - it is
  9068. # assumed that no part of a normal pathname contains ";" but that should
  9069. # okay in the real world where ";" in dirpaths is itself problematic.
  9070. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9071. else
  9072. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9073. fi
  9074. # Ok, now we have the path, separated by spaces, we can step through it
  9075. # and add multilib dir if necessary.
  9076. lt_tmp_lt_search_path_spec=
  9077. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9078. for lt_sys_path in $lt_search_path_spec; do
  9079. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9080. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9081. else
  9082. test -d "$lt_sys_path" && \
  9083. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9084. fi
  9085. done
  9086. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9087. BEGIN {RS=" "; FS="/|\n";} {
  9088. lt_foo="";
  9089. lt_count=0;
  9090. for (lt_i = NF; lt_i > 0; lt_i--) {
  9091. if ($lt_i != "" && $lt_i != ".") {
  9092. if ($lt_i == "..") {
  9093. lt_count++;
  9094. } else {
  9095. if (lt_count == 0) {
  9096. lt_foo="/" $lt_i lt_foo;
  9097. } else {
  9098. lt_count--;
  9099. }
  9100. }
  9101. }
  9102. }
  9103. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9104. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9105. }'`
  9106. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9107. else
  9108. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9109. fi
  9110. library_names_spec=
  9111. libname_spec='lib$name'
  9112. soname_spec=
  9113. shrext_cmds=".so"
  9114. postinstall_cmds=
  9115. postuninstall_cmds=
  9116. finish_cmds=
  9117. finish_eval=
  9118. shlibpath_var=
  9119. shlibpath_overrides_runpath=unknown
  9120. version_type=none
  9121. dynamic_linker="$host_os ld.so"
  9122. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9123. need_lib_prefix=unknown
  9124. hardcode_into_libs=no
  9125. # when you set need_version to no, make sure it does not cause -set_version
  9126. # flags to be left without arguments
  9127. need_version=unknown
  9128. case $host_os in
  9129. aix3*)
  9130. version_type=linux
  9131. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9132. shlibpath_var=LIBPATH
  9133. # AIX 3 has no versioning support, so we append a major version to the name.
  9134. soname_spec='${libname}${release}${shared_ext}$major'
  9135. ;;
  9136. aix[4-9]*)
  9137. version_type=linux
  9138. need_lib_prefix=no
  9139. need_version=no
  9140. hardcode_into_libs=yes
  9141. if test "$host_cpu" = ia64; then
  9142. # AIX 5 supports IA64
  9143. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9144. shlibpath_var=LD_LIBRARY_PATH
  9145. else
  9146. # With GCC up to 2.95.x, collect2 would create an import file
  9147. # for dependence libraries. The import file would start with
  9148. # the line `#! .'. This would cause the generated library to
  9149. # depend on `.', always an invalid library. This was fixed in
  9150. # development snapshots of GCC prior to 3.0.
  9151. case $host_os in
  9152. aix4 | aix4.[01] | aix4.[01].*)
  9153. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9154. echo ' yes '
  9155. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9156. :
  9157. else
  9158. can_build_shared=no
  9159. fi
  9160. ;;
  9161. esac
  9162. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9163. # soname into executable. Probably we can add versioning support to
  9164. # collect2, so additional links can be useful in future.
  9165. if test "$aix_use_runtimelinking" = yes; then
  9166. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9167. # instead of lib<name>.a to let people know that these are not
  9168. # typical AIX shared libraries.
  9169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9170. else
  9171. # We preserve .a as extension for shared libraries through AIX4.2
  9172. # and later when we are not doing run time linking.
  9173. library_names_spec='${libname}${release}.a $libname.a'
  9174. soname_spec='${libname}${release}${shared_ext}$major'
  9175. fi
  9176. shlibpath_var=LIBPATH
  9177. fi
  9178. ;;
  9179. amigaos*)
  9180. case $host_cpu in
  9181. powerpc)
  9182. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9183. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9185. ;;
  9186. m68k)
  9187. library_names_spec='$libname.ixlibrary $libname.a'
  9188. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9189. 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'
  9190. ;;
  9191. esac
  9192. ;;
  9193. beos*)
  9194. library_names_spec='${libname}${shared_ext}'
  9195. dynamic_linker="$host_os ld.so"
  9196. shlibpath_var=LIBRARY_PATH
  9197. ;;
  9198. bsdi[45]*)
  9199. version_type=linux
  9200. need_version=no
  9201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9202. soname_spec='${libname}${release}${shared_ext}$major'
  9203. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9204. shlibpath_var=LD_LIBRARY_PATH
  9205. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9206. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9207. # the default ld.so.conf also contains /usr/contrib/lib and
  9208. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9209. # libtool to hard-code these into programs
  9210. ;;
  9211. cygwin* | mingw* | pw32* | cegcc*)
  9212. version_type=windows
  9213. shrext_cmds=".dll"
  9214. need_version=no
  9215. need_lib_prefix=no
  9216. case $GCC,$host_os in
  9217. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9218. library_names_spec='$libname.dll.a'
  9219. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9220. postinstall_cmds='base_file=`basename \${file}`~
  9221. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9222. dldir=$destdir/`dirname \$dlpath`~
  9223. test -d \$dldir || mkdir -p \$dldir~
  9224. $install_prog $dir/$dlname \$dldir/$dlname~
  9225. chmod a+x \$dldir/$dlname~
  9226. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9227. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9228. fi'
  9229. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9230. dlpath=$dir/\$dldll~
  9231. $RM \$dlpath'
  9232. shlibpath_overrides_runpath=yes
  9233. case $host_os in
  9234. cygwin*)
  9235. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9236. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9237. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9238. ;;
  9239. mingw* | cegcc*)
  9240. # MinGW DLLs use traditional 'lib' prefix
  9241. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9242. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9243. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9244. # It is most probably a Windows format PATH printed by
  9245. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9246. # path with ; separators, and with drive letters. We can handle the
  9247. # drive letters (cygwin fileutils understands them), so leave them,
  9248. # especially as we might pass files found there to a mingw objdump,
  9249. # which wouldn't understand a cygwinified path. Ahh.
  9250. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9251. else
  9252. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9253. fi
  9254. ;;
  9255. pw32*)
  9256. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9257. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9258. ;;
  9259. esac
  9260. ;;
  9261. *)
  9262. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9263. ;;
  9264. esac
  9265. dynamic_linker='Win32 ld.exe'
  9266. # FIXME: first we should search . and the directory the executable is in
  9267. shlibpath_var=PATH
  9268. ;;
  9269. darwin* | rhapsody*)
  9270. dynamic_linker="$host_os dyld"
  9271. version_type=darwin
  9272. need_lib_prefix=no
  9273. need_version=no
  9274. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9275. soname_spec='${libname}${release}${major}$shared_ext'
  9276. shlibpath_overrides_runpath=yes
  9277. shlibpath_var=DYLD_LIBRARY_PATH
  9278. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9279. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9280. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9281. ;;
  9282. dgux*)
  9283. version_type=linux
  9284. need_lib_prefix=no
  9285. need_version=no
  9286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9287. soname_spec='${libname}${release}${shared_ext}$major'
  9288. shlibpath_var=LD_LIBRARY_PATH
  9289. ;;
  9290. freebsd1*)
  9291. dynamic_linker=no
  9292. ;;
  9293. freebsd* | dragonfly*)
  9294. # DragonFly does not have aout. When/if they implement a new
  9295. # versioning mechanism, adjust this.
  9296. if test -x /usr/bin/objformat; then
  9297. objformat=`/usr/bin/objformat`
  9298. else
  9299. case $host_os in
  9300. freebsd[123]*) objformat=aout ;;
  9301. *) objformat=elf ;;
  9302. esac
  9303. fi
  9304. version_type=freebsd-$objformat
  9305. case $version_type in
  9306. freebsd-elf*)
  9307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9308. need_version=no
  9309. need_lib_prefix=no
  9310. ;;
  9311. freebsd-*)
  9312. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9313. need_version=yes
  9314. ;;
  9315. esac
  9316. shlibpath_var=LD_LIBRARY_PATH
  9317. case $host_os in
  9318. freebsd2*)
  9319. shlibpath_overrides_runpath=yes
  9320. ;;
  9321. freebsd3.[01]* | freebsdelf3.[01]*)
  9322. shlibpath_overrides_runpath=yes
  9323. hardcode_into_libs=yes
  9324. ;;
  9325. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9326. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9327. shlibpath_overrides_runpath=no
  9328. hardcode_into_libs=yes
  9329. ;;
  9330. *) # from 4.6 on, and DragonFly
  9331. shlibpath_overrides_runpath=yes
  9332. hardcode_into_libs=yes
  9333. ;;
  9334. esac
  9335. ;;
  9336. gnu*)
  9337. version_type=linux
  9338. need_lib_prefix=no
  9339. need_version=no
  9340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9341. soname_spec='${libname}${release}${shared_ext}$major'
  9342. shlibpath_var=LD_LIBRARY_PATH
  9343. hardcode_into_libs=yes
  9344. ;;
  9345. hpux9* | hpux10* | hpux11*)
  9346. # Give a soname corresponding to the major version so that dld.sl refuses to
  9347. # link against other versions.
  9348. version_type=sunos
  9349. need_lib_prefix=no
  9350. need_version=no
  9351. case $host_cpu in
  9352. ia64*)
  9353. shrext_cmds='.so'
  9354. hardcode_into_libs=yes
  9355. dynamic_linker="$host_os dld.so"
  9356. shlibpath_var=LD_LIBRARY_PATH
  9357. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9359. soname_spec='${libname}${release}${shared_ext}$major'
  9360. if test "X$HPUX_IA64_MODE" = X32; then
  9361. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9362. else
  9363. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9364. fi
  9365. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9366. ;;
  9367. hppa*64*)
  9368. shrext_cmds='.sl'
  9369. hardcode_into_libs=yes
  9370. dynamic_linker="$host_os dld.sl"
  9371. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9372. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9374. soname_spec='${libname}${release}${shared_ext}$major'
  9375. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9376. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9377. ;;
  9378. *)
  9379. shrext_cmds='.sl'
  9380. dynamic_linker="$host_os dld.sl"
  9381. shlibpath_var=SHLIB_PATH
  9382. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9383. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9384. soname_spec='${libname}${release}${shared_ext}$major'
  9385. ;;
  9386. esac
  9387. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9388. postinstall_cmds='chmod 555 $lib'
  9389. ;;
  9390. interix[3-9]*)
  9391. version_type=linux
  9392. need_lib_prefix=no
  9393. need_version=no
  9394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9395. soname_spec='${libname}${release}${shared_ext}$major'
  9396. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9397. shlibpath_var=LD_LIBRARY_PATH
  9398. shlibpath_overrides_runpath=no
  9399. hardcode_into_libs=yes
  9400. ;;
  9401. irix5* | irix6* | nonstopux*)
  9402. case $host_os in
  9403. nonstopux*) version_type=nonstopux ;;
  9404. *)
  9405. if test "$lt_cv_prog_gnu_ld" = yes; then
  9406. version_type=linux
  9407. else
  9408. version_type=irix
  9409. fi ;;
  9410. esac
  9411. need_lib_prefix=no
  9412. need_version=no
  9413. soname_spec='${libname}${release}${shared_ext}$major'
  9414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9415. case $host_os in
  9416. irix5* | nonstopux*)
  9417. libsuff= shlibsuff=
  9418. ;;
  9419. *)
  9420. case $LD in # libtool.m4 will add one of these switches to LD
  9421. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9422. libsuff= shlibsuff= libmagic=32-bit;;
  9423. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9424. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9425. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9426. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9427. *) libsuff= shlibsuff= libmagic=never-match;;
  9428. esac
  9429. ;;
  9430. esac
  9431. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9432. shlibpath_overrides_runpath=no
  9433. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9434. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9435. hardcode_into_libs=yes
  9436. ;;
  9437. # No shared lib support for Linux oldld, aout, or coff.
  9438. linux*oldld* | linux*aout* | linux*coff*)
  9439. dynamic_linker=no
  9440. ;;
  9441. # This must be Linux ELF.
  9442. linux* | k*bsd*-gnu)
  9443. version_type=linux
  9444. need_lib_prefix=no
  9445. need_version=no
  9446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9447. soname_spec='${libname}${release}${shared_ext}$major'
  9448. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9449. shlibpath_var=LD_LIBRARY_PATH
  9450. shlibpath_overrides_runpath=no
  9451. # Some binutils ld are patched to set DT_RUNPATH
  9452. save_LDFLAGS=$LDFLAGS
  9453. save_libdir=$libdir
  9454. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9455. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9456. cat >conftest.$ac_ext <<_ACEOF
  9457. /* confdefs.h. */
  9458. _ACEOF
  9459. cat confdefs.h >>conftest.$ac_ext
  9460. cat >>conftest.$ac_ext <<_ACEOF
  9461. /* end confdefs.h. */
  9462. int
  9463. main ()
  9464. {
  9465. ;
  9466. return 0;
  9467. }
  9468. _ACEOF
  9469. rm -f conftest.$ac_objext conftest$ac_exeext
  9470. if { (ac_try="$ac_link"
  9471. case "(($ac_try" in
  9472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9473. *) ac_try_echo=$ac_try;;
  9474. esac
  9475. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9476. $as_echo "$ac_try_echo") >&5
  9477. (eval "$ac_link") 2>conftest.er1
  9478. ac_status=$?
  9479. grep -v '^ *+' conftest.er1 >conftest.err
  9480. rm -f conftest.er1
  9481. cat conftest.err >&5
  9482. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9483. (exit $ac_status); } && {
  9484. test -z "$ac_c_werror_flag" ||
  9485. test ! -s conftest.err
  9486. } && test -s conftest$ac_exeext && {
  9487. test "$cross_compiling" = yes ||
  9488. $as_test_x conftest$ac_exeext
  9489. }; then
  9490. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  9491. shlibpath_overrides_runpath=yes
  9492. fi
  9493. else
  9494. $as_echo "$as_me: failed program was:" >&5
  9495. sed 's/^/| /' conftest.$ac_ext >&5
  9496. fi
  9497. rm -rf conftest.dSYM
  9498. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9499. conftest$ac_exeext conftest.$ac_ext
  9500. LDFLAGS=$save_LDFLAGS
  9501. libdir=$save_libdir
  9502. # This implies no fast_install, which is unacceptable.
  9503. # Some rework will be needed to allow for fast_install
  9504. # before this can be enabled.
  9505. hardcode_into_libs=yes
  9506. # Append ld.so.conf contents to the search path
  9507. if test -f /etc/ld.so.conf; then
  9508. 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' ' '`
  9509. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9510. fi
  9511. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9512. # powerpc, because MkLinux only supported shared libraries with the
  9513. # GNU dynamic linker. Since this was broken with cross compilers,
  9514. # most powerpc-linux boxes support dynamic linking these days and
  9515. # people can always --disable-shared, the test was removed, and we
  9516. # assume the GNU/Linux dynamic linker is in use.
  9517. dynamic_linker='GNU/Linux ld.so'
  9518. ;;
  9519. netbsdelf*-gnu)
  9520. version_type=linux
  9521. need_lib_prefix=no
  9522. need_version=no
  9523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9524. soname_spec='${libname}${release}${shared_ext}$major'
  9525. shlibpath_var=LD_LIBRARY_PATH
  9526. shlibpath_overrides_runpath=no
  9527. hardcode_into_libs=yes
  9528. dynamic_linker='NetBSD ld.elf_so'
  9529. ;;
  9530. netbsd*)
  9531. version_type=sunos
  9532. need_lib_prefix=no
  9533. need_version=no
  9534. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9536. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9537. dynamic_linker='NetBSD (a.out) ld.so'
  9538. else
  9539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9540. soname_spec='${libname}${release}${shared_ext}$major'
  9541. dynamic_linker='NetBSD ld.elf_so'
  9542. fi
  9543. shlibpath_var=LD_LIBRARY_PATH
  9544. shlibpath_overrides_runpath=yes
  9545. hardcode_into_libs=yes
  9546. ;;
  9547. newsos6)
  9548. version_type=linux
  9549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9550. shlibpath_var=LD_LIBRARY_PATH
  9551. shlibpath_overrides_runpath=yes
  9552. ;;
  9553. *nto* | *qnx*)
  9554. version_type=qnx
  9555. need_lib_prefix=no
  9556. need_version=no
  9557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9558. soname_spec='${libname}${release}${shared_ext}$major'
  9559. shlibpath_var=LD_LIBRARY_PATH
  9560. shlibpath_overrides_runpath=no
  9561. hardcode_into_libs=yes
  9562. dynamic_linker='ldqnx.so'
  9563. ;;
  9564. openbsd*)
  9565. version_type=sunos
  9566. sys_lib_dlsearch_path_spec="/usr/lib"
  9567. need_lib_prefix=no
  9568. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9569. case $host_os in
  9570. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9571. *) need_version=no ;;
  9572. esac
  9573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9574. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9575. shlibpath_var=LD_LIBRARY_PATH
  9576. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9577. case $host_os in
  9578. openbsd2.[89] | openbsd2.[89].*)
  9579. shlibpath_overrides_runpath=no
  9580. ;;
  9581. *)
  9582. shlibpath_overrides_runpath=yes
  9583. ;;
  9584. esac
  9585. else
  9586. shlibpath_overrides_runpath=yes
  9587. fi
  9588. ;;
  9589. os2*)
  9590. libname_spec='$name'
  9591. shrext_cmds=".dll"
  9592. need_lib_prefix=no
  9593. library_names_spec='$libname${shared_ext} $libname.a'
  9594. dynamic_linker='OS/2 ld.exe'
  9595. shlibpath_var=LIBPATH
  9596. ;;
  9597. osf3* | osf4* | osf5*)
  9598. version_type=osf
  9599. need_lib_prefix=no
  9600. need_version=no
  9601. soname_spec='${libname}${release}${shared_ext}$major'
  9602. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9603. shlibpath_var=LD_LIBRARY_PATH
  9604. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9605. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9606. ;;
  9607. rdos*)
  9608. dynamic_linker=no
  9609. ;;
  9610. solaris*)
  9611. version_type=linux
  9612. need_lib_prefix=no
  9613. need_version=no
  9614. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9615. soname_spec='${libname}${release}${shared_ext}$major'
  9616. shlibpath_var=LD_LIBRARY_PATH
  9617. shlibpath_overrides_runpath=yes
  9618. hardcode_into_libs=yes
  9619. # ldd complains unless libraries are executable
  9620. postinstall_cmds='chmod +x $lib'
  9621. ;;
  9622. sunos4*)
  9623. version_type=sunos
  9624. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9625. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9626. shlibpath_var=LD_LIBRARY_PATH
  9627. shlibpath_overrides_runpath=yes
  9628. if test "$with_gnu_ld" = yes; then
  9629. need_lib_prefix=no
  9630. fi
  9631. need_version=yes
  9632. ;;
  9633. sysv4 | sysv4.3*)
  9634. version_type=linux
  9635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9636. soname_spec='${libname}${release}${shared_ext}$major'
  9637. shlibpath_var=LD_LIBRARY_PATH
  9638. case $host_vendor in
  9639. sni)
  9640. shlibpath_overrides_runpath=no
  9641. need_lib_prefix=no
  9642. runpath_var=LD_RUN_PATH
  9643. ;;
  9644. siemens)
  9645. need_lib_prefix=no
  9646. ;;
  9647. motorola)
  9648. need_lib_prefix=no
  9649. need_version=no
  9650. shlibpath_overrides_runpath=no
  9651. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9652. ;;
  9653. esac
  9654. ;;
  9655. sysv4*MP*)
  9656. if test -d /usr/nec ;then
  9657. version_type=linux
  9658. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9659. soname_spec='$libname${shared_ext}.$major'
  9660. shlibpath_var=LD_LIBRARY_PATH
  9661. fi
  9662. ;;
  9663. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9664. version_type=freebsd-elf
  9665. need_lib_prefix=no
  9666. need_version=no
  9667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9668. soname_spec='${libname}${release}${shared_ext}$major'
  9669. shlibpath_var=LD_LIBRARY_PATH
  9670. shlibpath_overrides_runpath=yes
  9671. hardcode_into_libs=yes
  9672. if test "$with_gnu_ld" = yes; then
  9673. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9674. else
  9675. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9676. case $host_os in
  9677. sco3.2v5*)
  9678. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9679. ;;
  9680. esac
  9681. fi
  9682. sys_lib_dlsearch_path_spec='/usr/lib'
  9683. ;;
  9684. tpf*)
  9685. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9686. version_type=linux
  9687. need_lib_prefix=no
  9688. need_version=no
  9689. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9690. shlibpath_var=LD_LIBRARY_PATH
  9691. shlibpath_overrides_runpath=no
  9692. hardcode_into_libs=yes
  9693. ;;
  9694. uts4*)
  9695. version_type=linux
  9696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9697. soname_spec='${libname}${release}${shared_ext}$major'
  9698. shlibpath_var=LD_LIBRARY_PATH
  9699. ;;
  9700. *)
  9701. dynamic_linker=no
  9702. ;;
  9703. esac
  9704. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9705. $as_echo "$dynamic_linker" >&6; }
  9706. test "$dynamic_linker" = no && can_build_shared=no
  9707. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9708. if test "$GCC" = yes; then
  9709. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9710. fi
  9711. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9712. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9713. fi
  9714. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9715. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9716. fi
  9717. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9718. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9719. hardcode_action=
  9720. if test -n "$hardcode_libdir_flag_spec" ||
  9721. test -n "$runpath_var" ||
  9722. test "X$hardcode_automatic" = "Xyes" ; then
  9723. # We can hardcode non-existent directories.
  9724. if test "$hardcode_direct" != no &&
  9725. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9726. # have to relink, otherwise we might link with an installed library
  9727. # when we should be linking with a yet-to-be-installed one
  9728. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9729. test "$hardcode_minus_L" != no; then
  9730. # Linking always hardcodes the temporary library directory.
  9731. hardcode_action=relink
  9732. else
  9733. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9734. hardcode_action=immediate
  9735. fi
  9736. else
  9737. # We cannot hardcode anything, or else we can only hardcode existing
  9738. # directories.
  9739. hardcode_action=unsupported
  9740. fi
  9741. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9742. $as_echo "$hardcode_action" >&6; }
  9743. if test "$hardcode_action" = relink ||
  9744. test "$inherit_rpath" = yes; then
  9745. # Fast installation is not supported
  9746. enable_fast_install=no
  9747. elif test "$shlibpath_overrides_runpath" = yes ||
  9748. test "$enable_shared" = no; then
  9749. # Fast installation is not necessary
  9750. enable_fast_install=needless
  9751. fi
  9752. if test "x$enable_dlopen" != xyes; then
  9753. enable_dlopen=unknown
  9754. enable_dlopen_self=unknown
  9755. enable_dlopen_self_static=unknown
  9756. else
  9757. lt_cv_dlopen=no
  9758. lt_cv_dlopen_libs=
  9759. case $host_os in
  9760. beos*)
  9761. lt_cv_dlopen="load_add_on"
  9762. lt_cv_dlopen_libs=
  9763. lt_cv_dlopen_self=yes
  9764. ;;
  9765. mingw* | pw32* | cegcc*)
  9766. lt_cv_dlopen="LoadLibrary"
  9767. lt_cv_dlopen_libs=
  9768. ;;
  9769. cygwin*)
  9770. lt_cv_dlopen="dlopen"
  9771. lt_cv_dlopen_libs=
  9772. ;;
  9773. darwin*)
  9774. # if libdl is installed we need to link against it
  9775. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9776. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9777. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9778. $as_echo_n "(cached) " >&6
  9779. else
  9780. ac_check_lib_save_LIBS=$LIBS
  9781. LIBS="-ldl $LIBS"
  9782. cat >conftest.$ac_ext <<_ACEOF
  9783. /* confdefs.h. */
  9784. _ACEOF
  9785. cat confdefs.h >>conftest.$ac_ext
  9786. cat >>conftest.$ac_ext <<_ACEOF
  9787. /* end confdefs.h. */
  9788. /* Override any GCC internal prototype to avoid an error.
  9789. Use char because int might match the return type of a GCC
  9790. builtin and then its argument prototype would still apply. */
  9791. #ifdef __cplusplus
  9792. extern "C"
  9793. #endif
  9794. char dlopen ();
  9795. int
  9796. main ()
  9797. {
  9798. return dlopen ();
  9799. ;
  9800. return 0;
  9801. }
  9802. _ACEOF
  9803. rm -f conftest.$ac_objext conftest$ac_exeext
  9804. if { (ac_try="$ac_link"
  9805. case "(($ac_try" in
  9806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9807. *) ac_try_echo=$ac_try;;
  9808. esac
  9809. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9810. $as_echo "$ac_try_echo") >&5
  9811. (eval "$ac_link") 2>conftest.er1
  9812. ac_status=$?
  9813. grep -v '^ *+' conftest.er1 >conftest.err
  9814. rm -f conftest.er1
  9815. cat conftest.err >&5
  9816. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9817. (exit $ac_status); } && {
  9818. test -z "$ac_c_werror_flag" ||
  9819. test ! -s conftest.err
  9820. } && test -s conftest$ac_exeext && {
  9821. test "$cross_compiling" = yes ||
  9822. $as_test_x conftest$ac_exeext
  9823. }; then
  9824. ac_cv_lib_dl_dlopen=yes
  9825. else
  9826. $as_echo "$as_me: failed program was:" >&5
  9827. sed 's/^/| /' conftest.$ac_ext >&5
  9828. ac_cv_lib_dl_dlopen=no
  9829. fi
  9830. rm -rf conftest.dSYM
  9831. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9832. conftest$ac_exeext conftest.$ac_ext
  9833. LIBS=$ac_check_lib_save_LIBS
  9834. fi
  9835. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9836. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9837. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9838. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9839. else
  9840. lt_cv_dlopen="dyld"
  9841. lt_cv_dlopen_libs=
  9842. lt_cv_dlopen_self=yes
  9843. fi
  9844. ;;
  9845. *)
  9846. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  9847. $as_echo_n "checking for shl_load... " >&6; }
  9848. if test "${ac_cv_func_shl_load+set}" = set; then
  9849. $as_echo_n "(cached) " >&6
  9850. else
  9851. cat >conftest.$ac_ext <<_ACEOF
  9852. /* confdefs.h. */
  9853. _ACEOF
  9854. cat confdefs.h >>conftest.$ac_ext
  9855. cat >>conftest.$ac_ext <<_ACEOF
  9856. /* end confdefs.h. */
  9857. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9858. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9859. #define shl_load innocuous_shl_load
  9860. /* System header to define __stub macros and hopefully few prototypes,
  9861. which can conflict with char shl_load (); below.
  9862. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9863. <limits.h> exists even on freestanding compilers. */
  9864. #ifdef __STDC__
  9865. # include <limits.h>
  9866. #else
  9867. # include <assert.h>
  9868. #endif
  9869. #undef shl_load
  9870. /* Override any GCC internal prototype to avoid an error.
  9871. Use char because int might match the return type of a GCC
  9872. builtin and then its argument prototype would still apply. */
  9873. #ifdef __cplusplus
  9874. extern "C"
  9875. #endif
  9876. char shl_load ();
  9877. /* The GNU C library defines this for functions which it implements
  9878. to always fail with ENOSYS. Some functions are actually named
  9879. something starting with __ and the normal name is an alias. */
  9880. #if defined __stub_shl_load || defined __stub___shl_load
  9881. choke me
  9882. #endif
  9883. int
  9884. main ()
  9885. {
  9886. return shl_load ();
  9887. ;
  9888. return 0;
  9889. }
  9890. _ACEOF
  9891. rm -f conftest.$ac_objext conftest$ac_exeext
  9892. if { (ac_try="$ac_link"
  9893. case "(($ac_try" in
  9894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9895. *) ac_try_echo=$ac_try;;
  9896. esac
  9897. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9898. $as_echo "$ac_try_echo") >&5
  9899. (eval "$ac_link") 2>conftest.er1
  9900. ac_status=$?
  9901. grep -v '^ *+' conftest.er1 >conftest.err
  9902. rm -f conftest.er1
  9903. cat conftest.err >&5
  9904. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9905. (exit $ac_status); } && {
  9906. test -z "$ac_c_werror_flag" ||
  9907. test ! -s conftest.err
  9908. } && test -s conftest$ac_exeext && {
  9909. test "$cross_compiling" = yes ||
  9910. $as_test_x conftest$ac_exeext
  9911. }; then
  9912. ac_cv_func_shl_load=yes
  9913. else
  9914. $as_echo "$as_me: failed program was:" >&5
  9915. sed 's/^/| /' conftest.$ac_ext >&5
  9916. ac_cv_func_shl_load=no
  9917. fi
  9918. rm -rf conftest.dSYM
  9919. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9920. conftest$ac_exeext conftest.$ac_ext
  9921. fi
  9922. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9923. $as_echo "$ac_cv_func_shl_load" >&6; }
  9924. if test "x$ac_cv_func_shl_load" = x""yes; then
  9925. lt_cv_dlopen="shl_load"
  9926. else
  9927. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9928. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9929. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9930. $as_echo_n "(cached) " >&6
  9931. else
  9932. ac_check_lib_save_LIBS=$LIBS
  9933. LIBS="-ldld $LIBS"
  9934. cat >conftest.$ac_ext <<_ACEOF
  9935. /* confdefs.h. */
  9936. _ACEOF
  9937. cat confdefs.h >>conftest.$ac_ext
  9938. cat >>conftest.$ac_ext <<_ACEOF
  9939. /* end confdefs.h. */
  9940. /* Override any GCC internal prototype to avoid an error.
  9941. Use char because int might match the return type of a GCC
  9942. builtin and then its argument prototype would still apply. */
  9943. #ifdef __cplusplus
  9944. extern "C"
  9945. #endif
  9946. char shl_load ();
  9947. int
  9948. main ()
  9949. {
  9950. return shl_load ();
  9951. ;
  9952. return 0;
  9953. }
  9954. _ACEOF
  9955. rm -f conftest.$ac_objext conftest$ac_exeext
  9956. if { (ac_try="$ac_link"
  9957. case "(($ac_try" in
  9958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9959. *) ac_try_echo=$ac_try;;
  9960. esac
  9961. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9962. $as_echo "$ac_try_echo") >&5
  9963. (eval "$ac_link") 2>conftest.er1
  9964. ac_status=$?
  9965. grep -v '^ *+' conftest.er1 >conftest.err
  9966. rm -f conftest.er1
  9967. cat conftest.err >&5
  9968. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9969. (exit $ac_status); } && {
  9970. test -z "$ac_c_werror_flag" ||
  9971. test ! -s conftest.err
  9972. } && test -s conftest$ac_exeext && {
  9973. test "$cross_compiling" = yes ||
  9974. $as_test_x conftest$ac_exeext
  9975. }; then
  9976. ac_cv_lib_dld_shl_load=yes
  9977. else
  9978. $as_echo "$as_me: failed program was:" >&5
  9979. sed 's/^/| /' conftest.$ac_ext >&5
  9980. ac_cv_lib_dld_shl_load=no
  9981. fi
  9982. rm -rf conftest.dSYM
  9983. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9984. conftest$ac_exeext conftest.$ac_ext
  9985. LIBS=$ac_check_lib_save_LIBS
  9986. fi
  9987. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9988. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9989. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  9990. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9991. else
  9992. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  9993. $as_echo_n "checking for dlopen... " >&6; }
  9994. if test "${ac_cv_func_dlopen+set}" = set; then
  9995. $as_echo_n "(cached) " >&6
  9996. else
  9997. cat >conftest.$ac_ext <<_ACEOF
  9998. /* confdefs.h. */
  9999. _ACEOF
  10000. cat confdefs.h >>conftest.$ac_ext
  10001. cat >>conftest.$ac_ext <<_ACEOF
  10002. /* end confdefs.h. */
  10003. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10004. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10005. #define dlopen innocuous_dlopen
  10006. /* System header to define __stub macros and hopefully few prototypes,
  10007. which can conflict with char dlopen (); below.
  10008. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10009. <limits.h> exists even on freestanding compilers. */
  10010. #ifdef __STDC__
  10011. # include <limits.h>
  10012. #else
  10013. # include <assert.h>
  10014. #endif
  10015. #undef dlopen
  10016. /* Override any GCC internal prototype to avoid an error.
  10017. Use char because int might match the return type of a GCC
  10018. builtin and then its argument prototype would still apply. */
  10019. #ifdef __cplusplus
  10020. extern "C"
  10021. #endif
  10022. char dlopen ();
  10023. /* The GNU C library defines this for functions which it implements
  10024. to always fail with ENOSYS. Some functions are actually named
  10025. something starting with __ and the normal name is an alias. */
  10026. #if defined __stub_dlopen || defined __stub___dlopen
  10027. choke me
  10028. #endif
  10029. int
  10030. main ()
  10031. {
  10032. return dlopen ();
  10033. ;
  10034. return 0;
  10035. }
  10036. _ACEOF
  10037. rm -f conftest.$ac_objext conftest$ac_exeext
  10038. if { (ac_try="$ac_link"
  10039. case "(($ac_try" in
  10040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10041. *) ac_try_echo=$ac_try;;
  10042. esac
  10043. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10044. $as_echo "$ac_try_echo") >&5
  10045. (eval "$ac_link") 2>conftest.er1
  10046. ac_status=$?
  10047. grep -v '^ *+' conftest.er1 >conftest.err
  10048. rm -f conftest.er1
  10049. cat conftest.err >&5
  10050. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10051. (exit $ac_status); } && {
  10052. test -z "$ac_c_werror_flag" ||
  10053. test ! -s conftest.err
  10054. } && test -s conftest$ac_exeext && {
  10055. test "$cross_compiling" = yes ||
  10056. $as_test_x conftest$ac_exeext
  10057. }; then
  10058. ac_cv_func_dlopen=yes
  10059. else
  10060. $as_echo "$as_me: failed program was:" >&5
  10061. sed 's/^/| /' conftest.$ac_ext >&5
  10062. ac_cv_func_dlopen=no
  10063. fi
  10064. rm -rf conftest.dSYM
  10065. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10066. conftest$ac_exeext conftest.$ac_ext
  10067. fi
  10068. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10069. $as_echo "$ac_cv_func_dlopen" >&6; }
  10070. if test "x$ac_cv_func_dlopen" = x""yes; then
  10071. lt_cv_dlopen="dlopen"
  10072. else
  10073. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10074. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10075. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10076. $as_echo_n "(cached) " >&6
  10077. else
  10078. ac_check_lib_save_LIBS=$LIBS
  10079. LIBS="-ldl $LIBS"
  10080. cat >conftest.$ac_ext <<_ACEOF
  10081. /* confdefs.h. */
  10082. _ACEOF
  10083. cat confdefs.h >>conftest.$ac_ext
  10084. cat >>conftest.$ac_ext <<_ACEOF
  10085. /* end confdefs.h. */
  10086. /* Override any GCC internal prototype to avoid an error.
  10087. Use char because int might match the return type of a GCC
  10088. builtin and then its argument prototype would still apply. */
  10089. #ifdef __cplusplus
  10090. extern "C"
  10091. #endif
  10092. char dlopen ();
  10093. int
  10094. main ()
  10095. {
  10096. return dlopen ();
  10097. ;
  10098. return 0;
  10099. }
  10100. _ACEOF
  10101. rm -f conftest.$ac_objext conftest$ac_exeext
  10102. if { (ac_try="$ac_link"
  10103. case "(($ac_try" in
  10104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10105. *) ac_try_echo=$ac_try;;
  10106. esac
  10107. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10108. $as_echo "$ac_try_echo") >&5
  10109. (eval "$ac_link") 2>conftest.er1
  10110. ac_status=$?
  10111. grep -v '^ *+' conftest.er1 >conftest.err
  10112. rm -f conftest.er1
  10113. cat conftest.err >&5
  10114. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10115. (exit $ac_status); } && {
  10116. test -z "$ac_c_werror_flag" ||
  10117. test ! -s conftest.err
  10118. } && test -s conftest$ac_exeext && {
  10119. test "$cross_compiling" = yes ||
  10120. $as_test_x conftest$ac_exeext
  10121. }; then
  10122. ac_cv_lib_dl_dlopen=yes
  10123. else
  10124. $as_echo "$as_me: failed program was:" >&5
  10125. sed 's/^/| /' conftest.$ac_ext >&5
  10126. ac_cv_lib_dl_dlopen=no
  10127. fi
  10128. rm -rf conftest.dSYM
  10129. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10130. conftest$ac_exeext conftest.$ac_ext
  10131. LIBS=$ac_check_lib_save_LIBS
  10132. fi
  10133. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10134. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10135. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10136. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10137. else
  10138. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10139. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10140. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10141. $as_echo_n "(cached) " >&6
  10142. else
  10143. ac_check_lib_save_LIBS=$LIBS
  10144. LIBS="-lsvld $LIBS"
  10145. cat >conftest.$ac_ext <<_ACEOF
  10146. /* confdefs.h. */
  10147. _ACEOF
  10148. cat confdefs.h >>conftest.$ac_ext
  10149. cat >>conftest.$ac_ext <<_ACEOF
  10150. /* end confdefs.h. */
  10151. /* Override any GCC internal prototype to avoid an error.
  10152. Use char because int might match the return type of a GCC
  10153. builtin and then its argument prototype would still apply. */
  10154. #ifdef __cplusplus
  10155. extern "C"
  10156. #endif
  10157. char dlopen ();
  10158. int
  10159. main ()
  10160. {
  10161. return dlopen ();
  10162. ;
  10163. return 0;
  10164. }
  10165. _ACEOF
  10166. rm -f conftest.$ac_objext conftest$ac_exeext
  10167. if { (ac_try="$ac_link"
  10168. case "(($ac_try" in
  10169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10170. *) ac_try_echo=$ac_try;;
  10171. esac
  10172. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10173. $as_echo "$ac_try_echo") >&5
  10174. (eval "$ac_link") 2>conftest.er1
  10175. ac_status=$?
  10176. grep -v '^ *+' conftest.er1 >conftest.err
  10177. rm -f conftest.er1
  10178. cat conftest.err >&5
  10179. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10180. (exit $ac_status); } && {
  10181. test -z "$ac_c_werror_flag" ||
  10182. test ! -s conftest.err
  10183. } && test -s conftest$ac_exeext && {
  10184. test "$cross_compiling" = yes ||
  10185. $as_test_x conftest$ac_exeext
  10186. }; then
  10187. ac_cv_lib_svld_dlopen=yes
  10188. else
  10189. $as_echo "$as_me: failed program was:" >&5
  10190. sed 's/^/| /' conftest.$ac_ext >&5
  10191. ac_cv_lib_svld_dlopen=no
  10192. fi
  10193. rm -rf conftest.dSYM
  10194. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10195. conftest$ac_exeext conftest.$ac_ext
  10196. LIBS=$ac_check_lib_save_LIBS
  10197. fi
  10198. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10199. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10200. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  10201. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10202. else
  10203. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10204. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10205. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10206. $as_echo_n "(cached) " >&6
  10207. else
  10208. ac_check_lib_save_LIBS=$LIBS
  10209. LIBS="-ldld $LIBS"
  10210. cat >conftest.$ac_ext <<_ACEOF
  10211. /* confdefs.h. */
  10212. _ACEOF
  10213. cat confdefs.h >>conftest.$ac_ext
  10214. cat >>conftest.$ac_ext <<_ACEOF
  10215. /* end confdefs.h. */
  10216. /* Override any GCC internal prototype to avoid an error.
  10217. Use char because int might match the return type of a GCC
  10218. builtin and then its argument prototype would still apply. */
  10219. #ifdef __cplusplus
  10220. extern "C"
  10221. #endif
  10222. char dld_link ();
  10223. int
  10224. main ()
  10225. {
  10226. return dld_link ();
  10227. ;
  10228. return 0;
  10229. }
  10230. _ACEOF
  10231. rm -f conftest.$ac_objext conftest$ac_exeext
  10232. if { (ac_try="$ac_link"
  10233. case "(($ac_try" in
  10234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10235. *) ac_try_echo=$ac_try;;
  10236. esac
  10237. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10238. $as_echo "$ac_try_echo") >&5
  10239. (eval "$ac_link") 2>conftest.er1
  10240. ac_status=$?
  10241. grep -v '^ *+' conftest.er1 >conftest.err
  10242. rm -f conftest.er1
  10243. cat conftest.err >&5
  10244. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10245. (exit $ac_status); } && {
  10246. test -z "$ac_c_werror_flag" ||
  10247. test ! -s conftest.err
  10248. } && test -s conftest$ac_exeext && {
  10249. test "$cross_compiling" = yes ||
  10250. $as_test_x conftest$ac_exeext
  10251. }; then
  10252. ac_cv_lib_dld_dld_link=yes
  10253. else
  10254. $as_echo "$as_me: failed program was:" >&5
  10255. sed 's/^/| /' conftest.$ac_ext >&5
  10256. ac_cv_lib_dld_dld_link=no
  10257. fi
  10258. rm -rf conftest.dSYM
  10259. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10260. conftest$ac_exeext conftest.$ac_ext
  10261. LIBS=$ac_check_lib_save_LIBS
  10262. fi
  10263. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10264. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10265. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  10266. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10267. fi
  10268. fi
  10269. fi
  10270. fi
  10271. fi
  10272. fi
  10273. ;;
  10274. esac
  10275. if test "x$lt_cv_dlopen" != xno; then
  10276. enable_dlopen=yes
  10277. else
  10278. enable_dlopen=no
  10279. fi
  10280. case $lt_cv_dlopen in
  10281. dlopen)
  10282. save_CPPFLAGS="$CPPFLAGS"
  10283. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10284. save_LDFLAGS="$LDFLAGS"
  10285. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10286. save_LIBS="$LIBS"
  10287. LIBS="$lt_cv_dlopen_libs $LIBS"
  10288. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10289. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10290. if test "${lt_cv_dlopen_self+set}" = set; then
  10291. $as_echo_n "(cached) " >&6
  10292. else
  10293. if test "$cross_compiling" = yes; then :
  10294. lt_cv_dlopen_self=cross
  10295. else
  10296. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10297. lt_status=$lt_dlunknown
  10298. cat > conftest.$ac_ext <<_LT_EOF
  10299. #line 11956 "configure"
  10300. #include "confdefs.h"
  10301. #if HAVE_DLFCN_H
  10302. #include <dlfcn.h>
  10303. #endif
  10304. #include <stdio.h>
  10305. #ifdef RTLD_GLOBAL
  10306. # define LT_DLGLOBAL RTLD_GLOBAL
  10307. #else
  10308. # ifdef DL_GLOBAL
  10309. # define LT_DLGLOBAL DL_GLOBAL
  10310. # else
  10311. # define LT_DLGLOBAL 0
  10312. # endif
  10313. #endif
  10314. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10315. find out it does not work in some platform. */
  10316. #ifndef LT_DLLAZY_OR_NOW
  10317. # ifdef RTLD_LAZY
  10318. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10319. # else
  10320. # ifdef DL_LAZY
  10321. # define LT_DLLAZY_OR_NOW DL_LAZY
  10322. # else
  10323. # ifdef RTLD_NOW
  10324. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10325. # else
  10326. # ifdef DL_NOW
  10327. # define LT_DLLAZY_OR_NOW DL_NOW
  10328. # else
  10329. # define LT_DLLAZY_OR_NOW 0
  10330. # endif
  10331. # endif
  10332. # endif
  10333. # endif
  10334. #endif
  10335. void fnord() { int i=42;}
  10336. int main ()
  10337. {
  10338. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10339. int status = $lt_dlunknown;
  10340. if (self)
  10341. {
  10342. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10343. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10344. /* dlclose (self); */
  10345. }
  10346. else
  10347. puts (dlerror ());
  10348. return status;
  10349. }
  10350. _LT_EOF
  10351. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10352. (eval $ac_link) 2>&5
  10353. ac_status=$?
  10354. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10355. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10356. (./conftest; exit; ) >&5 2>/dev/null
  10357. lt_status=$?
  10358. case x$lt_status in
  10359. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10360. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10361. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10362. esac
  10363. else :
  10364. # compilation failed
  10365. lt_cv_dlopen_self=no
  10366. fi
  10367. fi
  10368. rm -fr conftest*
  10369. fi
  10370. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10371. $as_echo "$lt_cv_dlopen_self" >&6; }
  10372. if test "x$lt_cv_dlopen_self" = xyes; then
  10373. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10374. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10375. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10376. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10377. $as_echo_n "(cached) " >&6
  10378. else
  10379. if test "$cross_compiling" = yes; then :
  10380. lt_cv_dlopen_self_static=cross
  10381. else
  10382. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10383. lt_status=$lt_dlunknown
  10384. cat > conftest.$ac_ext <<_LT_EOF
  10385. #line 12052 "configure"
  10386. #include "confdefs.h"
  10387. #if HAVE_DLFCN_H
  10388. #include <dlfcn.h>
  10389. #endif
  10390. #include <stdio.h>
  10391. #ifdef RTLD_GLOBAL
  10392. # define LT_DLGLOBAL RTLD_GLOBAL
  10393. #else
  10394. # ifdef DL_GLOBAL
  10395. # define LT_DLGLOBAL DL_GLOBAL
  10396. # else
  10397. # define LT_DLGLOBAL 0
  10398. # endif
  10399. #endif
  10400. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10401. find out it does not work in some platform. */
  10402. #ifndef LT_DLLAZY_OR_NOW
  10403. # ifdef RTLD_LAZY
  10404. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10405. # else
  10406. # ifdef DL_LAZY
  10407. # define LT_DLLAZY_OR_NOW DL_LAZY
  10408. # else
  10409. # ifdef RTLD_NOW
  10410. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10411. # else
  10412. # ifdef DL_NOW
  10413. # define LT_DLLAZY_OR_NOW DL_NOW
  10414. # else
  10415. # define LT_DLLAZY_OR_NOW 0
  10416. # endif
  10417. # endif
  10418. # endif
  10419. # endif
  10420. #endif
  10421. void fnord() { int i=42;}
  10422. int main ()
  10423. {
  10424. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10425. int status = $lt_dlunknown;
  10426. if (self)
  10427. {
  10428. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10429. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10430. /* dlclose (self); */
  10431. }
  10432. else
  10433. puts (dlerror ());
  10434. return status;
  10435. }
  10436. _LT_EOF
  10437. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10438. (eval $ac_link) 2>&5
  10439. ac_status=$?
  10440. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10441. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10442. (./conftest; exit; ) >&5 2>/dev/null
  10443. lt_status=$?
  10444. case x$lt_status in
  10445. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10446. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10447. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10448. esac
  10449. else :
  10450. # compilation failed
  10451. lt_cv_dlopen_self_static=no
  10452. fi
  10453. fi
  10454. rm -fr conftest*
  10455. fi
  10456. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10457. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10458. fi
  10459. CPPFLAGS="$save_CPPFLAGS"
  10460. LDFLAGS="$save_LDFLAGS"
  10461. LIBS="$save_LIBS"
  10462. ;;
  10463. esac
  10464. case $lt_cv_dlopen_self in
  10465. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10466. *) enable_dlopen_self=unknown ;;
  10467. esac
  10468. case $lt_cv_dlopen_self_static in
  10469. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10470. *) enable_dlopen_self_static=unknown ;;
  10471. esac
  10472. fi
  10473. striplib=
  10474. old_striplib=
  10475. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10476. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10477. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10478. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10479. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10480. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10481. $as_echo "yes" >&6; }
  10482. else
  10483. # FIXME - insert some real tests, host_os isn't really good enough
  10484. case $host_os in
  10485. darwin*)
  10486. if test -n "$STRIP" ; then
  10487. striplib="$STRIP -x"
  10488. old_striplib="$STRIP -S"
  10489. { $as_echo "$as_me:$LINENO: result: yes" >&5
  10490. $as_echo "yes" >&6; }
  10491. else
  10492. { $as_echo "$as_me:$LINENO: result: no" >&5
  10493. $as_echo "no" >&6; }
  10494. fi
  10495. ;;
  10496. *)
  10497. { $as_echo "$as_me:$LINENO: result: no" >&5
  10498. $as_echo "no" >&6; }
  10499. ;;
  10500. esac
  10501. fi
  10502. # Report which library types will actually be built
  10503. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10504. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10505. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10506. $as_echo "$can_build_shared" >&6; }
  10507. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10508. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10509. test "$can_build_shared" = "no" && enable_shared=no
  10510. # On AIX, shared libraries and static libraries use the same namespace, and
  10511. # are all built from PIC.
  10512. case $host_os in
  10513. aix3*)
  10514. test "$enable_shared" = yes && enable_static=no
  10515. if test -n "$RANLIB"; then
  10516. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10517. postinstall_cmds='$RANLIB $lib'
  10518. fi
  10519. ;;
  10520. aix[4-9]*)
  10521. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10522. test "$enable_shared" = yes && enable_static=no
  10523. fi
  10524. ;;
  10525. esac
  10526. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  10527. $as_echo "$enable_shared" >&6; }
  10528. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  10529. $as_echo_n "checking whether to build static libraries... " >&6; }
  10530. # Make sure either enable_shared or enable_static is yes.
  10531. test "$enable_shared" = yes || enable_static=yes
  10532. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  10533. $as_echo "$enable_static" >&6; }
  10534. fi
  10535. ac_ext=cpp
  10536. ac_cpp='$CXXCPP $CPPFLAGS'
  10537. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10538. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10539. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10540. CC="$lt_save_CC"
  10541. ac_ext=cpp
  10542. ac_cpp='$CXXCPP $CPPFLAGS'
  10543. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10544. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10545. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10546. archive_cmds_need_lc_CXX=no
  10547. allow_undefined_flag_CXX=
  10548. always_export_symbols_CXX=no
  10549. archive_expsym_cmds_CXX=
  10550. compiler_needs_object_CXX=no
  10551. export_dynamic_flag_spec_CXX=
  10552. hardcode_direct_CXX=no
  10553. hardcode_direct_absolute_CXX=no
  10554. hardcode_libdir_flag_spec_CXX=
  10555. hardcode_libdir_flag_spec_ld_CXX=
  10556. hardcode_libdir_separator_CXX=
  10557. hardcode_minus_L_CXX=no
  10558. hardcode_shlibpath_var_CXX=unsupported
  10559. hardcode_automatic_CXX=no
  10560. inherit_rpath_CXX=no
  10561. module_cmds_CXX=
  10562. module_expsym_cmds_CXX=
  10563. link_all_deplibs_CXX=unknown
  10564. old_archive_cmds_CXX=$old_archive_cmds
  10565. no_undefined_flag_CXX=
  10566. whole_archive_flag_spec_CXX=
  10567. enable_shared_with_static_runtimes_CXX=no
  10568. # Source file extension for C++ test sources.
  10569. ac_ext=cpp
  10570. # Object file extension for compiled C++ test sources.
  10571. objext=o
  10572. objext_CXX=$objext
  10573. # No sense in running all these tests if we already determined that
  10574. # the CXX compiler isn't working. Some variables (like enable_shared)
  10575. # are currently assumed to apply to all compilers on this platform,
  10576. # and will be corrupted by setting them based on a non-working compiler.
  10577. if test "$_lt_caught_CXX_error" != yes; then
  10578. # Code to be used in simple compile tests
  10579. lt_simple_compile_test_code="int some_variable = 0;"
  10580. # Code to be used in simple link tests
  10581. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10582. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10583. # If no C compiler was specified, use CC.
  10584. LTCC=${LTCC-"$CC"}
  10585. # If no C compiler flags were specified, use CFLAGS.
  10586. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10587. # Allow CC to be a program name with arguments.
  10588. compiler=$CC
  10589. # save warnings/boilerplate of simple test code
  10590. ac_outfile=conftest.$ac_objext
  10591. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10592. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10593. _lt_compiler_boilerplate=`cat conftest.err`
  10594. $RM conftest*
  10595. ac_outfile=conftest.$ac_objext
  10596. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10597. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10598. _lt_linker_boilerplate=`cat conftest.err`
  10599. $RM -r conftest*
  10600. # Allow CC to be a program name with arguments.
  10601. lt_save_CC=$CC
  10602. lt_save_LD=$LD
  10603. lt_save_GCC=$GCC
  10604. GCC=$GXX
  10605. lt_save_with_gnu_ld=$with_gnu_ld
  10606. lt_save_path_LD=$lt_cv_path_LD
  10607. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10608. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10609. else
  10610. $as_unset lt_cv_prog_gnu_ld
  10611. fi
  10612. if test -n "${lt_cv_path_LDCXX+set}"; then
  10613. lt_cv_path_LD=$lt_cv_path_LDCXX
  10614. else
  10615. $as_unset lt_cv_path_LD
  10616. fi
  10617. test -z "${LDCXX+set}" || LD=$LDCXX
  10618. CC=${CXX-"c++"}
  10619. compiler=$CC
  10620. compiler_CXX=$CC
  10621. for cc_temp in $compiler""; do
  10622. case $cc_temp in
  10623. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10624. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10625. \-*) ;;
  10626. *) break;;
  10627. esac
  10628. done
  10629. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10630. if test -n "$compiler"; then
  10631. # We don't want -fno-exception when compiling C++ code, so set the
  10632. # no_builtin_flag separately
  10633. if test "$GXX" = yes; then
  10634. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10635. else
  10636. lt_prog_compiler_no_builtin_flag_CXX=
  10637. fi
  10638. if test "$GXX" = yes; then
  10639. # Set up default GNU C++ configuration
  10640. # Check whether --with-gnu-ld was given.
  10641. if test "${with_gnu_ld+set}" = set; then
  10642. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10643. else
  10644. with_gnu_ld=no
  10645. fi
  10646. ac_prog=ld
  10647. if test "$GCC" = yes; then
  10648. # Check if gcc -print-prog-name=ld gives a path.
  10649. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10650. $as_echo_n "checking for ld used by $CC... " >&6; }
  10651. case $host in
  10652. *-*-mingw*)
  10653. # gcc leaves a trailing carriage return which upsets mingw
  10654. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10655. *)
  10656. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10657. esac
  10658. case $ac_prog in
  10659. # Accept absolute paths.
  10660. [\\/]* | ?:[\\/]*)
  10661. re_direlt='/[^/][^/]*/\.\./'
  10662. # Canonicalize the pathname of ld
  10663. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10664. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10665. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10666. done
  10667. test -z "$LD" && LD="$ac_prog"
  10668. ;;
  10669. "")
  10670. # If it fails, then pretend we aren't using GCC.
  10671. ac_prog=ld
  10672. ;;
  10673. *)
  10674. # If it is relative, then search for the first ld in PATH.
  10675. with_gnu_ld=unknown
  10676. ;;
  10677. esac
  10678. elif test "$with_gnu_ld" = yes; then
  10679. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  10680. $as_echo_n "checking for GNU ld... " >&6; }
  10681. else
  10682. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10683. $as_echo_n "checking for non-GNU ld... " >&6; }
  10684. fi
  10685. if test "${lt_cv_path_LD+set}" = set; then
  10686. $as_echo_n "(cached) " >&6
  10687. else
  10688. if test -z "$LD"; then
  10689. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10690. for ac_dir in $PATH; do
  10691. IFS="$lt_save_ifs"
  10692. test -z "$ac_dir" && ac_dir=.
  10693. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10694. lt_cv_path_LD="$ac_dir/$ac_prog"
  10695. # Check to see if the program is GNU ld. I'd rather use --version,
  10696. # but apparently some variants of GNU ld only accept -v.
  10697. # Break only if it was the GNU/non-GNU ld that we prefer.
  10698. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10699. *GNU* | *'with BFD'*)
  10700. test "$with_gnu_ld" != no && break
  10701. ;;
  10702. *)
  10703. test "$with_gnu_ld" != yes && break
  10704. ;;
  10705. esac
  10706. fi
  10707. done
  10708. IFS="$lt_save_ifs"
  10709. else
  10710. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10711. fi
  10712. fi
  10713. LD="$lt_cv_path_LD"
  10714. if test -n "$LD"; then
  10715. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  10716. $as_echo "$LD" >&6; }
  10717. else
  10718. { $as_echo "$as_me:$LINENO: result: no" >&5
  10719. $as_echo "no" >&6; }
  10720. fi
  10721. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10722. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10723. { (exit 1); exit 1; }; }
  10724. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10725. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10726. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10727. $as_echo_n "(cached) " >&6
  10728. else
  10729. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10730. case `$LD -v 2>&1 </dev/null` in
  10731. *GNU* | *'with BFD'*)
  10732. lt_cv_prog_gnu_ld=yes
  10733. ;;
  10734. *)
  10735. lt_cv_prog_gnu_ld=no
  10736. ;;
  10737. esac
  10738. fi
  10739. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10740. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10741. with_gnu_ld=$lt_cv_prog_gnu_ld
  10742. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10743. # archiving commands below assume that GNU ld is being used.
  10744. if test "$with_gnu_ld" = yes; then
  10745. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10746. 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'
  10747. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10748. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10749. # If archive_cmds runs LD, not CC, wlarc should be empty
  10750. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10751. # investigate it a little bit more. (MM)
  10752. wlarc='${wl}'
  10753. # ancient GNU ld didn't support --whole-archive et. al.
  10754. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10755. $GREP 'no-whole-archive' > /dev/null; then
  10756. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10757. else
  10758. whole_archive_flag_spec_CXX=
  10759. fi
  10760. else
  10761. with_gnu_ld=no
  10762. wlarc=
  10763. # A generic and very simple default shared library creation
  10764. # command for GNU C++ for the case where it uses the native
  10765. # linker, instead of GNU ld. If possible, this setting should
  10766. # overridden to take advantage of the native linker features on
  10767. # the platform it is being used on.
  10768. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10769. fi
  10770. # Commands to make compiler produce verbose output that lists
  10771. # what "hidden" libraries, object files and flags are used when
  10772. # linking a shared library.
  10773. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10774. else
  10775. GXX=no
  10776. with_gnu_ld=no
  10777. wlarc=
  10778. fi
  10779. # PORTME: fill in a description of your system's C++ link characteristics
  10780. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10781. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10782. ld_shlibs_CXX=yes
  10783. case $host_os in
  10784. aix3*)
  10785. # FIXME: insert proper C++ library support
  10786. ld_shlibs_CXX=no
  10787. ;;
  10788. aix[4-9]*)
  10789. if test "$host_cpu" = ia64; then
  10790. # On IA64, the linker does run time linking by default, so we don't
  10791. # have to do anything special.
  10792. aix_use_runtimelinking=no
  10793. exp_sym_flag='-Bexport'
  10794. no_entry_flag=""
  10795. else
  10796. aix_use_runtimelinking=no
  10797. # Test if we are trying to use run time linking or normal
  10798. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10799. # need to do runtime linking.
  10800. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10801. for ld_flag in $LDFLAGS; do
  10802. case $ld_flag in
  10803. *-brtl*)
  10804. aix_use_runtimelinking=yes
  10805. break
  10806. ;;
  10807. esac
  10808. done
  10809. ;;
  10810. esac
  10811. exp_sym_flag='-bexport'
  10812. no_entry_flag='-bnoentry'
  10813. fi
  10814. # When large executables or shared objects are built, AIX ld can
  10815. # have problems creating the table of contents. If linking a library
  10816. # or program results in "error TOC overflow" add -mminimal-toc to
  10817. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10818. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10819. archive_cmds_CXX=''
  10820. hardcode_direct_CXX=yes
  10821. hardcode_direct_absolute_CXX=yes
  10822. hardcode_libdir_separator_CXX=':'
  10823. link_all_deplibs_CXX=yes
  10824. file_list_spec_CXX='${wl}-f,'
  10825. if test "$GXX" = yes; then
  10826. case $host_os in aix4.[012]|aix4.[012].*)
  10827. # We only want to do this on AIX 4.2 and lower, the check
  10828. # below for broken collect2 doesn't work under 4.3+
  10829. collect2name=`${CC} -print-prog-name=collect2`
  10830. if test -f "$collect2name" &&
  10831. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10832. then
  10833. # We have reworked collect2
  10834. :
  10835. else
  10836. # We have old collect2
  10837. hardcode_direct_CXX=unsupported
  10838. # It fails to find uninstalled libraries when the uninstalled
  10839. # path is not listed in the libpath. Setting hardcode_minus_L
  10840. # to unsupported forces relinking
  10841. hardcode_minus_L_CXX=yes
  10842. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10843. hardcode_libdir_separator_CXX=
  10844. fi
  10845. esac
  10846. shared_flag='-shared'
  10847. if test "$aix_use_runtimelinking" = yes; then
  10848. shared_flag="$shared_flag "'${wl}-G'
  10849. fi
  10850. else
  10851. # not using gcc
  10852. if test "$host_cpu" = ia64; then
  10853. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10854. # chokes on -Wl,-G. The following line is correct:
  10855. shared_flag='-G'
  10856. else
  10857. if test "$aix_use_runtimelinking" = yes; then
  10858. shared_flag='${wl}-G'
  10859. else
  10860. shared_flag='${wl}-bM:SRE'
  10861. fi
  10862. fi
  10863. fi
  10864. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10865. # It seems that -bexpall does not export symbols beginning with
  10866. # underscore (_), so it is better to generate a list of symbols to
  10867. # export.
  10868. always_export_symbols_CXX=yes
  10869. if test "$aix_use_runtimelinking" = yes; then
  10870. # Warning - without using the other runtime loading flags (-brtl),
  10871. # -berok will link without error, but may produce a broken library.
  10872. allow_undefined_flag_CXX='-berok'
  10873. # Determine the default libpath from the value encoded in an empty
  10874. # executable.
  10875. cat >conftest.$ac_ext <<_ACEOF
  10876. /* confdefs.h. */
  10877. _ACEOF
  10878. cat confdefs.h >>conftest.$ac_ext
  10879. cat >>conftest.$ac_ext <<_ACEOF
  10880. /* end confdefs.h. */
  10881. int
  10882. main ()
  10883. {
  10884. ;
  10885. return 0;
  10886. }
  10887. _ACEOF
  10888. rm -f conftest.$ac_objext conftest$ac_exeext
  10889. if { (ac_try="$ac_link"
  10890. case "(($ac_try" in
  10891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10892. *) ac_try_echo=$ac_try;;
  10893. esac
  10894. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10895. $as_echo "$ac_try_echo") >&5
  10896. (eval "$ac_link") 2>conftest.er1
  10897. ac_status=$?
  10898. grep -v '^ *+' conftest.er1 >conftest.err
  10899. rm -f conftest.er1
  10900. cat conftest.err >&5
  10901. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10902. (exit $ac_status); } && {
  10903. test -z "$ac_cxx_werror_flag" ||
  10904. test ! -s conftest.err
  10905. } && test -s conftest$ac_exeext && {
  10906. test "$cross_compiling" = yes ||
  10907. $as_test_x conftest$ac_exeext
  10908. }; then
  10909. lt_aix_libpath_sed='
  10910. /Import File Strings/,/^$/ {
  10911. /^0/ {
  10912. s/^0 *\(.*\)$/\1/
  10913. p
  10914. }
  10915. }'
  10916. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10917. # Check for a 64-bit object if we didn't find anything.
  10918. if test -z "$aix_libpath"; then
  10919. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10920. fi
  10921. else
  10922. $as_echo "$as_me: failed program was:" >&5
  10923. sed 's/^/| /' conftest.$ac_ext >&5
  10924. fi
  10925. rm -rf conftest.dSYM
  10926. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10927. conftest$ac_exeext conftest.$ac_ext
  10928. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10929. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10930. 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"
  10931. else
  10932. if test "$host_cpu" = ia64; then
  10933. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10934. allow_undefined_flag_CXX="-z nodefs"
  10935. 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"
  10936. else
  10937. # Determine the default libpath from the value encoded in an
  10938. # empty executable.
  10939. cat >conftest.$ac_ext <<_ACEOF
  10940. /* confdefs.h. */
  10941. _ACEOF
  10942. cat confdefs.h >>conftest.$ac_ext
  10943. cat >>conftest.$ac_ext <<_ACEOF
  10944. /* end confdefs.h. */
  10945. int
  10946. main ()
  10947. {
  10948. ;
  10949. return 0;
  10950. }
  10951. _ACEOF
  10952. rm -f conftest.$ac_objext conftest$ac_exeext
  10953. if { (ac_try="$ac_link"
  10954. case "(($ac_try" in
  10955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10956. *) ac_try_echo=$ac_try;;
  10957. esac
  10958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10959. $as_echo "$ac_try_echo") >&5
  10960. (eval "$ac_link") 2>conftest.er1
  10961. ac_status=$?
  10962. grep -v '^ *+' conftest.er1 >conftest.err
  10963. rm -f conftest.er1
  10964. cat conftest.err >&5
  10965. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10966. (exit $ac_status); } && {
  10967. test -z "$ac_cxx_werror_flag" ||
  10968. test ! -s conftest.err
  10969. } && test -s conftest$ac_exeext && {
  10970. test "$cross_compiling" = yes ||
  10971. $as_test_x conftest$ac_exeext
  10972. }; then
  10973. lt_aix_libpath_sed='
  10974. /Import File Strings/,/^$/ {
  10975. /^0/ {
  10976. s/^0 *\(.*\)$/\1/
  10977. p
  10978. }
  10979. }'
  10980. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10981. # Check for a 64-bit object if we didn't find anything.
  10982. if test -z "$aix_libpath"; then
  10983. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10984. fi
  10985. else
  10986. $as_echo "$as_me: failed program was:" >&5
  10987. sed 's/^/| /' conftest.$ac_ext >&5
  10988. fi
  10989. rm -rf conftest.dSYM
  10990. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10991. conftest$ac_exeext conftest.$ac_ext
  10992. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10993. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10994. # Warning - without using the other run time loading flags,
  10995. # -berok will link without error, but may produce a broken library.
  10996. no_undefined_flag_CXX=' ${wl}-bernotok'
  10997. allow_undefined_flag_CXX=' ${wl}-berok'
  10998. # Exported symbols can be pulled into shared objects from archives
  10999. whole_archive_flag_spec_CXX='$convenience'
  11000. archive_cmds_need_lc_CXX=yes
  11001. # This is similar to how AIX traditionally builds its shared
  11002. # libraries.
  11003. 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'
  11004. fi
  11005. fi
  11006. ;;
  11007. beos*)
  11008. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11009. allow_undefined_flag_CXX=unsupported
  11010. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11011. # support --undefined. This deserves some investigation. FIXME
  11012. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11013. else
  11014. ld_shlibs_CXX=no
  11015. fi
  11016. ;;
  11017. chorus*)
  11018. case $cc_basename in
  11019. *)
  11020. # FIXME: insert proper C++ library support
  11021. ld_shlibs_CXX=no
  11022. ;;
  11023. esac
  11024. ;;
  11025. cygwin* | mingw* | pw32* | cegcc*)
  11026. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11027. # as there is no search path for DLLs.
  11028. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11029. allow_undefined_flag_CXX=unsupported
  11030. always_export_symbols_CXX=no
  11031. enable_shared_with_static_runtimes_CXX=yes
  11032. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11033. 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'
  11034. # If the export-symbols file already is a .def file (1st line
  11035. # is EXPORTS), use it as is; otherwise, prepend...
  11036. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11037. cp $export_symbols $output_objdir/$soname.def;
  11038. else
  11039. echo EXPORTS > $output_objdir/$soname.def;
  11040. cat $export_symbols >> $output_objdir/$soname.def;
  11041. fi~
  11042. $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'
  11043. else
  11044. ld_shlibs_CXX=no
  11045. fi
  11046. ;;
  11047. darwin* | rhapsody*)
  11048. archive_cmds_need_lc_CXX=no
  11049. hardcode_direct_CXX=no
  11050. hardcode_automatic_CXX=yes
  11051. hardcode_shlibpath_var_CXX=unsupported
  11052. whole_archive_flag_spec_CXX=''
  11053. link_all_deplibs_CXX=yes
  11054. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11055. case $cc_basename in
  11056. ifort*) _lt_dar_can_shared=yes ;;
  11057. *) _lt_dar_can_shared=$GCC ;;
  11058. esac
  11059. if test "$_lt_dar_can_shared" = "yes"; then
  11060. output_verbose_link_cmd=echo
  11061. 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}"
  11062. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11063. 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}"
  11064. 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}"
  11065. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11066. 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}"
  11067. 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}"
  11068. fi
  11069. else
  11070. ld_shlibs_CXX=no
  11071. fi
  11072. ;;
  11073. dgux*)
  11074. case $cc_basename in
  11075. ec++*)
  11076. # FIXME: insert proper C++ library support
  11077. ld_shlibs_CXX=no
  11078. ;;
  11079. ghcx*)
  11080. # Green Hills C++ Compiler
  11081. # FIXME: insert proper C++ library support
  11082. ld_shlibs_CXX=no
  11083. ;;
  11084. *)
  11085. # FIXME: insert proper C++ library support
  11086. ld_shlibs_CXX=no
  11087. ;;
  11088. esac
  11089. ;;
  11090. freebsd[12]*)
  11091. # C++ shared libraries reported to be fairly broken before
  11092. # switch to ELF
  11093. ld_shlibs_CXX=no
  11094. ;;
  11095. freebsd-elf*)
  11096. archive_cmds_need_lc_CXX=no
  11097. ;;
  11098. freebsd* | dragonfly*)
  11099. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11100. # conventions
  11101. ld_shlibs_CXX=yes
  11102. ;;
  11103. gnu*)
  11104. ;;
  11105. hpux9*)
  11106. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11107. hardcode_libdir_separator_CXX=:
  11108. export_dynamic_flag_spec_CXX='${wl}-E'
  11109. hardcode_direct_CXX=yes
  11110. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11111. # but as the default
  11112. # location of the library.
  11113. case $cc_basename in
  11114. CC*)
  11115. # FIXME: insert proper C++ library support
  11116. ld_shlibs_CXX=no
  11117. ;;
  11118. aCC*)
  11119. 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'
  11120. # Commands to make compiler produce verbose output that lists
  11121. # what "hidden" libraries, object files and flags are used when
  11122. # linking a shared library.
  11123. #
  11124. # There doesn't appear to be a way to prevent this compiler from
  11125. # explicitly linking system object files so we need to strip them
  11126. # from the output so that they don't get included in the library
  11127. # dependencies.
  11128. 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'
  11129. ;;
  11130. *)
  11131. if test "$GXX" = yes; then
  11132. 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'
  11133. else
  11134. # FIXME: insert proper C++ library support
  11135. ld_shlibs_CXX=no
  11136. fi
  11137. ;;
  11138. esac
  11139. ;;
  11140. hpux10*|hpux11*)
  11141. if test $with_gnu_ld = no; then
  11142. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11143. hardcode_libdir_separator_CXX=:
  11144. case $host_cpu in
  11145. hppa*64*|ia64*)
  11146. ;;
  11147. *)
  11148. export_dynamic_flag_spec_CXX='${wl}-E'
  11149. ;;
  11150. esac
  11151. fi
  11152. case $host_cpu in
  11153. hppa*64*|ia64*)
  11154. hardcode_direct_CXX=no
  11155. hardcode_shlibpath_var_CXX=no
  11156. ;;
  11157. *)
  11158. hardcode_direct_CXX=yes
  11159. hardcode_direct_absolute_CXX=yes
  11160. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11161. # but as the default
  11162. # location of the library.
  11163. ;;
  11164. esac
  11165. case $cc_basename in
  11166. CC*)
  11167. # FIXME: insert proper C++ library support
  11168. ld_shlibs_CXX=no
  11169. ;;
  11170. aCC*)
  11171. case $host_cpu in
  11172. hppa*64*)
  11173. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11174. ;;
  11175. ia64*)
  11176. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11177. ;;
  11178. *)
  11179. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11180. ;;
  11181. esac
  11182. # Commands to make compiler produce verbose output that lists
  11183. # what "hidden" libraries, object files and flags are used when
  11184. # linking a shared library.
  11185. #
  11186. # There doesn't appear to be a way to prevent this compiler from
  11187. # explicitly linking system object files so we need to strip them
  11188. # from the output so that they don't get included in the library
  11189. # dependencies.
  11190. 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'
  11191. ;;
  11192. *)
  11193. if test "$GXX" = yes; then
  11194. if test $with_gnu_ld = no; then
  11195. case $host_cpu in
  11196. hppa*64*)
  11197. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11198. ;;
  11199. ia64*)
  11200. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11201. ;;
  11202. *)
  11203. 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'
  11204. ;;
  11205. esac
  11206. fi
  11207. else
  11208. # FIXME: insert proper C++ library support
  11209. ld_shlibs_CXX=no
  11210. fi
  11211. ;;
  11212. esac
  11213. ;;
  11214. interix[3-9]*)
  11215. hardcode_direct_CXX=no
  11216. hardcode_shlibpath_var_CXX=no
  11217. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11218. export_dynamic_flag_spec_CXX='${wl}-E'
  11219. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11220. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11221. # default) and relocated if they conflict, which is a slow very memory
  11222. # consuming and fragmenting process. To avoid this, we pick a random,
  11223. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11224. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11225. 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'
  11226. 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'
  11227. ;;
  11228. irix5* | irix6*)
  11229. case $cc_basename in
  11230. CC*)
  11231. # SGI C++
  11232. 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'
  11233. # Archives containing C++ object files must be created using
  11234. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11235. # necessary to make sure instantiated templates are included
  11236. # in the archive.
  11237. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11238. ;;
  11239. *)
  11240. if test "$GXX" = yes; then
  11241. if test "$with_gnu_ld" = no; then
  11242. 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'
  11243. else
  11244. 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'
  11245. fi
  11246. fi
  11247. link_all_deplibs_CXX=yes
  11248. ;;
  11249. esac
  11250. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11251. hardcode_libdir_separator_CXX=:
  11252. inherit_rpath_CXX=yes
  11253. ;;
  11254. linux* | k*bsd*-gnu)
  11255. case $cc_basename in
  11256. KCC*)
  11257. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11258. # KCC will only create a shared library if the output file
  11259. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11260. # to its proper name (with version) after linking.
  11261. 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'
  11262. 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'
  11263. # Commands to make compiler produce verbose output that lists
  11264. # what "hidden" libraries, object files and flags are used when
  11265. # linking a shared library.
  11266. #
  11267. # There doesn't appear to be a way to prevent this compiler from
  11268. # explicitly linking system object files so we need to strip them
  11269. # from the output so that they don't get included in the library
  11270. # dependencies.
  11271. 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'
  11272. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11273. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11274. # Archives containing C++ object files must be created using
  11275. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11276. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11277. ;;
  11278. icpc* | ecpc* )
  11279. # Intel C++
  11280. with_gnu_ld=yes
  11281. # version 8.0 and above of icpc choke on multiply defined symbols
  11282. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11283. # earlier do not add the objects themselves.
  11284. case `$CC -V 2>&1` in
  11285. *"Version 7."*)
  11286. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11287. 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'
  11288. ;;
  11289. *) # Version 8.0 or newer
  11290. tmp_idyn=
  11291. case $host_cpu in
  11292. ia64*) tmp_idyn=' -i_dynamic';;
  11293. esac
  11294. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11295. 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'
  11296. ;;
  11297. esac
  11298. archive_cmds_need_lc_CXX=no
  11299. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11300. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11301. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11302. ;;
  11303. pgCC* | pgcpp*)
  11304. # Portland Group C++ compiler
  11305. case `$CC -V` in
  11306. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11307. prelink_cmds_CXX='tpldir=Template.dir~
  11308. rm -rf $tpldir~
  11309. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11310. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11311. old_archive_cmds_CXX='tpldir=Template.dir~
  11312. rm -rf $tpldir~
  11313. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11314. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11315. $RANLIB $oldlib'
  11316. archive_cmds_CXX='tpldir=Template.dir~
  11317. rm -rf $tpldir~
  11318. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11319. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11320. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11321. rm -rf $tpldir~
  11322. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11323. $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'
  11324. ;;
  11325. *) # Version 6 will use weak symbols
  11326. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11327. 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'
  11328. ;;
  11329. esac
  11330. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11331. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11332. 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'
  11333. ;;
  11334. cxx*)
  11335. # Compaq C++
  11336. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11337. 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'
  11338. runpath_var=LD_RUN_PATH
  11339. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11340. hardcode_libdir_separator_CXX=:
  11341. # Commands to make compiler produce verbose output that lists
  11342. # what "hidden" libraries, object files and flags are used when
  11343. # linking a shared library.
  11344. #
  11345. # There doesn't appear to be a way to prevent this compiler from
  11346. # explicitly linking system object files so we need to strip them
  11347. # from the output so that they don't get included in the library
  11348. # dependencies.
  11349. 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'
  11350. ;;
  11351. xl*)
  11352. # IBM XL 8.0 on PPC, with GNU ld
  11353. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11354. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11355. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11356. if test "x$supports_anon_versioning" = xyes; then
  11357. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11358. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11359. echo "local: *; };" >> $output_objdir/$libname.ver~
  11360. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11361. fi
  11362. ;;
  11363. *)
  11364. case `$CC -V 2>&1 | sed 5q` in
  11365. *Sun\ C*)
  11366. # Sun C++ 5.9
  11367. no_undefined_flag_CXX=' -zdefs'
  11368. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11369. 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'
  11370. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11371. 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'
  11372. compiler_needs_object_CXX=yes
  11373. # Not sure whether something based on
  11374. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11375. # would be better.
  11376. output_verbose_link_cmd='echo'
  11377. # Archives containing C++ object files must be created using
  11378. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11379. # necessary to make sure instantiated templates are included
  11380. # in the archive.
  11381. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11382. ;;
  11383. esac
  11384. ;;
  11385. esac
  11386. ;;
  11387. lynxos*)
  11388. # FIXME: insert proper C++ library support
  11389. ld_shlibs_CXX=no
  11390. ;;
  11391. m88k*)
  11392. # FIXME: insert proper C++ library support
  11393. ld_shlibs_CXX=no
  11394. ;;
  11395. mvs*)
  11396. case $cc_basename in
  11397. cxx*)
  11398. # FIXME: insert proper C++ library support
  11399. ld_shlibs_CXX=no
  11400. ;;
  11401. *)
  11402. # FIXME: insert proper C++ library support
  11403. ld_shlibs_CXX=no
  11404. ;;
  11405. esac
  11406. ;;
  11407. netbsd*)
  11408. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11409. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11410. wlarc=
  11411. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11412. hardcode_direct_CXX=yes
  11413. hardcode_shlibpath_var_CXX=no
  11414. fi
  11415. # Workaround some broken pre-1.5 toolchains
  11416. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11417. ;;
  11418. *nto* | *qnx*)
  11419. ld_shlibs_CXX=yes
  11420. ;;
  11421. openbsd2*)
  11422. # C++ shared libraries are fairly broken
  11423. ld_shlibs_CXX=no
  11424. ;;
  11425. openbsd*)
  11426. if test -f /usr/libexec/ld.so; then
  11427. hardcode_direct_CXX=yes
  11428. hardcode_shlibpath_var_CXX=no
  11429. hardcode_direct_absolute_CXX=yes
  11430. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11431. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11432. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11433. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11434. export_dynamic_flag_spec_CXX='${wl}-E'
  11435. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11436. fi
  11437. output_verbose_link_cmd=echo
  11438. else
  11439. ld_shlibs_CXX=no
  11440. fi
  11441. ;;
  11442. osf3* | osf4* | osf5*)
  11443. case $cc_basename in
  11444. KCC*)
  11445. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11446. # KCC will only create a shared library if the output file
  11447. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11448. # to its proper name (with version) after linking.
  11449. 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'
  11450. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11451. hardcode_libdir_separator_CXX=:
  11452. # Archives containing C++ object files must be created using
  11453. # the KAI C++ compiler.
  11454. case $host in
  11455. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11456. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11457. esac
  11458. ;;
  11459. RCC*)
  11460. # Rational C++ 2.4.1
  11461. # FIXME: insert proper C++ library support
  11462. ld_shlibs_CXX=no
  11463. ;;
  11464. cxx*)
  11465. case $host in
  11466. osf3*)
  11467. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11468. 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'
  11469. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11470. ;;
  11471. *)
  11472. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11473. 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'
  11474. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11475. echo "-hidden">> $lib.exp~
  11476. $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~
  11477. $RM $lib.exp'
  11478. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11479. ;;
  11480. esac
  11481. hardcode_libdir_separator_CXX=:
  11482. # Commands to make compiler produce verbose output that lists
  11483. # what "hidden" libraries, object files and flags are used when
  11484. # linking a shared library.
  11485. #
  11486. # There doesn't appear to be a way to prevent this compiler from
  11487. # explicitly linking system object files so we need to strip them
  11488. # from the output so that they don't get included in the library
  11489. # dependencies.
  11490. 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'
  11491. ;;
  11492. *)
  11493. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11494. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11495. case $host in
  11496. osf3*)
  11497. 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'
  11498. ;;
  11499. *)
  11500. 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'
  11501. ;;
  11502. esac
  11503. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11504. hardcode_libdir_separator_CXX=:
  11505. # Commands to make compiler produce verbose output that lists
  11506. # what "hidden" libraries, object files and flags are used when
  11507. # linking a shared library.
  11508. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11509. else
  11510. # FIXME: insert proper C++ library support
  11511. ld_shlibs_CXX=no
  11512. fi
  11513. ;;
  11514. esac
  11515. ;;
  11516. psos*)
  11517. # FIXME: insert proper C++ library support
  11518. ld_shlibs_CXX=no
  11519. ;;
  11520. sunos4*)
  11521. case $cc_basename in
  11522. CC*)
  11523. # Sun C++ 4.x
  11524. # FIXME: insert proper C++ library support
  11525. ld_shlibs_CXX=no
  11526. ;;
  11527. lcc*)
  11528. # Lucid
  11529. # FIXME: insert proper C++ library support
  11530. ld_shlibs_CXX=no
  11531. ;;
  11532. *)
  11533. # FIXME: insert proper C++ library support
  11534. ld_shlibs_CXX=no
  11535. ;;
  11536. esac
  11537. ;;
  11538. solaris*)
  11539. case $cc_basename in
  11540. CC*)
  11541. # Sun C++ 4.2, 5.x and Centerline C++
  11542. archive_cmds_need_lc_CXX=yes
  11543. no_undefined_flag_CXX=' -zdefs'
  11544. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11545. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11546. $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'
  11547. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11548. hardcode_shlibpath_var_CXX=no
  11549. case $host_os in
  11550. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11551. *)
  11552. # The compiler driver will combine and reorder linker options,
  11553. # but understands `-z linker_flag'.
  11554. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11555. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11556. ;;
  11557. esac
  11558. link_all_deplibs_CXX=yes
  11559. output_verbose_link_cmd='echo'
  11560. # Archives containing C++ object files must be created using
  11561. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11562. # necessary to make sure instantiated templates are included
  11563. # in the archive.
  11564. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11565. ;;
  11566. gcx*)
  11567. # Green Hills C++ Compiler
  11568. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11569. # The C++ compiler must be used to create the archive.
  11570. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11571. ;;
  11572. *)
  11573. # GNU C++ compiler with Solaris linker
  11574. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11575. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11576. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11577. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11578. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11579. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11580. # Commands to make compiler produce verbose output that lists
  11581. # what "hidden" libraries, object files and flags are used when
  11582. # linking a shared library.
  11583. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11584. else
  11585. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11586. # platform.
  11587. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11588. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11589. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11590. # Commands to make compiler produce verbose output that lists
  11591. # what "hidden" libraries, object files and flags are used when
  11592. # linking a shared library.
  11593. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11594. fi
  11595. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11596. case $host_os in
  11597. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11598. *)
  11599. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11600. ;;
  11601. esac
  11602. fi
  11603. ;;
  11604. esac
  11605. ;;
  11606. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11607. no_undefined_flag_CXX='${wl}-z,text'
  11608. archive_cmds_need_lc_CXX=no
  11609. hardcode_shlibpath_var_CXX=no
  11610. runpath_var='LD_RUN_PATH'
  11611. case $cc_basename in
  11612. CC*)
  11613. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11614. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11615. ;;
  11616. *)
  11617. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11618. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11619. ;;
  11620. esac
  11621. ;;
  11622. sysv5* | sco3.2v5* | sco5v6*)
  11623. # Note: We can NOT use -z defs as we might desire, because we do not
  11624. # link with -lc, and that would cause any symbols used from libc to
  11625. # always be unresolved, which means just about no library would
  11626. # ever link correctly. If we're not using GNU ld we use -z text
  11627. # though, which does catch some bad symbols but isn't as heavy-handed
  11628. # as -z defs.
  11629. no_undefined_flag_CXX='${wl}-z,text'
  11630. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11631. archive_cmds_need_lc_CXX=no
  11632. hardcode_shlibpath_var_CXX=no
  11633. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11634. hardcode_libdir_separator_CXX=':'
  11635. link_all_deplibs_CXX=yes
  11636. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11637. runpath_var='LD_RUN_PATH'
  11638. case $cc_basename in
  11639. CC*)
  11640. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11641. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11642. ;;
  11643. *)
  11644. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11645. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11646. ;;
  11647. esac
  11648. ;;
  11649. tandem*)
  11650. case $cc_basename in
  11651. NCC*)
  11652. # NonStop-UX NCC 3.20
  11653. # FIXME: insert proper C++ library support
  11654. ld_shlibs_CXX=no
  11655. ;;
  11656. *)
  11657. # FIXME: insert proper C++ library support
  11658. ld_shlibs_CXX=no
  11659. ;;
  11660. esac
  11661. ;;
  11662. vxworks*)
  11663. # FIXME: insert proper C++ library support
  11664. ld_shlibs_CXX=no
  11665. ;;
  11666. *)
  11667. # FIXME: insert proper C++ library support
  11668. ld_shlibs_CXX=no
  11669. ;;
  11670. esac
  11671. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11672. $as_echo "$ld_shlibs_CXX" >&6; }
  11673. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11674. GCC_CXX="$GXX"
  11675. LD_CXX="$LD"
  11676. ## CAVEAT EMPTOR:
  11677. ## There is no encapsulation within the following macros, do not change
  11678. ## the running order or otherwise move them around unless you know exactly
  11679. ## what you are doing...
  11680. # Dependencies to place before and after the object being linked:
  11681. predep_objects_CXX=
  11682. postdep_objects_CXX=
  11683. predeps_CXX=
  11684. postdeps_CXX=
  11685. compiler_lib_search_path_CXX=
  11686. cat > conftest.$ac_ext <<_LT_EOF
  11687. class Foo
  11688. {
  11689. public:
  11690. Foo (void) { a = 0; }
  11691. private:
  11692. int a;
  11693. };
  11694. _LT_EOF
  11695. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11696. (eval $ac_compile) 2>&5
  11697. ac_status=$?
  11698. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11699. (exit $ac_status); }; then
  11700. # Parse the compiler output and extract the necessary
  11701. # objects, libraries and library flags.
  11702. # Sentinel used to keep track of whether or not we are before
  11703. # the conftest object file.
  11704. pre_test_object_deps_done=no
  11705. for p in `eval "$output_verbose_link_cmd"`; do
  11706. case $p in
  11707. -L* | -R* | -l*)
  11708. # Some compilers place space between "-{L,R}" and the path.
  11709. # Remove the space.
  11710. if test $p = "-L" ||
  11711. test $p = "-R"; then
  11712. prev=$p
  11713. continue
  11714. else
  11715. prev=
  11716. fi
  11717. if test "$pre_test_object_deps_done" = no; then
  11718. case $p in
  11719. -L* | -R*)
  11720. # Internal compiler library paths should come after those
  11721. # provided the user. The postdeps already come after the
  11722. # user supplied libs so there is no need to process them.
  11723. if test -z "$compiler_lib_search_path_CXX"; then
  11724. compiler_lib_search_path_CXX="${prev}${p}"
  11725. else
  11726. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11727. fi
  11728. ;;
  11729. # The "-l" case would never come before the object being
  11730. # linked, so don't bother handling this case.
  11731. esac
  11732. else
  11733. if test -z "$postdeps_CXX"; then
  11734. postdeps_CXX="${prev}${p}"
  11735. else
  11736. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11737. fi
  11738. fi
  11739. ;;
  11740. *.$objext)
  11741. # This assumes that the test object file only shows up
  11742. # once in the compiler output.
  11743. if test "$p" = "conftest.$objext"; then
  11744. pre_test_object_deps_done=yes
  11745. continue
  11746. fi
  11747. if test "$pre_test_object_deps_done" = no; then
  11748. if test -z "$predep_objects_CXX"; then
  11749. predep_objects_CXX="$p"
  11750. else
  11751. predep_objects_CXX="$predep_objects_CXX $p"
  11752. fi
  11753. else
  11754. if test -z "$postdep_objects_CXX"; then
  11755. postdep_objects_CXX="$p"
  11756. else
  11757. postdep_objects_CXX="$postdep_objects_CXX $p"
  11758. fi
  11759. fi
  11760. ;;
  11761. *) ;; # Ignore the rest.
  11762. esac
  11763. done
  11764. # Clean up.
  11765. rm -f a.out a.exe
  11766. else
  11767. echo "libtool.m4: error: problem compiling CXX test program"
  11768. fi
  11769. $RM -f confest.$objext
  11770. # PORTME: override above test on systems where it is broken
  11771. case $host_os in
  11772. interix[3-9]*)
  11773. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11774. # hack all around it, let's just trust "g++" to DTRT.
  11775. predep_objects_CXX=
  11776. postdep_objects_CXX=
  11777. postdeps_CXX=
  11778. ;;
  11779. linux*)
  11780. case `$CC -V 2>&1 | sed 5q` in
  11781. *Sun\ C*)
  11782. # Sun C++ 5.9
  11783. # The more standards-conforming stlport4 library is
  11784. # incompatible with the Cstd library. Avoid specifying
  11785. # it if it's in CXXFLAGS. Ignore libCrun as
  11786. # -library=stlport4 depends on it.
  11787. case " $CXX $CXXFLAGS " in
  11788. *" -library=stlport4 "*)
  11789. solaris_use_stlport4=yes
  11790. ;;
  11791. esac
  11792. if test "$solaris_use_stlport4" != yes; then
  11793. postdeps_CXX='-library=Cstd -library=Crun'
  11794. fi
  11795. ;;
  11796. esac
  11797. ;;
  11798. solaris*)
  11799. case $cc_basename in
  11800. CC*)
  11801. # The more standards-conforming stlport4 library is
  11802. # incompatible with the Cstd library. Avoid specifying
  11803. # it if it's in CXXFLAGS. Ignore libCrun as
  11804. # -library=stlport4 depends on it.
  11805. case " $CXX $CXXFLAGS " in
  11806. *" -library=stlport4 "*)
  11807. solaris_use_stlport4=yes
  11808. ;;
  11809. esac
  11810. # Adding this requires a known-good setup of shared libraries for
  11811. # Sun compiler versions before 5.6, else PIC objects from an old
  11812. # archive will be linked into the output, leading to subtle bugs.
  11813. if test "$solaris_use_stlport4" != yes; then
  11814. postdeps_CXX='-library=Cstd -library=Crun'
  11815. fi
  11816. ;;
  11817. esac
  11818. ;;
  11819. esac
  11820. case " $postdeps_CXX " in
  11821. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11822. esac
  11823. compiler_lib_search_dirs_CXX=
  11824. if test -n "${compiler_lib_search_path_CXX}"; then
  11825. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11826. fi
  11827. lt_prog_compiler_wl_CXX=
  11828. lt_prog_compiler_pic_CXX=
  11829. lt_prog_compiler_static_CXX=
  11830. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11831. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11832. # C++ specific cases for pic, static, wl, etc.
  11833. if test "$GXX" = yes; then
  11834. lt_prog_compiler_wl_CXX='-Wl,'
  11835. lt_prog_compiler_static_CXX='-static'
  11836. case $host_os in
  11837. aix*)
  11838. # All AIX code is PIC.
  11839. if test "$host_cpu" = ia64; then
  11840. # AIX 5 now supports IA64 processor
  11841. lt_prog_compiler_static_CXX='-Bstatic'
  11842. fi
  11843. ;;
  11844. amigaos*)
  11845. case $host_cpu in
  11846. powerpc)
  11847. # see comment about AmigaOS4 .so support
  11848. lt_prog_compiler_pic_CXX='-fPIC'
  11849. ;;
  11850. m68k)
  11851. # FIXME: we need at least 68020 code to build shared libraries, but
  11852. # adding the `-m68020' flag to GCC prevents building anything better,
  11853. # like `-m68040'.
  11854. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11855. ;;
  11856. esac
  11857. ;;
  11858. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11859. # PIC is the default for these OSes.
  11860. ;;
  11861. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11862. # This hack is so that the source file can tell whether it is being
  11863. # built for inclusion in a dll (and should export symbols for example).
  11864. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11865. # (--disable-auto-import) libraries
  11866. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11867. ;;
  11868. darwin* | rhapsody*)
  11869. # PIC is the default on this platform
  11870. # Common symbols not allowed in MH_DYLIB files
  11871. lt_prog_compiler_pic_CXX='-fno-common'
  11872. ;;
  11873. *djgpp*)
  11874. # DJGPP does not support shared libraries at all
  11875. lt_prog_compiler_pic_CXX=
  11876. ;;
  11877. interix[3-9]*)
  11878. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11879. # Instead, we relocate shared libraries at runtime.
  11880. ;;
  11881. sysv4*MP*)
  11882. if test -d /usr/nec; then
  11883. lt_prog_compiler_pic_CXX=-Kconform_pic
  11884. fi
  11885. ;;
  11886. hpux*)
  11887. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11888. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11889. # sets the default TLS model and affects inlining.
  11890. case $host_cpu in
  11891. hppa*64*)
  11892. ;;
  11893. *)
  11894. lt_prog_compiler_pic_CXX='-fPIC'
  11895. ;;
  11896. esac
  11897. ;;
  11898. *qnx* | *nto*)
  11899. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11900. # it will coredump.
  11901. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11902. ;;
  11903. *)
  11904. lt_prog_compiler_pic_CXX='-fPIC'
  11905. ;;
  11906. esac
  11907. else
  11908. case $host_os in
  11909. aix[4-9]*)
  11910. # All AIX code is PIC.
  11911. if test "$host_cpu" = ia64; then
  11912. # AIX 5 now supports IA64 processor
  11913. lt_prog_compiler_static_CXX='-Bstatic'
  11914. else
  11915. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11916. fi
  11917. ;;
  11918. chorus*)
  11919. case $cc_basename in
  11920. cxch68*)
  11921. # Green Hills C++ Compiler
  11922. # _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"
  11923. ;;
  11924. esac
  11925. ;;
  11926. dgux*)
  11927. case $cc_basename in
  11928. ec++*)
  11929. lt_prog_compiler_pic_CXX='-KPIC'
  11930. ;;
  11931. ghcx*)
  11932. # Green Hills C++ Compiler
  11933. lt_prog_compiler_pic_CXX='-pic'
  11934. ;;
  11935. *)
  11936. ;;
  11937. esac
  11938. ;;
  11939. freebsd* | dragonfly*)
  11940. # FreeBSD uses GNU C++
  11941. ;;
  11942. hpux9* | hpux10* | hpux11*)
  11943. case $cc_basename in
  11944. CC*)
  11945. lt_prog_compiler_wl_CXX='-Wl,'
  11946. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11947. if test "$host_cpu" != ia64; then
  11948. lt_prog_compiler_pic_CXX='+Z'
  11949. fi
  11950. ;;
  11951. aCC*)
  11952. lt_prog_compiler_wl_CXX='-Wl,'
  11953. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11954. case $host_cpu in
  11955. hppa*64*|ia64*)
  11956. # +Z the default
  11957. ;;
  11958. *)
  11959. lt_prog_compiler_pic_CXX='+Z'
  11960. ;;
  11961. esac
  11962. ;;
  11963. *)
  11964. ;;
  11965. esac
  11966. ;;
  11967. interix*)
  11968. # This is c89, which is MS Visual C++ (no shared libs)
  11969. # Anyone wants to do a port?
  11970. ;;
  11971. irix5* | irix6* | nonstopux*)
  11972. case $cc_basename in
  11973. CC*)
  11974. lt_prog_compiler_wl_CXX='-Wl,'
  11975. lt_prog_compiler_static_CXX='-non_shared'
  11976. # CC pic flag -KPIC is the default.
  11977. ;;
  11978. *)
  11979. ;;
  11980. esac
  11981. ;;
  11982. linux* | k*bsd*-gnu)
  11983. case $cc_basename in
  11984. KCC*)
  11985. # KAI C++ Compiler
  11986. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11987. lt_prog_compiler_pic_CXX='-fPIC'
  11988. ;;
  11989. ecpc* )
  11990. # old Intel C++ for x86_64 which still supported -KPIC.
  11991. lt_prog_compiler_wl_CXX='-Wl,'
  11992. lt_prog_compiler_pic_CXX='-KPIC'
  11993. lt_prog_compiler_static_CXX='-static'
  11994. ;;
  11995. icpc* )
  11996. # Intel C++, used to be incompatible with GCC.
  11997. # ICC 10 doesn't accept -KPIC any more.
  11998. lt_prog_compiler_wl_CXX='-Wl,'
  11999. lt_prog_compiler_pic_CXX='-fPIC'
  12000. lt_prog_compiler_static_CXX='-static'
  12001. ;;
  12002. pgCC* | pgcpp*)
  12003. # Portland Group C++ compiler
  12004. lt_prog_compiler_wl_CXX='-Wl,'
  12005. lt_prog_compiler_pic_CXX='-fpic'
  12006. lt_prog_compiler_static_CXX='-Bstatic'
  12007. ;;
  12008. cxx*)
  12009. # Compaq C++
  12010. # Make sure the PIC flag is empty. It appears that all Alpha
  12011. # Linux and Compaq Tru64 Unix objects are PIC.
  12012. lt_prog_compiler_pic_CXX=
  12013. lt_prog_compiler_static_CXX='-non_shared'
  12014. ;;
  12015. xlc* | xlC*)
  12016. # IBM XL 8.0 on PPC
  12017. lt_prog_compiler_wl_CXX='-Wl,'
  12018. lt_prog_compiler_pic_CXX='-qpic'
  12019. lt_prog_compiler_static_CXX='-qstaticlink'
  12020. ;;
  12021. *)
  12022. case `$CC -V 2>&1 | sed 5q` in
  12023. *Sun\ C*)
  12024. # Sun C++ 5.9
  12025. lt_prog_compiler_pic_CXX='-KPIC'
  12026. lt_prog_compiler_static_CXX='-Bstatic'
  12027. lt_prog_compiler_wl_CXX='-Qoption ld '
  12028. ;;
  12029. esac
  12030. ;;
  12031. esac
  12032. ;;
  12033. lynxos*)
  12034. ;;
  12035. m88k*)
  12036. ;;
  12037. mvs*)
  12038. case $cc_basename in
  12039. cxx*)
  12040. lt_prog_compiler_pic_CXX='-W c,exportall'
  12041. ;;
  12042. *)
  12043. ;;
  12044. esac
  12045. ;;
  12046. netbsd* | netbsdelf*-gnu)
  12047. ;;
  12048. *qnx* | *nto*)
  12049. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12050. # it will coredump.
  12051. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12052. ;;
  12053. osf3* | osf4* | osf5*)
  12054. case $cc_basename in
  12055. KCC*)
  12056. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12057. ;;
  12058. RCC*)
  12059. # Rational C++ 2.4.1
  12060. lt_prog_compiler_pic_CXX='-pic'
  12061. ;;
  12062. cxx*)
  12063. # Digital/Compaq C++
  12064. lt_prog_compiler_wl_CXX='-Wl,'
  12065. # Make sure the PIC flag is empty. It appears that all Alpha
  12066. # Linux and Compaq Tru64 Unix objects are PIC.
  12067. lt_prog_compiler_pic_CXX=
  12068. lt_prog_compiler_static_CXX='-non_shared'
  12069. ;;
  12070. *)
  12071. ;;
  12072. esac
  12073. ;;
  12074. psos*)
  12075. ;;
  12076. solaris*)
  12077. case $cc_basename in
  12078. CC*)
  12079. # Sun C++ 4.2, 5.x and Centerline C++
  12080. lt_prog_compiler_pic_CXX='-KPIC'
  12081. lt_prog_compiler_static_CXX='-Bstatic'
  12082. lt_prog_compiler_wl_CXX='-Qoption ld '
  12083. ;;
  12084. gcx*)
  12085. # Green Hills C++ Compiler
  12086. lt_prog_compiler_pic_CXX='-PIC'
  12087. ;;
  12088. *)
  12089. ;;
  12090. esac
  12091. ;;
  12092. sunos4*)
  12093. case $cc_basename in
  12094. CC*)
  12095. # Sun C++ 4.x
  12096. lt_prog_compiler_pic_CXX='-pic'
  12097. lt_prog_compiler_static_CXX='-Bstatic'
  12098. ;;
  12099. lcc*)
  12100. # Lucid
  12101. lt_prog_compiler_pic_CXX='-pic'
  12102. ;;
  12103. *)
  12104. ;;
  12105. esac
  12106. ;;
  12107. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12108. case $cc_basename in
  12109. CC*)
  12110. lt_prog_compiler_wl_CXX='-Wl,'
  12111. lt_prog_compiler_pic_CXX='-KPIC'
  12112. lt_prog_compiler_static_CXX='-Bstatic'
  12113. ;;
  12114. esac
  12115. ;;
  12116. tandem*)
  12117. case $cc_basename in
  12118. NCC*)
  12119. # NonStop-UX NCC 3.20
  12120. lt_prog_compiler_pic_CXX='-KPIC'
  12121. ;;
  12122. *)
  12123. ;;
  12124. esac
  12125. ;;
  12126. vxworks*)
  12127. ;;
  12128. *)
  12129. lt_prog_compiler_can_build_shared_CXX=no
  12130. ;;
  12131. esac
  12132. fi
  12133. case $host_os in
  12134. # For platforms which do not support PIC, -DPIC is meaningless:
  12135. *djgpp*)
  12136. lt_prog_compiler_pic_CXX=
  12137. ;;
  12138. *)
  12139. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12140. ;;
  12141. esac
  12142. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12143. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12144. #
  12145. # Check to make sure the PIC flag actually works.
  12146. #
  12147. if test -n "$lt_prog_compiler_pic_CXX"; then
  12148. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12149. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12150. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12151. $as_echo_n "(cached) " >&6
  12152. else
  12153. lt_cv_prog_compiler_pic_works_CXX=no
  12154. ac_outfile=conftest.$ac_objext
  12155. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12156. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12157. # Insert the option either (1) after the last *FLAGS variable, or
  12158. # (2) before a word containing "conftest.", or (3) at the end.
  12159. # Note that $ac_compile itself does not contain backslashes and begins
  12160. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12161. # The option is referenced via a variable to avoid confusing sed.
  12162. lt_compile=`echo "$ac_compile" | $SED \
  12163. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12164. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12165. -e 's:$: $lt_compiler_flag:'`
  12166. (eval echo "\"\$as_me:14072: $lt_compile\"" >&5)
  12167. (eval "$lt_compile" 2>conftest.err)
  12168. ac_status=$?
  12169. cat conftest.err >&5
  12170. echo "$as_me:14076: \$? = $ac_status" >&5
  12171. if (exit $ac_status) && test -s "$ac_outfile"; then
  12172. # The compiler can only warn and ignore the option if not recognized
  12173. # So say no if there are warnings other than the usual output.
  12174. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12175. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12176. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12177. lt_cv_prog_compiler_pic_works_CXX=yes
  12178. fi
  12179. fi
  12180. $RM conftest*
  12181. fi
  12182. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12183. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12184. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12185. case $lt_prog_compiler_pic_CXX in
  12186. "" | " "*) ;;
  12187. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12188. esac
  12189. else
  12190. lt_prog_compiler_pic_CXX=
  12191. lt_prog_compiler_can_build_shared_CXX=no
  12192. fi
  12193. fi
  12194. #
  12195. # Check to make sure the static flag actually works.
  12196. #
  12197. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12198. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12199. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12200. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12201. $as_echo_n "(cached) " >&6
  12202. else
  12203. lt_cv_prog_compiler_static_works_CXX=no
  12204. save_LDFLAGS="$LDFLAGS"
  12205. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12206. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12207. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12208. # The linker can only warn and ignore the option if not recognized
  12209. # So say no if there are warnings
  12210. if test -s conftest.err; then
  12211. # Append any errors to the config.log.
  12212. cat conftest.err 1>&5
  12213. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12214. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12215. if diff conftest.exp conftest.er2 >/dev/null; then
  12216. lt_cv_prog_compiler_static_works_CXX=yes
  12217. fi
  12218. else
  12219. lt_cv_prog_compiler_static_works_CXX=yes
  12220. fi
  12221. fi
  12222. $RM -r conftest*
  12223. LDFLAGS="$save_LDFLAGS"
  12224. fi
  12225. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12226. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12227. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12228. :
  12229. else
  12230. lt_prog_compiler_static_CXX=
  12231. fi
  12232. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12233. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12234. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12235. $as_echo_n "(cached) " >&6
  12236. else
  12237. lt_cv_prog_compiler_c_o_CXX=no
  12238. $RM -r conftest 2>/dev/null
  12239. mkdir conftest
  12240. cd conftest
  12241. mkdir out
  12242. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12243. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12244. # Insert the option either (1) after the last *FLAGS variable, or
  12245. # (2) before a word containing "conftest.", or (3) at the end.
  12246. # Note that $ac_compile itself does not contain backslashes and begins
  12247. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12248. lt_compile=`echo "$ac_compile" | $SED \
  12249. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12250. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12251. -e 's:$: $lt_compiler_flag:'`
  12252. (eval echo "\"\$as_me:14171: $lt_compile\"" >&5)
  12253. (eval "$lt_compile" 2>out/conftest.err)
  12254. ac_status=$?
  12255. cat out/conftest.err >&5
  12256. echo "$as_me:14175: \$? = $ac_status" >&5
  12257. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12258. then
  12259. # The compiler can only warn and ignore the option if not recognized
  12260. # So say no if there are warnings
  12261. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12262. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12263. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12264. lt_cv_prog_compiler_c_o_CXX=yes
  12265. fi
  12266. fi
  12267. chmod u+w . 2>&5
  12268. $RM conftest*
  12269. # SGI C++ compiler will create directory out/ii_files/ for
  12270. # template instantiation
  12271. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12272. $RM out/* && rmdir out
  12273. cd ..
  12274. $RM -r conftest
  12275. $RM conftest*
  12276. fi
  12277. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12278. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12279. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12280. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12281. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12282. $as_echo_n "(cached) " >&6
  12283. else
  12284. lt_cv_prog_compiler_c_o_CXX=no
  12285. $RM -r conftest 2>/dev/null
  12286. mkdir conftest
  12287. cd conftest
  12288. mkdir out
  12289. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12290. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12291. # Insert the option either (1) after the last *FLAGS variable, or
  12292. # (2) before a word containing "conftest.", or (3) at the end.
  12293. # Note that $ac_compile itself does not contain backslashes and begins
  12294. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12295. lt_compile=`echo "$ac_compile" | $SED \
  12296. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12297. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12298. -e 's:$: $lt_compiler_flag:'`
  12299. (eval echo "\"\$as_me:14223: $lt_compile\"" >&5)
  12300. (eval "$lt_compile" 2>out/conftest.err)
  12301. ac_status=$?
  12302. cat out/conftest.err >&5
  12303. echo "$as_me:14227: \$? = $ac_status" >&5
  12304. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12305. then
  12306. # The compiler can only warn and ignore the option if not recognized
  12307. # So say no if there are warnings
  12308. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12309. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12310. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12311. lt_cv_prog_compiler_c_o_CXX=yes
  12312. fi
  12313. fi
  12314. chmod u+w . 2>&5
  12315. $RM conftest*
  12316. # SGI C++ compiler will create directory out/ii_files/ for
  12317. # template instantiation
  12318. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12319. $RM out/* && rmdir out
  12320. cd ..
  12321. $RM -r conftest
  12322. $RM conftest*
  12323. fi
  12324. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12325. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12326. hard_links="nottested"
  12327. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12328. # do not overwrite the value of need_locks provided by the user
  12329. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12330. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12331. hard_links=yes
  12332. $RM conftest*
  12333. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12334. touch conftest.a
  12335. ln conftest.a conftest.b 2>&5 || hard_links=no
  12336. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12337. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  12338. $as_echo "$hard_links" >&6; }
  12339. if test "$hard_links" = no; then
  12340. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12341. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12342. need_locks=warn
  12343. fi
  12344. else
  12345. need_locks=no
  12346. fi
  12347. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12348. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12349. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12350. case $host_os in
  12351. aix[4-9]*)
  12352. # If we're using GNU nm, then we don't want the "-C" option.
  12353. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12354. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12355. 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'
  12356. else
  12357. 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'
  12358. fi
  12359. ;;
  12360. pw32*)
  12361. export_symbols_cmds_CXX="$ltdll_cmds"
  12362. ;;
  12363. cygwin* | mingw* | cegcc*)
  12364. 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'
  12365. ;;
  12366. linux* | k*bsd*-gnu)
  12367. link_all_deplibs_CXX=no
  12368. ;;
  12369. *)
  12370. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12371. ;;
  12372. esac
  12373. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12374. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12375. $as_echo "$ld_shlibs_CXX" >&6; }
  12376. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12377. with_gnu_ld_CXX=$with_gnu_ld
  12378. #
  12379. # Do we need to explicitly link libc?
  12380. #
  12381. case "x$archive_cmds_need_lc_CXX" in
  12382. x|xyes)
  12383. # Assume -lc should be added
  12384. archive_cmds_need_lc_CXX=yes
  12385. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12386. case $archive_cmds_CXX in
  12387. *'~'*)
  12388. # FIXME: we may have to deal with multi-command sequences.
  12389. ;;
  12390. '$CC '*)
  12391. # Test whether the compiler implicitly links with -lc since on some
  12392. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12393. # to ld, don't add -lc before -lgcc.
  12394. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12395. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12396. $RM conftest*
  12397. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12398. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12399. (eval $ac_compile) 2>&5
  12400. ac_status=$?
  12401. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12402. (exit $ac_status); } 2>conftest.err; then
  12403. soname=conftest
  12404. lib=conftest
  12405. libobjs=conftest.$ac_objext
  12406. deplibs=
  12407. wl=$lt_prog_compiler_wl_CXX
  12408. pic_flag=$lt_prog_compiler_pic_CXX
  12409. compiler_flags=-v
  12410. linker_flags=-v
  12411. verstring=
  12412. output_objdir=.
  12413. libname=conftest
  12414. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12415. allow_undefined_flag_CXX=
  12416. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12417. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12418. ac_status=$?
  12419. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12420. (exit $ac_status); }
  12421. then
  12422. archive_cmds_need_lc_CXX=no
  12423. else
  12424. archive_cmds_need_lc_CXX=yes
  12425. fi
  12426. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12427. else
  12428. cat conftest.err 1>&5
  12429. fi
  12430. $RM conftest*
  12431. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12432. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  12433. ;;
  12434. esac
  12435. fi
  12436. ;;
  12437. esac
  12438. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12439. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12440. library_names_spec=
  12441. libname_spec='lib$name'
  12442. soname_spec=
  12443. shrext_cmds=".so"
  12444. postinstall_cmds=
  12445. postuninstall_cmds=
  12446. finish_cmds=
  12447. finish_eval=
  12448. shlibpath_var=
  12449. shlibpath_overrides_runpath=unknown
  12450. version_type=none
  12451. dynamic_linker="$host_os ld.so"
  12452. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12453. need_lib_prefix=unknown
  12454. hardcode_into_libs=no
  12455. # when you set need_version to no, make sure it does not cause -set_version
  12456. # flags to be left without arguments
  12457. need_version=unknown
  12458. case $host_os in
  12459. aix3*)
  12460. version_type=linux
  12461. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12462. shlibpath_var=LIBPATH
  12463. # AIX 3 has no versioning support, so we append a major version to the name.
  12464. soname_spec='${libname}${release}${shared_ext}$major'
  12465. ;;
  12466. aix[4-9]*)
  12467. version_type=linux
  12468. need_lib_prefix=no
  12469. need_version=no
  12470. hardcode_into_libs=yes
  12471. if test "$host_cpu" = ia64; then
  12472. # AIX 5 supports IA64
  12473. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12474. shlibpath_var=LD_LIBRARY_PATH
  12475. else
  12476. # With GCC up to 2.95.x, collect2 would create an import file
  12477. # for dependence libraries. The import file would start with
  12478. # the line `#! .'. This would cause the generated library to
  12479. # depend on `.', always an invalid library. This was fixed in
  12480. # development snapshots of GCC prior to 3.0.
  12481. case $host_os in
  12482. aix4 | aix4.[01] | aix4.[01].*)
  12483. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12484. echo ' yes '
  12485. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12486. :
  12487. else
  12488. can_build_shared=no
  12489. fi
  12490. ;;
  12491. esac
  12492. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12493. # soname into executable. Probably we can add versioning support to
  12494. # collect2, so additional links can be useful in future.
  12495. if test "$aix_use_runtimelinking" = yes; then
  12496. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12497. # instead of lib<name>.a to let people know that these are not
  12498. # typical AIX shared libraries.
  12499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12500. else
  12501. # We preserve .a as extension for shared libraries through AIX4.2
  12502. # and later when we are not doing run time linking.
  12503. library_names_spec='${libname}${release}.a $libname.a'
  12504. soname_spec='${libname}${release}${shared_ext}$major'
  12505. fi
  12506. shlibpath_var=LIBPATH
  12507. fi
  12508. ;;
  12509. amigaos*)
  12510. case $host_cpu in
  12511. powerpc)
  12512. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12513. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12514. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12515. ;;
  12516. m68k)
  12517. library_names_spec='$libname.ixlibrary $libname.a'
  12518. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12519. 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'
  12520. ;;
  12521. esac
  12522. ;;
  12523. beos*)
  12524. library_names_spec='${libname}${shared_ext}'
  12525. dynamic_linker="$host_os ld.so"
  12526. shlibpath_var=LIBRARY_PATH
  12527. ;;
  12528. bsdi[45]*)
  12529. version_type=linux
  12530. need_version=no
  12531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12532. soname_spec='${libname}${release}${shared_ext}$major'
  12533. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12534. shlibpath_var=LD_LIBRARY_PATH
  12535. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12536. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12537. # the default ld.so.conf also contains /usr/contrib/lib and
  12538. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12539. # libtool to hard-code these into programs
  12540. ;;
  12541. cygwin* | mingw* | pw32* | cegcc*)
  12542. version_type=windows
  12543. shrext_cmds=".dll"
  12544. need_version=no
  12545. need_lib_prefix=no
  12546. case $GCC,$host_os in
  12547. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12548. library_names_spec='$libname.dll.a'
  12549. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12550. postinstall_cmds='base_file=`basename \${file}`~
  12551. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12552. dldir=$destdir/`dirname \$dlpath`~
  12553. test -d \$dldir || mkdir -p \$dldir~
  12554. $install_prog $dir/$dlname \$dldir/$dlname~
  12555. chmod a+x \$dldir/$dlname~
  12556. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12557. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12558. fi'
  12559. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12560. dlpath=$dir/\$dldll~
  12561. $RM \$dlpath'
  12562. shlibpath_overrides_runpath=yes
  12563. case $host_os in
  12564. cygwin*)
  12565. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12566. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12567. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12568. ;;
  12569. mingw* | cegcc*)
  12570. # MinGW DLLs use traditional 'lib' prefix
  12571. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12572. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12573. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12574. # It is most probably a Windows format PATH printed by
  12575. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12576. # path with ; separators, and with drive letters. We can handle the
  12577. # drive letters (cygwin fileutils understands them), so leave them,
  12578. # especially as we might pass files found there to a mingw objdump,
  12579. # which wouldn't understand a cygwinified path. Ahh.
  12580. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12581. else
  12582. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12583. fi
  12584. ;;
  12585. pw32*)
  12586. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12587. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12588. ;;
  12589. esac
  12590. ;;
  12591. *)
  12592. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12593. ;;
  12594. esac
  12595. dynamic_linker='Win32 ld.exe'
  12596. # FIXME: first we should search . and the directory the executable is in
  12597. shlibpath_var=PATH
  12598. ;;
  12599. darwin* | rhapsody*)
  12600. dynamic_linker="$host_os dyld"
  12601. version_type=darwin
  12602. need_lib_prefix=no
  12603. need_version=no
  12604. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12605. soname_spec='${libname}${release}${major}$shared_ext'
  12606. shlibpath_overrides_runpath=yes
  12607. shlibpath_var=DYLD_LIBRARY_PATH
  12608. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12609. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12610. ;;
  12611. dgux*)
  12612. version_type=linux
  12613. need_lib_prefix=no
  12614. need_version=no
  12615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12616. soname_spec='${libname}${release}${shared_ext}$major'
  12617. shlibpath_var=LD_LIBRARY_PATH
  12618. ;;
  12619. freebsd1*)
  12620. dynamic_linker=no
  12621. ;;
  12622. freebsd* | dragonfly*)
  12623. # DragonFly does not have aout. When/if they implement a new
  12624. # versioning mechanism, adjust this.
  12625. if test -x /usr/bin/objformat; then
  12626. objformat=`/usr/bin/objformat`
  12627. else
  12628. case $host_os in
  12629. freebsd[123]*) objformat=aout ;;
  12630. *) objformat=elf ;;
  12631. esac
  12632. fi
  12633. version_type=freebsd-$objformat
  12634. case $version_type in
  12635. freebsd-elf*)
  12636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12637. need_version=no
  12638. need_lib_prefix=no
  12639. ;;
  12640. freebsd-*)
  12641. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12642. need_version=yes
  12643. ;;
  12644. esac
  12645. shlibpath_var=LD_LIBRARY_PATH
  12646. case $host_os in
  12647. freebsd2*)
  12648. shlibpath_overrides_runpath=yes
  12649. ;;
  12650. freebsd3.[01]* | freebsdelf3.[01]*)
  12651. shlibpath_overrides_runpath=yes
  12652. hardcode_into_libs=yes
  12653. ;;
  12654. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12655. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12656. shlibpath_overrides_runpath=no
  12657. hardcode_into_libs=yes
  12658. ;;
  12659. *) # from 4.6 on, and DragonFly
  12660. shlibpath_overrides_runpath=yes
  12661. hardcode_into_libs=yes
  12662. ;;
  12663. esac
  12664. ;;
  12665. gnu*)
  12666. version_type=linux
  12667. need_lib_prefix=no
  12668. need_version=no
  12669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12670. soname_spec='${libname}${release}${shared_ext}$major'
  12671. shlibpath_var=LD_LIBRARY_PATH
  12672. hardcode_into_libs=yes
  12673. ;;
  12674. hpux9* | hpux10* | hpux11*)
  12675. # Give a soname corresponding to the major version so that dld.sl refuses to
  12676. # link against other versions.
  12677. version_type=sunos
  12678. need_lib_prefix=no
  12679. need_version=no
  12680. case $host_cpu in
  12681. ia64*)
  12682. shrext_cmds='.so'
  12683. hardcode_into_libs=yes
  12684. dynamic_linker="$host_os dld.so"
  12685. shlibpath_var=LD_LIBRARY_PATH
  12686. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12687. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12688. soname_spec='${libname}${release}${shared_ext}$major'
  12689. if test "X$HPUX_IA64_MODE" = X32; then
  12690. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12691. else
  12692. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12693. fi
  12694. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12695. ;;
  12696. hppa*64*)
  12697. shrext_cmds='.sl'
  12698. hardcode_into_libs=yes
  12699. dynamic_linker="$host_os dld.sl"
  12700. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12701. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12702. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12703. soname_spec='${libname}${release}${shared_ext}$major'
  12704. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12705. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12706. ;;
  12707. *)
  12708. shrext_cmds='.sl'
  12709. dynamic_linker="$host_os dld.sl"
  12710. shlibpath_var=SHLIB_PATH
  12711. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12713. soname_spec='${libname}${release}${shared_ext}$major'
  12714. ;;
  12715. esac
  12716. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12717. postinstall_cmds='chmod 555 $lib'
  12718. ;;
  12719. interix[3-9]*)
  12720. version_type=linux
  12721. need_lib_prefix=no
  12722. need_version=no
  12723. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12724. soname_spec='${libname}${release}${shared_ext}$major'
  12725. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12726. shlibpath_var=LD_LIBRARY_PATH
  12727. shlibpath_overrides_runpath=no
  12728. hardcode_into_libs=yes
  12729. ;;
  12730. irix5* | irix6* | nonstopux*)
  12731. case $host_os in
  12732. nonstopux*) version_type=nonstopux ;;
  12733. *)
  12734. if test "$lt_cv_prog_gnu_ld" = yes; then
  12735. version_type=linux
  12736. else
  12737. version_type=irix
  12738. fi ;;
  12739. esac
  12740. need_lib_prefix=no
  12741. need_version=no
  12742. soname_spec='${libname}${release}${shared_ext}$major'
  12743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12744. case $host_os in
  12745. irix5* | nonstopux*)
  12746. libsuff= shlibsuff=
  12747. ;;
  12748. *)
  12749. case $LD in # libtool.m4 will add one of these switches to LD
  12750. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12751. libsuff= shlibsuff= libmagic=32-bit;;
  12752. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12753. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12754. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12755. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12756. *) libsuff= shlibsuff= libmagic=never-match;;
  12757. esac
  12758. ;;
  12759. esac
  12760. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12761. shlibpath_overrides_runpath=no
  12762. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12763. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12764. hardcode_into_libs=yes
  12765. ;;
  12766. # No shared lib support for Linux oldld, aout, or coff.
  12767. linux*oldld* | linux*aout* | linux*coff*)
  12768. dynamic_linker=no
  12769. ;;
  12770. # This must be Linux ELF.
  12771. linux* | k*bsd*-gnu)
  12772. version_type=linux
  12773. need_lib_prefix=no
  12774. need_version=no
  12775. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12776. soname_spec='${libname}${release}${shared_ext}$major'
  12777. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12778. shlibpath_var=LD_LIBRARY_PATH
  12779. shlibpath_overrides_runpath=no
  12780. # Some binutils ld are patched to set DT_RUNPATH
  12781. save_LDFLAGS=$LDFLAGS
  12782. save_libdir=$libdir
  12783. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12784. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12785. cat >conftest.$ac_ext <<_ACEOF
  12786. /* confdefs.h. */
  12787. _ACEOF
  12788. cat confdefs.h >>conftest.$ac_ext
  12789. cat >>conftest.$ac_ext <<_ACEOF
  12790. /* end confdefs.h. */
  12791. int
  12792. main ()
  12793. {
  12794. ;
  12795. return 0;
  12796. }
  12797. _ACEOF
  12798. rm -f conftest.$ac_objext conftest$ac_exeext
  12799. if { (ac_try="$ac_link"
  12800. case "(($ac_try" in
  12801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12802. *) ac_try_echo=$ac_try;;
  12803. esac
  12804. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12805. $as_echo "$ac_try_echo") >&5
  12806. (eval "$ac_link") 2>conftest.er1
  12807. ac_status=$?
  12808. grep -v '^ *+' conftest.er1 >conftest.err
  12809. rm -f conftest.er1
  12810. cat conftest.err >&5
  12811. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12812. (exit $ac_status); } && {
  12813. test -z "$ac_cxx_werror_flag" ||
  12814. test ! -s conftest.err
  12815. } && test -s conftest$ac_exeext && {
  12816. test "$cross_compiling" = yes ||
  12817. $as_test_x conftest$ac_exeext
  12818. }; then
  12819. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  12820. shlibpath_overrides_runpath=yes
  12821. fi
  12822. else
  12823. $as_echo "$as_me: failed program was:" >&5
  12824. sed 's/^/| /' conftest.$ac_ext >&5
  12825. fi
  12826. rm -rf conftest.dSYM
  12827. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12828. conftest$ac_exeext conftest.$ac_ext
  12829. LDFLAGS=$save_LDFLAGS
  12830. libdir=$save_libdir
  12831. # This implies no fast_install, which is unacceptable.
  12832. # Some rework will be needed to allow for fast_install
  12833. # before this can be enabled.
  12834. hardcode_into_libs=yes
  12835. # Append ld.so.conf contents to the search path
  12836. if test -f /etc/ld.so.conf; then
  12837. 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' ' '`
  12838. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12839. fi
  12840. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12841. # powerpc, because MkLinux only supported shared libraries with the
  12842. # GNU dynamic linker. Since this was broken with cross compilers,
  12843. # most powerpc-linux boxes support dynamic linking these days and
  12844. # people can always --disable-shared, the test was removed, and we
  12845. # assume the GNU/Linux dynamic linker is in use.
  12846. dynamic_linker='GNU/Linux ld.so'
  12847. ;;
  12848. netbsdelf*-gnu)
  12849. version_type=linux
  12850. need_lib_prefix=no
  12851. need_version=no
  12852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12853. soname_spec='${libname}${release}${shared_ext}$major'
  12854. shlibpath_var=LD_LIBRARY_PATH
  12855. shlibpath_overrides_runpath=no
  12856. hardcode_into_libs=yes
  12857. dynamic_linker='NetBSD ld.elf_so'
  12858. ;;
  12859. netbsd*)
  12860. version_type=sunos
  12861. need_lib_prefix=no
  12862. need_version=no
  12863. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12865. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12866. dynamic_linker='NetBSD (a.out) ld.so'
  12867. else
  12868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12869. soname_spec='${libname}${release}${shared_ext}$major'
  12870. dynamic_linker='NetBSD ld.elf_so'
  12871. fi
  12872. shlibpath_var=LD_LIBRARY_PATH
  12873. shlibpath_overrides_runpath=yes
  12874. hardcode_into_libs=yes
  12875. ;;
  12876. newsos6)
  12877. version_type=linux
  12878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12879. shlibpath_var=LD_LIBRARY_PATH
  12880. shlibpath_overrides_runpath=yes
  12881. ;;
  12882. *nto* | *qnx*)
  12883. version_type=qnx
  12884. need_lib_prefix=no
  12885. need_version=no
  12886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12887. soname_spec='${libname}${release}${shared_ext}$major'
  12888. shlibpath_var=LD_LIBRARY_PATH
  12889. shlibpath_overrides_runpath=no
  12890. hardcode_into_libs=yes
  12891. dynamic_linker='ldqnx.so'
  12892. ;;
  12893. openbsd*)
  12894. version_type=sunos
  12895. sys_lib_dlsearch_path_spec="/usr/lib"
  12896. need_lib_prefix=no
  12897. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12898. case $host_os in
  12899. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12900. *) need_version=no ;;
  12901. esac
  12902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12903. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12904. shlibpath_var=LD_LIBRARY_PATH
  12905. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12906. case $host_os in
  12907. openbsd2.[89] | openbsd2.[89].*)
  12908. shlibpath_overrides_runpath=no
  12909. ;;
  12910. *)
  12911. shlibpath_overrides_runpath=yes
  12912. ;;
  12913. esac
  12914. else
  12915. shlibpath_overrides_runpath=yes
  12916. fi
  12917. ;;
  12918. os2*)
  12919. libname_spec='$name'
  12920. shrext_cmds=".dll"
  12921. need_lib_prefix=no
  12922. library_names_spec='$libname${shared_ext} $libname.a'
  12923. dynamic_linker='OS/2 ld.exe'
  12924. shlibpath_var=LIBPATH
  12925. ;;
  12926. osf3* | osf4* | osf5*)
  12927. version_type=osf
  12928. need_lib_prefix=no
  12929. need_version=no
  12930. soname_spec='${libname}${release}${shared_ext}$major'
  12931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12932. shlibpath_var=LD_LIBRARY_PATH
  12933. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12934. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12935. ;;
  12936. rdos*)
  12937. dynamic_linker=no
  12938. ;;
  12939. solaris*)
  12940. version_type=linux
  12941. need_lib_prefix=no
  12942. need_version=no
  12943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12944. soname_spec='${libname}${release}${shared_ext}$major'
  12945. shlibpath_var=LD_LIBRARY_PATH
  12946. shlibpath_overrides_runpath=yes
  12947. hardcode_into_libs=yes
  12948. # ldd complains unless libraries are executable
  12949. postinstall_cmds='chmod +x $lib'
  12950. ;;
  12951. sunos4*)
  12952. version_type=sunos
  12953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12954. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12955. shlibpath_var=LD_LIBRARY_PATH
  12956. shlibpath_overrides_runpath=yes
  12957. if test "$with_gnu_ld" = yes; then
  12958. need_lib_prefix=no
  12959. fi
  12960. need_version=yes
  12961. ;;
  12962. sysv4 | sysv4.3*)
  12963. version_type=linux
  12964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12965. soname_spec='${libname}${release}${shared_ext}$major'
  12966. shlibpath_var=LD_LIBRARY_PATH
  12967. case $host_vendor in
  12968. sni)
  12969. shlibpath_overrides_runpath=no
  12970. need_lib_prefix=no
  12971. runpath_var=LD_RUN_PATH
  12972. ;;
  12973. siemens)
  12974. need_lib_prefix=no
  12975. ;;
  12976. motorola)
  12977. need_lib_prefix=no
  12978. need_version=no
  12979. shlibpath_overrides_runpath=no
  12980. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12981. ;;
  12982. esac
  12983. ;;
  12984. sysv4*MP*)
  12985. if test -d /usr/nec ;then
  12986. version_type=linux
  12987. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12988. soname_spec='$libname${shared_ext}.$major'
  12989. shlibpath_var=LD_LIBRARY_PATH
  12990. fi
  12991. ;;
  12992. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12993. version_type=freebsd-elf
  12994. need_lib_prefix=no
  12995. need_version=no
  12996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12997. soname_spec='${libname}${release}${shared_ext}$major'
  12998. shlibpath_var=LD_LIBRARY_PATH
  12999. shlibpath_overrides_runpath=yes
  13000. hardcode_into_libs=yes
  13001. if test "$with_gnu_ld" = yes; then
  13002. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13003. else
  13004. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13005. case $host_os in
  13006. sco3.2v5*)
  13007. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13008. ;;
  13009. esac
  13010. fi
  13011. sys_lib_dlsearch_path_spec='/usr/lib'
  13012. ;;
  13013. tpf*)
  13014. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13015. version_type=linux
  13016. need_lib_prefix=no
  13017. need_version=no
  13018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13019. shlibpath_var=LD_LIBRARY_PATH
  13020. shlibpath_overrides_runpath=no
  13021. hardcode_into_libs=yes
  13022. ;;
  13023. uts4*)
  13024. version_type=linux
  13025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13026. soname_spec='${libname}${release}${shared_ext}$major'
  13027. shlibpath_var=LD_LIBRARY_PATH
  13028. ;;
  13029. *)
  13030. dynamic_linker=no
  13031. ;;
  13032. esac
  13033. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13034. $as_echo "$dynamic_linker" >&6; }
  13035. test "$dynamic_linker" = no && can_build_shared=no
  13036. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13037. if test "$GCC" = yes; then
  13038. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13039. fi
  13040. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13041. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13042. fi
  13043. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13044. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13045. fi
  13046. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13047. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13048. hardcode_action_CXX=
  13049. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13050. test -n "$runpath_var_CXX" ||
  13051. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13052. # We can hardcode non-existent directories.
  13053. if test "$hardcode_direct_CXX" != no &&
  13054. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13055. # have to relink, otherwise we might link with an installed library
  13056. # when we should be linking with a yet-to-be-installed one
  13057. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13058. test "$hardcode_minus_L_CXX" != no; then
  13059. # Linking always hardcodes the temporary library directory.
  13060. hardcode_action_CXX=relink
  13061. else
  13062. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13063. hardcode_action_CXX=immediate
  13064. fi
  13065. else
  13066. # We cannot hardcode anything, or else we can only hardcode existing
  13067. # directories.
  13068. hardcode_action_CXX=unsupported
  13069. fi
  13070. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13071. $as_echo "$hardcode_action_CXX" >&6; }
  13072. if test "$hardcode_action_CXX" = relink ||
  13073. test "$inherit_rpath_CXX" = yes; then
  13074. # Fast installation is not supported
  13075. enable_fast_install=no
  13076. elif test "$shlibpath_overrides_runpath" = yes ||
  13077. test "$enable_shared" = no; then
  13078. # Fast installation is not necessary
  13079. enable_fast_install=needless
  13080. fi
  13081. fi # test -n "$compiler"
  13082. CC=$lt_save_CC
  13083. LDCXX=$LD
  13084. LD=$lt_save_LD
  13085. GCC=$lt_save_GCC
  13086. with_gnu_ld=$lt_save_with_gnu_ld
  13087. lt_cv_path_LDCXX=$lt_cv_path_LD
  13088. lt_cv_path_LD=$lt_save_path_LD
  13089. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13090. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13091. fi # test "$_lt_caught_CXX_error" != yes
  13092. ac_ext=cpp
  13093. ac_cpp='$CXXCPP $CPPFLAGS'
  13094. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13095. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13096. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13097. ac_config_commands="$ac_config_commands libtool"
  13098. # Only expand once:
  13099. # Check whether --enable-debug was given.
  13100. if test "${enable_debug+set}" = set; then
  13101. enableval=$enable_debug; if test x$enableval = xyes ; then
  13102. enable_debug="yes"
  13103. else
  13104. enable_debug="no"
  13105. fi
  13106. else
  13107. enable_debug="yes"
  13108. fi
  13109. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  13110. CXXFLAGS="-O0 -ggdb -Wall -Wcast-align -Wmissing-declarations -Wpointer-arith"
  13111. fi
  13112. # Check for Boost libraries
  13113. # Check whether --with-boost was given.
  13114. if test "${with_boost+set}" = set; then
  13115. withval=$with_boost;
  13116. if test "$withval" = "no"; then
  13117. want_boost="no"
  13118. elif test "$withval" = "yes"; then
  13119. want_boost="yes"
  13120. ac_boost_path=""
  13121. else
  13122. want_boost="yes"
  13123. ac_boost_path="$withval"
  13124. fi
  13125. else
  13126. want_boost="yes"
  13127. fi
  13128. # Check whether --with-boost-libdir was given.
  13129. if test "${with_boost_libdir+set}" = set; then
  13130. withval=$with_boost_libdir;
  13131. if test -d $withval
  13132. then
  13133. ac_boost_lib_path="$withval"
  13134. else
  13135. { { $as_echo "$as_me:$LINENO: error: --with-boost-libdir expected directory name" >&5
  13136. $as_echo "$as_me: error: --with-boost-libdir expected directory name" >&2;}
  13137. { (exit 1); exit 1; }; }
  13138. fi
  13139. else
  13140. ac_boost_lib_path=""
  13141. fi
  13142. if test "x$want_boost" = "xyes"; then
  13143. boost_lib_version_req=1.36
  13144. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  13145. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  13146. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  13147. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  13148. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  13149. boost_lib_version_req_sub_minor="0"
  13150. fi
  13151. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  13152. { $as_echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
  13153. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  13154. succeeded=no
  13155. if test "$ac_boost_path" != ""; then
  13156. BOOST_LDFLAGS="-L$ac_boost_path/lib"
  13157. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  13158. else
  13159. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  13160. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  13161. BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
  13162. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  13163. break;
  13164. fi
  13165. done
  13166. fi
  13167. if test "$ac_boost_lib_path" != ""; then
  13168. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  13169. fi
  13170. CPPFLAGS_SAVED="$CPPFLAGS"
  13171. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13172. export CPPFLAGS
  13173. LDFLAGS_SAVED="$LDFLAGS"
  13174. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13175. export LDFLAGS
  13176. ac_ext=cpp
  13177. ac_cpp='$CXXCPP $CPPFLAGS'
  13178. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13179. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13180. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13181. cat >conftest.$ac_ext <<_ACEOF
  13182. /* confdefs.h. */
  13183. _ACEOF
  13184. cat confdefs.h >>conftest.$ac_ext
  13185. cat >>conftest.$ac_ext <<_ACEOF
  13186. /* end confdefs.h. */
  13187. #include <boost/version.hpp>
  13188. int
  13189. main ()
  13190. {
  13191. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13192. // Everything is okay
  13193. #else
  13194. # error Boost version is too old
  13195. #endif
  13196. ;
  13197. return 0;
  13198. }
  13199. _ACEOF
  13200. rm -f conftest.$ac_objext
  13201. if { (ac_try="$ac_compile"
  13202. case "(($ac_try" in
  13203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13204. *) ac_try_echo=$ac_try;;
  13205. esac
  13206. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13207. $as_echo "$ac_try_echo") >&5
  13208. (eval "$ac_compile") 2>conftest.er1
  13209. ac_status=$?
  13210. grep -v '^ *+' conftest.er1 >conftest.err
  13211. rm -f conftest.er1
  13212. cat conftest.err >&5
  13213. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13214. (exit $ac_status); } && {
  13215. test -z "$ac_cxx_werror_flag" ||
  13216. test ! -s conftest.err
  13217. } && test -s conftest.$ac_objext; then
  13218. { $as_echo "$as_me:$LINENO: result: yes" >&5
  13219. $as_echo "yes" >&6; }
  13220. succeeded=yes
  13221. found_system=yes
  13222. else
  13223. $as_echo "$as_me: failed program was:" >&5
  13224. sed 's/^/| /' conftest.$ac_ext >&5
  13225. fi
  13226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13227. ac_ext=cpp
  13228. ac_cpp='$CXXCPP $CPPFLAGS'
  13229. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13230. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13231. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13232. if test "x$succeeded" != "xyes"; then
  13233. _version=0
  13234. if test "$ac_boost_path" != ""; then
  13235. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13236. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13237. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13238. V_CHECK=`expr $_version_tmp \> $_version`
  13239. if test "$V_CHECK" = "1" ; then
  13240. _version=$_version_tmp
  13241. fi
  13242. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13243. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  13244. done
  13245. fi
  13246. else
  13247. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  13248. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13249. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13250. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13251. V_CHECK=`expr $_version_tmp \> $_version`
  13252. if test "$V_CHECK" = "1" ; then
  13253. _version=$_version_tmp
  13254. best_path=$ac_boost_path
  13255. fi
  13256. done
  13257. fi
  13258. done
  13259. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13260. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  13261. if test "$ac_boost_lib_path" = ""
  13262. then
  13263. BOOST_LDFLAGS="-L$best_path/lib"
  13264. fi
  13265. if test "x$BOOST_ROOT" != "x"; then
  13266. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
  13267. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  13268. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  13269. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  13270. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  13271. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  13272. { $as_echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
  13273. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  13274. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  13275. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
  13276. fi
  13277. fi
  13278. fi
  13279. fi
  13280. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13281. export CPPFLAGS
  13282. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13283. export LDFLAGS
  13284. ac_ext=cpp
  13285. ac_cpp='$CXXCPP $CPPFLAGS'
  13286. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13287. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13288. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13289. cat >conftest.$ac_ext <<_ACEOF
  13290. /* confdefs.h. */
  13291. _ACEOF
  13292. cat confdefs.h >>conftest.$ac_ext
  13293. cat >>conftest.$ac_ext <<_ACEOF
  13294. /* end confdefs.h. */
  13295. #include <boost/version.hpp>
  13296. int
  13297. main ()
  13298. {
  13299. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13300. // Everything is okay
  13301. #else
  13302. # error Boost version is too old
  13303. #endif
  13304. ;
  13305. return 0;
  13306. }
  13307. _ACEOF
  13308. rm -f conftest.$ac_objext
  13309. if { (ac_try="$ac_compile"
  13310. case "(($ac_try" in
  13311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13312. *) ac_try_echo=$ac_try;;
  13313. esac
  13314. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13315. $as_echo "$ac_try_echo") >&5
  13316. (eval "$ac_compile") 2>conftest.er1
  13317. ac_status=$?
  13318. grep -v '^ *+' conftest.er1 >conftest.err
  13319. rm -f conftest.er1
  13320. cat conftest.err >&5
  13321. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13322. (exit $ac_status); } && {
  13323. test -z "$ac_cxx_werror_flag" ||
  13324. test ! -s conftest.err
  13325. } && test -s conftest.$ac_objext; then
  13326. { $as_echo "$as_me:$LINENO: result: yes" >&5
  13327. $as_echo "yes" >&6; }
  13328. succeeded=yes
  13329. found_system=yes
  13330. else
  13331. $as_echo "$as_me: failed program was:" >&5
  13332. sed 's/^/| /' conftest.$ac_ext >&5
  13333. fi
  13334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13335. ac_ext=cpp
  13336. ac_cpp='$CXXCPP $CPPFLAGS'
  13337. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13338. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13339. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13340. fi
  13341. if test "$succeeded" != "yes" ; then
  13342. if test "$_version" = "0" ; then
  13343. { { $as_echo "$as_me:$LINENO: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
  13344. $as_echo "$as_me: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&2;}
  13345. { (exit 1); exit 1; }; }
  13346. else
  13347. { $as_echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
  13348. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  13349. fi
  13350. else
  13351. cat >>confdefs.h <<\_ACEOF
  13352. #define HAVE_BOOST /**/
  13353. _ACEOF
  13354. fi
  13355. CPPFLAGS="$CPPFLAGS_SAVED"
  13356. LDFLAGS="$LDFLAGS_SAVED"
  13357. fi
  13358. # Check whether --with-boost-system was given.
  13359. if test "${with_boost_system+set}" = set; then
  13360. withval=$with_boost_system;
  13361. if test "$withval" = "no"; then
  13362. want_boost="no"
  13363. elif test "$withval" = "yes"; then
  13364. want_boost="yes"
  13365. ax_boost_user_system_lib=""
  13366. else
  13367. want_boost="yes"
  13368. ax_boost_user_system_lib="$withval"
  13369. fi
  13370. else
  13371. want_boost="yes"
  13372. fi
  13373. if test "x$want_boost" = "xyes"; then
  13374. CPPFLAGS_SAVED="$CPPFLAGS"
  13375. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13376. export CPPFLAGS
  13377. LDFLAGS_SAVED="$LDFLAGS"
  13378. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13379. export LDFLAGS
  13380. { $as_echo "$as_me:$LINENO: checking whether the Boost::System library is available" >&5
  13381. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  13382. if test "${ax_cv_boost_system+set}" = set; then
  13383. $as_echo_n "(cached) " >&6
  13384. else
  13385. ac_ext=cpp
  13386. ac_cpp='$CXXCPP $CPPFLAGS'
  13387. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13388. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13389. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13390. CXXFLAGS_SAVE=$CXXFLAGS
  13391. cat >conftest.$ac_ext <<_ACEOF
  13392. /* confdefs.h. */
  13393. _ACEOF
  13394. cat confdefs.h >>conftest.$ac_ext
  13395. cat >>conftest.$ac_ext <<_ACEOF
  13396. /* end confdefs.h. */
  13397. #include <boost/system/error_code.hpp>
  13398. int
  13399. main ()
  13400. {
  13401. boost::system::system_category
  13402. ;
  13403. return 0;
  13404. }
  13405. _ACEOF
  13406. rm -f conftest.$ac_objext
  13407. if { (ac_try="$ac_compile"
  13408. case "(($ac_try" in
  13409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13410. *) ac_try_echo=$ac_try;;
  13411. esac
  13412. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13413. $as_echo "$ac_try_echo") >&5
  13414. (eval "$ac_compile") 2>conftest.er1
  13415. ac_status=$?
  13416. grep -v '^ *+' conftest.er1 >conftest.err
  13417. rm -f conftest.er1
  13418. cat conftest.err >&5
  13419. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13420. (exit $ac_status); } && {
  13421. test -z "$ac_cxx_werror_flag" ||
  13422. test ! -s conftest.err
  13423. } && test -s conftest.$ac_objext; then
  13424. ax_cv_boost_system=yes
  13425. else
  13426. $as_echo "$as_me: failed program was:" >&5
  13427. sed 's/^/| /' conftest.$ac_ext >&5
  13428. ax_cv_boost_system=no
  13429. fi
  13430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13431. CXXFLAGS=$CXXFLAGS_SAVE
  13432. ac_ext=cpp
  13433. ac_cpp='$CXXCPP $CPPFLAGS'
  13434. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13435. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13436. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13437. fi
  13438. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_system" >&5
  13439. $as_echo "$ax_cv_boost_system" >&6; }
  13440. if test "x$ax_cv_boost_system" = "xyes"; then
  13441. cat >>confdefs.h <<\_ACEOF
  13442. #define HAVE_BOOST_SYSTEM /**/
  13443. _ACEOF
  13444. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13445. LDFLAGS_SAVE=$LDFLAGS
  13446. if test "x$ax_boost_user_system_lib" = "x"; then
  13447. for libextension in `ls $BOOSTLIBDIR/libboost_system*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
  13448. ax_lib=${libextension}
  13449. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13450. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13451. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13452. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13453. $as_echo_n "(cached) " >&6
  13454. else
  13455. ac_check_lib_save_LIBS=$LIBS
  13456. LIBS="-l$ax_lib $LIBS"
  13457. cat >conftest.$ac_ext <<_ACEOF
  13458. /* confdefs.h. */
  13459. _ACEOF
  13460. cat confdefs.h >>conftest.$ac_ext
  13461. cat >>conftest.$ac_ext <<_ACEOF
  13462. /* end confdefs.h. */
  13463. /* Override any GCC internal prototype to avoid an error.
  13464. Use char because int might match the return type of a GCC
  13465. builtin and then its argument prototype would still apply. */
  13466. #ifdef __cplusplus
  13467. extern "C"
  13468. #endif
  13469. char exit ();
  13470. int
  13471. main ()
  13472. {
  13473. return exit ();
  13474. ;
  13475. return 0;
  13476. }
  13477. _ACEOF
  13478. rm -f conftest.$ac_objext conftest$ac_exeext
  13479. if { (ac_try="$ac_link"
  13480. case "(($ac_try" in
  13481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13482. *) ac_try_echo=$ac_try;;
  13483. esac
  13484. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13485. $as_echo "$ac_try_echo") >&5
  13486. (eval "$ac_link") 2>conftest.er1
  13487. ac_status=$?
  13488. grep -v '^ *+' conftest.er1 >conftest.err
  13489. rm -f conftest.er1
  13490. cat conftest.err >&5
  13491. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13492. (exit $ac_status); } && {
  13493. test -z "$ac_cxx_werror_flag" ||
  13494. test ! -s conftest.err
  13495. } && test -s conftest$ac_exeext && {
  13496. test "$cross_compiling" = yes ||
  13497. $as_test_x conftest$ac_exeext
  13498. }; then
  13499. eval "$as_ac_Lib=yes"
  13500. else
  13501. $as_echo "$as_me: failed program was:" >&5
  13502. sed 's/^/| /' conftest.$ac_ext >&5
  13503. eval "$as_ac_Lib=no"
  13504. fi
  13505. rm -rf conftest.dSYM
  13506. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13507. conftest$ac_exeext conftest.$ac_ext
  13508. LIBS=$ac_check_lib_save_LIBS
  13509. fi
  13510. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13511. $as_echo "$as_val"'`
  13512. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13513. $as_echo "$ac_res" >&6; }
  13514. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13515. $as_echo "$as_val"'`
  13516. if test "x$as_val" = x""yes; then
  13517. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13518. else
  13519. link_system="no"
  13520. fi
  13521. done
  13522. if test "x$link_system" != "xyes"; then
  13523. 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
  13524. ax_lib=${libextension}
  13525. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13526. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13527. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13528. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13529. $as_echo_n "(cached) " >&6
  13530. else
  13531. ac_check_lib_save_LIBS=$LIBS
  13532. LIBS="-l$ax_lib $LIBS"
  13533. cat >conftest.$ac_ext <<_ACEOF
  13534. /* confdefs.h. */
  13535. _ACEOF
  13536. cat confdefs.h >>conftest.$ac_ext
  13537. cat >>conftest.$ac_ext <<_ACEOF
  13538. /* end confdefs.h. */
  13539. /* Override any GCC internal prototype to avoid an error.
  13540. Use char because int might match the return type of a GCC
  13541. builtin and then its argument prototype would still apply. */
  13542. #ifdef __cplusplus
  13543. extern "C"
  13544. #endif
  13545. char exit ();
  13546. int
  13547. main ()
  13548. {
  13549. return exit ();
  13550. ;
  13551. return 0;
  13552. }
  13553. _ACEOF
  13554. rm -f conftest.$ac_objext conftest$ac_exeext
  13555. if { (ac_try="$ac_link"
  13556. case "(($ac_try" in
  13557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13558. *) ac_try_echo=$ac_try;;
  13559. esac
  13560. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13561. $as_echo "$ac_try_echo") >&5
  13562. (eval "$ac_link") 2>conftest.er1
  13563. ac_status=$?
  13564. grep -v '^ *+' conftest.er1 >conftest.err
  13565. rm -f conftest.er1
  13566. cat conftest.err >&5
  13567. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13568. (exit $ac_status); } && {
  13569. test -z "$ac_cxx_werror_flag" ||
  13570. test ! -s conftest.err
  13571. } && test -s conftest$ac_exeext && {
  13572. test "$cross_compiling" = yes ||
  13573. $as_test_x conftest$ac_exeext
  13574. }; then
  13575. eval "$as_ac_Lib=yes"
  13576. else
  13577. $as_echo "$as_me: failed program was:" >&5
  13578. sed 's/^/| /' conftest.$ac_ext >&5
  13579. eval "$as_ac_Lib=no"
  13580. fi
  13581. rm -rf conftest.dSYM
  13582. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13583. conftest$ac_exeext conftest.$ac_ext
  13584. LIBS=$ac_check_lib_save_LIBS
  13585. fi
  13586. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13587. $as_echo "$as_val"'`
  13588. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13589. $as_echo "$ac_res" >&6; }
  13590. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13591. $as_echo "$as_val"'`
  13592. if test "x$as_val" = x""yes; then
  13593. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13594. else
  13595. link_system="no"
  13596. fi
  13597. done
  13598. fi
  13599. else
  13600. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  13601. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13602. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13603. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13604. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13605. $as_echo_n "(cached) " >&6
  13606. else
  13607. ac_check_lib_save_LIBS=$LIBS
  13608. LIBS="-l$ax_lib $LIBS"
  13609. cat >conftest.$ac_ext <<_ACEOF
  13610. /* confdefs.h. */
  13611. _ACEOF
  13612. cat confdefs.h >>conftest.$ac_ext
  13613. cat >>conftest.$ac_ext <<_ACEOF
  13614. /* end confdefs.h. */
  13615. /* Override any GCC internal prototype to avoid an error.
  13616. Use char because int might match the return type of a GCC
  13617. builtin and then its argument prototype would still apply. */
  13618. #ifdef __cplusplus
  13619. extern "C"
  13620. #endif
  13621. char exit ();
  13622. int
  13623. main ()
  13624. {
  13625. return exit ();
  13626. ;
  13627. return 0;
  13628. }
  13629. _ACEOF
  13630. rm -f conftest.$ac_objext conftest$ac_exeext
  13631. if { (ac_try="$ac_link"
  13632. case "(($ac_try" in
  13633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13634. *) ac_try_echo=$ac_try;;
  13635. esac
  13636. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13637. $as_echo "$ac_try_echo") >&5
  13638. (eval "$ac_link") 2>conftest.er1
  13639. ac_status=$?
  13640. grep -v '^ *+' conftest.er1 >conftest.err
  13641. rm -f conftest.er1
  13642. cat conftest.err >&5
  13643. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13644. (exit $ac_status); } && {
  13645. test -z "$ac_cxx_werror_flag" ||
  13646. test ! -s conftest.err
  13647. } && test -s conftest$ac_exeext && {
  13648. test "$cross_compiling" = yes ||
  13649. $as_test_x conftest$ac_exeext
  13650. }; then
  13651. eval "$as_ac_Lib=yes"
  13652. else
  13653. $as_echo "$as_me: failed program was:" >&5
  13654. sed 's/^/| /' conftest.$ac_ext >&5
  13655. eval "$as_ac_Lib=no"
  13656. fi
  13657. rm -rf conftest.dSYM
  13658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13659. conftest$ac_exeext conftest.$ac_ext
  13660. LIBS=$ac_check_lib_save_LIBS
  13661. fi
  13662. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13663. $as_echo "$as_val"'`
  13664. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13665. $as_echo "$ac_res" >&6; }
  13666. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13667. $as_echo "$as_val"'`
  13668. if test "x$as_val" = x""yes; then
  13669. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13670. else
  13671. link_system="no"
  13672. fi
  13673. done
  13674. fi
  13675. if test "x$link_system" = "xno"; then
  13676. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  13677. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  13678. { (exit 1); exit 1; }; }
  13679. fi
  13680. fi
  13681. CPPFLAGS="$CPPFLAGS_SAVED"
  13682. LDFLAGS="$LDFLAGS_SAVED"
  13683. fi
  13684. # Check whether --with-boost-filesystem was given.
  13685. if test "${with_boost_filesystem+set}" = set; then
  13686. withval=$with_boost_filesystem;
  13687. if test "$withval" = "no"; then
  13688. want_boost="no"
  13689. elif test "$withval" = "yes"; then
  13690. want_boost="yes"
  13691. ax_boost_user_filesystem_lib=""
  13692. else
  13693. want_boost="yes"
  13694. ax_boost_user_filesystem_lib="$withval"
  13695. fi
  13696. else
  13697. want_boost="yes"
  13698. fi
  13699. if test "x$want_boost" = "xyes"; then
  13700. CPPFLAGS_SAVED="$CPPFLAGS"
  13701. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13702. export CPPFLAGS
  13703. LDFLAGS_SAVED="$LDFLAGS"
  13704. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13705. export LDFLAGS
  13706. { $as_echo "$as_me:$LINENO: checking whether the Boost::Filesystem library is available" >&5
  13707. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  13708. if test "${ax_cv_boost_filesystem+set}" = set; then
  13709. $as_echo_n "(cached) " >&6
  13710. else
  13711. ac_ext=cpp
  13712. ac_cpp='$CXXCPP $CPPFLAGS'
  13713. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13714. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13715. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13716. cat >conftest.$ac_ext <<_ACEOF
  13717. /* confdefs.h. */
  13718. _ACEOF
  13719. cat confdefs.h >>conftest.$ac_ext
  13720. cat >>conftest.$ac_ext <<_ACEOF
  13721. /* end confdefs.h. */
  13722. #include <boost/filesystem/path.hpp>
  13723. int
  13724. main ()
  13725. {
  13726. using namespace boost::filesystem;
  13727. path my_path( "foo/bar/data.txt" );
  13728. return 0;
  13729. ;
  13730. return 0;
  13731. }
  13732. _ACEOF
  13733. rm -f conftest.$ac_objext
  13734. if { (ac_try="$ac_compile"
  13735. case "(($ac_try" in
  13736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13737. *) ac_try_echo=$ac_try;;
  13738. esac
  13739. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13740. $as_echo "$ac_try_echo") >&5
  13741. (eval "$ac_compile") 2>conftest.er1
  13742. ac_status=$?
  13743. grep -v '^ *+' conftest.er1 >conftest.err
  13744. rm -f conftest.er1
  13745. cat conftest.err >&5
  13746. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13747. (exit $ac_status); } && {
  13748. test -z "$ac_cxx_werror_flag" ||
  13749. test ! -s conftest.err
  13750. } && test -s conftest.$ac_objext; then
  13751. ax_cv_boost_filesystem=yes
  13752. else
  13753. $as_echo "$as_me: failed program was:" >&5
  13754. sed 's/^/| /' conftest.$ac_ext >&5
  13755. ax_cv_boost_filesystem=no
  13756. fi
  13757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13758. ac_ext=cpp
  13759. ac_cpp='$CXXCPP $CPPFLAGS'
  13760. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13761. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13762. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13763. fi
  13764. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_filesystem" >&5
  13765. $as_echo "$ax_cv_boost_filesystem" >&6; }
  13766. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  13767. cat >>confdefs.h <<\_ACEOF
  13768. #define HAVE_BOOST_FILESYSTEM /**/
  13769. _ACEOF
  13770. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13771. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  13772. for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;'` ; do
  13773. ax_lib=${libextension}
  13774. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13775. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13776. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13777. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13778. $as_echo_n "(cached) " >&6
  13779. else
  13780. ac_check_lib_save_LIBS=$LIBS
  13781. LIBS="-l$ax_lib $LIBS"
  13782. cat >conftest.$ac_ext <<_ACEOF
  13783. /* confdefs.h. */
  13784. _ACEOF
  13785. cat confdefs.h >>conftest.$ac_ext
  13786. cat >>conftest.$ac_ext <<_ACEOF
  13787. /* end confdefs.h. */
  13788. /* Override any GCC internal prototype to avoid an error.
  13789. Use char because int might match the return type of a GCC
  13790. builtin and then its argument prototype would still apply. */
  13791. #ifdef __cplusplus
  13792. extern "C"
  13793. #endif
  13794. char exit ();
  13795. int
  13796. main ()
  13797. {
  13798. return exit ();
  13799. ;
  13800. return 0;
  13801. }
  13802. _ACEOF
  13803. rm -f conftest.$ac_objext conftest$ac_exeext
  13804. if { (ac_try="$ac_link"
  13805. case "(($ac_try" in
  13806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13807. *) ac_try_echo=$ac_try;;
  13808. esac
  13809. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13810. $as_echo "$ac_try_echo") >&5
  13811. (eval "$ac_link") 2>conftest.er1
  13812. ac_status=$?
  13813. grep -v '^ *+' conftest.er1 >conftest.err
  13814. rm -f conftest.er1
  13815. cat conftest.err >&5
  13816. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13817. (exit $ac_status); } && {
  13818. test -z "$ac_cxx_werror_flag" ||
  13819. test ! -s conftest.err
  13820. } && test -s conftest$ac_exeext && {
  13821. test "$cross_compiling" = yes ||
  13822. $as_test_x conftest$ac_exeext
  13823. }; then
  13824. eval "$as_ac_Lib=yes"
  13825. else
  13826. $as_echo "$as_me: failed program was:" >&5
  13827. sed 's/^/| /' conftest.$ac_ext >&5
  13828. eval "$as_ac_Lib=no"
  13829. fi
  13830. rm -rf conftest.dSYM
  13831. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13832. conftest$ac_exeext conftest.$ac_ext
  13833. LIBS=$ac_check_lib_save_LIBS
  13834. fi
  13835. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13836. $as_echo "$as_val"'`
  13837. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13838. $as_echo "$ac_res" >&6; }
  13839. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13840. $as_echo "$as_val"'`
  13841. if test "x$as_val" = x""yes; then
  13842. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13843. else
  13844. link_filesystem="no"
  13845. fi
  13846. done
  13847. if test "x$link_program_options" != "xyes"; then
  13848. 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
  13849. ax_lib=${libextension}
  13850. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13851. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13852. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13853. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13854. $as_echo_n "(cached) " >&6
  13855. else
  13856. ac_check_lib_save_LIBS=$LIBS
  13857. LIBS="-l$ax_lib $LIBS"
  13858. cat >conftest.$ac_ext <<_ACEOF
  13859. /* confdefs.h. */
  13860. _ACEOF
  13861. cat confdefs.h >>conftest.$ac_ext
  13862. cat >>conftest.$ac_ext <<_ACEOF
  13863. /* end confdefs.h. */
  13864. /* Override any GCC internal prototype to avoid an error.
  13865. Use char because int might match the return type of a GCC
  13866. builtin and then its argument prototype would still apply. */
  13867. #ifdef __cplusplus
  13868. extern "C"
  13869. #endif
  13870. char exit ();
  13871. int
  13872. main ()
  13873. {
  13874. return exit ();
  13875. ;
  13876. return 0;
  13877. }
  13878. _ACEOF
  13879. rm -f conftest.$ac_objext conftest$ac_exeext
  13880. if { (ac_try="$ac_link"
  13881. case "(($ac_try" in
  13882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13883. *) ac_try_echo=$ac_try;;
  13884. esac
  13885. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13886. $as_echo "$ac_try_echo") >&5
  13887. (eval "$ac_link") 2>conftest.er1
  13888. ac_status=$?
  13889. grep -v '^ *+' conftest.er1 >conftest.err
  13890. rm -f conftest.er1
  13891. cat conftest.err >&5
  13892. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13893. (exit $ac_status); } && {
  13894. test -z "$ac_cxx_werror_flag" ||
  13895. test ! -s conftest.err
  13896. } && test -s conftest$ac_exeext && {
  13897. test "$cross_compiling" = yes ||
  13898. $as_test_x conftest$ac_exeext
  13899. }; then
  13900. eval "$as_ac_Lib=yes"
  13901. else
  13902. $as_echo "$as_me: failed program was:" >&5
  13903. sed 's/^/| /' conftest.$ac_ext >&5
  13904. eval "$as_ac_Lib=no"
  13905. fi
  13906. rm -rf conftest.dSYM
  13907. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13908. conftest$ac_exeext conftest.$ac_ext
  13909. LIBS=$ac_check_lib_save_LIBS
  13910. fi
  13911. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13912. $as_echo "$as_val"'`
  13913. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13914. $as_echo "$ac_res" >&6; }
  13915. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13916. $as_echo "$as_val"'`
  13917. if test "x$as_val" = x""yes; then
  13918. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13919. else
  13920. link_filesystem="no"
  13921. fi
  13922. done
  13923. fi
  13924. else
  13925. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13926. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13927. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  13928. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13929. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  13930. $as_echo_n "(cached) " >&6
  13931. else
  13932. ac_check_lib_save_LIBS=$LIBS
  13933. LIBS="-l$ax_lib $LIBS"
  13934. cat >conftest.$ac_ext <<_ACEOF
  13935. /* confdefs.h. */
  13936. _ACEOF
  13937. cat confdefs.h >>conftest.$ac_ext
  13938. cat >>conftest.$ac_ext <<_ACEOF
  13939. /* end confdefs.h. */
  13940. /* Override any GCC internal prototype to avoid an error.
  13941. Use char because int might match the return type of a GCC
  13942. builtin and then its argument prototype would still apply. */
  13943. #ifdef __cplusplus
  13944. extern "C"
  13945. #endif
  13946. char exit ();
  13947. int
  13948. main ()
  13949. {
  13950. return exit ();
  13951. ;
  13952. return 0;
  13953. }
  13954. _ACEOF
  13955. rm -f conftest.$ac_objext conftest$ac_exeext
  13956. if { (ac_try="$ac_link"
  13957. case "(($ac_try" in
  13958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13959. *) ac_try_echo=$ac_try;;
  13960. esac
  13961. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13962. $as_echo "$ac_try_echo") >&5
  13963. (eval "$ac_link") 2>conftest.er1
  13964. ac_status=$?
  13965. grep -v '^ *+' conftest.er1 >conftest.err
  13966. rm -f conftest.er1
  13967. cat conftest.err >&5
  13968. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13969. (exit $ac_status); } && {
  13970. test -z "$ac_cxx_werror_flag" ||
  13971. test ! -s conftest.err
  13972. } && test -s conftest$ac_exeext && {
  13973. test "$cross_compiling" = yes ||
  13974. $as_test_x conftest$ac_exeext
  13975. }; then
  13976. eval "$as_ac_Lib=yes"
  13977. else
  13978. $as_echo "$as_me: failed program was:" >&5
  13979. sed 's/^/| /' conftest.$ac_ext >&5
  13980. eval "$as_ac_Lib=no"
  13981. fi
  13982. rm -rf conftest.dSYM
  13983. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13984. conftest$ac_exeext conftest.$ac_ext
  13985. LIBS=$ac_check_lib_save_LIBS
  13986. fi
  13987. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  13988. $as_echo "$as_val"'`
  13989. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13990. $as_echo "$ac_res" >&6; }
  13991. as_val=`eval 'as_val=${'$as_ac_Lib'}
  13992. $as_echo "$as_val"'`
  13993. if test "x$as_val" = x""yes; then
  13994. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13995. else
  13996. link_filesystem="no"
  13997. fi
  13998. done
  13999. fi
  14000. if test "x$link_filesystem" != "xyes"; then
  14001. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  14002. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  14003. { (exit 1); exit 1; }; }
  14004. fi
  14005. fi
  14006. CPPFLAGS="$CPPFLAGS_SAVED"
  14007. LDFLAGS="$LDFLAGS_SAVED"
  14008. fi
  14009. # Check whether --with-boost-thread was given.
  14010. if test "${with_boost_thread+set}" = set; then
  14011. withval=$with_boost_thread;
  14012. if test "$withval" = "no"; then
  14013. want_boost="no"
  14014. elif test "$withval" = "yes"; then
  14015. want_boost="yes"
  14016. ax_boost_user_thread_lib=""
  14017. else
  14018. want_boost="yes"
  14019. ax_boost_user_thread_lib="$withval"
  14020. fi
  14021. else
  14022. want_boost="yes"
  14023. fi
  14024. if test "x$want_boost" = "xyes"; then
  14025. CPPFLAGS_SAVED="$CPPFLAGS"
  14026. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14027. export CPPFLAGS
  14028. LDFLAGS_SAVED="$LDFLAGS"
  14029. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14030. export LDFLAGS
  14031. { $as_echo "$as_me:$LINENO: checking whether the Boost::Thread library is available" >&5
  14032. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  14033. if test "${ax_cv_boost_thread+set}" = set; then
  14034. $as_echo_n "(cached) " >&6
  14035. else
  14036. ac_ext=cpp
  14037. ac_cpp='$CXXCPP $CPPFLAGS'
  14038. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14039. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14040. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14041. CXXFLAGS_SAVE=$CXXFLAGS
  14042. if test "x$build_os" = "xsolaris" ; then
  14043. CXXFLAGS="-pthreads $CXXFLAGS"
  14044. elif test "x$build_os" = "xming32" ; then
  14045. CXXFLAGS="-mthreads $CXXFLAGS"
  14046. else
  14047. CXXFLAGS="-pthread $CXXFLAGS"
  14048. fi
  14049. cat >conftest.$ac_ext <<_ACEOF
  14050. /* confdefs.h. */
  14051. _ACEOF
  14052. cat confdefs.h >>conftest.$ac_ext
  14053. cat >>conftest.$ac_ext <<_ACEOF
  14054. /* end confdefs.h. */
  14055. #include <boost/thread/thread.hpp>
  14056. int
  14057. main ()
  14058. {
  14059. boost::thread_group thrds;
  14060. return 0;
  14061. ;
  14062. return 0;
  14063. }
  14064. _ACEOF
  14065. rm -f conftest.$ac_objext
  14066. if { (ac_try="$ac_compile"
  14067. case "(($ac_try" in
  14068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14069. *) ac_try_echo=$ac_try;;
  14070. esac
  14071. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14072. $as_echo "$ac_try_echo") >&5
  14073. (eval "$ac_compile") 2>conftest.er1
  14074. ac_status=$?
  14075. grep -v '^ *+' conftest.er1 >conftest.err
  14076. rm -f conftest.er1
  14077. cat conftest.err >&5
  14078. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14079. (exit $ac_status); } && {
  14080. test -z "$ac_cxx_werror_flag" ||
  14081. test ! -s conftest.err
  14082. } && test -s conftest.$ac_objext; then
  14083. ax_cv_boost_thread=yes
  14084. else
  14085. $as_echo "$as_me: failed program was:" >&5
  14086. sed 's/^/| /' conftest.$ac_ext >&5
  14087. ax_cv_boost_thread=no
  14088. fi
  14089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14090. CXXFLAGS=$CXXFLAGS_SAVE
  14091. ac_ext=cpp
  14092. ac_cpp='$CXXCPP $CPPFLAGS'
  14093. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14094. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14095. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14096. fi
  14097. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_thread" >&5
  14098. $as_echo "$ax_cv_boost_thread" >&6; }
  14099. if test "x$ax_cv_boost_thread" = "xyes"; then
  14100. if test "x$build_os" = "xsolaris" ; then
  14101. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  14102. elif test "x$build_os" = "xming32" ; then
  14103. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  14104. else
  14105. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  14106. fi
  14107. cat >>confdefs.h <<\_ACEOF
  14108. #define HAVE_BOOST_THREAD /**/
  14109. _ACEOF
  14110. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14111. LDFLAGS_SAVE=$LDFLAGS
  14112. case "x$build_os" in
  14113. *bsd* )
  14114. LDFLAGS="-pthread $LDFLAGS"
  14115. break;
  14116. ;;
  14117. esac
  14118. if test "x$ax_boost_user_thread_lib" = "x"; then
  14119. for libextension in `ls $BOOSTLIBDIR/libboost_thread*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;' -e 's;^lib\(boost_thread.*\)\.a*$;\1;'` ; do
  14120. ax_lib=${libextension}
  14121. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14122. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14123. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14124. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14125. $as_echo_n "(cached) " >&6
  14126. else
  14127. ac_check_lib_save_LIBS=$LIBS
  14128. LIBS="-l$ax_lib $LIBS"
  14129. cat >conftest.$ac_ext <<_ACEOF
  14130. /* confdefs.h. */
  14131. _ACEOF
  14132. cat confdefs.h >>conftest.$ac_ext
  14133. cat >>conftest.$ac_ext <<_ACEOF
  14134. /* end confdefs.h. */
  14135. /* Override any GCC internal prototype to avoid an error.
  14136. Use char because int might match the return type of a GCC
  14137. builtin and then its argument prototype would still apply. */
  14138. #ifdef __cplusplus
  14139. extern "C"
  14140. #endif
  14141. char exit ();
  14142. int
  14143. main ()
  14144. {
  14145. return exit ();
  14146. ;
  14147. return 0;
  14148. }
  14149. _ACEOF
  14150. rm -f conftest.$ac_objext conftest$ac_exeext
  14151. if { (ac_try="$ac_link"
  14152. case "(($ac_try" in
  14153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14154. *) ac_try_echo=$ac_try;;
  14155. esac
  14156. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14157. $as_echo "$ac_try_echo") >&5
  14158. (eval "$ac_link") 2>conftest.er1
  14159. ac_status=$?
  14160. grep -v '^ *+' conftest.er1 >conftest.err
  14161. rm -f conftest.er1
  14162. cat conftest.err >&5
  14163. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14164. (exit $ac_status); } && {
  14165. test -z "$ac_cxx_werror_flag" ||
  14166. test ! -s conftest.err
  14167. } && test -s conftest$ac_exeext && {
  14168. test "$cross_compiling" = yes ||
  14169. $as_test_x conftest$ac_exeext
  14170. }; then
  14171. eval "$as_ac_Lib=yes"
  14172. else
  14173. $as_echo "$as_me: failed program was:" >&5
  14174. sed 's/^/| /' conftest.$ac_ext >&5
  14175. eval "$as_ac_Lib=no"
  14176. fi
  14177. rm -rf conftest.dSYM
  14178. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14179. conftest$ac_exeext conftest.$ac_ext
  14180. LIBS=$ac_check_lib_save_LIBS
  14181. fi
  14182. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14183. $as_echo "$as_val"'`
  14184. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14185. $as_echo "$ac_res" >&6; }
  14186. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14187. $as_echo "$as_val"'`
  14188. if test "x$as_val" = x""yes; then
  14189. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  14190. else
  14191. link_thread="no"
  14192. fi
  14193. done
  14194. if test "x$link_thread" != "xyes"; then
  14195. for libextension in `ls $BOOSTLIBDIR/boost_thread*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;' -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
  14196. ax_lib=${libextension}
  14197. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14198. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14199. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14200. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14201. $as_echo_n "(cached) " >&6
  14202. else
  14203. ac_check_lib_save_LIBS=$LIBS
  14204. LIBS="-l$ax_lib $LIBS"
  14205. cat >conftest.$ac_ext <<_ACEOF
  14206. /* confdefs.h. */
  14207. _ACEOF
  14208. cat confdefs.h >>conftest.$ac_ext
  14209. cat >>conftest.$ac_ext <<_ACEOF
  14210. /* end confdefs.h. */
  14211. /* Override any GCC internal prototype to avoid an error.
  14212. Use char because int might match the return type of a GCC
  14213. builtin and then its argument prototype would still apply. */
  14214. #ifdef __cplusplus
  14215. extern "C"
  14216. #endif
  14217. char exit ();
  14218. int
  14219. main ()
  14220. {
  14221. return exit ();
  14222. ;
  14223. return 0;
  14224. }
  14225. _ACEOF
  14226. rm -f conftest.$ac_objext conftest$ac_exeext
  14227. if { (ac_try="$ac_link"
  14228. case "(($ac_try" in
  14229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14230. *) ac_try_echo=$ac_try;;
  14231. esac
  14232. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14233. $as_echo "$ac_try_echo") >&5
  14234. (eval "$ac_link") 2>conftest.er1
  14235. ac_status=$?
  14236. grep -v '^ *+' conftest.er1 >conftest.err
  14237. rm -f conftest.er1
  14238. cat conftest.err >&5
  14239. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14240. (exit $ac_status); } && {
  14241. test -z "$ac_cxx_werror_flag" ||
  14242. test ! -s conftest.err
  14243. } && test -s conftest$ac_exeext && {
  14244. test "$cross_compiling" = yes ||
  14245. $as_test_x conftest$ac_exeext
  14246. }; then
  14247. eval "$as_ac_Lib=yes"
  14248. else
  14249. $as_echo "$as_me: failed program was:" >&5
  14250. sed 's/^/| /' conftest.$ac_ext >&5
  14251. eval "$as_ac_Lib=no"
  14252. fi
  14253. rm -rf conftest.dSYM
  14254. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14255. conftest$ac_exeext conftest.$ac_ext
  14256. LIBS=$ac_check_lib_save_LIBS
  14257. fi
  14258. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14259. $as_echo "$as_val"'`
  14260. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14261. $as_echo "$ac_res" >&6; }
  14262. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14263. $as_echo "$as_val"'`
  14264. if test "x$as_val" = x""yes; then
  14265. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  14266. else
  14267. link_thread="no"
  14268. fi
  14269. done
  14270. fi
  14271. else
  14272. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  14273. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14274. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14275. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14276. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14277. $as_echo_n "(cached) " >&6
  14278. else
  14279. ac_check_lib_save_LIBS=$LIBS
  14280. LIBS="-l$ax_lib $LIBS"
  14281. cat >conftest.$ac_ext <<_ACEOF
  14282. /* confdefs.h. */
  14283. _ACEOF
  14284. cat confdefs.h >>conftest.$ac_ext
  14285. cat >>conftest.$ac_ext <<_ACEOF
  14286. /* end confdefs.h. */
  14287. /* Override any GCC internal prototype to avoid an error.
  14288. Use char because int might match the return type of a GCC
  14289. builtin and then its argument prototype would still apply. */
  14290. #ifdef __cplusplus
  14291. extern "C"
  14292. #endif
  14293. char exit ();
  14294. int
  14295. main ()
  14296. {
  14297. return exit ();
  14298. ;
  14299. return 0;
  14300. }
  14301. _ACEOF
  14302. rm -f conftest.$ac_objext conftest$ac_exeext
  14303. if { (ac_try="$ac_link"
  14304. case "(($ac_try" in
  14305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14306. *) ac_try_echo=$ac_try;;
  14307. esac
  14308. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14309. $as_echo "$ac_try_echo") >&5
  14310. (eval "$ac_link") 2>conftest.er1
  14311. ac_status=$?
  14312. grep -v '^ *+' conftest.er1 >conftest.err
  14313. rm -f conftest.er1
  14314. cat conftest.err >&5
  14315. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14316. (exit $ac_status); } && {
  14317. test -z "$ac_cxx_werror_flag" ||
  14318. test ! -s conftest.err
  14319. } && test -s conftest$ac_exeext && {
  14320. test "$cross_compiling" = yes ||
  14321. $as_test_x conftest$ac_exeext
  14322. }; then
  14323. eval "$as_ac_Lib=yes"
  14324. else
  14325. $as_echo "$as_me: failed program was:" >&5
  14326. sed 's/^/| /' conftest.$ac_ext >&5
  14327. eval "$as_ac_Lib=no"
  14328. fi
  14329. rm -rf conftest.dSYM
  14330. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14331. conftest$ac_exeext conftest.$ac_ext
  14332. LIBS=$ac_check_lib_save_LIBS
  14333. fi
  14334. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14335. $as_echo "$as_val"'`
  14336. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14337. $as_echo "$ac_res" >&6; }
  14338. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14339. $as_echo "$as_val"'`
  14340. if test "x$as_val" = x""yes; then
  14341. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  14342. else
  14343. link_thread="no"
  14344. fi
  14345. done
  14346. fi
  14347. if test "x$link_thread" = "xno"; then
  14348. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  14349. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  14350. { (exit 1); exit 1; }; }
  14351. else
  14352. case "x$build_os" in
  14353. *bsd* )
  14354. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  14355. break;
  14356. ;;
  14357. esac
  14358. fi
  14359. fi
  14360. CPPFLAGS="$CPPFLAGS_SAVED"
  14361. LDFLAGS="$LDFLAGS_SAVED"
  14362. fi
  14363. # Check whether --with-boost-iostreams was given.
  14364. if test "${with_boost_iostreams+set}" = set; then
  14365. withval=$with_boost_iostreams;
  14366. if test "$withval" = "no"; then
  14367. want_boost="no"
  14368. elif test "$withval" = "yes"; then
  14369. want_boost="yes"
  14370. ax_boost_user_iostreams_lib=""
  14371. else
  14372. want_boost="yes"
  14373. ax_boost_user_iostreams_lib="$withval"
  14374. fi
  14375. else
  14376. want_boost="yes"
  14377. fi
  14378. if test "x$want_boost" = "xyes"; then
  14379. CPPFLAGS_SAVED="$CPPFLAGS"
  14380. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14381. export CPPFLAGS
  14382. LDFLAGS_SAVED="$LDFLAGS"
  14383. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14384. export LDFLAGS
  14385. { $as_echo "$as_me:$LINENO: checking whether the Boost::IOStreams library is available" >&5
  14386. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  14387. if test "${ax_cv_boost_iostreams+set}" = set; then
  14388. $as_echo_n "(cached) " >&6
  14389. else
  14390. ac_ext=cpp
  14391. ac_cpp='$CXXCPP $CPPFLAGS'
  14392. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14393. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14394. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14395. cat >conftest.$ac_ext <<_ACEOF
  14396. /* confdefs.h. */
  14397. _ACEOF
  14398. cat confdefs.h >>conftest.$ac_ext
  14399. cat >>conftest.$ac_ext <<_ACEOF
  14400. /* end confdefs.h. */
  14401. #include <boost/iostreams/filtering_stream.hpp>
  14402. #include <boost/range/iterator_range.hpp>
  14403. int
  14404. main ()
  14405. {
  14406. std::string input = "Hello World!";
  14407. namespace io = boost::iostreams;
  14408. io::filtering_istream in(boost::make_iterator_range(input));
  14409. return 0;
  14410. ;
  14411. return 0;
  14412. }
  14413. _ACEOF
  14414. rm -f conftest.$ac_objext
  14415. if { (ac_try="$ac_compile"
  14416. case "(($ac_try" in
  14417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14418. *) ac_try_echo=$ac_try;;
  14419. esac
  14420. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14421. $as_echo "$ac_try_echo") >&5
  14422. (eval "$ac_compile") 2>conftest.er1
  14423. ac_status=$?
  14424. grep -v '^ *+' conftest.er1 >conftest.err
  14425. rm -f conftest.er1
  14426. cat conftest.err >&5
  14427. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14428. (exit $ac_status); } && {
  14429. test -z "$ac_cxx_werror_flag" ||
  14430. test ! -s conftest.err
  14431. } && test -s conftest.$ac_objext; then
  14432. ax_cv_boost_iostreams=yes
  14433. else
  14434. $as_echo "$as_me: failed program was:" >&5
  14435. sed 's/^/| /' conftest.$ac_ext >&5
  14436. ax_cv_boost_iostreams=no
  14437. fi
  14438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14439. ac_ext=cpp
  14440. ac_cpp='$CXXCPP $CPPFLAGS'
  14441. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14442. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14443. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14444. fi
  14445. { $as_echo "$as_me:$LINENO: result: $ax_cv_boost_iostreams" >&5
  14446. $as_echo "$ax_cv_boost_iostreams" >&6; }
  14447. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  14448. cat >>confdefs.h <<\_ACEOF
  14449. #define HAVE_BOOST_IOSTREAMS /**/
  14450. _ACEOF
  14451. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14452. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  14453. for libextension in `ls $BOOSTLIBDIR/libboost_iostreams*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_iostreams.*\)\.so.*$;\1;' -e 's;^lib\(boost_iostreams.*\)\.a*$;\1;'` ; do
  14454. ax_lib=${libextension}
  14455. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14456. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14457. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14458. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14459. $as_echo_n "(cached) " >&6
  14460. else
  14461. ac_check_lib_save_LIBS=$LIBS
  14462. LIBS="-l$ax_lib $LIBS"
  14463. cat >conftest.$ac_ext <<_ACEOF
  14464. /* confdefs.h. */
  14465. _ACEOF
  14466. cat confdefs.h >>conftest.$ac_ext
  14467. cat >>conftest.$ac_ext <<_ACEOF
  14468. /* end confdefs.h. */
  14469. /* Override any GCC internal prototype to avoid an error.
  14470. Use char because int might match the return type of a GCC
  14471. builtin and then its argument prototype would still apply. */
  14472. #ifdef __cplusplus
  14473. extern "C"
  14474. #endif
  14475. char exit ();
  14476. int
  14477. main ()
  14478. {
  14479. return exit ();
  14480. ;
  14481. return 0;
  14482. }
  14483. _ACEOF
  14484. rm -f conftest.$ac_objext conftest$ac_exeext
  14485. if { (ac_try="$ac_link"
  14486. case "(($ac_try" in
  14487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14488. *) ac_try_echo=$ac_try;;
  14489. esac
  14490. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14491. $as_echo "$ac_try_echo") >&5
  14492. (eval "$ac_link") 2>conftest.er1
  14493. ac_status=$?
  14494. grep -v '^ *+' conftest.er1 >conftest.err
  14495. rm -f conftest.er1
  14496. cat conftest.err >&5
  14497. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14498. (exit $ac_status); } && {
  14499. test -z "$ac_cxx_werror_flag" ||
  14500. test ! -s conftest.err
  14501. } && test -s conftest$ac_exeext && {
  14502. test "$cross_compiling" = yes ||
  14503. $as_test_x conftest$ac_exeext
  14504. }; then
  14505. eval "$as_ac_Lib=yes"
  14506. else
  14507. $as_echo "$as_me: failed program was:" >&5
  14508. sed 's/^/| /' conftest.$ac_ext >&5
  14509. eval "$as_ac_Lib=no"
  14510. fi
  14511. rm -rf conftest.dSYM
  14512. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14513. conftest$ac_exeext conftest.$ac_ext
  14514. LIBS=$ac_check_lib_save_LIBS
  14515. fi
  14516. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14517. $as_echo "$as_val"'`
  14518. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14519. $as_echo "$ac_res" >&6; }
  14520. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14521. $as_echo "$as_val"'`
  14522. if test "x$as_val" = x""yes; then
  14523. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14524. else
  14525. link_iostreams="no"
  14526. fi
  14527. done
  14528. if test "x$link_iostreams" != "xyes"; then
  14529. 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
  14530. ax_lib=${libextension}
  14531. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14532. { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
  14533. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14534. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14535. $as_echo_n "(cached) " >&6
  14536. else
  14537. ac_check_lib_save_LIBS=$LIBS
  14538. LIBS="-l$ax_lib $LIBS"
  14539. cat >conftest.$ac_ext <<_ACEOF
  14540. /* confdefs.h. */
  14541. _ACEOF
  14542. cat confdefs.h >>conftest.$ac_ext
  14543. cat >>conftest.$ac_ext <<_ACEOF
  14544. /* end confdefs.h. */
  14545. /* Override any GCC internal prototype to avoid an error.
  14546. Use char because int might match the return type of a GCC
  14547. builtin and then its argument prototype would still apply. */
  14548. #ifdef __cplusplus
  14549. extern "C"
  14550. #endif
  14551. char exit ();
  14552. int
  14553. main ()
  14554. {
  14555. return exit ();
  14556. ;
  14557. return 0;
  14558. }
  14559. _ACEOF
  14560. rm -f conftest.$ac_objext conftest$ac_exeext
  14561. if { (ac_try="$ac_link"
  14562. case "(($ac_try" in
  14563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14564. *) ac_try_echo=$ac_try;;
  14565. esac
  14566. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14567. $as_echo "$ac_try_echo") >&5
  14568. (eval "$ac_link") 2>conftest.er1
  14569. ac_status=$?
  14570. grep -v '^ *+' conftest.er1 >conftest.err
  14571. rm -f conftest.er1
  14572. cat conftest.err >&5
  14573. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14574. (exit $ac_status); } && {
  14575. test -z "$ac_cxx_werror_flag" ||
  14576. test ! -s conftest.err
  14577. } && test -s conftest$ac_exeext && {
  14578. test "$cross_compiling" = yes ||
  14579. $as_test_x conftest$ac_exeext
  14580. }; then
  14581. eval "$as_ac_Lib=yes"
  14582. else
  14583. $as_echo "$as_me: failed program was:" >&5
  14584. sed 's/^/| /' conftest.$ac_ext >&5
  14585. eval "$as_ac_Lib=no"
  14586. fi
  14587. rm -rf conftest.dSYM
  14588. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14589. conftest$ac_exeext conftest.$ac_ext
  14590. LIBS=$ac_check_lib_save_LIBS
  14591. fi
  14592. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14593. $as_echo "$as_val"'`
  14594. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14595. $as_echo "$ac_res" >&6; }
  14596. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14597. $as_echo "$as_val"'`
  14598. if test "x$as_val" = x""yes; then
  14599. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14600. else
  14601. link_iostreams="no"
  14602. fi
  14603. done
  14604. fi
  14605. else
  14606. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  14607. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  14608. { $as_echo "$as_me:$LINENO: checking for main in -l$ax_lib" >&5
  14609. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  14610. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  14611. $as_echo_n "(cached) " >&6
  14612. else
  14613. ac_check_lib_save_LIBS=$LIBS
  14614. LIBS="-l$ax_lib $LIBS"
  14615. cat >conftest.$ac_ext <<_ACEOF
  14616. /* confdefs.h. */
  14617. _ACEOF
  14618. cat confdefs.h >>conftest.$ac_ext
  14619. cat >>conftest.$ac_ext <<_ACEOF
  14620. /* end confdefs.h. */
  14621. int
  14622. main ()
  14623. {
  14624. return main ();
  14625. ;
  14626. return 0;
  14627. }
  14628. _ACEOF
  14629. rm -f conftest.$ac_objext conftest$ac_exeext
  14630. if { (ac_try="$ac_link"
  14631. case "(($ac_try" in
  14632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14633. *) ac_try_echo=$ac_try;;
  14634. esac
  14635. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14636. $as_echo "$ac_try_echo") >&5
  14637. (eval "$ac_link") 2>conftest.er1
  14638. ac_status=$?
  14639. grep -v '^ *+' conftest.er1 >conftest.err
  14640. rm -f conftest.er1
  14641. cat conftest.err >&5
  14642. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14643. (exit $ac_status); } && {
  14644. test -z "$ac_cxx_werror_flag" ||
  14645. test ! -s conftest.err
  14646. } && test -s conftest$ac_exeext && {
  14647. test "$cross_compiling" = yes ||
  14648. $as_test_x conftest$ac_exeext
  14649. }; then
  14650. eval "$as_ac_Lib=yes"
  14651. else
  14652. $as_echo "$as_me: failed program was:" >&5
  14653. sed 's/^/| /' conftest.$ac_ext >&5
  14654. eval "$as_ac_Lib=no"
  14655. fi
  14656. rm -rf conftest.dSYM
  14657. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14658. conftest$ac_exeext conftest.$ac_ext
  14659. LIBS=$ac_check_lib_save_LIBS
  14660. fi
  14661. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  14662. $as_echo "$as_val"'`
  14663. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14664. $as_echo "$ac_res" >&6; }
  14665. as_val=`eval 'as_val=${'$as_ac_Lib'}
  14666. $as_echo "$as_val"'`
  14667. if test "x$as_val" = x""yes; then
  14668. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14669. else
  14670. link_iostreams="no"
  14671. fi
  14672. done
  14673. fi
  14674. if test "x$link_iostreams" != "xyes"; then
  14675. { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
  14676. $as_echo "$as_me: error: Could not link against $ax_lib !" >&2;}
  14677. { (exit 1); exit 1; }; }
  14678. fi
  14679. fi
  14680. CPPFLAGS="$CPPFLAGS_SAVED"
  14681. LDFLAGS="$LDFLAGS_SAVED"
  14682. fi
  14683. # Check for SDL libraries
  14684. saved_LIBS=$LIBS
  14685. # Extract the first word of "sdl-config", so it can be a program name with args.
  14686. set dummy sdl-config; ac_word=$2
  14687. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14688. $as_echo_n "checking for $ac_word... " >&6; }
  14689. if test "${ac_cv_prog_HAVE_SDL_CONFIG+set}" = set; then
  14690. $as_echo_n "(cached) " >&6
  14691. else
  14692. if test -n "$HAVE_SDL_CONFIG"; then
  14693. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  14694. else
  14695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14696. for as_dir in $PATH
  14697. do
  14698. IFS=$as_save_IFS
  14699. test -z "$as_dir" && as_dir=.
  14700. for ac_exec_ext in '' $ac_executable_extensions; do
  14701. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14702. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  14703. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14704. break 2
  14705. fi
  14706. done
  14707. done
  14708. IFS=$as_save_IFS
  14709. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  14710. fi
  14711. fi
  14712. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  14713. if test -n "$HAVE_SDL_CONFIG"; then
  14714. { $as_echo "$as_me:$LINENO: result: $HAVE_SDL_CONFIG" >&5
  14715. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  14716. else
  14717. { $as_echo "$as_me:$LINENO: result: no" >&5
  14718. $as_echo "no" >&6; }
  14719. fi
  14720. if test "$HAVE_SDL_CONFIG" = no; then
  14721. { { $as_echo "$as_me:$LINENO: error: sdl-config doesn't exist. Try to check the PATH enviroment." >&5
  14722. $as_echo "$as_me: error: sdl-config doesn't exist. Try to check the PATH enviroment." >&2;}
  14723. { (exit 1); exit 1; }; }
  14724. fi
  14725. { $as_echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5
  14726. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  14727. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then
  14728. $as_echo_n "(cached) " >&6
  14729. else
  14730. ac_check_lib_save_LIBS=$LIBS
  14731. LIBS="-lSDL $LIBS"
  14732. cat >conftest.$ac_ext <<_ACEOF
  14733. /* confdefs.h. */
  14734. _ACEOF
  14735. cat confdefs.h >>conftest.$ac_ext
  14736. cat >>conftest.$ac_ext <<_ACEOF
  14737. /* end confdefs.h. */
  14738. /* Override any GCC internal prototype to avoid an error.
  14739. Use char because int might match the return type of a GCC
  14740. builtin and then its argument prototype would still apply. */
  14741. #ifdef __cplusplus
  14742. extern "C"
  14743. #endif
  14744. char SDL_Init ();
  14745. int
  14746. main ()
  14747. {
  14748. return SDL_Init ();
  14749. ;
  14750. return 0;
  14751. }
  14752. _ACEOF
  14753. rm -f conftest.$ac_objext conftest$ac_exeext
  14754. if { (ac_try="$ac_link"
  14755. case "(($ac_try" in
  14756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14757. *) ac_try_echo=$ac_try;;
  14758. esac
  14759. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14760. $as_echo "$ac_try_echo") >&5
  14761. (eval "$ac_link") 2>conftest.er1
  14762. ac_status=$?
  14763. grep -v '^ *+' conftest.er1 >conftest.err
  14764. rm -f conftest.er1
  14765. cat conftest.err >&5
  14766. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14767. (exit $ac_status); } && {
  14768. test -z "$ac_cxx_werror_flag" ||
  14769. test ! -s conftest.err
  14770. } && test -s conftest$ac_exeext && {
  14771. test "$cross_compiling" = yes ||
  14772. $as_test_x conftest$ac_exeext
  14773. }; then
  14774. ac_cv_lib_SDL_SDL_Init=yes
  14775. else
  14776. $as_echo "$as_me: failed program was:" >&5
  14777. sed 's/^/| /' conftest.$ac_ext >&5
  14778. ac_cv_lib_SDL_SDL_Init=no
  14779. fi
  14780. rm -rf conftest.dSYM
  14781. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14782. conftest$ac_exeext conftest.$ac_ext
  14783. LIBS=$ac_check_lib_save_LIBS
  14784. fi
  14785. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_Init" >&5
  14786. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  14787. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then
  14788. cat >>confdefs.h <<_ACEOF
  14789. #define HAVE_LIBSDL 1
  14790. _ACEOF
  14791. LIBS="-lSDL $LIBS"
  14792. else
  14793. { { $as_echo "$as_me:$LINENO: error: SDL library not found. Please install it." >&5
  14794. $as_echo "$as_me: error: SDL library not found. Please install it." >&2;}
  14795. { (exit 1); exit 1; }; }
  14796. fi
  14797. { $as_echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
  14798. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  14799. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
  14800. $as_echo_n "(cached) " >&6
  14801. else
  14802. ac_check_lib_save_LIBS=$LIBS
  14803. LIBS="-lSDL_mixer $LIBS"
  14804. cat >conftest.$ac_ext <<_ACEOF
  14805. /* confdefs.h. */
  14806. _ACEOF
  14807. cat confdefs.h >>conftest.$ac_ext
  14808. cat >>conftest.$ac_ext <<_ACEOF
  14809. /* end confdefs.h. */
  14810. int
  14811. main ()
  14812. {
  14813. return main ();
  14814. ;
  14815. return 0;
  14816. }
  14817. _ACEOF
  14818. rm -f conftest.$ac_objext conftest$ac_exeext
  14819. if { (ac_try="$ac_link"
  14820. case "(($ac_try" in
  14821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14822. *) ac_try_echo=$ac_try;;
  14823. esac
  14824. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14825. $as_echo "$ac_try_echo") >&5
  14826. (eval "$ac_link") 2>conftest.er1
  14827. ac_status=$?
  14828. grep -v '^ *+' conftest.er1 >conftest.err
  14829. rm -f conftest.er1
  14830. cat conftest.err >&5
  14831. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14832. (exit $ac_status); } && {
  14833. test -z "$ac_cxx_werror_flag" ||
  14834. test ! -s conftest.err
  14835. } && test -s conftest$ac_exeext && {
  14836. test "$cross_compiling" = yes ||
  14837. $as_test_x conftest$ac_exeext
  14838. }; then
  14839. ac_cv_lib_SDL_mixer_main=yes
  14840. else
  14841. $as_echo "$as_me: failed program was:" >&5
  14842. sed 's/^/| /' conftest.$ac_ext >&5
  14843. ac_cv_lib_SDL_mixer_main=no
  14844. fi
  14845. rm -rf conftest.dSYM
  14846. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14847. conftest$ac_exeext conftest.$ac_ext
  14848. LIBS=$ac_check_lib_save_LIBS
  14849. fi
  14850. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
  14851. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  14852. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then
  14853. cat >>confdefs.h <<_ACEOF
  14854. #define HAVE_LIBSDL_MIXER 1
  14855. _ACEOF
  14856. LIBS="-lSDL_mixer $LIBS"
  14857. else
  14858. { { $as_echo "$as_me:$LINENO: error: SDL_mixer library not found. Please install it." >&5
  14859. $as_echo "$as_me: error: SDL_mixer library not found. Please install it." >&2;}
  14860. { (exit 1); exit 1; }; }
  14861. fi
  14862. { $as_echo "$as_me:$LINENO: checking for IMG_Load in -lSDL_image" >&5
  14863. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  14864. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then
  14865. $as_echo_n "(cached) " >&6
  14866. else
  14867. ac_check_lib_save_LIBS=$LIBS
  14868. LIBS="-lSDL_image $LIBS"
  14869. cat >conftest.$ac_ext <<_ACEOF
  14870. /* confdefs.h. */
  14871. _ACEOF
  14872. cat confdefs.h >>conftest.$ac_ext
  14873. cat >>conftest.$ac_ext <<_ACEOF
  14874. /* end confdefs.h. */
  14875. /* Override any GCC internal prototype to avoid an error.
  14876. Use char because int might match the return type of a GCC
  14877. builtin and then its argument prototype would still apply. */
  14878. #ifdef __cplusplus
  14879. extern "C"
  14880. #endif
  14881. char IMG_Load ();
  14882. int
  14883. main ()
  14884. {
  14885. return IMG_Load ();
  14886. ;
  14887. return 0;
  14888. }
  14889. _ACEOF
  14890. rm -f conftest.$ac_objext conftest$ac_exeext
  14891. if { (ac_try="$ac_link"
  14892. case "(($ac_try" in
  14893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14894. *) ac_try_echo=$ac_try;;
  14895. esac
  14896. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14897. $as_echo "$ac_try_echo") >&5
  14898. (eval "$ac_link") 2>conftest.er1
  14899. ac_status=$?
  14900. grep -v '^ *+' conftest.er1 >conftest.err
  14901. rm -f conftest.er1
  14902. cat conftest.err >&5
  14903. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14904. (exit $ac_status); } && {
  14905. test -z "$ac_cxx_werror_flag" ||
  14906. test ! -s conftest.err
  14907. } && test -s conftest$ac_exeext && {
  14908. test "$cross_compiling" = yes ||
  14909. $as_test_x conftest$ac_exeext
  14910. }; then
  14911. ac_cv_lib_SDL_image_IMG_Load=yes
  14912. else
  14913. $as_echo "$as_me: failed program was:" >&5
  14914. sed 's/^/| /' conftest.$ac_ext >&5
  14915. ac_cv_lib_SDL_image_IMG_Load=no
  14916. fi
  14917. rm -rf conftest.dSYM
  14918. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14919. conftest$ac_exeext conftest.$ac_ext
  14920. LIBS=$ac_check_lib_save_LIBS
  14921. fi
  14922. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  14923. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  14924. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then
  14925. cat >>confdefs.h <<_ACEOF
  14926. #define HAVE_LIBSDL_IMAGE 1
  14927. _ACEOF
  14928. LIBS="-lSDL_image $LIBS"
  14929. else
  14930. { { $as_echo "$as_me:$LINENO: error: SDL_image library not found. Please install it." >&5
  14931. $as_echo "$as_me: error: SDL_image library not found. Please install it." >&2;}
  14932. { (exit 1); exit 1; }; }
  14933. fi
  14934. { $as_echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5
  14935. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  14936. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then
  14937. $as_echo_n "(cached) " >&6
  14938. else
  14939. ac_check_lib_save_LIBS=$LIBS
  14940. LIBS="-lSDL_ttf $LIBS"
  14941. cat >conftest.$ac_ext <<_ACEOF
  14942. /* confdefs.h. */
  14943. _ACEOF
  14944. cat confdefs.h >>conftest.$ac_ext
  14945. cat >>conftest.$ac_ext <<_ACEOF
  14946. /* end confdefs.h. */
  14947. int
  14948. main ()
  14949. {
  14950. return main ();
  14951. ;
  14952. return 0;
  14953. }
  14954. _ACEOF
  14955. rm -f conftest.$ac_objext conftest$ac_exeext
  14956. if { (ac_try="$ac_link"
  14957. case "(($ac_try" in
  14958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14959. *) ac_try_echo=$ac_try;;
  14960. esac
  14961. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14962. $as_echo "$ac_try_echo") >&5
  14963. (eval "$ac_link") 2>conftest.er1
  14964. ac_status=$?
  14965. grep -v '^ *+' conftest.er1 >conftest.err
  14966. rm -f conftest.er1
  14967. cat conftest.err >&5
  14968. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14969. (exit $ac_status); } && {
  14970. test -z "$ac_cxx_werror_flag" ||
  14971. test ! -s conftest.err
  14972. } && test -s conftest$ac_exeext && {
  14973. test "$cross_compiling" = yes ||
  14974. $as_test_x conftest$ac_exeext
  14975. }; then
  14976. ac_cv_lib_SDL_ttf_main=yes
  14977. else
  14978. $as_echo "$as_me: failed program was:" >&5
  14979. sed 's/^/| /' conftest.$ac_ext >&5
  14980. ac_cv_lib_SDL_ttf_main=no
  14981. fi
  14982. rm -rf conftest.dSYM
  14983. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14984. conftest$ac_exeext conftest.$ac_ext
  14985. LIBS=$ac_check_lib_save_LIBS
  14986. fi
  14987. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5
  14988. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  14989. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then
  14990. cat >>confdefs.h <<_ACEOF
  14991. #define HAVE_LIBSDL_TTF 1
  14992. _ACEOF
  14993. LIBS="-lSDL_ttf $LIBS"
  14994. else
  14995. { { $as_echo "$as_me:$LINENO: error: SDL_ttf library not found. Please install it." >&5
  14996. $as_echo "$as_me: error: SDL_ttf library not found. Please install it." >&2;}
  14997. { (exit 1); exit 1; }; }
  14998. fi
  14999. SDL_CXXFLAGS=`sdl-config --cflags`
  15000. SDL_LIBS="`sdl-config --libs` $LIBS"
  15001. LIBS=$saved_LIBS
  15002. # Checks for header files.
  15003. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  15004. $as_echo_n "checking for ANSI C header files... " >&6; }
  15005. if test "${ac_cv_header_stdc+set}" = set; then
  15006. $as_echo_n "(cached) " >&6
  15007. else
  15008. cat >conftest.$ac_ext <<_ACEOF
  15009. /* confdefs.h. */
  15010. _ACEOF
  15011. cat confdefs.h >>conftest.$ac_ext
  15012. cat >>conftest.$ac_ext <<_ACEOF
  15013. /* end confdefs.h. */
  15014. #include <stdlib.h>
  15015. #include <stdarg.h>
  15016. #include <string.h>
  15017. #include <float.h>
  15018. int
  15019. main ()
  15020. {
  15021. ;
  15022. return 0;
  15023. }
  15024. _ACEOF
  15025. rm -f conftest.$ac_objext
  15026. if { (ac_try="$ac_compile"
  15027. case "(($ac_try" in
  15028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15029. *) ac_try_echo=$ac_try;;
  15030. esac
  15031. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15032. $as_echo "$ac_try_echo") >&5
  15033. (eval "$ac_compile") 2>conftest.er1
  15034. ac_status=$?
  15035. grep -v '^ *+' conftest.er1 >conftest.err
  15036. rm -f conftest.er1
  15037. cat conftest.err >&5
  15038. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15039. (exit $ac_status); } && {
  15040. test -z "$ac_cxx_werror_flag" ||
  15041. test ! -s conftest.err
  15042. } && test -s conftest.$ac_objext; then
  15043. ac_cv_header_stdc=yes
  15044. else
  15045. $as_echo "$as_me: failed program was:" >&5
  15046. sed 's/^/| /' conftest.$ac_ext >&5
  15047. ac_cv_header_stdc=no
  15048. fi
  15049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15050. if test $ac_cv_header_stdc = yes; then
  15051. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15052. cat >conftest.$ac_ext <<_ACEOF
  15053. /* confdefs.h. */
  15054. _ACEOF
  15055. cat confdefs.h >>conftest.$ac_ext
  15056. cat >>conftest.$ac_ext <<_ACEOF
  15057. /* end confdefs.h. */
  15058. #include <string.h>
  15059. _ACEOF
  15060. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15061. $EGREP "memchr" >/dev/null 2>&1; then
  15062. :
  15063. else
  15064. ac_cv_header_stdc=no
  15065. fi
  15066. rm -f conftest*
  15067. fi
  15068. if test $ac_cv_header_stdc = yes; then
  15069. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15070. cat >conftest.$ac_ext <<_ACEOF
  15071. /* confdefs.h. */
  15072. _ACEOF
  15073. cat confdefs.h >>conftest.$ac_ext
  15074. cat >>conftest.$ac_ext <<_ACEOF
  15075. /* end confdefs.h. */
  15076. #include <stdlib.h>
  15077. _ACEOF
  15078. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15079. $EGREP "free" >/dev/null 2>&1; then
  15080. :
  15081. else
  15082. ac_cv_header_stdc=no
  15083. fi
  15084. rm -f conftest*
  15085. fi
  15086. if test $ac_cv_header_stdc = yes; then
  15087. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15088. if test "$cross_compiling" = yes; then
  15089. :
  15090. else
  15091. cat >conftest.$ac_ext <<_ACEOF
  15092. /* confdefs.h. */
  15093. _ACEOF
  15094. cat confdefs.h >>conftest.$ac_ext
  15095. cat >>conftest.$ac_ext <<_ACEOF
  15096. /* end confdefs.h. */
  15097. #include <ctype.h>
  15098. #include <stdlib.h>
  15099. #if ((' ' & 0x0FF) == 0x020)
  15100. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15101. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15102. #else
  15103. # define ISLOWER(c) \
  15104. (('a' <= (c) && (c) <= 'i') \
  15105. || ('j' <= (c) && (c) <= 'r') \
  15106. || ('s' <= (c) && (c) <= 'z'))
  15107. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15108. #endif
  15109. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15110. int
  15111. main ()
  15112. {
  15113. int i;
  15114. for (i = 0; i < 256; i++)
  15115. if (XOR (islower (i), ISLOWER (i))
  15116. || toupper (i) != TOUPPER (i))
  15117. return 2;
  15118. return 0;
  15119. }
  15120. _ACEOF
  15121. rm -f conftest$ac_exeext
  15122. if { (ac_try="$ac_link"
  15123. case "(($ac_try" in
  15124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15125. *) ac_try_echo=$ac_try;;
  15126. esac
  15127. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15128. $as_echo "$ac_try_echo") >&5
  15129. (eval "$ac_link") 2>&5
  15130. ac_status=$?
  15131. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15132. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15133. { (case "(($ac_try" in
  15134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15135. *) ac_try_echo=$ac_try;;
  15136. esac
  15137. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15138. $as_echo "$ac_try_echo") >&5
  15139. (eval "$ac_try") 2>&5
  15140. ac_status=$?
  15141. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15142. (exit $ac_status); }; }; then
  15143. :
  15144. else
  15145. $as_echo "$as_me: program exited with status $ac_status" >&5
  15146. $as_echo "$as_me: failed program was:" >&5
  15147. sed 's/^/| /' conftest.$ac_ext >&5
  15148. ( exit $ac_status )
  15149. ac_cv_header_stdc=no
  15150. fi
  15151. rm -rf conftest.dSYM
  15152. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15153. fi
  15154. fi
  15155. fi
  15156. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  15157. $as_echo "$ac_cv_header_stdc" >&6; }
  15158. if test $ac_cv_header_stdc = yes; then
  15159. cat >>confdefs.h <<\_ACEOF
  15160. #define STDC_HEADERS 1
  15161. _ACEOF
  15162. fi
  15163. for ac_header in fcntl.h stdlib.h string.h
  15164. do
  15165. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15166. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15167. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15168. $as_echo_n "checking for $ac_header... " >&6; }
  15169. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15170. $as_echo_n "(cached) " >&6
  15171. fi
  15172. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15173. $as_echo "$as_val"'`
  15174. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15175. $as_echo "$ac_res" >&6; }
  15176. else
  15177. # Is the header compilable?
  15178. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15179. $as_echo_n "checking $ac_header usability... " >&6; }
  15180. cat >conftest.$ac_ext <<_ACEOF
  15181. /* confdefs.h. */
  15182. _ACEOF
  15183. cat confdefs.h >>conftest.$ac_ext
  15184. cat >>conftest.$ac_ext <<_ACEOF
  15185. /* end confdefs.h. */
  15186. $ac_includes_default
  15187. #include <$ac_header>
  15188. _ACEOF
  15189. rm -f conftest.$ac_objext
  15190. if { (ac_try="$ac_compile"
  15191. case "(($ac_try" in
  15192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15193. *) ac_try_echo=$ac_try;;
  15194. esac
  15195. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15196. $as_echo "$ac_try_echo") >&5
  15197. (eval "$ac_compile") 2>conftest.er1
  15198. ac_status=$?
  15199. grep -v '^ *+' conftest.er1 >conftest.err
  15200. rm -f conftest.er1
  15201. cat conftest.err >&5
  15202. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15203. (exit $ac_status); } && {
  15204. test -z "$ac_cxx_werror_flag" ||
  15205. test ! -s conftest.err
  15206. } && test -s conftest.$ac_objext; then
  15207. ac_header_compiler=yes
  15208. else
  15209. $as_echo "$as_me: failed program was:" >&5
  15210. sed 's/^/| /' conftest.$ac_ext >&5
  15211. ac_header_compiler=no
  15212. fi
  15213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15214. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15215. $as_echo "$ac_header_compiler" >&6; }
  15216. # Is the header present?
  15217. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15218. $as_echo_n "checking $ac_header presence... " >&6; }
  15219. cat >conftest.$ac_ext <<_ACEOF
  15220. /* confdefs.h. */
  15221. _ACEOF
  15222. cat confdefs.h >>conftest.$ac_ext
  15223. cat >>conftest.$ac_ext <<_ACEOF
  15224. /* end confdefs.h. */
  15225. #include <$ac_header>
  15226. _ACEOF
  15227. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15228. case "(($ac_try" in
  15229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15230. *) ac_try_echo=$ac_try;;
  15231. esac
  15232. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15233. $as_echo "$ac_try_echo") >&5
  15234. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15235. ac_status=$?
  15236. grep -v '^ *+' conftest.er1 >conftest.err
  15237. rm -f conftest.er1
  15238. cat conftest.err >&5
  15239. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15240. (exit $ac_status); } >/dev/null && {
  15241. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15242. test ! -s conftest.err
  15243. }; then
  15244. ac_header_preproc=yes
  15245. else
  15246. $as_echo "$as_me: failed program was:" >&5
  15247. sed 's/^/| /' conftest.$ac_ext >&5
  15248. ac_header_preproc=no
  15249. fi
  15250. rm -f conftest.err conftest.$ac_ext
  15251. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15252. $as_echo "$ac_header_preproc" >&6; }
  15253. # So? What about this header?
  15254. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15255. yes:no: )
  15256. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15257. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15258. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15259. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15260. ac_header_preproc=yes
  15261. ;;
  15262. no:yes:* )
  15263. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15264. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15265. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15266. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15267. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15268. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15269. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15270. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15271. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15272. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15273. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15274. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15275. ;;
  15276. esac
  15277. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15278. $as_echo_n "checking for $ac_header... " >&6; }
  15279. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15280. $as_echo_n "(cached) " >&6
  15281. else
  15282. eval "$as_ac_Header=\$ac_header_preproc"
  15283. fi
  15284. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15285. $as_echo "$as_val"'`
  15286. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15287. $as_echo "$ac_res" >&6; }
  15288. fi
  15289. as_val=`eval 'as_val=${'$as_ac_Header'}
  15290. $as_echo "$as_val"'`
  15291. if test "x$as_val" = x""yes; then
  15292. cat >>confdefs.h <<_ACEOF
  15293. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15294. _ACEOF
  15295. fi
  15296. done
  15297. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  15298. 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
  15299. do
  15300. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15301. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15302. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15303. $as_echo_n "checking for $ac_header... " >&6; }
  15304. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15305. $as_echo_n "(cached) " >&6
  15306. fi
  15307. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15308. $as_echo "$as_val"'`
  15309. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15310. $as_echo "$ac_res" >&6; }
  15311. else
  15312. # Is the header compilable?
  15313. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15314. $as_echo_n "checking $ac_header usability... " >&6; }
  15315. cat >conftest.$ac_ext <<_ACEOF
  15316. /* confdefs.h. */
  15317. _ACEOF
  15318. cat confdefs.h >>conftest.$ac_ext
  15319. cat >>conftest.$ac_ext <<_ACEOF
  15320. /* end confdefs.h. */
  15321. $ac_includes_default
  15322. #include <$ac_header>
  15323. _ACEOF
  15324. rm -f conftest.$ac_objext
  15325. if { (ac_try="$ac_compile"
  15326. case "(($ac_try" in
  15327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15328. *) ac_try_echo=$ac_try;;
  15329. esac
  15330. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15331. $as_echo "$ac_try_echo") >&5
  15332. (eval "$ac_compile") 2>conftest.er1
  15333. ac_status=$?
  15334. grep -v '^ *+' conftest.er1 >conftest.err
  15335. rm -f conftest.er1
  15336. cat conftest.err >&5
  15337. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15338. (exit $ac_status); } && {
  15339. test -z "$ac_cxx_werror_flag" ||
  15340. test ! -s conftest.err
  15341. } && test -s conftest.$ac_objext; then
  15342. ac_header_compiler=yes
  15343. else
  15344. $as_echo "$as_me: failed program was:" >&5
  15345. sed 's/^/| /' conftest.$ac_ext >&5
  15346. ac_header_compiler=no
  15347. fi
  15348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15349. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15350. $as_echo "$ac_header_compiler" >&6; }
  15351. # Is the header present?
  15352. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15353. $as_echo_n "checking $ac_header presence... " >&6; }
  15354. cat >conftest.$ac_ext <<_ACEOF
  15355. /* confdefs.h. */
  15356. _ACEOF
  15357. cat confdefs.h >>conftest.$ac_ext
  15358. cat >>conftest.$ac_ext <<_ACEOF
  15359. /* end confdefs.h. */
  15360. #include <$ac_header>
  15361. _ACEOF
  15362. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15363. case "(($ac_try" in
  15364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15365. *) ac_try_echo=$ac_try;;
  15366. esac
  15367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15368. $as_echo "$ac_try_echo") >&5
  15369. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15370. ac_status=$?
  15371. grep -v '^ *+' conftest.er1 >conftest.err
  15372. rm -f conftest.er1
  15373. cat conftest.err >&5
  15374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15375. (exit $ac_status); } >/dev/null && {
  15376. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15377. test ! -s conftest.err
  15378. }; then
  15379. ac_header_preproc=yes
  15380. else
  15381. $as_echo "$as_me: failed program was:" >&5
  15382. sed 's/^/| /' conftest.$ac_ext >&5
  15383. ac_header_preproc=no
  15384. fi
  15385. rm -f conftest.err conftest.$ac_ext
  15386. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15387. $as_echo "$ac_header_preproc" >&6; }
  15388. # So? What about this header?
  15389. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15390. yes:no: )
  15391. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15392. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15393. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15394. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15395. ac_header_preproc=yes
  15396. ;;
  15397. no:yes:* )
  15398. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15399. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15400. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15401. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15402. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15403. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15404. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15405. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15406. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15407. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15408. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15409. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15410. ;;
  15411. esac
  15412. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15413. $as_echo_n "checking for $ac_header... " >&6; }
  15414. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15415. $as_echo_n "(cached) " >&6
  15416. else
  15417. eval "$as_ac_Header=\$ac_header_preproc"
  15418. fi
  15419. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15420. $as_echo "$as_val"'`
  15421. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15422. $as_echo "$ac_res" >&6; }
  15423. fi
  15424. as_val=`eval 'as_val=${'$as_ac_Header'}
  15425. $as_echo "$as_val"'`
  15426. if test "x$as_val" = x""yes; then
  15427. cat >>confdefs.h <<_ACEOF
  15428. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15429. _ACEOF
  15430. else
  15431. { { $as_echo "$as_me:$LINENO: error: Required boost headers not found. Please install it." >&5
  15432. $as_echo "$as_me: error: Required boost headers not found. Please install it." >&2;}
  15433. { (exit 1); exit 1; }; }
  15434. fi
  15435. done
  15436. # Checks for library functions.
  15437. for ac_func in atexit memset pow select sqrt
  15438. do
  15439. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15440. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15441. $as_echo_n "checking for $ac_func... " >&6; }
  15442. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15443. $as_echo_n "(cached) " >&6
  15444. else
  15445. cat >conftest.$ac_ext <<_ACEOF
  15446. /* confdefs.h. */
  15447. _ACEOF
  15448. cat confdefs.h >>conftest.$ac_ext
  15449. cat >>conftest.$ac_ext <<_ACEOF
  15450. /* end confdefs.h. */
  15451. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15452. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15453. #define $ac_func innocuous_$ac_func
  15454. /* System header to define __stub macros and hopefully few prototypes,
  15455. which can conflict with char $ac_func (); below.
  15456. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15457. <limits.h> exists even on freestanding compilers. */
  15458. #ifdef __STDC__
  15459. # include <limits.h>
  15460. #else
  15461. # include <assert.h>
  15462. #endif
  15463. #undef $ac_func
  15464. /* Override any GCC internal prototype to avoid an error.
  15465. Use char because int might match the return type of a GCC
  15466. builtin and then its argument prototype would still apply. */
  15467. #ifdef __cplusplus
  15468. extern "C"
  15469. #endif
  15470. char $ac_func ();
  15471. /* The GNU C library defines this for functions which it implements
  15472. to always fail with ENOSYS. Some functions are actually named
  15473. something starting with __ and the normal name is an alias. */
  15474. #if defined __stub_$ac_func || defined __stub___$ac_func
  15475. choke me
  15476. #endif
  15477. int
  15478. main ()
  15479. {
  15480. return $ac_func ();
  15481. ;
  15482. return 0;
  15483. }
  15484. _ACEOF
  15485. rm -f conftest.$ac_objext conftest$ac_exeext
  15486. if { (ac_try="$ac_link"
  15487. case "(($ac_try" in
  15488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15489. *) ac_try_echo=$ac_try;;
  15490. esac
  15491. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15492. $as_echo "$ac_try_echo") >&5
  15493. (eval "$ac_link") 2>conftest.er1
  15494. ac_status=$?
  15495. grep -v '^ *+' conftest.er1 >conftest.err
  15496. rm -f conftest.er1
  15497. cat conftest.err >&5
  15498. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15499. (exit $ac_status); } && {
  15500. test -z "$ac_cxx_werror_flag" ||
  15501. test ! -s conftest.err
  15502. } && test -s conftest$ac_exeext && {
  15503. test "$cross_compiling" = yes ||
  15504. $as_test_x conftest$ac_exeext
  15505. }; then
  15506. eval "$as_ac_var=yes"
  15507. else
  15508. $as_echo "$as_me: failed program was:" >&5
  15509. sed 's/^/| /' conftest.$ac_ext >&5
  15510. eval "$as_ac_var=no"
  15511. fi
  15512. rm -rf conftest.dSYM
  15513. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15514. conftest$ac_exeext conftest.$ac_ext
  15515. fi
  15516. ac_res=`eval 'as_val=${'$as_ac_var'}
  15517. $as_echo "$as_val"'`
  15518. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15519. $as_echo "$ac_res" >&6; }
  15520. as_val=`eval 'as_val=${'$as_ac_var'}
  15521. $as_echo "$as_val"'`
  15522. if test "x$as_val" = x""yes; then
  15523. cat >>confdefs.h <<_ACEOF
  15524. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15525. _ACEOF
  15526. fi
  15527. done
  15528. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile"
  15529. cat >confcache <<\_ACEOF
  15530. # This file is a shell script that caches the results of configure
  15531. # tests run on this system so they can be shared between configure
  15532. # scripts and configure runs, see configure's option --config-cache.
  15533. # It is not useful on other systems. If it contains results you don't
  15534. # want to keep, you may remove or edit it.
  15535. #
  15536. # config.status only pays attention to the cache file if you give it
  15537. # the --recheck option to rerun configure.
  15538. #
  15539. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15540. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15541. # following values.
  15542. _ACEOF
  15543. # The following way of writing the cache mishandles newlines in values,
  15544. # but we know of no workaround that is simple, portable, and efficient.
  15545. # So, we kill variables containing newlines.
  15546. # Ultrix sh set writes to stderr and can't be redirected directly,
  15547. # and sets the high bit in the cache file unless we assign to the vars.
  15548. (
  15549. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15550. eval ac_val=\$$ac_var
  15551. case $ac_val in #(
  15552. *${as_nl}*)
  15553. case $ac_var in #(
  15554. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  15555. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15556. esac
  15557. case $ac_var in #(
  15558. _ | IFS | as_nl) ;; #(
  15559. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15560. *) $as_unset $ac_var ;;
  15561. esac ;;
  15562. esac
  15563. done
  15564. (set) 2>&1 |
  15565. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15566. *${as_nl}ac_space=\ *)
  15567. # `set' does not quote correctly, so add quotes (double-quote
  15568. # substitution turns \\\\ into \\, and sed turns \\ into \).
  15569. sed -n \
  15570. "s/'/'\\\\''/g;
  15571. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15572. ;; #(
  15573. *)
  15574. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15575. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15576. ;;
  15577. esac |
  15578. sort
  15579. ) |
  15580. sed '
  15581. /^ac_cv_env_/b end
  15582. t clear
  15583. :clear
  15584. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15585. t end
  15586. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15587. :end' >>confcache
  15588. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15589. if test -w "$cache_file"; then
  15590. test "x$cache_file" != "x/dev/null" &&
  15591. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  15592. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15593. cat confcache >$cache_file
  15594. else
  15595. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  15596. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15597. fi
  15598. fi
  15599. rm -f confcache
  15600. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15601. # Let make expand exec_prefix.
  15602. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15603. # Transform confdefs.h into DEFS.
  15604. # Protect against shell expansion while executing Makefile rules.
  15605. # Protect against Makefile macro expansion.
  15606. #
  15607. # If the first sed substitution is executed (which looks for macros that
  15608. # take arguments), then branch to the quote section. Otherwise,
  15609. # look for a macro that doesn't take arguments.
  15610. ac_script='
  15611. :mline
  15612. /\\$/{
  15613. N
  15614. s,\\\n,,
  15615. b mline
  15616. }
  15617. t clear
  15618. :clear
  15619. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  15620. t quote
  15621. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  15622. t quote
  15623. b any
  15624. :quote
  15625. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  15626. s/\[/\\&/g
  15627. s/\]/\\&/g
  15628. s/\$/$$/g
  15629. H
  15630. :any
  15631. ${
  15632. g
  15633. s/^\n//
  15634. s/\n/ /g
  15635. p
  15636. }
  15637. '
  15638. DEFS=`sed -n "$ac_script" confdefs.h`
  15639. ac_libobjs=
  15640. ac_ltlibobjs=
  15641. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15642. # 1. Remove the extension, and $U if already installed.
  15643. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15644. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15645. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15646. # will be set to the directory where LIBOBJS objects are built.
  15647. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15648. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  15649. done
  15650. LIBOBJS=$ac_libobjs
  15651. LTLIBOBJS=$ac_ltlibobjs
  15652. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15653. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  15654. Usually this means the macro was only invoked conditionally." >&5
  15655. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  15656. Usually this means the macro was only invoked conditionally." >&2;}
  15657. { (exit 1); exit 1; }; }
  15658. fi
  15659. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15660. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  15661. Usually this means the macro was only invoked conditionally." >&5
  15662. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  15663. Usually this means the macro was only invoked conditionally." >&2;}
  15664. { (exit 1); exit 1; }; }
  15665. fi
  15666. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15667. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  15668. Usually this means the macro was only invoked conditionally." >&5
  15669. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  15670. Usually this means the macro was only invoked conditionally." >&2;}
  15671. { (exit 1); exit 1; }; }
  15672. fi
  15673. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15674. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  15675. Usually this means the macro was only invoked conditionally." >&5
  15676. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  15677. Usually this means the macro was only invoked conditionally." >&2;}
  15678. { (exit 1); exit 1; }; }
  15679. fi
  15680. : ${CONFIG_STATUS=./config.status}
  15681. ac_write_fail=0
  15682. ac_clean_files_save=$ac_clean_files
  15683. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15684. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  15685. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15686. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15687. #! $SHELL
  15688. # Generated by $as_me.
  15689. # Run this file to recreate the current configuration.
  15690. # Compiler output produced by configure, useful for debugging
  15691. # configure, is in config.log if it exists.
  15692. debug=false
  15693. ac_cs_recheck=false
  15694. ac_cs_silent=false
  15695. SHELL=\${CONFIG_SHELL-$SHELL}
  15696. _ACEOF
  15697. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15698. ## --------------------- ##
  15699. ## M4sh Initialization. ##
  15700. ## --------------------- ##
  15701. # Be more Bourne compatible
  15702. DUALCASE=1; export DUALCASE # for MKS sh
  15703. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15704. emulate sh
  15705. NULLCMD=:
  15706. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15707. # is contrary to our usage. Disable this feature.
  15708. alias -g '${1+"$@"}'='"$@"'
  15709. setopt NO_GLOB_SUBST
  15710. else
  15711. case `(set -o) 2>/dev/null` in
  15712. *posix*) set -o posix ;;
  15713. esac
  15714. fi
  15715. # PATH needs CR
  15716. # Avoid depending upon Character Ranges.
  15717. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15718. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15719. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15720. as_cr_digits='0123456789'
  15721. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15722. as_nl='
  15723. '
  15724. export as_nl
  15725. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15726. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15727. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15728. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15729. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15730. as_echo='printf %s\n'
  15731. as_echo_n='printf %s'
  15732. else
  15733. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15734. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15735. as_echo_n='/usr/ucb/echo -n'
  15736. else
  15737. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15738. as_echo_n_body='eval
  15739. arg=$1;
  15740. case $arg in
  15741. *"$as_nl"*)
  15742. expr "X$arg" : "X\\(.*\\)$as_nl";
  15743. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15744. esac;
  15745. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15746. '
  15747. export as_echo_n_body
  15748. as_echo_n='sh -c $as_echo_n_body as_echo'
  15749. fi
  15750. export as_echo_body
  15751. as_echo='sh -c $as_echo_body as_echo'
  15752. fi
  15753. # The user is always right.
  15754. if test "${PATH_SEPARATOR+set}" != set; then
  15755. PATH_SEPARATOR=:
  15756. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15757. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15758. PATH_SEPARATOR=';'
  15759. }
  15760. fi
  15761. # Support unset when possible.
  15762. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  15763. as_unset=unset
  15764. else
  15765. as_unset=false
  15766. fi
  15767. # IFS
  15768. # We need space, tab and new line, in precisely that order. Quoting is
  15769. # there to prevent editors from complaining about space-tab.
  15770. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15771. # splitting by setting IFS to empty value.)
  15772. IFS=" "" $as_nl"
  15773. # Find who we are. Look in the path if we contain no directory separator.
  15774. case $0 in
  15775. *[\\/]* ) as_myself=$0 ;;
  15776. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15777. for as_dir in $PATH
  15778. do
  15779. IFS=$as_save_IFS
  15780. test -z "$as_dir" && as_dir=.
  15781. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15782. done
  15783. IFS=$as_save_IFS
  15784. ;;
  15785. esac
  15786. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15787. # in which case we are not to be found in the path.
  15788. if test "x$as_myself" = x; then
  15789. as_myself=$0
  15790. fi
  15791. if test ! -f "$as_myself"; then
  15792. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15793. { (exit 1); exit 1; }
  15794. fi
  15795. # Work around bugs in pre-3.0 UWIN ksh.
  15796. for as_var in ENV MAIL MAILPATH
  15797. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  15798. done
  15799. PS1='$ '
  15800. PS2='> '
  15801. PS4='+ '
  15802. # NLS nuisances.
  15803. LC_ALL=C
  15804. export LC_ALL
  15805. LANGUAGE=C
  15806. export LANGUAGE
  15807. # Required to use basename.
  15808. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15809. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15810. as_expr=expr
  15811. else
  15812. as_expr=false
  15813. fi
  15814. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15815. as_basename=basename
  15816. else
  15817. as_basename=false
  15818. fi
  15819. # Name of the executable.
  15820. as_me=`$as_basename -- "$0" ||
  15821. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15822. X"$0" : 'X\(//\)$' \| \
  15823. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15824. $as_echo X/"$0" |
  15825. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15826. s//\1/
  15827. q
  15828. }
  15829. /^X\/\(\/\/\)$/{
  15830. s//\1/
  15831. q
  15832. }
  15833. /^X\/\(\/\).*/{
  15834. s//\1/
  15835. q
  15836. }
  15837. s/.*/./; q'`
  15838. # CDPATH.
  15839. $as_unset CDPATH
  15840. as_lineno_1=$LINENO
  15841. as_lineno_2=$LINENO
  15842. test "x$as_lineno_1" != "x$as_lineno_2" &&
  15843. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  15844. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  15845. # uniformly replaced by the line number. The first 'sed' inserts a
  15846. # line-number line after each line using $LINENO; the second 'sed'
  15847. # does the real work. The second script uses 'N' to pair each
  15848. # line-number line with the line containing $LINENO, and appends
  15849. # trailing '-' during substitution so that $LINENO is not a special
  15850. # case at line end.
  15851. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  15852. # scripts with optimization help from Paolo Bonzini. Blame Lee
  15853. # E. McMahon (1931-1989) for sed's syntax. :-)
  15854. sed -n '
  15855. p
  15856. /[$]LINENO/=
  15857. ' <$as_myself |
  15858. sed '
  15859. s/[$]LINENO.*/&-/
  15860. t lineno
  15861. b
  15862. :lineno
  15863. N
  15864. :loop
  15865. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  15866. t loop
  15867. s/-\n.*//
  15868. ' >$as_me.lineno &&
  15869. chmod +x "$as_me.lineno" ||
  15870. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  15871. { (exit 1); exit 1; }; }
  15872. # Don't try to exec as it changes $[0], causing all sort of problems
  15873. # (the dirname of $[0] is not the place where we might find the
  15874. # original and so on. Autoconf is especially sensitive to this).
  15875. . "./$as_me.lineno"
  15876. # Exit status is that of the last command.
  15877. exit
  15878. }
  15879. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15880. as_dirname=dirname
  15881. else
  15882. as_dirname=false
  15883. fi
  15884. ECHO_C= ECHO_N= ECHO_T=
  15885. case `echo -n x` in
  15886. -n*)
  15887. case `echo 'x\c'` in
  15888. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15889. *) ECHO_C='\c';;
  15890. esac;;
  15891. *)
  15892. ECHO_N='-n';;
  15893. esac
  15894. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15895. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15896. as_expr=expr
  15897. else
  15898. as_expr=false
  15899. fi
  15900. rm -f conf$$ conf$$.exe conf$$.file
  15901. if test -d conf$$.dir; then
  15902. rm -f conf$$.dir/conf$$.file
  15903. else
  15904. rm -f conf$$.dir
  15905. mkdir conf$$.dir 2>/dev/null
  15906. fi
  15907. if (echo >conf$$.file) 2>/dev/null; then
  15908. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15909. as_ln_s='ln -s'
  15910. # ... but there are two gotchas:
  15911. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15912. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15913. # In both cases, we have to default to `cp -p'.
  15914. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15915. as_ln_s='cp -p'
  15916. elif ln conf$$.file conf$$ 2>/dev/null; then
  15917. as_ln_s=ln
  15918. else
  15919. as_ln_s='cp -p'
  15920. fi
  15921. else
  15922. as_ln_s='cp -p'
  15923. fi
  15924. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15925. rmdir conf$$.dir 2>/dev/null
  15926. if mkdir -p . 2>/dev/null; then
  15927. as_mkdir_p=:
  15928. else
  15929. test -d ./-p && rmdir ./-p
  15930. as_mkdir_p=false
  15931. fi
  15932. if test -x / >/dev/null 2>&1; then
  15933. as_test_x='test -x'
  15934. else
  15935. if ls -dL / >/dev/null 2>&1; then
  15936. as_ls_L_option=L
  15937. else
  15938. as_ls_L_option=
  15939. fi
  15940. as_test_x='
  15941. eval sh -c '\''
  15942. if test -d "$1"; then
  15943. test -d "$1/.";
  15944. else
  15945. case $1 in
  15946. -*)set "./$1";;
  15947. esac;
  15948. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  15949. ???[sx]*):;;*)false;;esac;fi
  15950. '\'' sh
  15951. '
  15952. fi
  15953. as_executable_p=$as_test_x
  15954. # Sed expression to map a string onto a valid CPP name.
  15955. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15956. # Sed expression to map a string onto a valid variable name.
  15957. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15958. exec 6>&1
  15959. # Save the log message, to keep $[0] and so on meaningful, and to
  15960. # report actual input values of CONFIG_FILES etc. instead of their
  15961. # values after options handling.
  15962. ac_log="
  15963. This file was extended by vcmi $as_me VERSION, which was
  15964. generated by GNU Autoconf 2.63. Invocation command line was
  15965. CONFIG_FILES = $CONFIG_FILES
  15966. CONFIG_HEADERS = $CONFIG_HEADERS
  15967. CONFIG_LINKS = $CONFIG_LINKS
  15968. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15969. $ $0 $@
  15970. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15971. "
  15972. _ACEOF
  15973. case $ac_config_files in *"
  15974. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15975. esac
  15976. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15977. # Files that config.status was made for.
  15978. config_files="$ac_config_files"
  15979. config_commands="$ac_config_commands"
  15980. _ACEOF
  15981. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15982. ac_cs_usage="\
  15983. \`$as_me' instantiates files from templates according to the
  15984. current configuration.
  15985. Usage: $0 [OPTION]... [FILE]...
  15986. -h, --help print this help, then exit
  15987. -V, --version print version number and configuration settings, then exit
  15988. -q, --quiet, --silent
  15989. do not print progress messages
  15990. -d, --debug don't remove temporary files
  15991. --recheck update $as_me by reconfiguring in the same conditions
  15992. --file=FILE[:TEMPLATE]
  15993. instantiate the configuration file FILE
  15994. Configuration files:
  15995. $config_files
  15996. Configuration commands:
  15997. $config_commands
  15998. Report bugs to <[email protected]>."
  15999. _ACEOF
  16000. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16001. ac_cs_version="\\
  16002. vcmi config.status VERSION
  16003. configured by $0, generated by GNU Autoconf 2.63,
  16004. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  16005. Copyright (C) 2008 Free Software Foundation, Inc.
  16006. This config.status script is free software; the Free Software Foundation
  16007. gives unlimited permission to copy, distribute and modify it."
  16008. ac_pwd='$ac_pwd'
  16009. srcdir='$srcdir'
  16010. INSTALL='$INSTALL'
  16011. MKDIR_P='$MKDIR_P'
  16012. AWK='$AWK'
  16013. test -n "\$AWK" || AWK=awk
  16014. _ACEOF
  16015. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16016. # The default lists apply if the user does not specify any file.
  16017. ac_need_defaults=:
  16018. while test $# != 0
  16019. do
  16020. case $1 in
  16021. --*=*)
  16022. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16023. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16024. ac_shift=:
  16025. ;;
  16026. *)
  16027. ac_option=$1
  16028. ac_optarg=$2
  16029. ac_shift=shift
  16030. ;;
  16031. esac
  16032. case $ac_option in
  16033. # Handling of the options.
  16034. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16035. ac_cs_recheck=: ;;
  16036. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16037. $as_echo "$ac_cs_version"; exit ;;
  16038. --debug | --debu | --deb | --de | --d | -d )
  16039. debug=: ;;
  16040. --file | --fil | --fi | --f )
  16041. $ac_shift
  16042. case $ac_optarg in
  16043. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16044. esac
  16045. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  16046. ac_need_defaults=false;;
  16047. --he | --h | --help | --hel | -h )
  16048. $as_echo "$ac_cs_usage"; exit ;;
  16049. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16050. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16051. ac_cs_silent=: ;;
  16052. # This is an error.
  16053. -*) { $as_echo "$as_me: error: unrecognized option: $1
  16054. Try \`$0 --help' for more information." >&2
  16055. { (exit 1); exit 1; }; } ;;
  16056. *) ac_config_targets="$ac_config_targets $1"
  16057. ac_need_defaults=false ;;
  16058. esac
  16059. shift
  16060. done
  16061. ac_configure_extra_args=
  16062. if $ac_cs_silent; then
  16063. exec 6>/dev/null
  16064. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16065. fi
  16066. _ACEOF
  16067. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16068. if \$ac_cs_recheck; then
  16069. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16070. shift
  16071. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16072. CONFIG_SHELL='$SHELL'
  16073. export CONFIG_SHELL
  16074. exec "\$@"
  16075. fi
  16076. _ACEOF
  16077. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16078. exec 5>>config.log
  16079. {
  16080. echo
  16081. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16082. ## Running $as_me. ##
  16083. _ASBOX
  16084. $as_echo "$ac_log"
  16085. } >&5
  16086. _ACEOF
  16087. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16088. #
  16089. # INIT-COMMANDS
  16090. #
  16091. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16092. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16093. # if CDPATH is set.
  16094. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16095. sed_quote_subst='$sed_quote_subst'
  16096. double_quote_subst='$double_quote_subst'
  16097. delay_variable_subst='$delay_variable_subst'
  16098. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  16099. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  16100. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  16101. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  16102. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  16103. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  16104. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  16105. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  16106. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  16107. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  16108. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  16109. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  16110. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  16111. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  16112. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  16113. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  16114. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  16115. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  16116. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  16117. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  16118. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  16119. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  16120. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  16121. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  16122. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  16123. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  16124. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16125. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16126. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  16127. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  16128. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  16129. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  16130. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  16131. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  16132. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  16133. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16134. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16135. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16136. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  16137. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  16138. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  16139. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  16140. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  16141. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  16142. 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"`'
  16143. 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"`'
  16144. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  16145. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  16146. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  16147. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  16148. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16149. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  16150. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  16151. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  16152. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  16153. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  16154. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  16155. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  16156. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  16157. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  16158. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  16159. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  16160. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16161. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16162. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  16163. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  16164. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16165. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16166. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  16167. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16168. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16169. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16170. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16171. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16172. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16173. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  16174. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16175. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16176. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16177. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  16178. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  16179. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  16180. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  16181. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  16182. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16183. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  16184. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  16185. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  16186. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  16187. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  16188. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16189. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  16190. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  16191. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16192. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16193. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  16194. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  16195. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  16196. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  16197. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16198. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16199. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  16200. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16201. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16202. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16203. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16204. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16205. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16206. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  16207. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  16208. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16209. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16210. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  16211. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  16212. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  16213. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  16214. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  16215. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  16216. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  16217. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  16218. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  16219. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  16220. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  16221. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  16222. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16223. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16224. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16225. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16226. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16227. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16228. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16229. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16230. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16231. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16232. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16233. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16234. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16235. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16236. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16237. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16238. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16239. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16240. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16241. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16242. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16243. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16244. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16245. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16246. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16247. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16248. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16249. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16250. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16251. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16252. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16253. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16254. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16255. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16256. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16257. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16258. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16259. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16260. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16261. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16262. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16263. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16264. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16265. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16266. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16267. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16268. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  16269. LTCC='$LTCC'
  16270. LTCFLAGS='$LTCFLAGS'
  16271. compiler='$compiler_DEFAULT'
  16272. # Quote evaled strings.
  16273. for var in SED \
  16274. GREP \
  16275. EGREP \
  16276. FGREP \
  16277. LD \
  16278. NM \
  16279. LN_S \
  16280. lt_SP2NL \
  16281. lt_NL2SP \
  16282. reload_flag \
  16283. OBJDUMP \
  16284. deplibs_check_method \
  16285. file_magic_cmd \
  16286. AR \
  16287. AR_FLAGS \
  16288. STRIP \
  16289. RANLIB \
  16290. CC \
  16291. CFLAGS \
  16292. compiler \
  16293. lt_cv_sys_global_symbol_pipe \
  16294. lt_cv_sys_global_symbol_to_cdecl \
  16295. lt_cv_sys_global_symbol_to_c_name_address \
  16296. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16297. SHELL \
  16298. ECHO \
  16299. lt_prog_compiler_no_builtin_flag \
  16300. lt_prog_compiler_wl \
  16301. lt_prog_compiler_pic \
  16302. lt_prog_compiler_static \
  16303. lt_cv_prog_compiler_c_o \
  16304. need_locks \
  16305. DSYMUTIL \
  16306. NMEDIT \
  16307. LIPO \
  16308. OTOOL \
  16309. OTOOL64 \
  16310. shrext_cmds \
  16311. export_dynamic_flag_spec \
  16312. whole_archive_flag_spec \
  16313. compiler_needs_object \
  16314. with_gnu_ld \
  16315. allow_undefined_flag \
  16316. no_undefined_flag \
  16317. hardcode_libdir_flag_spec \
  16318. hardcode_libdir_flag_spec_ld \
  16319. hardcode_libdir_separator \
  16320. fix_srcfile_path \
  16321. exclude_expsyms \
  16322. include_expsyms \
  16323. file_list_spec \
  16324. variables_saved_for_relink \
  16325. libname_spec \
  16326. library_names_spec \
  16327. soname_spec \
  16328. finish_eval \
  16329. old_striplib \
  16330. striplib \
  16331. compiler_lib_search_dirs \
  16332. predep_objects \
  16333. postdep_objects \
  16334. predeps \
  16335. postdeps \
  16336. compiler_lib_search_path \
  16337. LD_CXX \
  16338. compiler_CXX \
  16339. lt_prog_compiler_no_builtin_flag_CXX \
  16340. lt_prog_compiler_wl_CXX \
  16341. lt_prog_compiler_pic_CXX \
  16342. lt_prog_compiler_static_CXX \
  16343. lt_cv_prog_compiler_c_o_CXX \
  16344. export_dynamic_flag_spec_CXX \
  16345. whole_archive_flag_spec_CXX \
  16346. compiler_needs_object_CXX \
  16347. with_gnu_ld_CXX \
  16348. allow_undefined_flag_CXX \
  16349. no_undefined_flag_CXX \
  16350. hardcode_libdir_flag_spec_CXX \
  16351. hardcode_libdir_flag_spec_ld_CXX \
  16352. hardcode_libdir_separator_CXX \
  16353. fix_srcfile_path_CXX \
  16354. exclude_expsyms_CXX \
  16355. include_expsyms_CXX \
  16356. file_list_spec_CXX \
  16357. compiler_lib_search_dirs_CXX \
  16358. predep_objects_CXX \
  16359. postdep_objects_CXX \
  16360. predeps_CXX \
  16361. postdeps_CXX \
  16362. compiler_lib_search_path_CXX; do
  16363. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  16364. *[\\\\\\\`\\"\\\$]*)
  16365. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16366. ;;
  16367. *)
  16368. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16369. ;;
  16370. esac
  16371. done
  16372. # Double-quote double-evaled strings.
  16373. for var in reload_cmds \
  16374. old_postinstall_cmds \
  16375. old_postuninstall_cmds \
  16376. old_archive_cmds \
  16377. extract_expsyms_cmds \
  16378. old_archive_from_new_cmds \
  16379. old_archive_from_expsyms_cmds \
  16380. archive_cmds \
  16381. archive_expsym_cmds \
  16382. module_cmds \
  16383. module_expsym_cmds \
  16384. export_symbols_cmds \
  16385. prelink_cmds \
  16386. postinstall_cmds \
  16387. postuninstall_cmds \
  16388. finish_cmds \
  16389. sys_lib_search_path_spec \
  16390. sys_lib_dlsearch_path_spec \
  16391. old_archive_cmds_CXX \
  16392. old_archive_from_new_cmds_CXX \
  16393. old_archive_from_expsyms_cmds_CXX \
  16394. archive_cmds_CXX \
  16395. archive_expsym_cmds_CXX \
  16396. module_cmds_CXX \
  16397. module_expsym_cmds_CXX \
  16398. export_symbols_cmds_CXX \
  16399. prelink_cmds_CXX; do
  16400. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  16401. *[\\\\\\\`\\"\\\$]*)
  16402. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16403. ;;
  16404. *)
  16405. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16406. ;;
  16407. esac
  16408. done
  16409. # Fix-up fallback echo if it was mangled by the above quoting rules.
  16410. case \$lt_ECHO in
  16411. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  16412. ;;
  16413. esac
  16414. ac_aux_dir='$ac_aux_dir'
  16415. xsi_shell='$xsi_shell'
  16416. lt_shell_append='$lt_shell_append'
  16417. # See if we are running on zsh, and set the options which allow our
  16418. # commands through without removal of \ escapes INIT.
  16419. if test -n "\${ZSH_VERSION+set}" ; then
  16420. setopt NO_GLOB_SUBST
  16421. fi
  16422. PACKAGE='$PACKAGE'
  16423. VERSION='$VERSION'
  16424. TIMESTAMP='$TIMESTAMP'
  16425. RM='$RM'
  16426. ofile='$ofile'
  16427. _ACEOF
  16428. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16429. # Handling of arguments.
  16430. for ac_config_target in $ac_config_targets
  16431. do
  16432. case $ac_config_target in
  16433. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16434. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16435. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16436. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  16437. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  16438. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  16439. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  16440. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  16441. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  16442. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  16443. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  16444. { (exit 1); exit 1; }; };;
  16445. esac
  16446. done
  16447. # If the user did not use the arguments to specify the items to instantiate,
  16448. # then the envvar interface is used. Set only those that are not.
  16449. # We use the long form for the default assignment because of an extremely
  16450. # bizarre bug on SunOS 4.1.3.
  16451. if $ac_need_defaults; then
  16452. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16453. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16454. fi
  16455. # Have a temporary directory for convenience. Make it in the build tree
  16456. # simply because there is no reason against having it here, and in addition,
  16457. # creating and moving files from /tmp can sometimes cause problems.
  16458. # Hook for its removal unless debugging.
  16459. # Note that there is a small window in which the directory will not be cleaned:
  16460. # after its creation but before its name has been assigned to `$tmp'.
  16461. $debug ||
  16462. {
  16463. tmp=
  16464. trap 'exit_status=$?
  16465. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  16466. ' 0
  16467. trap '{ (exit 1); exit 1; }' 1 2 13 15
  16468. }
  16469. # Create a (secure) tmp directory for tmp files.
  16470. {
  16471. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16472. test -n "$tmp" && test -d "$tmp"
  16473. } ||
  16474. {
  16475. tmp=./conf$$-$RANDOM
  16476. (umask 077 && mkdir "$tmp")
  16477. } ||
  16478. {
  16479. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  16480. { (exit 1); exit 1; }
  16481. }
  16482. # Set up the scripts for CONFIG_FILES section.
  16483. # No need to generate them if there are no CONFIG_FILES.
  16484. # This happens for instance with `./config.status config.h'.
  16485. if test -n "$CONFIG_FILES"; then
  16486. ac_cr=' '
  16487. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16488. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16489. ac_cs_awk_cr='\\r'
  16490. else
  16491. ac_cs_awk_cr=$ac_cr
  16492. fi
  16493. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  16494. _ACEOF
  16495. {
  16496. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16497. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16498. echo "_ACEOF"
  16499. } >conf$$subs.sh ||
  16500. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  16501. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  16502. { (exit 1); exit 1; }; }
  16503. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  16504. ac_delim='%!_!# '
  16505. for ac_last_try in false false false false false :; do
  16506. . ./conf$$subs.sh ||
  16507. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  16508. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  16509. { (exit 1); exit 1; }; }
  16510. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16511. if test $ac_delim_n = $ac_delim_num; then
  16512. break
  16513. elif $ac_last_try; then
  16514. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  16515. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  16516. { (exit 1); exit 1; }; }
  16517. else
  16518. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16519. fi
  16520. done
  16521. rm -f conf$$subs.sh
  16522. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16523. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  16524. _ACEOF
  16525. sed -n '
  16526. h
  16527. s/^/S["/; s/!.*/"]=/
  16528. p
  16529. g
  16530. s/^[^!]*!//
  16531. :repl
  16532. t repl
  16533. s/'"$ac_delim"'$//
  16534. t delim
  16535. :nl
  16536. h
  16537. s/\(.\{148\}\).*/\1/
  16538. t more1
  16539. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16540. p
  16541. n
  16542. b repl
  16543. :more1
  16544. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16545. p
  16546. g
  16547. s/.\{148\}//
  16548. t nl
  16549. :delim
  16550. h
  16551. s/\(.\{148\}\).*/\1/
  16552. t more2
  16553. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16554. p
  16555. b
  16556. :more2
  16557. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16558. p
  16559. g
  16560. s/.\{148\}//
  16561. t delim
  16562. ' <conf$$subs.awk | sed '
  16563. /^[^""]/{
  16564. N
  16565. s/\n//
  16566. }
  16567. ' >>$CONFIG_STATUS || ac_write_fail=1
  16568. rm -f conf$$subs.awk
  16569. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16570. _ACAWK
  16571. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  16572. for (key in S) S_is_set[key] = 1
  16573. FS = ""
  16574. }
  16575. {
  16576. line = $ 0
  16577. nfields = split(line, field, "@")
  16578. substed = 0
  16579. len = length(field[1])
  16580. for (i = 2; i < nfields; i++) {
  16581. key = field[i]
  16582. keylen = length(key)
  16583. if (S_is_set[key]) {
  16584. value = S[key]
  16585. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16586. len += length(value) + length(field[++i])
  16587. substed = 1
  16588. } else
  16589. len += 1 + keylen
  16590. }
  16591. print line
  16592. }
  16593. _ACAWK
  16594. _ACEOF
  16595. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16596. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16597. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16598. else
  16599. cat
  16600. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  16601. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  16602. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  16603. { (exit 1); exit 1; }; }
  16604. _ACEOF
  16605. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  16606. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  16607. # trailing colons and then remove the whole line if VPATH becomes empty
  16608. # (actually we leave an empty line to preserve line numbers).
  16609. if test "x$srcdir" = x.; then
  16610. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  16611. s/:*\$(srcdir):*/:/
  16612. s/:*\${srcdir}:*/:/
  16613. s/:*@srcdir@:*/:/
  16614. s/^\([^=]*=[ ]*\):*/\1/
  16615. s/:*$//
  16616. s/^[^=]*=[ ]*$//
  16617. }'
  16618. fi
  16619. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16620. fi # test -n "$CONFIG_FILES"
  16621. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  16622. shift
  16623. for ac_tag
  16624. do
  16625. case $ac_tag in
  16626. :[FHLC]) ac_mode=$ac_tag; continue;;
  16627. esac
  16628. case $ac_mode$ac_tag in
  16629. :[FHL]*:*);;
  16630. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  16631. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  16632. { (exit 1); exit 1; }; };;
  16633. :[FH]-) ac_tag=-:-;;
  16634. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16635. esac
  16636. ac_save_IFS=$IFS
  16637. IFS=:
  16638. set x $ac_tag
  16639. IFS=$ac_save_IFS
  16640. shift
  16641. ac_file=$1
  16642. shift
  16643. case $ac_mode in
  16644. :L) ac_source=$1;;
  16645. :[FH])
  16646. ac_file_inputs=
  16647. for ac_f
  16648. do
  16649. case $ac_f in
  16650. -) ac_f="$tmp/stdin";;
  16651. *) # Look for the file first in the build tree, then in the source tree
  16652. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16653. # because $ac_f cannot contain `:'.
  16654. test -f "$ac_f" ||
  16655. case $ac_f in
  16656. [\\/$]*) false;;
  16657. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16658. esac ||
  16659. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  16660. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  16661. { (exit 1); exit 1; }; };;
  16662. esac
  16663. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16664. ac_file_inputs="$ac_file_inputs '$ac_f'"
  16665. done
  16666. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16667. # use $as_me), people would be surprised to read:
  16668. # /* config.h. Generated by config.status. */
  16669. configure_input='Generated from '`
  16670. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16671. `' by configure.'
  16672. if test x"$ac_file" != x-; then
  16673. configure_input="$ac_file. $configure_input"
  16674. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  16675. $as_echo "$as_me: creating $ac_file" >&6;}
  16676. fi
  16677. # Neutralize special characters interpreted by sed in replacement strings.
  16678. case $configure_input in #(
  16679. *\&* | *\|* | *\\* )
  16680. ac_sed_conf_input=`$as_echo "$configure_input" |
  16681. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16682. *) ac_sed_conf_input=$configure_input;;
  16683. esac
  16684. case $ac_tag in
  16685. *:-:* | *:-) cat >"$tmp/stdin" \
  16686. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  16687. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  16688. { (exit 1); exit 1; }; } ;;
  16689. esac
  16690. ;;
  16691. esac
  16692. ac_dir=`$as_dirname -- "$ac_file" ||
  16693. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16694. X"$ac_file" : 'X\(//\)[^/]' \| \
  16695. X"$ac_file" : 'X\(//\)$' \| \
  16696. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16697. $as_echo X"$ac_file" |
  16698. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16699. s//\1/
  16700. q
  16701. }
  16702. /^X\(\/\/\)[^/].*/{
  16703. s//\1/
  16704. q
  16705. }
  16706. /^X\(\/\/\)$/{
  16707. s//\1/
  16708. q
  16709. }
  16710. /^X\(\/\).*/{
  16711. s//\1/
  16712. q
  16713. }
  16714. s/.*/./; q'`
  16715. { as_dir="$ac_dir"
  16716. case $as_dir in #(
  16717. -*) as_dir=./$as_dir;;
  16718. esac
  16719. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  16720. as_dirs=
  16721. while :; do
  16722. case $as_dir in #(
  16723. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16724. *) as_qdir=$as_dir;;
  16725. esac
  16726. as_dirs="'$as_qdir' $as_dirs"
  16727. as_dir=`$as_dirname -- "$as_dir" ||
  16728. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16729. X"$as_dir" : 'X\(//\)[^/]' \| \
  16730. X"$as_dir" : 'X\(//\)$' \| \
  16731. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16732. $as_echo X"$as_dir" |
  16733. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16734. s//\1/
  16735. q
  16736. }
  16737. /^X\(\/\/\)[^/].*/{
  16738. s//\1/
  16739. q
  16740. }
  16741. /^X\(\/\/\)$/{
  16742. s//\1/
  16743. q
  16744. }
  16745. /^X\(\/\).*/{
  16746. s//\1/
  16747. q
  16748. }
  16749. s/.*/./; q'`
  16750. test -d "$as_dir" && break
  16751. done
  16752. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16753. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  16754. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  16755. { (exit 1); exit 1; }; }; }
  16756. ac_builddir=.
  16757. case "$ac_dir" in
  16758. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16759. *)
  16760. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16761. # A ".." for each directory in $ac_dir_suffix.
  16762. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16763. case $ac_top_builddir_sub in
  16764. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16765. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16766. esac ;;
  16767. esac
  16768. ac_abs_top_builddir=$ac_pwd
  16769. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16770. # for backward compatibility:
  16771. ac_top_builddir=$ac_top_build_prefix
  16772. case $srcdir in
  16773. .) # We are building in place.
  16774. ac_srcdir=.
  16775. ac_top_srcdir=$ac_top_builddir_sub
  16776. ac_abs_top_srcdir=$ac_pwd ;;
  16777. [\\/]* | ?:[\\/]* ) # Absolute name.
  16778. ac_srcdir=$srcdir$ac_dir_suffix;
  16779. ac_top_srcdir=$srcdir
  16780. ac_abs_top_srcdir=$srcdir ;;
  16781. *) # Relative name.
  16782. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16783. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16784. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16785. esac
  16786. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16787. case $ac_mode in
  16788. :F)
  16789. #
  16790. # CONFIG_FILE
  16791. #
  16792. case $INSTALL in
  16793. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16794. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16795. esac
  16796. ac_MKDIR_P=$MKDIR_P
  16797. case $MKDIR_P in
  16798. [\\/$]* | ?:[\\/]* ) ;;
  16799. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16800. esac
  16801. _ACEOF
  16802. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16803. # If the template does not know about datarootdir, expand it.
  16804. # FIXME: This hack should be removed a few years after 2.60.
  16805. ac_datarootdir_hack=; ac_datarootdir_seen=
  16806. ac_sed_dataroot='
  16807. /datarootdir/ {
  16808. p
  16809. q
  16810. }
  16811. /@datadir@/p
  16812. /@docdir@/p
  16813. /@infodir@/p
  16814. /@localedir@/p
  16815. /@mandir@/p
  16816. '
  16817. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16818. *datarootdir*) ac_datarootdir_seen=yes;;
  16819. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16820. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16821. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16822. _ACEOF
  16823. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16824. ac_datarootdir_hack='
  16825. s&@datadir@&$datadir&g
  16826. s&@docdir@&$docdir&g
  16827. s&@infodir@&$infodir&g
  16828. s&@localedir@&$localedir&g
  16829. s&@mandir@&$mandir&g
  16830. s&\\\${datarootdir}&$datarootdir&g' ;;
  16831. esac
  16832. _ACEOF
  16833. # Neutralize VPATH when `$srcdir' = `.'.
  16834. # Shell code in configure.ac might set extrasub.
  16835. # FIXME: do we really want to maintain this feature?
  16836. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16837. ac_sed_extra="$ac_vpsub
  16838. $extrasub
  16839. _ACEOF
  16840. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16841. :t
  16842. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16843. s|@configure_input@|$ac_sed_conf_input|;t t
  16844. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16845. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16846. s&@srcdir@&$ac_srcdir&;t t
  16847. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16848. s&@top_srcdir@&$ac_top_srcdir&;t t
  16849. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16850. s&@builddir@&$ac_builddir&;t t
  16851. s&@abs_builddir@&$ac_abs_builddir&;t t
  16852. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16853. s&@INSTALL@&$ac_INSTALL&;t t
  16854. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16855. $ac_datarootdir_hack
  16856. "
  16857. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  16858. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  16859. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  16860. { (exit 1); exit 1; }; }
  16861. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16862. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  16863. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  16864. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16865. which seems to be undefined. Please make sure it is defined." >&5
  16866. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16867. which seems to be undefined. Please make sure it is defined." >&2;}
  16868. rm -f "$tmp/stdin"
  16869. case $ac_file in
  16870. -) cat "$tmp/out" && rm -f "$tmp/out";;
  16871. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  16872. esac \
  16873. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  16874. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  16875. { (exit 1); exit 1; }; }
  16876. ;;
  16877. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  16878. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16879. ;;
  16880. esac
  16881. case $ac_file$ac_mode in
  16882. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16883. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16884. # are listed without --file. Let's play safe and only enable the eval
  16885. # if we detect the quoting.
  16886. case $CONFIG_FILES in
  16887. *\'*) eval set x "$CONFIG_FILES" ;;
  16888. *) set x $CONFIG_FILES ;;
  16889. esac
  16890. shift
  16891. for mf
  16892. do
  16893. # Strip MF so we end up with the name of the file.
  16894. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16895. # Check whether this is an Automake generated Makefile or not.
  16896. # We used to match only the files named `Makefile.in', but
  16897. # some people rename them; so instead we look at the file content.
  16898. # Grep'ing the first line is not enough: some people post-process
  16899. # each Makefile.in and add a new line on top of each file to say so.
  16900. # Grep'ing the whole file is not good either: AIX grep has a line
  16901. # limit of 2048, but all sed's we know have understand at least 4000.
  16902. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16903. dirpart=`$as_dirname -- "$mf" ||
  16904. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16905. X"$mf" : 'X\(//\)[^/]' \| \
  16906. X"$mf" : 'X\(//\)$' \| \
  16907. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16908. $as_echo X"$mf" |
  16909. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16910. s//\1/
  16911. q
  16912. }
  16913. /^X\(\/\/\)[^/].*/{
  16914. s//\1/
  16915. q
  16916. }
  16917. /^X\(\/\/\)$/{
  16918. s//\1/
  16919. q
  16920. }
  16921. /^X\(\/\).*/{
  16922. s//\1/
  16923. q
  16924. }
  16925. s/.*/./; q'`
  16926. else
  16927. continue
  16928. fi
  16929. # Extract the definition of DEPDIR, am__include, and am__quote
  16930. # from the Makefile without running `make'.
  16931. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16932. test -z "$DEPDIR" && continue
  16933. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16934. test -z "am__include" && continue
  16935. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16936. # When using ansi2knr, U may be empty or an underscore; expand it
  16937. U=`sed -n 's/^U = //p' < "$mf"`
  16938. # Find all dependency output files, they are included files with
  16939. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16940. # simplest approach to changing $(DEPDIR) to its actual value in the
  16941. # expansion.
  16942. for file in `sed -n "
  16943. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16944. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16945. # Make sure the directory exists.
  16946. test -f "$dirpart/$file" && continue
  16947. fdir=`$as_dirname -- "$file" ||
  16948. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16949. X"$file" : 'X\(//\)[^/]' \| \
  16950. X"$file" : 'X\(//\)$' \| \
  16951. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16952. $as_echo X"$file" |
  16953. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16954. s//\1/
  16955. q
  16956. }
  16957. /^X\(\/\/\)[^/].*/{
  16958. s//\1/
  16959. q
  16960. }
  16961. /^X\(\/\/\)$/{
  16962. s//\1/
  16963. q
  16964. }
  16965. /^X\(\/\).*/{
  16966. s//\1/
  16967. q
  16968. }
  16969. s/.*/./; q'`
  16970. { as_dir=$dirpart/$fdir
  16971. case $as_dir in #(
  16972. -*) as_dir=./$as_dir;;
  16973. esac
  16974. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  16975. as_dirs=
  16976. while :; do
  16977. case $as_dir in #(
  16978. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16979. *) as_qdir=$as_dir;;
  16980. esac
  16981. as_dirs="'$as_qdir' $as_dirs"
  16982. as_dir=`$as_dirname -- "$as_dir" ||
  16983. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16984. X"$as_dir" : 'X\(//\)[^/]' \| \
  16985. X"$as_dir" : 'X\(//\)$' \| \
  16986. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16987. $as_echo X"$as_dir" |
  16988. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16989. s//\1/
  16990. q
  16991. }
  16992. /^X\(\/\/\)[^/].*/{
  16993. s//\1/
  16994. q
  16995. }
  16996. /^X\(\/\/\)$/{
  16997. s//\1/
  16998. q
  16999. }
  17000. /^X\(\/\).*/{
  17001. s//\1/
  17002. q
  17003. }
  17004. s/.*/./; q'`
  17005. test -d "$as_dir" && break
  17006. done
  17007. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17008. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  17009. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  17010. { (exit 1); exit 1; }; }; }
  17011. # echo "creating $dirpart/$file"
  17012. echo '# dummy' > "$dirpart/$file"
  17013. done
  17014. done
  17015. }
  17016. ;;
  17017. "libtool":C)
  17018. # See if we are running on zsh, and set the options which allow our
  17019. # commands through without removal of \ escapes.
  17020. if test -n "${ZSH_VERSION+set}" ; then
  17021. setopt NO_GLOB_SUBST
  17022. fi
  17023. cfgfile="${ofile}T"
  17024. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17025. $RM "$cfgfile"
  17026. cat <<_LT_EOF >> "$cfgfile"
  17027. #! $SHELL
  17028. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  17029. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  17030. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17031. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17032. #
  17033. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  17034. # 2006, 2007, 2008 Free Software Foundation, Inc.
  17035. # Written by Gordon Matzigkeit, 1996
  17036. #
  17037. # This file is part of GNU Libtool.
  17038. #
  17039. # GNU Libtool is free software; you can redistribute it and/or
  17040. # modify it under the terms of the GNU General Public License as
  17041. # published by the Free Software Foundation; either version 2 of
  17042. # the License, or (at your option) any later version.
  17043. #
  17044. # As a special exception to the GNU General Public License,
  17045. # if you distribute this file as part of a program or library that
  17046. # is built using GNU Libtool, you may include this file under the
  17047. # same distribution terms that you use for the rest of that program.
  17048. #
  17049. # GNU Libtool is distributed in the hope that it will be useful,
  17050. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17051. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17052. # GNU General Public License for more details.
  17053. #
  17054. # You should have received a copy of the GNU General Public License
  17055. # along with GNU Libtool; see the file COPYING. If not, a copy
  17056. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  17057. # obtained by writing to the Free Software Foundation, Inc.,
  17058. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17059. # The names of the tagged configurations supported by this script.
  17060. available_tags="CXX "
  17061. # ### BEGIN LIBTOOL CONFIG
  17062. # Whether or not to build shared libraries.
  17063. build_libtool_libs=$enable_shared
  17064. # Whether or not to build static libraries.
  17065. build_old_libs=$enable_static
  17066. # Which release of libtool.m4 was used?
  17067. macro_version=$macro_version
  17068. macro_revision=$macro_revision
  17069. # What type of objects to build.
  17070. pic_mode=$pic_mode
  17071. # Whether or not to optimize for fast installation.
  17072. fast_install=$enable_fast_install
  17073. # The host system.
  17074. host_alias=$host_alias
  17075. host=$host
  17076. host_os=$host_os
  17077. # The build system.
  17078. build_alias=$build_alias
  17079. build=$build
  17080. build_os=$build_os
  17081. # A sed program that does not truncate output.
  17082. SED=$lt_SED
  17083. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17084. Xsed="\$SED -e 1s/^X//"
  17085. # A grep program that handles long lines.
  17086. GREP=$lt_GREP
  17087. # An ERE matcher.
  17088. EGREP=$lt_EGREP
  17089. # A literal string matcher.
  17090. FGREP=$lt_FGREP
  17091. # A BSD- or MS-compatible name lister.
  17092. NM=$lt_NM
  17093. # Whether we need soft or hard links.
  17094. LN_S=$lt_LN_S
  17095. # What is the maximum length of a command?
  17096. max_cmd_len=$max_cmd_len
  17097. # Object file suffix (normally "o").
  17098. objext=$ac_objext
  17099. # Executable file suffix (normally "").
  17100. exeext=$exeext
  17101. # whether the shell understands "unset".
  17102. lt_unset=$lt_unset
  17103. # turn spaces into newlines.
  17104. SP2NL=$lt_lt_SP2NL
  17105. # turn newlines into spaces.
  17106. NL2SP=$lt_lt_NL2SP
  17107. # How to create reloadable object files.
  17108. reload_flag=$lt_reload_flag
  17109. reload_cmds=$lt_reload_cmds
  17110. # An object symbol dumper.
  17111. OBJDUMP=$lt_OBJDUMP
  17112. # Method to check whether dependent libraries are shared objects.
  17113. deplibs_check_method=$lt_deplibs_check_method
  17114. # Command to use when deplibs_check_method == "file_magic".
  17115. file_magic_cmd=$lt_file_magic_cmd
  17116. # The archiver.
  17117. AR=$lt_AR
  17118. AR_FLAGS=$lt_AR_FLAGS
  17119. # A symbol stripping program.
  17120. STRIP=$lt_STRIP
  17121. # Commands used to install an old-style archive.
  17122. RANLIB=$lt_RANLIB
  17123. old_postinstall_cmds=$lt_old_postinstall_cmds
  17124. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17125. # A C compiler.
  17126. LTCC=$lt_CC
  17127. # LTCC compiler flags.
  17128. LTCFLAGS=$lt_CFLAGS
  17129. # Take the output of nm and produce a listing of raw symbols and C names.
  17130. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17131. # Transform the output of nm in a proper C declaration.
  17132. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17133. # Transform the output of nm in a C name address pair.
  17134. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17135. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17136. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17137. # The name of the directory that contains temporary libtool files.
  17138. objdir=$objdir
  17139. # Shell to use when invoking shell scripts.
  17140. SHELL=$lt_SHELL
  17141. # An echo program that does not interpret backslashes.
  17142. ECHO=$lt_ECHO
  17143. # Used to examine libraries when file_magic_cmd begins with "file".
  17144. MAGIC_CMD=$MAGIC_CMD
  17145. # Must we lock files when doing compilation?
  17146. need_locks=$lt_need_locks
  17147. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17148. DSYMUTIL=$lt_DSYMUTIL
  17149. # Tool to change global to local symbols on Mac OS X.
  17150. NMEDIT=$lt_NMEDIT
  17151. # Tool to manipulate fat objects and archives on Mac OS X.
  17152. LIPO=$lt_LIPO
  17153. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17154. OTOOL=$lt_OTOOL
  17155. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17156. OTOOL64=$lt_OTOOL64
  17157. # Old archive suffix (normally "a").
  17158. libext=$libext
  17159. # Shared library suffix (normally ".so").
  17160. shrext_cmds=$lt_shrext_cmds
  17161. # The commands to extract the exported symbol list from a shared archive.
  17162. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17163. # Variables whose values should be saved in libtool wrapper scripts and
  17164. # restored at link time.
  17165. variables_saved_for_relink=$lt_variables_saved_for_relink
  17166. # Do we need the "lib" prefix for modules?
  17167. need_lib_prefix=$need_lib_prefix
  17168. # Do we need a version for libraries?
  17169. need_version=$need_version
  17170. # Library versioning type.
  17171. version_type=$version_type
  17172. # Shared library runtime path variable.
  17173. runpath_var=$runpath_var
  17174. # Shared library path variable.
  17175. shlibpath_var=$shlibpath_var
  17176. # Is shlibpath searched before the hard-coded library search path?
  17177. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17178. # Format of library name prefix.
  17179. libname_spec=$lt_libname_spec
  17180. # List of archive names. First name is the real one, the rest are links.
  17181. # The last name is the one that the linker finds with -lNAME
  17182. library_names_spec=$lt_library_names_spec
  17183. # The coded name of the library, if different from the real name.
  17184. soname_spec=$lt_soname_spec
  17185. # Command to use after installation of a shared archive.
  17186. postinstall_cmds=$lt_postinstall_cmds
  17187. # Command to use after uninstallation of a shared archive.
  17188. postuninstall_cmds=$lt_postuninstall_cmds
  17189. # Commands used to finish a libtool library installation in a directory.
  17190. finish_cmds=$lt_finish_cmds
  17191. # As "finish_cmds", except a single script fragment to be evaled but
  17192. # not shown.
  17193. finish_eval=$lt_finish_eval
  17194. # Whether we should hardcode library paths into libraries.
  17195. hardcode_into_libs=$hardcode_into_libs
  17196. # Compile-time system search path for libraries.
  17197. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17198. # Run-time system search path for libraries.
  17199. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17200. # Whether dlopen is supported.
  17201. dlopen_support=$enable_dlopen
  17202. # Whether dlopen of programs is supported.
  17203. dlopen_self=$enable_dlopen_self
  17204. # Whether dlopen of statically linked programs is supported.
  17205. dlopen_self_static=$enable_dlopen_self_static
  17206. # Commands to strip libraries.
  17207. old_striplib=$lt_old_striplib
  17208. striplib=$lt_striplib
  17209. # The linker used to build libraries.
  17210. LD=$lt_LD
  17211. # Commands used to build an old-style archive.
  17212. old_archive_cmds=$lt_old_archive_cmds
  17213. # A language specific compiler.
  17214. CC=$lt_compiler
  17215. # Is the compiler the GNU compiler?
  17216. with_gcc=$GCC
  17217. # Compiler flag to turn off builtin functions.
  17218. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17219. # How to pass a linker flag through the compiler.
  17220. wl=$lt_lt_prog_compiler_wl
  17221. # Additional compiler flags for building library objects.
  17222. pic_flag=$lt_lt_prog_compiler_pic
  17223. # Compiler flag to prevent dynamic linking.
  17224. link_static_flag=$lt_lt_prog_compiler_static
  17225. # Does compiler simultaneously support -c and -o options?
  17226. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17227. # Whether or not to add -lc for building shared libraries.
  17228. build_libtool_need_lc=$archive_cmds_need_lc
  17229. # Whether or not to disallow shared libs when runtime libs are static.
  17230. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17231. # Compiler flag to allow reflexive dlopens.
  17232. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17233. # Compiler flag to generate shared objects directly from archives.
  17234. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17235. # Whether the compiler copes with passing no objects directly.
  17236. compiler_needs_object=$lt_compiler_needs_object
  17237. # Create an old-style archive from a shared archive.
  17238. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17239. # Create a temporary old-style archive to link instead of a shared archive.
  17240. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17241. # Commands used to build a shared archive.
  17242. archive_cmds=$lt_archive_cmds
  17243. archive_expsym_cmds=$lt_archive_expsym_cmds
  17244. # Commands used to build a loadable module if different from building
  17245. # a shared archive.
  17246. module_cmds=$lt_module_cmds
  17247. module_expsym_cmds=$lt_module_expsym_cmds
  17248. # Whether we are building with GNU ld or not.
  17249. with_gnu_ld=$lt_with_gnu_ld
  17250. # Flag that allows shared libraries with undefined symbols to be built.
  17251. allow_undefined_flag=$lt_allow_undefined_flag
  17252. # Flag that enforces no undefined symbols.
  17253. no_undefined_flag=$lt_no_undefined_flag
  17254. # Flag to hardcode \$libdir into a binary during linking.
  17255. # This must work even if \$libdir does not exist
  17256. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17257. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17258. # during linking. This must work even if \$libdir does not exist.
  17259. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  17260. # Whether we need a single "-rpath" flag with a separated argument.
  17261. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17262. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17263. # DIR into the resulting binary.
  17264. hardcode_direct=$hardcode_direct
  17265. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17266. # DIR into the resulting binary and the resulting library dependency is
  17267. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17268. # library is relocated.
  17269. hardcode_direct_absolute=$hardcode_direct_absolute
  17270. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17271. # into the resulting binary.
  17272. hardcode_minus_L=$hardcode_minus_L
  17273. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17274. # into the resulting binary.
  17275. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17276. # Set to "yes" if building a shared library automatically hardcodes DIR
  17277. # into the library and all subsequent libraries and executables linked
  17278. # against it.
  17279. hardcode_automatic=$hardcode_automatic
  17280. # Set to yes if linker adds runtime paths of dependent libraries
  17281. # to runtime path list.
  17282. inherit_rpath=$inherit_rpath
  17283. # Whether libtool must link a program against all its dependency libraries.
  17284. link_all_deplibs=$link_all_deplibs
  17285. # Fix the shell variable \$srcfile for the compiler.
  17286. fix_srcfile_path=$lt_fix_srcfile_path
  17287. # Set to "yes" if exported symbols are required.
  17288. always_export_symbols=$always_export_symbols
  17289. # The commands to list exported symbols.
  17290. export_symbols_cmds=$lt_export_symbols_cmds
  17291. # Symbols that should not be listed in the preloaded symbols.
  17292. exclude_expsyms=$lt_exclude_expsyms
  17293. # Symbols that must always be exported.
  17294. include_expsyms=$lt_include_expsyms
  17295. # Commands necessary for linking programs (against libraries) with templates.
  17296. prelink_cmds=$lt_prelink_cmds
  17297. # Specify filename containing input files.
  17298. file_list_spec=$lt_file_list_spec
  17299. # How to hardcode a shared library path into an executable.
  17300. hardcode_action=$hardcode_action
  17301. # The directories searched by this compiler when creating a shared library.
  17302. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17303. # Dependencies to place before and after the objects being linked to
  17304. # create a shared library.
  17305. predep_objects=$lt_predep_objects
  17306. postdep_objects=$lt_postdep_objects
  17307. predeps=$lt_predeps
  17308. postdeps=$lt_postdeps
  17309. # The library search path used internally by the compiler when linking
  17310. # a shared library.
  17311. compiler_lib_search_path=$lt_compiler_lib_search_path
  17312. # ### END LIBTOOL CONFIG
  17313. _LT_EOF
  17314. case $host_os in
  17315. aix3*)
  17316. cat <<\_LT_EOF >> "$cfgfile"
  17317. # AIX sometimes has problems with the GCC collect2 program. For some
  17318. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17319. # vanish in a puff of smoke.
  17320. if test "X${COLLECT_NAMES+set}" != Xset; then
  17321. COLLECT_NAMES=
  17322. export COLLECT_NAMES
  17323. fi
  17324. _LT_EOF
  17325. ;;
  17326. esac
  17327. ltmain="$ac_aux_dir/ltmain.sh"
  17328. # We use sed instead of cat because bash on DJGPP gets confused if
  17329. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17330. # text mode, it properly converts lines to CR/LF. This bash problem
  17331. # is reportedly fixed, but why not run on old versions too?
  17332. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  17333. || (rm -f "$cfgfile"; exit 1)
  17334. case $xsi_shell in
  17335. yes)
  17336. cat << \_LT_EOF >> "$cfgfile"
  17337. # func_dirname file append nondir_replacement
  17338. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17339. # otherwise set result to NONDIR_REPLACEMENT.
  17340. func_dirname ()
  17341. {
  17342. case ${1} in
  17343. */*) func_dirname_result="${1%/*}${2}" ;;
  17344. * ) func_dirname_result="${3}" ;;
  17345. esac
  17346. }
  17347. # func_basename file
  17348. func_basename ()
  17349. {
  17350. func_basename_result="${1##*/}"
  17351. }
  17352. # func_dirname_and_basename file append nondir_replacement
  17353. # perform func_basename and func_dirname in a single function
  17354. # call:
  17355. # dirname: Compute the dirname of FILE. If nonempty,
  17356. # add APPEND to the result, otherwise set result
  17357. # to NONDIR_REPLACEMENT.
  17358. # value returned in "$func_dirname_result"
  17359. # basename: Compute filename of FILE.
  17360. # value retuned in "$func_basename_result"
  17361. # Implementation must be kept synchronized with func_dirname
  17362. # and func_basename. For efficiency, we do not delegate to
  17363. # those functions but instead duplicate the functionality here.
  17364. func_dirname_and_basename ()
  17365. {
  17366. case ${1} in
  17367. */*) func_dirname_result="${1%/*}${2}" ;;
  17368. * ) func_dirname_result="${3}" ;;
  17369. esac
  17370. func_basename_result="${1##*/}"
  17371. }
  17372. # func_stripname prefix suffix name
  17373. # strip PREFIX and SUFFIX off of NAME.
  17374. # PREFIX and SUFFIX must not contain globbing or regex special
  17375. # characters, hashes, percent signs, but SUFFIX may contain a leading
  17376. # dot (in which case that matches only a dot).
  17377. func_stripname ()
  17378. {
  17379. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  17380. # positional parameters, so assign one to ordinary parameter first.
  17381. func_stripname_result=${3}
  17382. func_stripname_result=${func_stripname_result#"${1}"}
  17383. func_stripname_result=${func_stripname_result%"${2}"}
  17384. }
  17385. # func_opt_split
  17386. func_opt_split ()
  17387. {
  17388. func_opt_split_opt=${1%%=*}
  17389. func_opt_split_arg=${1#*=}
  17390. }
  17391. # func_lo2o object
  17392. func_lo2o ()
  17393. {
  17394. case ${1} in
  17395. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  17396. *) func_lo2o_result=${1} ;;
  17397. esac
  17398. }
  17399. # func_xform libobj-or-source
  17400. func_xform ()
  17401. {
  17402. func_xform_result=${1%.*}.lo
  17403. }
  17404. # func_arith arithmetic-term...
  17405. func_arith ()
  17406. {
  17407. func_arith_result=$(( $* ))
  17408. }
  17409. # func_len string
  17410. # STRING may not start with a hyphen.
  17411. func_len ()
  17412. {
  17413. func_len_result=${#1}
  17414. }
  17415. _LT_EOF
  17416. ;;
  17417. *) # Bourne compatible functions.
  17418. cat << \_LT_EOF >> "$cfgfile"
  17419. # func_dirname file append nondir_replacement
  17420. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17421. # otherwise set result to NONDIR_REPLACEMENT.
  17422. func_dirname ()
  17423. {
  17424. # Extract subdirectory from the argument.
  17425. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  17426. if test "X$func_dirname_result" = "X${1}"; then
  17427. func_dirname_result="${3}"
  17428. else
  17429. func_dirname_result="$func_dirname_result${2}"
  17430. fi
  17431. }
  17432. # func_basename file
  17433. func_basename ()
  17434. {
  17435. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  17436. }
  17437. # func_stripname prefix suffix name
  17438. # strip PREFIX and SUFFIX off of NAME.
  17439. # PREFIX and SUFFIX must not contain globbing or regex special
  17440. # characters, hashes, percent signs, but SUFFIX may contain a leading
  17441. # dot (in which case that matches only a dot).
  17442. # func_strip_suffix prefix name
  17443. func_stripname ()
  17444. {
  17445. case ${2} in
  17446. .*) func_stripname_result=`$ECHO "X${3}" \
  17447. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  17448. *) func_stripname_result=`$ECHO "X${3}" \
  17449. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  17450. esac
  17451. }
  17452. # sed scripts:
  17453. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  17454. my_sed_long_arg='1s/^-[^=]*=//'
  17455. # func_opt_split
  17456. func_opt_split ()
  17457. {
  17458. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  17459. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  17460. }
  17461. # func_lo2o object
  17462. func_lo2o ()
  17463. {
  17464. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  17465. }
  17466. # func_xform libobj-or-source
  17467. func_xform ()
  17468. {
  17469. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  17470. }
  17471. # func_arith arithmetic-term...
  17472. func_arith ()
  17473. {
  17474. func_arith_result=`expr "$@"`
  17475. }
  17476. # func_len string
  17477. # STRING may not start with a hyphen.
  17478. func_len ()
  17479. {
  17480. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  17481. }
  17482. _LT_EOF
  17483. esac
  17484. case $lt_shell_append in
  17485. yes)
  17486. cat << \_LT_EOF >> "$cfgfile"
  17487. # func_append var value
  17488. # Append VALUE to the end of shell variable VAR.
  17489. func_append ()
  17490. {
  17491. eval "$1+=\$2"
  17492. }
  17493. _LT_EOF
  17494. ;;
  17495. *)
  17496. cat << \_LT_EOF >> "$cfgfile"
  17497. # func_append var value
  17498. # Append VALUE to the end of shell variable VAR.
  17499. func_append ()
  17500. {
  17501. eval "$1=\$$1\$2"
  17502. }
  17503. _LT_EOF
  17504. ;;
  17505. esac
  17506. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  17507. || (rm -f "$cfgfile"; exit 1)
  17508. mv -f "$cfgfile" "$ofile" ||
  17509. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17510. chmod +x "$ofile"
  17511. cat <<_LT_EOF >> "$ofile"
  17512. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17513. # The linker used to build libraries.
  17514. LD=$lt_LD_CXX
  17515. # Commands used to build an old-style archive.
  17516. old_archive_cmds=$lt_old_archive_cmds_CXX
  17517. # A language specific compiler.
  17518. CC=$lt_compiler_CXX
  17519. # Is the compiler the GNU compiler?
  17520. with_gcc=$GCC_CXX
  17521. # Compiler flag to turn off builtin functions.
  17522. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17523. # How to pass a linker flag through the compiler.
  17524. wl=$lt_lt_prog_compiler_wl_CXX
  17525. # Additional compiler flags for building library objects.
  17526. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17527. # Compiler flag to prevent dynamic linking.
  17528. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17529. # Does compiler simultaneously support -c and -o options?
  17530. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17531. # Whether or not to add -lc for building shared libraries.
  17532. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17533. # Whether or not to disallow shared libs when runtime libs are static.
  17534. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17535. # Compiler flag to allow reflexive dlopens.
  17536. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17537. # Compiler flag to generate shared objects directly from archives.
  17538. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17539. # Whether the compiler copes with passing no objects directly.
  17540. compiler_needs_object=$lt_compiler_needs_object_CXX
  17541. # Create an old-style archive from a shared archive.
  17542. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17543. # Create a temporary old-style archive to link instead of a shared archive.
  17544. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17545. # Commands used to build a shared archive.
  17546. archive_cmds=$lt_archive_cmds_CXX
  17547. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17548. # Commands used to build a loadable module if different from building
  17549. # a shared archive.
  17550. module_cmds=$lt_module_cmds_CXX
  17551. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17552. # Whether we are building with GNU ld or not.
  17553. with_gnu_ld=$lt_with_gnu_ld_CXX
  17554. # Flag that allows shared libraries with undefined symbols to be built.
  17555. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17556. # Flag that enforces no undefined symbols.
  17557. no_undefined_flag=$lt_no_undefined_flag_CXX
  17558. # Flag to hardcode \$libdir into a binary during linking.
  17559. # This must work even if \$libdir does not exist
  17560. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17561. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17562. # during linking. This must work even if \$libdir does not exist.
  17563. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  17564. # Whether we need a single "-rpath" flag with a separated argument.
  17565. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17566. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17567. # DIR into the resulting binary.
  17568. hardcode_direct=$hardcode_direct_CXX
  17569. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17570. # DIR into the resulting binary and the resulting library dependency is
  17571. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17572. # library is relocated.
  17573. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17574. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17575. # into the resulting binary.
  17576. hardcode_minus_L=$hardcode_minus_L_CXX
  17577. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17578. # into the resulting binary.
  17579. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17580. # Set to "yes" if building a shared library automatically hardcodes DIR
  17581. # into the library and all subsequent libraries and executables linked
  17582. # against it.
  17583. hardcode_automatic=$hardcode_automatic_CXX
  17584. # Set to yes if linker adds runtime paths of dependent libraries
  17585. # to runtime path list.
  17586. inherit_rpath=$inherit_rpath_CXX
  17587. # Whether libtool must link a program against all its dependency libraries.
  17588. link_all_deplibs=$link_all_deplibs_CXX
  17589. # Fix the shell variable \$srcfile for the compiler.
  17590. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  17591. # Set to "yes" if exported symbols are required.
  17592. always_export_symbols=$always_export_symbols_CXX
  17593. # The commands to list exported symbols.
  17594. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17595. # Symbols that should not be listed in the preloaded symbols.
  17596. exclude_expsyms=$lt_exclude_expsyms_CXX
  17597. # Symbols that must always be exported.
  17598. include_expsyms=$lt_include_expsyms_CXX
  17599. # Commands necessary for linking programs (against libraries) with templates.
  17600. prelink_cmds=$lt_prelink_cmds_CXX
  17601. # Specify filename containing input files.
  17602. file_list_spec=$lt_file_list_spec_CXX
  17603. # How to hardcode a shared library path into an executable.
  17604. hardcode_action=$hardcode_action_CXX
  17605. # The directories searched by this compiler when creating a shared library.
  17606. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17607. # Dependencies to place before and after the objects being linked to
  17608. # create a shared library.
  17609. predep_objects=$lt_predep_objects_CXX
  17610. postdep_objects=$lt_postdep_objects_CXX
  17611. predeps=$lt_predeps_CXX
  17612. postdeps=$lt_postdeps_CXX
  17613. # The library search path used internally by the compiler when linking
  17614. # a shared library.
  17615. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17616. # ### END LIBTOOL TAG CONFIG: CXX
  17617. _LT_EOF
  17618. ;;
  17619. esac
  17620. done # for ac_tag
  17621. { (exit 0); exit 0; }
  17622. _ACEOF
  17623. chmod +x $CONFIG_STATUS
  17624. ac_clean_files=$ac_clean_files_save
  17625. test $ac_write_fail = 0 ||
  17626. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  17627. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  17628. { (exit 1); exit 1; }; }
  17629. # configure is writing to config.log, and then calls config.status.
  17630. # config.status does its own redirection, appending to config.log.
  17631. # Unfortunately, on DOS this fails, as config.log is still kept open
  17632. # by configure, so config.status won't be able to write to it; its
  17633. # output is simply discarded. So we exec the FD to /dev/null,
  17634. # effectively closing config.log, so it can be properly (re)opened and
  17635. # appended to by config.status. When coming back to configure, we
  17636. # need to make the FD available again.
  17637. if test "$no_create" != yes; then
  17638. ac_cs_success=:
  17639. ac_config_status_args=
  17640. test "$silent" = yes &&
  17641. ac_config_status_args="$ac_config_status_args --quiet"
  17642. exec 5>/dev/null
  17643. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17644. exec 5>>config.log
  17645. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17646. # would make configure fail if this is the last instruction.
  17647. $ac_cs_success || { (exit 1); exit 1; }
  17648. fi
  17649. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17650. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17651. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17652. fi