configure 577 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for godotapkfixer) 1.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='godotapkfixer)'
  539. PACKAGE_TARNAME='godotapkfixer-'
  540. PACKAGE_VERSION='1.0'
  541. PACKAGE_STRING='godotapkfixer) 1.0'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. ac_subst_vars='am__EXEEXT_FALSE
  580. am__EXEEXT_TRUE
  581. LTLIBOBJS
  582. LIBOBJS
  583. OSX_FALSE
  584. OSX_TRUE
  585. WINDOWS_FALSE
  586. WINDOWS_TRUE
  587. LINUX_FALSE
  588. LINUX_TRUE
  589. EXTRA_LDFLAGS
  590. HAVE_CXX11
  591. CXXCPP
  592. CPP
  593. LT_SYS_LIBRARY_PATH
  594. OTOOL64
  595. OTOOL
  596. LIPO
  597. NMEDIT
  598. DSYMUTIL
  599. MANIFEST_TOOL
  600. RANLIB
  601. DLLTOOL
  602. OBJDUMP
  603. LN_S
  604. NM
  605. ac_ct_DUMPBIN
  606. DUMPBIN
  607. LD
  608. FGREP
  609. EGREP
  610. GREP
  611. SED
  612. LIBTOOL
  613. ac_ct_AR
  614. AR
  615. host_os
  616. host_vendor
  617. host_cpu
  618. host
  619. build_os
  620. build_vendor
  621. build_cpu
  622. build
  623. am__fastdepCXX_FALSE
  624. am__fastdepCXX_TRUE
  625. CXXDEPMODE
  626. ac_ct_CXX
  627. CXXFLAGS
  628. CXX
  629. am__fastdepCC_FALSE
  630. am__fastdepCC_TRUE
  631. CCDEPMODE
  632. am__nodep
  633. AMDEPBACKSLASH
  634. AMDEP_FALSE
  635. AMDEP_TRUE
  636. am__quote
  637. am__include
  638. DEPDIR
  639. OBJEXT
  640. EXEEXT
  641. ac_ct_CC
  642. CPPFLAGS
  643. LDFLAGS
  644. CFLAGS
  645. CC
  646. AM_BACKSLASH
  647. AM_DEFAULT_VERBOSITY
  648. AM_DEFAULT_V
  649. AM_V
  650. am__untar
  651. am__tar
  652. AMTAR
  653. am__leading_dot
  654. SET_MAKE
  655. AWK
  656. mkdir_p
  657. MKDIR_P
  658. INSTALL_STRIP_PROGRAM
  659. STRIP
  660. install_sh
  661. MAKEINFO
  662. AUTOHEADER
  663. AUTOMAKE
  664. AUTOCONF
  665. ACLOCAL
  666. VERSION
  667. PACKAGE
  668. CYGPATH_W
  669. am__isrc
  670. INSTALL_DATA
  671. INSTALL_SCRIPT
  672. INSTALL_PROGRAM
  673. target_alias
  674. host_alias
  675. build_alias
  676. LIBS
  677. ECHO_T
  678. ECHO_N
  679. ECHO_C
  680. DEFS
  681. mandir
  682. localedir
  683. libdir
  684. psdir
  685. pdfdir
  686. dvidir
  687. htmldir
  688. infodir
  689. docdir
  690. oldincludedir
  691. includedir
  692. localstatedir
  693. sharedstatedir
  694. sysconfdir
  695. datadir
  696. datarootdir
  697. libexecdir
  698. sbindir
  699. bindir
  700. program_transform_name
  701. prefix
  702. exec_prefix
  703. PACKAGE_URL
  704. PACKAGE_BUGREPORT
  705. PACKAGE_STRING
  706. PACKAGE_VERSION
  707. PACKAGE_TARNAME
  708. PACKAGE_NAME
  709. PATH_SEPARATOR
  710. SHELL'
  711. ac_subst_files=''
  712. ac_user_opts='
  713. enable_option_checking
  714. enable_silent_rules
  715. enable_dependency_tracking
  716. enable_shared
  717. enable_static
  718. with_pic
  719. enable_fast_install
  720. with_aix_soname
  721. with_gnu_ld
  722. with_sysroot
  723. enable_libtool_lock
  724. enable_static_binary
  725. '
  726. ac_precious_vars='build_alias
  727. host_alias
  728. target_alias
  729. CC
  730. CFLAGS
  731. LDFLAGS
  732. LIBS
  733. CPPFLAGS
  734. CXX
  735. CXXFLAGS
  736. CCC
  737. LT_SYS_LIBRARY_PATH
  738. CPP
  739. CXXCPP'
  740. # Initialize some variables set by options.
  741. ac_init_help=
  742. ac_init_version=false
  743. ac_unrecognized_opts=
  744. ac_unrecognized_sep=
  745. # The variables have the same names as the options, with
  746. # dashes changed to underlines.
  747. cache_file=/dev/null
  748. exec_prefix=NONE
  749. no_create=
  750. no_recursion=
  751. prefix=NONE
  752. program_prefix=NONE
  753. program_suffix=NONE
  754. program_transform_name=s,x,x,
  755. silent=
  756. site=
  757. srcdir=
  758. verbose=
  759. x_includes=NONE
  760. x_libraries=NONE
  761. # Installation directory options.
  762. # These are left unexpanded so users can "make install exec_prefix=/foo"
  763. # and all the variables that are supposed to be based on exec_prefix
  764. # by default will actually change.
  765. # Use braces instead of parens because sh, perl, etc. also accept them.
  766. # (The list follows the same order as the GNU Coding Standards.)
  767. bindir='${exec_prefix}/bin'
  768. sbindir='${exec_prefix}/sbin'
  769. libexecdir='${exec_prefix}/libexec'
  770. datarootdir='${prefix}/share'
  771. datadir='${datarootdir}'
  772. sysconfdir='${prefix}/etc'
  773. sharedstatedir='${prefix}/com'
  774. localstatedir='${prefix}/var'
  775. includedir='${prefix}/include'
  776. oldincludedir='/usr/include'
  777. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  778. infodir='${datarootdir}/info'
  779. htmldir='${docdir}'
  780. dvidir='${docdir}'
  781. pdfdir='${docdir}'
  782. psdir='${docdir}'
  783. libdir='${exec_prefix}/lib'
  784. localedir='${datarootdir}/locale'
  785. mandir='${datarootdir}/man'
  786. ac_prev=
  787. ac_dashdash=
  788. for ac_option
  789. do
  790. # If the previous option needs an argument, assign it.
  791. if test -n "$ac_prev"; then
  792. eval $ac_prev=\$ac_option
  793. ac_prev=
  794. continue
  795. fi
  796. case $ac_option in
  797. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  798. *=) ac_optarg= ;;
  799. *) ac_optarg=yes ;;
  800. esac
  801. # Accept the important Cygnus configure options, so we can diagnose typos.
  802. case $ac_dashdash$ac_option in
  803. --)
  804. ac_dashdash=yes ;;
  805. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  806. ac_prev=bindir ;;
  807. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  808. bindir=$ac_optarg ;;
  809. -build | --build | --buil | --bui | --bu)
  810. ac_prev=build_alias ;;
  811. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  812. build_alias=$ac_optarg ;;
  813. -cache-file | --cache-file | --cache-fil | --cache-fi \
  814. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  815. ac_prev=cache_file ;;
  816. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  817. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  818. cache_file=$ac_optarg ;;
  819. --config-cache | -C)
  820. cache_file=config.cache ;;
  821. -datadir | --datadir | --datadi | --datad)
  822. ac_prev=datadir ;;
  823. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  824. datadir=$ac_optarg ;;
  825. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  826. | --dataroo | --dataro | --datar)
  827. ac_prev=datarootdir ;;
  828. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  829. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  830. datarootdir=$ac_optarg ;;
  831. -disable-* | --disable-*)
  832. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  833. # Reject names that are not valid shell variable names.
  834. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  835. as_fn_error $? "invalid feature name: $ac_useropt"
  836. ac_useropt_orig=$ac_useropt
  837. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  838. case $ac_user_opts in
  839. *"
  840. "enable_$ac_useropt"
  841. "*) ;;
  842. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  843. ac_unrecognized_sep=', ';;
  844. esac
  845. eval enable_$ac_useropt=no ;;
  846. -docdir | --docdir | --docdi | --doc | --do)
  847. ac_prev=docdir ;;
  848. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  849. docdir=$ac_optarg ;;
  850. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  851. ac_prev=dvidir ;;
  852. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  853. dvidir=$ac_optarg ;;
  854. -enable-* | --enable-*)
  855. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  856. # Reject names that are not valid shell variable names.
  857. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  858. as_fn_error $? "invalid feature name: $ac_useropt"
  859. ac_useropt_orig=$ac_useropt
  860. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  861. case $ac_user_opts in
  862. *"
  863. "enable_$ac_useropt"
  864. "*) ;;
  865. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  866. ac_unrecognized_sep=', ';;
  867. esac
  868. eval enable_$ac_useropt=\$ac_optarg ;;
  869. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  870. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  871. | --exec | --exe | --ex)
  872. ac_prev=exec_prefix ;;
  873. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  874. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  875. | --exec=* | --exe=* | --ex=*)
  876. exec_prefix=$ac_optarg ;;
  877. -gas | --gas | --ga | --g)
  878. # Obsolete; use --with-gas.
  879. with_gas=yes ;;
  880. -help | --help | --hel | --he | -h)
  881. ac_init_help=long ;;
  882. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  883. ac_init_help=recursive ;;
  884. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  885. ac_init_help=short ;;
  886. -host | --host | --hos | --ho)
  887. ac_prev=host_alias ;;
  888. -host=* | --host=* | --hos=* | --ho=*)
  889. host_alias=$ac_optarg ;;
  890. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  891. ac_prev=htmldir ;;
  892. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  893. | --ht=*)
  894. htmldir=$ac_optarg ;;
  895. -includedir | --includedir | --includedi | --included | --include \
  896. | --includ | --inclu | --incl | --inc)
  897. ac_prev=includedir ;;
  898. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  899. | --includ=* | --inclu=* | --incl=* | --inc=*)
  900. includedir=$ac_optarg ;;
  901. -infodir | --infodir | --infodi | --infod | --info | --inf)
  902. ac_prev=infodir ;;
  903. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  904. infodir=$ac_optarg ;;
  905. -libdir | --libdir | --libdi | --libd)
  906. ac_prev=libdir ;;
  907. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  908. libdir=$ac_optarg ;;
  909. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  910. | --libexe | --libex | --libe)
  911. ac_prev=libexecdir ;;
  912. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  913. | --libexe=* | --libex=* | --libe=*)
  914. libexecdir=$ac_optarg ;;
  915. -localedir | --localedir | --localedi | --localed | --locale)
  916. ac_prev=localedir ;;
  917. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  918. localedir=$ac_optarg ;;
  919. -localstatedir | --localstatedir | --localstatedi | --localstated \
  920. | --localstate | --localstat | --localsta | --localst | --locals)
  921. ac_prev=localstatedir ;;
  922. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  923. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  924. localstatedir=$ac_optarg ;;
  925. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  926. ac_prev=mandir ;;
  927. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  928. mandir=$ac_optarg ;;
  929. -nfp | --nfp | --nf)
  930. # Obsolete; use --without-fp.
  931. with_fp=no ;;
  932. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  933. | --no-cr | --no-c | -n)
  934. no_create=yes ;;
  935. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  936. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  937. no_recursion=yes ;;
  938. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  939. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  940. | --oldin | --oldi | --old | --ol | --o)
  941. ac_prev=oldincludedir ;;
  942. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  943. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  944. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  945. oldincludedir=$ac_optarg ;;
  946. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  947. ac_prev=prefix ;;
  948. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  949. prefix=$ac_optarg ;;
  950. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  951. | --program-pre | --program-pr | --program-p)
  952. ac_prev=program_prefix ;;
  953. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  954. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  955. program_prefix=$ac_optarg ;;
  956. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  957. | --program-suf | --program-su | --program-s)
  958. ac_prev=program_suffix ;;
  959. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  960. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  961. program_suffix=$ac_optarg ;;
  962. -program-transform-name | --program-transform-name \
  963. | --program-transform-nam | --program-transform-na \
  964. | --program-transform-n | --program-transform- \
  965. | --program-transform | --program-transfor \
  966. | --program-transfo | --program-transf \
  967. | --program-trans | --program-tran \
  968. | --progr-tra | --program-tr | --program-t)
  969. ac_prev=program_transform_name ;;
  970. -program-transform-name=* | --program-transform-name=* \
  971. | --program-transform-nam=* | --program-transform-na=* \
  972. | --program-transform-n=* | --program-transform-=* \
  973. | --program-transform=* | --program-transfor=* \
  974. | --program-transfo=* | --program-transf=* \
  975. | --program-trans=* | --program-tran=* \
  976. | --progr-tra=* | --program-tr=* | --program-t=*)
  977. program_transform_name=$ac_optarg ;;
  978. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  979. ac_prev=pdfdir ;;
  980. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  981. pdfdir=$ac_optarg ;;
  982. -psdir | --psdir | --psdi | --psd | --ps)
  983. ac_prev=psdir ;;
  984. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  985. psdir=$ac_optarg ;;
  986. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  987. | -silent | --silent | --silen | --sile | --sil)
  988. silent=yes ;;
  989. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  990. ac_prev=sbindir ;;
  991. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  992. | --sbi=* | --sb=*)
  993. sbindir=$ac_optarg ;;
  994. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  995. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  996. | --sharedst | --shareds | --shared | --share | --shar \
  997. | --sha | --sh)
  998. ac_prev=sharedstatedir ;;
  999. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1000. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1001. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1002. | --sha=* | --sh=*)
  1003. sharedstatedir=$ac_optarg ;;
  1004. -site | --site | --sit)
  1005. ac_prev=site ;;
  1006. -site=* | --site=* | --sit=*)
  1007. site=$ac_optarg ;;
  1008. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1009. ac_prev=srcdir ;;
  1010. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1011. srcdir=$ac_optarg ;;
  1012. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1013. | --syscon | --sysco | --sysc | --sys | --sy)
  1014. ac_prev=sysconfdir ;;
  1015. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1016. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1017. sysconfdir=$ac_optarg ;;
  1018. -target | --target | --targe | --targ | --tar | --ta | --t)
  1019. ac_prev=target_alias ;;
  1020. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1021. target_alias=$ac_optarg ;;
  1022. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1023. verbose=yes ;;
  1024. -version | --version | --versio | --versi | --vers | -V)
  1025. ac_init_version=: ;;
  1026. -with-* | --with-*)
  1027. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1030. as_fn_error $? "invalid package name: $ac_useropt"
  1031. ac_useropt_orig=$ac_useropt
  1032. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1033. case $ac_user_opts in
  1034. *"
  1035. "with_$ac_useropt"
  1036. "*) ;;
  1037. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1038. ac_unrecognized_sep=', ';;
  1039. esac
  1040. eval with_$ac_useropt=\$ac_optarg ;;
  1041. -without-* | --without-*)
  1042. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1043. # Reject names that are not valid shell variable names.
  1044. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1045. as_fn_error $? "invalid package name: $ac_useropt"
  1046. ac_useropt_orig=$ac_useropt
  1047. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1048. case $ac_user_opts in
  1049. *"
  1050. "with_$ac_useropt"
  1051. "*) ;;
  1052. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1053. ac_unrecognized_sep=', ';;
  1054. esac
  1055. eval with_$ac_useropt=no ;;
  1056. --x)
  1057. # Obsolete; use --with-x.
  1058. with_x=yes ;;
  1059. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1060. | --x-incl | --x-inc | --x-in | --x-i)
  1061. ac_prev=x_includes ;;
  1062. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1063. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1064. x_includes=$ac_optarg ;;
  1065. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1066. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1067. ac_prev=x_libraries ;;
  1068. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1069. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1070. x_libraries=$ac_optarg ;;
  1071. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1072. Try \`$0 --help' for more information"
  1073. ;;
  1074. *=*)
  1075. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1076. # Reject names that are not valid shell variable names.
  1077. case $ac_envvar in #(
  1078. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1079. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1080. esac
  1081. eval $ac_envvar=\$ac_optarg
  1082. export $ac_envvar ;;
  1083. *)
  1084. # FIXME: should be removed in autoconf 3.0.
  1085. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1086. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1087. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1088. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1089. ;;
  1090. esac
  1091. done
  1092. if test -n "$ac_prev"; then
  1093. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1094. as_fn_error $? "missing argument to $ac_option"
  1095. fi
  1096. if test -n "$ac_unrecognized_opts"; then
  1097. case $enable_option_checking in
  1098. no) ;;
  1099. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1100. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1101. esac
  1102. fi
  1103. # Check all directory arguments for consistency.
  1104. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1105. datadir sysconfdir sharedstatedir localstatedir includedir \
  1106. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1107. libdir localedir mandir
  1108. do
  1109. eval ac_val=\$$ac_var
  1110. # Remove trailing slashes.
  1111. case $ac_val in
  1112. */ )
  1113. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1114. eval $ac_var=\$ac_val;;
  1115. esac
  1116. # Be sure to have absolute directory names.
  1117. case $ac_val in
  1118. [\\/$]* | ?:[\\/]* ) continue;;
  1119. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1120. esac
  1121. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1122. done
  1123. # There might be people who depend on the old broken behavior: `$host'
  1124. # used to hold the argument of --host etc.
  1125. # FIXME: To remove some day.
  1126. build=$build_alias
  1127. host=$host_alias
  1128. target=$target_alias
  1129. # FIXME: To remove some day.
  1130. if test "x$host_alias" != x; then
  1131. if test "x$build_alias" = x; then
  1132. cross_compiling=maybe
  1133. elif test "x$build_alias" != "x$host_alias"; then
  1134. cross_compiling=yes
  1135. fi
  1136. fi
  1137. ac_tool_prefix=
  1138. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1139. test "$silent" = yes && exec 6>/dev/null
  1140. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1141. ac_ls_di=`ls -di .` &&
  1142. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1143. as_fn_error $? "working directory cannot be determined"
  1144. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1145. as_fn_error $? "pwd does not report name of working directory"
  1146. # Find the source files, if location was not specified.
  1147. if test -z "$srcdir"; then
  1148. ac_srcdir_defaulted=yes
  1149. # Try the directory containing this script, then the parent directory.
  1150. ac_confdir=`$as_dirname -- "$as_myself" ||
  1151. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1152. X"$as_myself" : 'X\(//\)[^/]' \| \
  1153. X"$as_myself" : 'X\(//\)$' \| \
  1154. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1155. $as_echo X"$as_myself" |
  1156. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1157. s//\1/
  1158. q
  1159. }
  1160. /^X\(\/\/\)[^/].*/{
  1161. s//\1/
  1162. q
  1163. }
  1164. /^X\(\/\/\)$/{
  1165. s//\1/
  1166. q
  1167. }
  1168. /^X\(\/\).*/{
  1169. s//\1/
  1170. q
  1171. }
  1172. s/.*/./; q'`
  1173. srcdir=$ac_confdir
  1174. if test ! -r "$srcdir/$ac_unique_file"; then
  1175. srcdir=..
  1176. fi
  1177. else
  1178. ac_srcdir_defaulted=no
  1179. fi
  1180. if test ! -r "$srcdir/$ac_unique_file"; then
  1181. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1182. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1183. fi
  1184. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1185. ac_abs_confdir=`(
  1186. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1187. pwd)`
  1188. # When building in place, set srcdir=.
  1189. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1190. srcdir=.
  1191. fi
  1192. # Remove unnecessary trailing slashes from srcdir.
  1193. # Double slashes in file names in object file debugging info
  1194. # mess up M-x gdb in Emacs.
  1195. case $srcdir in
  1196. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1197. esac
  1198. for ac_var in $ac_precious_vars; do
  1199. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1200. eval ac_env_${ac_var}_value=\$${ac_var}
  1201. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1202. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1203. done
  1204. #
  1205. # Report the --help message.
  1206. #
  1207. if test "$ac_init_help" = "long"; then
  1208. # Omit some internal or obsolete options to make the list less imposing.
  1209. # This message is too long to be a string in the A/UX 3.1 sh.
  1210. cat <<_ACEOF
  1211. \`configure' configures godotapkfixer) 1.0 to adapt to many kinds of systems.
  1212. Usage: $0 [OPTION]... [VAR=VALUE]...
  1213. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1214. VAR=VALUE. See below for descriptions of some of the useful variables.
  1215. Defaults for the options are specified in brackets.
  1216. Configuration:
  1217. -h, --help display this help and exit
  1218. --help=short display options specific to this package
  1219. --help=recursive display the short help of all the included packages
  1220. -V, --version display version information and exit
  1221. -q, --quiet, --silent do not print \`checking ...' messages
  1222. --cache-file=FILE cache test results in FILE [disabled]
  1223. -C, --config-cache alias for \`--cache-file=config.cache'
  1224. -n, --no-create do not create output files
  1225. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1226. Installation directories:
  1227. --prefix=PREFIX install architecture-independent files in PREFIX
  1228. [$ac_default_prefix]
  1229. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1230. [PREFIX]
  1231. By default, \`make install' will install all the files in
  1232. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1233. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1234. for instance \`--prefix=\$HOME'.
  1235. For better control, use the options below.
  1236. Fine tuning of the installation directories:
  1237. --bindir=DIR user executables [EPREFIX/bin]
  1238. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1239. --libexecdir=DIR program executables [EPREFIX/libexec]
  1240. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1241. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1242. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1243. --libdir=DIR object code libraries [EPREFIX/lib]
  1244. --includedir=DIR C header files [PREFIX/include]
  1245. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1246. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1247. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1248. --infodir=DIR info documentation [DATAROOTDIR/info]
  1249. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1250. --mandir=DIR man documentation [DATAROOTDIR/man]
  1251. --docdir=DIR documentation root [DATAROOTDIR/doc/godotapkfixer-]
  1252. --htmldir=DIR html documentation [DOCDIR]
  1253. --dvidir=DIR dvi documentation [DOCDIR]
  1254. --pdfdir=DIR pdf documentation [DOCDIR]
  1255. --psdir=DIR ps documentation [DOCDIR]
  1256. _ACEOF
  1257. cat <<\_ACEOF
  1258. Program names:
  1259. --program-prefix=PREFIX prepend PREFIX to installed program names
  1260. --program-suffix=SUFFIX append SUFFIX to installed program names
  1261. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1262. System types:
  1263. --build=BUILD configure for building on BUILD [guessed]
  1264. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1265. _ACEOF
  1266. fi
  1267. if test -n "$ac_init_help"; then
  1268. case $ac_init_help in
  1269. short | recursive ) echo "Configuration of godotapkfixer) 1.0:";;
  1270. esac
  1271. cat <<\_ACEOF
  1272. Optional Features:
  1273. --disable-option-checking ignore unrecognized --enable/--with options
  1274. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1275. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1276. --enable-silent-rules less verbose build output (undo: "make V=1")
  1277. --disable-silent-rules verbose build output (undo: "make V=0")
  1278. --enable-dependency-tracking
  1279. do not reject slow dependency extractors
  1280. --disable-dependency-tracking
  1281. speeds up one-time build
  1282. --enable-shared[=PKGS] build shared libraries [default=yes]
  1283. --enable-static[=PKGS] build static libraries [default=yes]
  1284. --enable-fast-install[=PKGS]
  1285. optimize for fast installation [default=yes]
  1286. --disable-libtool-lock avoid locking (might break parallel builds)
  1287. --enable-static-binary enable static build
  1288. Optional Packages:
  1289. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1290. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1291. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1292. both]
  1293. --with-aix-soname=aix|svr4|both
  1294. shared library versioning (aka "SONAME") variant to
  1295. provide on AIX, [default=aix].
  1296. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1297. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1298. compiler's sysroot if not specified).
  1299. Some influential environment variables:
  1300. CC C compiler command
  1301. CFLAGS C compiler flags
  1302. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1303. nonstandard directory <lib dir>
  1304. LIBS libraries to pass to the linker, e.g. -l<library>
  1305. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1306. you have headers in a nonstandard directory <include dir>
  1307. CXX C++ compiler command
  1308. CXXFLAGS C++ compiler flags
  1309. LT_SYS_LIBRARY_PATH
  1310. User-defined run-time library search path.
  1311. CPP C preprocessor
  1312. CXXCPP C++ preprocessor
  1313. Use these variables to override the choices made by `configure' or to help
  1314. it to find libraries and programs with nonstandard names/locations.
  1315. Report bugs to the package provider.
  1316. _ACEOF
  1317. ac_status=$?
  1318. fi
  1319. if test "$ac_init_help" = "recursive"; then
  1320. # If there are subdirs, report their specific --help.
  1321. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1322. test -d "$ac_dir" ||
  1323. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1324. continue
  1325. ac_builddir=.
  1326. case "$ac_dir" in
  1327. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1328. *)
  1329. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1330. # A ".." for each directory in $ac_dir_suffix.
  1331. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1332. case $ac_top_builddir_sub in
  1333. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1334. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1335. esac ;;
  1336. esac
  1337. ac_abs_top_builddir=$ac_pwd
  1338. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1339. # for backward compatibility:
  1340. ac_top_builddir=$ac_top_build_prefix
  1341. case $srcdir in
  1342. .) # We are building in place.
  1343. ac_srcdir=.
  1344. ac_top_srcdir=$ac_top_builddir_sub
  1345. ac_abs_top_srcdir=$ac_pwd ;;
  1346. [\\/]* | ?:[\\/]* ) # Absolute name.
  1347. ac_srcdir=$srcdir$ac_dir_suffix;
  1348. ac_top_srcdir=$srcdir
  1349. ac_abs_top_srcdir=$srcdir ;;
  1350. *) # Relative name.
  1351. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1352. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1353. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1354. esac
  1355. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1356. cd "$ac_dir" || { ac_status=$?; continue; }
  1357. # Check for guested configure.
  1358. if test -f "$ac_srcdir/configure.gnu"; then
  1359. echo &&
  1360. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1361. elif test -f "$ac_srcdir/configure"; then
  1362. echo &&
  1363. $SHELL "$ac_srcdir/configure" --help=recursive
  1364. else
  1365. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1366. fi || ac_status=$?
  1367. cd "$ac_pwd" || { ac_status=$?; break; }
  1368. done
  1369. fi
  1370. test -n "$ac_init_help" && exit $ac_status
  1371. if $ac_init_version; then
  1372. cat <<\_ACEOF
  1373. godotapkfixer) configure 1.0
  1374. generated by GNU Autoconf 2.69
  1375. Copyright (C) 2012 Free Software Foundation, Inc.
  1376. This configure script is free software; the Free Software Foundation
  1377. gives unlimited permission to copy, distribute and modify it.
  1378. _ACEOF
  1379. exit
  1380. fi
  1381. ## ------------------------ ##
  1382. ## Autoconf initialization. ##
  1383. ## ------------------------ ##
  1384. # ac_fn_c_try_compile LINENO
  1385. # --------------------------
  1386. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1387. ac_fn_c_try_compile ()
  1388. {
  1389. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1390. rm -f conftest.$ac_objext
  1391. if { { ac_try="$ac_compile"
  1392. case "(($ac_try" in
  1393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1394. *) ac_try_echo=$ac_try;;
  1395. esac
  1396. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1397. $as_echo "$ac_try_echo"; } >&5
  1398. (eval "$ac_compile") 2>conftest.err
  1399. ac_status=$?
  1400. if test -s conftest.err; then
  1401. grep -v '^ *+' conftest.err >conftest.er1
  1402. cat conftest.er1 >&5
  1403. mv -f conftest.er1 conftest.err
  1404. fi
  1405. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1406. test $ac_status = 0; } && {
  1407. test -z "$ac_c_werror_flag" ||
  1408. test ! -s conftest.err
  1409. } && test -s conftest.$ac_objext; then :
  1410. ac_retval=0
  1411. else
  1412. $as_echo "$as_me: failed program was:" >&5
  1413. sed 's/^/| /' conftest.$ac_ext >&5
  1414. ac_retval=1
  1415. fi
  1416. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1417. as_fn_set_status $ac_retval
  1418. } # ac_fn_c_try_compile
  1419. # ac_fn_cxx_try_compile LINENO
  1420. # ----------------------------
  1421. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1422. ac_fn_cxx_try_compile ()
  1423. {
  1424. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1425. rm -f conftest.$ac_objext
  1426. if { { ac_try="$ac_compile"
  1427. case "(($ac_try" in
  1428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1429. *) ac_try_echo=$ac_try;;
  1430. esac
  1431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1432. $as_echo "$ac_try_echo"; } >&5
  1433. (eval "$ac_compile") 2>conftest.err
  1434. ac_status=$?
  1435. if test -s conftest.err; then
  1436. grep -v '^ *+' conftest.err >conftest.er1
  1437. cat conftest.er1 >&5
  1438. mv -f conftest.er1 conftest.err
  1439. fi
  1440. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1441. test $ac_status = 0; } && {
  1442. test -z "$ac_cxx_werror_flag" ||
  1443. test ! -s conftest.err
  1444. } && test -s conftest.$ac_objext; then :
  1445. ac_retval=0
  1446. else
  1447. $as_echo "$as_me: failed program was:" >&5
  1448. sed 's/^/| /' conftest.$ac_ext >&5
  1449. ac_retval=1
  1450. fi
  1451. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1452. as_fn_set_status $ac_retval
  1453. } # ac_fn_cxx_try_compile
  1454. # ac_fn_c_try_link LINENO
  1455. # -----------------------
  1456. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1457. ac_fn_c_try_link ()
  1458. {
  1459. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1460. rm -f conftest.$ac_objext conftest$ac_exeext
  1461. if { { ac_try="$ac_link"
  1462. case "(($ac_try" in
  1463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1464. *) ac_try_echo=$ac_try;;
  1465. esac
  1466. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1467. $as_echo "$ac_try_echo"; } >&5
  1468. (eval "$ac_link") 2>conftest.err
  1469. ac_status=$?
  1470. if test -s conftest.err; then
  1471. grep -v '^ *+' conftest.err >conftest.er1
  1472. cat conftest.er1 >&5
  1473. mv -f conftest.er1 conftest.err
  1474. fi
  1475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1476. test $ac_status = 0; } && {
  1477. test -z "$ac_c_werror_flag" ||
  1478. test ! -s conftest.err
  1479. } && test -s conftest$ac_exeext && {
  1480. test "$cross_compiling" = yes ||
  1481. test -x conftest$ac_exeext
  1482. }; then :
  1483. ac_retval=0
  1484. else
  1485. $as_echo "$as_me: failed program was:" >&5
  1486. sed 's/^/| /' conftest.$ac_ext >&5
  1487. ac_retval=1
  1488. fi
  1489. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1490. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1491. # interfere with the next link command; also delete a directory that is
  1492. # left behind by Apple's compiler. We do this before executing the actions.
  1493. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1494. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1495. as_fn_set_status $ac_retval
  1496. } # ac_fn_c_try_link
  1497. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1498. # -------------------------------------------------------
  1499. # Tests whether HEADER exists and can be compiled using the include files in
  1500. # INCLUDES, setting the cache variable VAR accordingly.
  1501. ac_fn_c_check_header_compile ()
  1502. {
  1503. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1505. $as_echo_n "checking for $2... " >&6; }
  1506. if eval \${$3+:} false; then :
  1507. $as_echo_n "(cached) " >&6
  1508. else
  1509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1510. /* end confdefs.h. */
  1511. $4
  1512. #include <$2>
  1513. _ACEOF
  1514. if ac_fn_c_try_compile "$LINENO"; then :
  1515. eval "$3=yes"
  1516. else
  1517. eval "$3=no"
  1518. fi
  1519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1520. fi
  1521. eval ac_res=\$$3
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1523. $as_echo "$ac_res" >&6; }
  1524. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1525. } # ac_fn_c_check_header_compile
  1526. # ac_fn_c_try_cpp LINENO
  1527. # ----------------------
  1528. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1529. ac_fn_c_try_cpp ()
  1530. {
  1531. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1532. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1533. case "(($ac_try" in
  1534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1535. *) ac_try_echo=$ac_try;;
  1536. esac
  1537. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1538. $as_echo "$ac_try_echo"; } >&5
  1539. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1540. ac_status=$?
  1541. if test -s conftest.err; then
  1542. grep -v '^ *+' conftest.err >conftest.er1
  1543. cat conftest.er1 >&5
  1544. mv -f conftest.er1 conftest.err
  1545. fi
  1546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1547. test $ac_status = 0; } > conftest.i && {
  1548. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1549. test ! -s conftest.err
  1550. }; then :
  1551. ac_retval=0
  1552. else
  1553. $as_echo "$as_me: failed program was:" >&5
  1554. sed 's/^/| /' conftest.$ac_ext >&5
  1555. ac_retval=1
  1556. fi
  1557. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1558. as_fn_set_status $ac_retval
  1559. } # ac_fn_c_try_cpp
  1560. # ac_fn_c_try_run LINENO
  1561. # ----------------------
  1562. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1563. # that executables *can* be run.
  1564. ac_fn_c_try_run ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. if { { ac_try="$ac_link"
  1568. case "(($ac_try" in
  1569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1570. *) ac_try_echo=$ac_try;;
  1571. esac
  1572. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1573. $as_echo "$ac_try_echo"; } >&5
  1574. (eval "$ac_link") 2>&5
  1575. ac_status=$?
  1576. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1577. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1578. { { case "(($ac_try" in
  1579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1580. *) ac_try_echo=$ac_try;;
  1581. esac
  1582. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1583. $as_echo "$ac_try_echo"; } >&5
  1584. (eval "$ac_try") 2>&5
  1585. ac_status=$?
  1586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1587. test $ac_status = 0; }; }; then :
  1588. ac_retval=0
  1589. else
  1590. $as_echo "$as_me: program exited with status $ac_status" >&5
  1591. $as_echo "$as_me: failed program was:" >&5
  1592. sed 's/^/| /' conftest.$ac_ext >&5
  1593. ac_retval=$ac_status
  1594. fi
  1595. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1596. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1597. as_fn_set_status $ac_retval
  1598. } # ac_fn_c_try_run
  1599. # ac_fn_c_check_func LINENO FUNC VAR
  1600. # ----------------------------------
  1601. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1602. ac_fn_c_check_func ()
  1603. {
  1604. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1606. $as_echo_n "checking for $2... " >&6; }
  1607. if eval \${$3+:} false; then :
  1608. $as_echo_n "(cached) " >&6
  1609. else
  1610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1611. /* end confdefs.h. */
  1612. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1613. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1614. #define $2 innocuous_$2
  1615. /* System header to define __stub macros and hopefully few prototypes,
  1616. which can conflict with char $2 (); below.
  1617. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1618. <limits.h> exists even on freestanding compilers. */
  1619. #ifdef __STDC__
  1620. # include <limits.h>
  1621. #else
  1622. # include <assert.h>
  1623. #endif
  1624. #undef $2
  1625. /* Override any GCC internal prototype to avoid an error.
  1626. Use char because int might match the return type of a GCC
  1627. builtin and then its argument prototype would still apply. */
  1628. #ifdef __cplusplus
  1629. extern "C"
  1630. #endif
  1631. char $2 ();
  1632. /* The GNU C library defines this for functions which it implements
  1633. to always fail with ENOSYS. Some functions are actually named
  1634. something starting with __ and the normal name is an alias. */
  1635. #if defined __stub_$2 || defined __stub___$2
  1636. choke me
  1637. #endif
  1638. int
  1639. main ()
  1640. {
  1641. return $2 ();
  1642. ;
  1643. return 0;
  1644. }
  1645. _ACEOF
  1646. if ac_fn_c_try_link "$LINENO"; then :
  1647. eval "$3=yes"
  1648. else
  1649. eval "$3=no"
  1650. fi
  1651. rm -f core conftest.err conftest.$ac_objext \
  1652. conftest$ac_exeext conftest.$ac_ext
  1653. fi
  1654. eval ac_res=\$$3
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1656. $as_echo "$ac_res" >&6; }
  1657. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1658. } # ac_fn_c_check_func
  1659. # ac_fn_cxx_try_cpp LINENO
  1660. # ------------------------
  1661. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1662. ac_fn_cxx_try_cpp ()
  1663. {
  1664. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1665. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1666. case "(($ac_try" in
  1667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1668. *) ac_try_echo=$ac_try;;
  1669. esac
  1670. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1671. $as_echo "$ac_try_echo"; } >&5
  1672. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1673. ac_status=$?
  1674. if test -s conftest.err; then
  1675. grep -v '^ *+' conftest.err >conftest.er1
  1676. cat conftest.er1 >&5
  1677. mv -f conftest.er1 conftest.err
  1678. fi
  1679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1680. test $ac_status = 0; } > conftest.i && {
  1681. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1682. test ! -s conftest.err
  1683. }; then :
  1684. ac_retval=0
  1685. else
  1686. $as_echo "$as_me: failed program was:" >&5
  1687. sed 's/^/| /' conftest.$ac_ext >&5
  1688. ac_retval=1
  1689. fi
  1690. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1691. as_fn_set_status $ac_retval
  1692. } # ac_fn_cxx_try_cpp
  1693. # ac_fn_cxx_try_link LINENO
  1694. # -------------------------
  1695. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1696. ac_fn_cxx_try_link ()
  1697. {
  1698. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1699. rm -f conftest.$ac_objext conftest$ac_exeext
  1700. if { { ac_try="$ac_link"
  1701. case "(($ac_try" in
  1702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1703. *) ac_try_echo=$ac_try;;
  1704. esac
  1705. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1706. $as_echo "$ac_try_echo"; } >&5
  1707. (eval "$ac_link") 2>conftest.err
  1708. ac_status=$?
  1709. if test -s conftest.err; then
  1710. grep -v '^ *+' conftest.err >conftest.er1
  1711. cat conftest.er1 >&5
  1712. mv -f conftest.er1 conftest.err
  1713. fi
  1714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1715. test $ac_status = 0; } && {
  1716. test -z "$ac_cxx_werror_flag" ||
  1717. test ! -s conftest.err
  1718. } && test -s conftest$ac_exeext && {
  1719. test "$cross_compiling" = yes ||
  1720. test -x conftest$ac_exeext
  1721. }; then :
  1722. ac_retval=0
  1723. else
  1724. $as_echo "$as_me: failed program was:" >&5
  1725. sed 's/^/| /' conftest.$ac_ext >&5
  1726. ac_retval=1
  1727. fi
  1728. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1729. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1730. # interfere with the next link command; also delete a directory that is
  1731. # left behind by Apple's compiler. We do this before executing the actions.
  1732. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. as_fn_set_status $ac_retval
  1735. } # ac_fn_cxx_try_link
  1736. cat >config.log <<_ACEOF
  1737. This file contains any messages produced by compilers while
  1738. running configure, to aid debugging if configure makes a mistake.
  1739. It was created by godotapkfixer) $as_me 1.0, which was
  1740. generated by GNU Autoconf 2.69. Invocation command line was
  1741. $ $0 $@
  1742. _ACEOF
  1743. exec 5>>config.log
  1744. {
  1745. cat <<_ASUNAME
  1746. ## --------- ##
  1747. ## Platform. ##
  1748. ## --------- ##
  1749. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1750. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1751. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1752. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1753. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1754. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1755. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1756. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1757. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1758. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1759. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1760. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1761. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1762. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1763. _ASUNAME
  1764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1765. for as_dir in $PATH
  1766. do
  1767. IFS=$as_save_IFS
  1768. test -z "$as_dir" && as_dir=.
  1769. $as_echo "PATH: $as_dir"
  1770. done
  1771. IFS=$as_save_IFS
  1772. } >&5
  1773. cat >&5 <<_ACEOF
  1774. ## ----------- ##
  1775. ## Core tests. ##
  1776. ## ----------- ##
  1777. _ACEOF
  1778. # Keep a trace of the command line.
  1779. # Strip out --no-create and --no-recursion so they do not pile up.
  1780. # Strip out --silent because we don't want to record it for future runs.
  1781. # Also quote any args containing shell meta-characters.
  1782. # Make two passes to allow for proper duplicate-argument suppression.
  1783. ac_configure_args=
  1784. ac_configure_args0=
  1785. ac_configure_args1=
  1786. ac_must_keep_next=false
  1787. for ac_pass in 1 2
  1788. do
  1789. for ac_arg
  1790. do
  1791. case $ac_arg in
  1792. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1793. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1794. | -silent | --silent | --silen | --sile | --sil)
  1795. continue ;;
  1796. *\'*)
  1797. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1798. esac
  1799. case $ac_pass in
  1800. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1801. 2)
  1802. as_fn_append ac_configure_args1 " '$ac_arg'"
  1803. if test $ac_must_keep_next = true; then
  1804. ac_must_keep_next=false # Got value, back to normal.
  1805. else
  1806. case $ac_arg in
  1807. *=* | --config-cache | -C | -disable-* | --disable-* \
  1808. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1809. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1810. | -with-* | --with-* | -without-* | --without-* | --x)
  1811. case "$ac_configure_args0 " in
  1812. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1813. esac
  1814. ;;
  1815. -* ) ac_must_keep_next=true ;;
  1816. esac
  1817. fi
  1818. as_fn_append ac_configure_args " '$ac_arg'"
  1819. ;;
  1820. esac
  1821. done
  1822. done
  1823. { ac_configure_args0=; unset ac_configure_args0;}
  1824. { ac_configure_args1=; unset ac_configure_args1;}
  1825. # When interrupted or exit'd, cleanup temporary files, and complete
  1826. # config.log. We remove comments because anyway the quotes in there
  1827. # would cause problems or look ugly.
  1828. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1829. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1830. trap 'exit_status=$?
  1831. # Save into config.log some information that might help in debugging.
  1832. {
  1833. echo
  1834. $as_echo "## ---------------- ##
  1835. ## Cache variables. ##
  1836. ## ---------------- ##"
  1837. echo
  1838. # The following way of writing the cache mishandles newlines in values,
  1839. (
  1840. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1841. eval ac_val=\$$ac_var
  1842. case $ac_val in #(
  1843. *${as_nl}*)
  1844. case $ac_var in #(
  1845. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1846. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1847. esac
  1848. case $ac_var in #(
  1849. _ | IFS | as_nl) ;; #(
  1850. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1851. *) { eval $ac_var=; unset $ac_var;} ;;
  1852. esac ;;
  1853. esac
  1854. done
  1855. (set) 2>&1 |
  1856. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1857. *${as_nl}ac_space=\ *)
  1858. sed -n \
  1859. "s/'\''/'\''\\\\'\'''\''/g;
  1860. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1861. ;; #(
  1862. *)
  1863. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1864. ;;
  1865. esac |
  1866. sort
  1867. )
  1868. echo
  1869. $as_echo "## ----------------- ##
  1870. ## Output variables. ##
  1871. ## ----------------- ##"
  1872. echo
  1873. for ac_var in $ac_subst_vars
  1874. do
  1875. eval ac_val=\$$ac_var
  1876. case $ac_val in
  1877. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1878. esac
  1879. $as_echo "$ac_var='\''$ac_val'\''"
  1880. done | sort
  1881. echo
  1882. if test -n "$ac_subst_files"; then
  1883. $as_echo "## ------------------- ##
  1884. ## File substitutions. ##
  1885. ## ------------------- ##"
  1886. echo
  1887. for ac_var in $ac_subst_files
  1888. do
  1889. eval ac_val=\$$ac_var
  1890. case $ac_val in
  1891. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1892. esac
  1893. $as_echo "$ac_var='\''$ac_val'\''"
  1894. done | sort
  1895. echo
  1896. fi
  1897. if test -s confdefs.h; then
  1898. $as_echo "## ----------- ##
  1899. ## confdefs.h. ##
  1900. ## ----------- ##"
  1901. echo
  1902. cat confdefs.h
  1903. echo
  1904. fi
  1905. test "$ac_signal" != 0 &&
  1906. $as_echo "$as_me: caught signal $ac_signal"
  1907. $as_echo "$as_me: exit $exit_status"
  1908. } >&5
  1909. rm -f core *.core core.conftest.* &&
  1910. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1911. exit $exit_status
  1912. ' 0
  1913. for ac_signal in 1 2 13 15; do
  1914. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1915. done
  1916. ac_signal=0
  1917. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1918. rm -f -r conftest* confdefs.h
  1919. $as_echo "/* confdefs.h */" > confdefs.h
  1920. # Predefined preprocessor variables.
  1921. cat >>confdefs.h <<_ACEOF
  1922. #define PACKAGE_NAME "$PACKAGE_NAME"
  1923. _ACEOF
  1924. cat >>confdefs.h <<_ACEOF
  1925. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1926. _ACEOF
  1927. cat >>confdefs.h <<_ACEOF
  1928. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1929. _ACEOF
  1930. cat >>confdefs.h <<_ACEOF
  1931. #define PACKAGE_STRING "$PACKAGE_STRING"
  1932. _ACEOF
  1933. cat >>confdefs.h <<_ACEOF
  1934. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1935. _ACEOF
  1936. cat >>confdefs.h <<_ACEOF
  1937. #define PACKAGE_URL "$PACKAGE_URL"
  1938. _ACEOF
  1939. # Let the site file select an alternate cache file if it wants to.
  1940. # Prefer an explicitly selected file to automatically selected ones.
  1941. ac_site_file1=NONE
  1942. ac_site_file2=NONE
  1943. if test -n "$CONFIG_SITE"; then
  1944. # We do not want a PATH search for config.site.
  1945. case $CONFIG_SITE in #((
  1946. -*) ac_site_file1=./$CONFIG_SITE;;
  1947. */*) ac_site_file1=$CONFIG_SITE;;
  1948. *) ac_site_file1=./$CONFIG_SITE;;
  1949. esac
  1950. elif test "x$prefix" != xNONE; then
  1951. ac_site_file1=$prefix/share/config.site
  1952. ac_site_file2=$prefix/etc/config.site
  1953. else
  1954. ac_site_file1=$ac_default_prefix/share/config.site
  1955. ac_site_file2=$ac_default_prefix/etc/config.site
  1956. fi
  1957. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1958. do
  1959. test "x$ac_site_file" = xNONE && continue
  1960. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1962. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1963. sed 's/^/| /' "$ac_site_file" >&5
  1964. . "$ac_site_file" \
  1965. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1966. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1967. as_fn_error $? "failed to load site script $ac_site_file
  1968. See \`config.log' for more details" "$LINENO" 5; }
  1969. fi
  1970. done
  1971. if test -r "$cache_file"; then
  1972. # Some versions of bash will fail to source /dev/null (special files
  1973. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1974. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1976. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1977. case $cache_file in
  1978. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1979. *) . "./$cache_file";;
  1980. esac
  1981. fi
  1982. else
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1984. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1985. >$cache_file
  1986. fi
  1987. # Check that the precious variables saved in the cache have kept the same
  1988. # value.
  1989. ac_cache_corrupted=false
  1990. for ac_var in $ac_precious_vars; do
  1991. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1992. eval ac_new_set=\$ac_env_${ac_var}_set
  1993. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1994. eval ac_new_val=\$ac_env_${ac_var}_value
  1995. case $ac_old_set,$ac_new_set in
  1996. set,)
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1998. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1999. ac_cache_corrupted=: ;;
  2000. ,set)
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2002. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2003. ac_cache_corrupted=: ;;
  2004. ,);;
  2005. *)
  2006. if test "x$ac_old_val" != "x$ac_new_val"; then
  2007. # differences in whitespace do not lead to failure.
  2008. ac_old_val_w=`echo x $ac_old_val`
  2009. ac_new_val_w=`echo x $ac_new_val`
  2010. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2012. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2013. ac_cache_corrupted=:
  2014. else
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2016. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2017. eval $ac_var=\$ac_old_val
  2018. fi
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2020. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2021. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2022. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2023. fi;;
  2024. esac
  2025. # Pass precious variables to config.status.
  2026. if test "$ac_new_set" = set; then
  2027. case $ac_new_val in
  2028. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2029. *) ac_arg=$ac_var=$ac_new_val ;;
  2030. esac
  2031. case " $ac_configure_args " in
  2032. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2033. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2034. esac
  2035. fi
  2036. done
  2037. if $ac_cache_corrupted; then
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2039. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2041. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2042. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2043. fi
  2044. ## -------------------- ##
  2045. ## Main body of script. ##
  2046. ## -------------------- ##
  2047. ac_ext=c
  2048. ac_cpp='$CPP $CPPFLAGS'
  2049. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2050. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2051. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2052. am__api_version='1.15'
  2053. ac_aux_dir=
  2054. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2055. if test -f "$ac_dir/install-sh"; then
  2056. ac_aux_dir=$ac_dir
  2057. ac_install_sh="$ac_aux_dir/install-sh -c"
  2058. break
  2059. elif test -f "$ac_dir/install.sh"; then
  2060. ac_aux_dir=$ac_dir
  2061. ac_install_sh="$ac_aux_dir/install.sh -c"
  2062. break
  2063. elif test -f "$ac_dir/shtool"; then
  2064. ac_aux_dir=$ac_dir
  2065. ac_install_sh="$ac_aux_dir/shtool install -c"
  2066. break
  2067. fi
  2068. done
  2069. if test -z "$ac_aux_dir"; then
  2070. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2071. fi
  2072. # These three variables are undocumented and unsupported,
  2073. # and are intended to be withdrawn in a future Autoconf release.
  2074. # They can cause serious problems if a builder's source tree is in a directory
  2075. # whose full name contains unusual characters.
  2076. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2077. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2078. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2079. # Find a good install program. We prefer a C program (faster),
  2080. # so one script is as good as another. But avoid the broken or
  2081. # incompatible versions:
  2082. # SysV /etc/install, /usr/sbin/install
  2083. # SunOS /usr/etc/install
  2084. # IRIX /sbin/install
  2085. # AIX /bin/install
  2086. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2087. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2088. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2089. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2090. # OS/2's system install, which has a completely different semantic
  2091. # ./install, which can be erroneously created by make from ./install.sh.
  2092. # Reject install programs that cannot install multiple files.
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2094. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2095. if test -z "$INSTALL"; then
  2096. if ${ac_cv_path_install+:} false; then :
  2097. $as_echo_n "(cached) " >&6
  2098. else
  2099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2100. for as_dir in $PATH
  2101. do
  2102. IFS=$as_save_IFS
  2103. test -z "$as_dir" && as_dir=.
  2104. # Account for people who put trailing slashes in PATH elements.
  2105. case $as_dir/ in #((
  2106. ./ | .// | /[cC]/* | \
  2107. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2108. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2109. /usr/ucb/* ) ;;
  2110. *)
  2111. # OSF1 and SCO ODT 3.0 have their own names for install.
  2112. # Don't use installbsd from OSF since it installs stuff as root
  2113. # by default.
  2114. for ac_prog in ginstall scoinst install; do
  2115. for ac_exec_ext in '' $ac_executable_extensions; do
  2116. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2117. if test $ac_prog = install &&
  2118. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2119. # AIX install. It has an incompatible calling convention.
  2120. :
  2121. elif test $ac_prog = install &&
  2122. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2123. # program-specific install script used by HP pwplus--don't use.
  2124. :
  2125. else
  2126. rm -rf conftest.one conftest.two conftest.dir
  2127. echo one > conftest.one
  2128. echo two > conftest.two
  2129. mkdir conftest.dir
  2130. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2131. test -s conftest.one && test -s conftest.two &&
  2132. test -s conftest.dir/conftest.one &&
  2133. test -s conftest.dir/conftest.two
  2134. then
  2135. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2136. break 3
  2137. fi
  2138. fi
  2139. fi
  2140. done
  2141. done
  2142. ;;
  2143. esac
  2144. done
  2145. IFS=$as_save_IFS
  2146. rm -rf conftest.one conftest.two conftest.dir
  2147. fi
  2148. if test "${ac_cv_path_install+set}" = set; then
  2149. INSTALL=$ac_cv_path_install
  2150. else
  2151. # As a last resort, use the slow shell script. Don't cache a
  2152. # value for INSTALL within a source directory, because that will
  2153. # break other packages using the cache if that directory is
  2154. # removed, or if the value is a relative name.
  2155. INSTALL=$ac_install_sh
  2156. fi
  2157. fi
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2159. $as_echo "$INSTALL" >&6; }
  2160. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2161. # It thinks the first close brace ends the variable substitution.
  2162. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2163. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2164. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2166. $as_echo_n "checking whether build environment is sane... " >&6; }
  2167. # Reject unsafe characters in $srcdir or the absolute working directory
  2168. # name. Accept space and tab only in the latter.
  2169. am_lf='
  2170. '
  2171. case `pwd` in
  2172. *[\\\"\#\$\&\'\`$am_lf]*)
  2173. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2174. esac
  2175. case $srcdir in
  2176. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2177. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2178. esac
  2179. # Do 'set' in a subshell so we don't clobber the current shell's
  2180. # arguments. Must try -L first in case configure is actually a
  2181. # symlink; some systems play weird games with the mod time of symlinks
  2182. # (eg FreeBSD returns the mod time of the symlink's containing
  2183. # directory).
  2184. if (
  2185. am_has_slept=no
  2186. for am_try in 1 2; do
  2187. echo "timestamp, slept: $am_has_slept" > conftest.file
  2188. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2189. if test "$*" = "X"; then
  2190. # -L didn't work.
  2191. set X `ls -t "$srcdir/configure" conftest.file`
  2192. fi
  2193. if test "$*" != "X $srcdir/configure conftest.file" \
  2194. && test "$*" != "X conftest.file $srcdir/configure"; then
  2195. # If neither matched, then we have a broken ls. This can happen
  2196. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2197. # broken ls alias from the environment. This has actually
  2198. # happened. Such a system could not be considered "sane".
  2199. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2200. alias in your environment" "$LINENO" 5
  2201. fi
  2202. if test "$2" = conftest.file || test $am_try -eq 2; then
  2203. break
  2204. fi
  2205. # Just in case.
  2206. sleep 1
  2207. am_has_slept=yes
  2208. done
  2209. test "$2" = conftest.file
  2210. )
  2211. then
  2212. # Ok.
  2213. :
  2214. else
  2215. as_fn_error $? "newly created file is older than distributed files!
  2216. Check your system clock" "$LINENO" 5
  2217. fi
  2218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2219. $as_echo "yes" >&6; }
  2220. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2221. # generated files are strictly newer.
  2222. am_sleep_pid=
  2223. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2224. ( sleep 1 ) &
  2225. am_sleep_pid=$!
  2226. fi
  2227. rm -f conftest.file
  2228. test "$program_prefix" != NONE &&
  2229. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2230. # Use a double $ so make ignores it.
  2231. test "$program_suffix" != NONE &&
  2232. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2233. # Double any \ or $.
  2234. # By default was `s,x,x', remove it if useless.
  2235. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2236. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2237. # Expand $ac_aux_dir to an absolute path.
  2238. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2239. if test x"${MISSING+set}" != xset; then
  2240. case $am_aux_dir in
  2241. *\ * | *\ *)
  2242. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2243. *)
  2244. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2245. esac
  2246. fi
  2247. # Use eval to expand $SHELL
  2248. if eval "$MISSING --is-lightweight"; then
  2249. am_missing_run="$MISSING "
  2250. else
  2251. am_missing_run=
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2253. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2254. fi
  2255. if test x"${install_sh+set}" != xset; then
  2256. case $am_aux_dir in
  2257. *\ * | *\ *)
  2258. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2259. *)
  2260. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2261. esac
  2262. fi
  2263. # Installed binaries are usually stripped using 'strip' when the user
  2264. # run "make install-strip". However 'strip' might not be the right
  2265. # tool to use in cross-compilation environments, therefore Automake
  2266. # will honor the 'STRIP' environment variable to overrule this program.
  2267. if test "$cross_compiling" != no; then
  2268. if test -n "$ac_tool_prefix"; then
  2269. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2270. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2272. $as_echo_n "checking for $ac_word... " >&6; }
  2273. if ${ac_cv_prog_STRIP+:} false; then :
  2274. $as_echo_n "(cached) " >&6
  2275. else
  2276. if test -n "$STRIP"; then
  2277. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2278. else
  2279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2280. for as_dir in $PATH
  2281. do
  2282. IFS=$as_save_IFS
  2283. test -z "$as_dir" && as_dir=.
  2284. for ac_exec_ext in '' $ac_executable_extensions; do
  2285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2286. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2288. break 2
  2289. fi
  2290. done
  2291. done
  2292. IFS=$as_save_IFS
  2293. fi
  2294. fi
  2295. STRIP=$ac_cv_prog_STRIP
  2296. if test -n "$STRIP"; then
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2298. $as_echo "$STRIP" >&6; }
  2299. else
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2301. $as_echo "no" >&6; }
  2302. fi
  2303. fi
  2304. if test -z "$ac_cv_prog_STRIP"; then
  2305. ac_ct_STRIP=$STRIP
  2306. # Extract the first word of "strip", so it can be a program name with args.
  2307. set dummy strip; ac_word=$2
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2309. $as_echo_n "checking for $ac_word... " >&6; }
  2310. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2311. $as_echo_n "(cached) " >&6
  2312. else
  2313. if test -n "$ac_ct_STRIP"; then
  2314. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2323. ac_cv_prog_ac_ct_STRIP="strip"
  2324. $as_echo "$as_me:${as_lineno-$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_STRIP=$ac_cv_prog_ac_ct_STRIP
  2333. if test -n "$ac_ct_STRIP"; then
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2335. $as_echo "$ac_ct_STRIP" >&6; }
  2336. else
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2338. $as_echo "no" >&6; }
  2339. fi
  2340. if test "x$ac_ct_STRIP" = x; then
  2341. STRIP=":"
  2342. else
  2343. case $cross_compiling:$ac_tool_warned in
  2344. yes:)
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2347. ac_tool_warned=yes ;;
  2348. esac
  2349. STRIP=$ac_ct_STRIP
  2350. fi
  2351. else
  2352. STRIP="$ac_cv_prog_STRIP"
  2353. fi
  2354. fi
  2355. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2357. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2358. if test -z "$MKDIR_P"; then
  2359. if ${ac_cv_path_mkdir+:} false; then :
  2360. $as_echo_n "(cached) " >&6
  2361. else
  2362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2363. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2364. do
  2365. IFS=$as_save_IFS
  2366. test -z "$as_dir" && as_dir=.
  2367. for ac_prog in mkdir gmkdir; do
  2368. for ac_exec_ext in '' $ac_executable_extensions; do
  2369. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2370. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2371. 'mkdir (GNU coreutils) '* | \
  2372. 'mkdir (coreutils) '* | \
  2373. 'mkdir (fileutils) '4.1*)
  2374. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2375. break 3;;
  2376. esac
  2377. done
  2378. done
  2379. done
  2380. IFS=$as_save_IFS
  2381. fi
  2382. test -d ./--version && rmdir ./--version
  2383. if test "${ac_cv_path_mkdir+set}" = set; then
  2384. MKDIR_P="$ac_cv_path_mkdir -p"
  2385. else
  2386. # As a last resort, use the slow shell script. Don't cache a
  2387. # value for MKDIR_P within a source directory, because that will
  2388. # break other packages using the cache if that directory is
  2389. # removed, or if the value is a relative name.
  2390. MKDIR_P="$ac_install_sh -d"
  2391. fi
  2392. fi
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2394. $as_echo "$MKDIR_P" >&6; }
  2395. for ac_prog in gawk mawk nawk awk
  2396. do
  2397. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2398. set dummy $ac_prog; ac_word=$2
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2400. $as_echo_n "checking for $ac_word... " >&6; }
  2401. if ${ac_cv_prog_AWK+:} false; then :
  2402. $as_echo_n "(cached) " >&6
  2403. else
  2404. if test -n "$AWK"; then
  2405. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2406. else
  2407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2408. for as_dir in $PATH
  2409. do
  2410. IFS=$as_save_IFS
  2411. test -z "$as_dir" && as_dir=.
  2412. for ac_exec_ext in '' $ac_executable_extensions; do
  2413. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2414. ac_cv_prog_AWK="$ac_prog"
  2415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2416. break 2
  2417. fi
  2418. done
  2419. done
  2420. IFS=$as_save_IFS
  2421. fi
  2422. fi
  2423. AWK=$ac_cv_prog_AWK
  2424. if test -n "$AWK"; then
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2426. $as_echo "$AWK" >&6; }
  2427. else
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2429. $as_echo "no" >&6; }
  2430. fi
  2431. test -n "$AWK" && break
  2432. done
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2434. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2435. set x ${MAKE-make}
  2436. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2437. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2438. $as_echo_n "(cached) " >&6
  2439. else
  2440. cat >conftest.make <<\_ACEOF
  2441. SHELL = /bin/sh
  2442. all:
  2443. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2444. _ACEOF
  2445. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2446. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2447. *@@@%%%=?*=@@@%%%*)
  2448. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2449. *)
  2450. eval ac_cv_prog_make_${ac_make}_set=no;;
  2451. esac
  2452. rm -f conftest.make
  2453. fi
  2454. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2456. $as_echo "yes" >&6; }
  2457. SET_MAKE=
  2458. else
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2460. $as_echo "no" >&6; }
  2461. SET_MAKE="MAKE=${MAKE-make}"
  2462. fi
  2463. rm -rf .tst 2>/dev/null
  2464. mkdir .tst 2>/dev/null
  2465. if test -d .tst; then
  2466. am__leading_dot=.
  2467. else
  2468. am__leading_dot=_
  2469. fi
  2470. rmdir .tst 2>/dev/null
  2471. # Check whether --enable-silent-rules was given.
  2472. if test "${enable_silent_rules+set}" = set; then :
  2473. enableval=$enable_silent_rules;
  2474. fi
  2475. case $enable_silent_rules in # (((
  2476. yes) AM_DEFAULT_VERBOSITY=0;;
  2477. no) AM_DEFAULT_VERBOSITY=1;;
  2478. *) AM_DEFAULT_VERBOSITY=1;;
  2479. esac
  2480. am_make=${MAKE-make}
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2482. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2483. if ${am_cv_make_support_nested_variables+:} false; then :
  2484. $as_echo_n "(cached) " >&6
  2485. else
  2486. if $as_echo 'TRUE=$(BAR$(V))
  2487. BAR0=false
  2488. BAR1=true
  2489. V=1
  2490. am__doit:
  2491. @$(TRUE)
  2492. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2493. am_cv_make_support_nested_variables=yes
  2494. else
  2495. am_cv_make_support_nested_variables=no
  2496. fi
  2497. fi
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2499. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2500. if test $am_cv_make_support_nested_variables = yes; then
  2501. AM_V='$(V)'
  2502. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2503. else
  2504. AM_V=$AM_DEFAULT_VERBOSITY
  2505. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2506. fi
  2507. AM_BACKSLASH='\'
  2508. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2509. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2510. # is not polluted with repeated "-I."
  2511. am__isrc=' -I$(srcdir)'
  2512. # test to see if srcdir already configured
  2513. if test -f $srcdir/config.status; then
  2514. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2515. fi
  2516. fi
  2517. # test whether we have cygpath
  2518. if test -z "$CYGPATH_W"; then
  2519. if (cygpath --version) >/dev/null 2>/dev/null; then
  2520. CYGPATH_W='cygpath -w'
  2521. else
  2522. CYGPATH_W=echo
  2523. fi
  2524. fi
  2525. # Define the identity of the package.
  2526. PACKAGE='godotapkfixer-'
  2527. VERSION='1.0'
  2528. cat >>confdefs.h <<_ACEOF
  2529. #define PACKAGE "$PACKAGE"
  2530. _ACEOF
  2531. cat >>confdefs.h <<_ACEOF
  2532. #define VERSION "$VERSION"
  2533. _ACEOF
  2534. # Some tools Automake needs.
  2535. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2536. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2537. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2538. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2539. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2540. # For better backward compatibility. To be removed once Automake 1.9.x
  2541. # dies out for good. For more background, see:
  2542. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2543. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2544. mkdir_p='$(MKDIR_P)'
  2545. # We need awk for the "check" target (and possibly the TAP driver). The
  2546. # system "awk" is bad on some platforms.
  2547. # Always define AMTAR for backward compatibility. Yes, it's still used
  2548. # in the wild :-( We should find a proper way to deprecate it ...
  2549. AMTAR='$${TAR-tar}'
  2550. # We'll loop over all known methods to create a tar archive until one works.
  2551. _am_tools='gnutar pax cpio none'
  2552. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2553. # POSIX will say in a future version that running "rm -f" with no argument
  2554. # is OK; and we want to be able to make that assumption in our Makefile
  2555. # recipes. So use an aggressive probe to check that the usage we want is
  2556. # actually supported "in the wild" to an acceptable degree.
  2557. # See automake bug#10828.
  2558. # To make any issue more visible, cause the running configure to be aborted
  2559. # by default if the 'rm' program in use doesn't match our expectations; the
  2560. # user can still override this though.
  2561. if rm -f && rm -fr && rm -rf; then : OK; else
  2562. cat >&2 <<'END'
  2563. Oops!
  2564. Your 'rm' program seems unable to run without file operands specified
  2565. on the command line, even when the '-f' option is present. This is contrary
  2566. to the behaviour of most rm programs out there, and not conforming with
  2567. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2568. Please tell bug-automake@gnu.org about your system, including the value
  2569. of your $PATH and any error possibly output before this message. This
  2570. can help us improve future automake versions.
  2571. END
  2572. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2573. echo 'Configuration will proceed anyway, since you have set the' >&2
  2574. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2575. echo >&2
  2576. else
  2577. cat >&2 <<'END'
  2578. Aborting the configuration process, to ensure you take notice of the issue.
  2579. You can download and install GNU coreutils to get an 'rm' implementation
  2580. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2581. If you want to complete the configuration process using your problematic
  2582. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2583. to "yes", and re-run configure.
  2584. END
  2585. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2586. fi
  2587. fi
  2588. ac_ext=c
  2589. ac_cpp='$CPP $CPPFLAGS'
  2590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2593. if test -n "$ac_tool_prefix"; then
  2594. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2595. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2597. $as_echo_n "checking for $ac_word... " >&6; }
  2598. if ${ac_cv_prog_CC+:} false; then :
  2599. $as_echo_n "(cached) " >&6
  2600. else
  2601. if test -n "$CC"; then
  2602. ac_cv_prog_CC="$CC" # Let the user override the test.
  2603. else
  2604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2605. for as_dir in $PATH
  2606. do
  2607. IFS=$as_save_IFS
  2608. test -z "$as_dir" && as_dir=.
  2609. for ac_exec_ext in '' $ac_executable_extensions; do
  2610. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2611. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2613. break 2
  2614. fi
  2615. done
  2616. done
  2617. IFS=$as_save_IFS
  2618. fi
  2619. fi
  2620. CC=$ac_cv_prog_CC
  2621. if test -n "$CC"; then
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2623. $as_echo "$CC" >&6; }
  2624. else
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2626. $as_echo "no" >&6; }
  2627. fi
  2628. fi
  2629. if test -z "$ac_cv_prog_CC"; then
  2630. ac_ct_CC=$CC
  2631. # Extract the first word of "gcc", so it can be a program name with args.
  2632. set dummy gcc; ac_word=$2
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2634. $as_echo_n "checking for $ac_word... " >&6; }
  2635. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2636. $as_echo_n "(cached) " >&6
  2637. else
  2638. if test -n "$ac_ct_CC"; then
  2639. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2640. else
  2641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2642. for as_dir in $PATH
  2643. do
  2644. IFS=$as_save_IFS
  2645. test -z "$as_dir" && as_dir=.
  2646. for ac_exec_ext in '' $ac_executable_extensions; do
  2647. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2648. ac_cv_prog_ac_ct_CC="gcc"
  2649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2650. break 2
  2651. fi
  2652. done
  2653. done
  2654. IFS=$as_save_IFS
  2655. fi
  2656. fi
  2657. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2658. if test -n "$ac_ct_CC"; then
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2660. $as_echo "$ac_ct_CC" >&6; }
  2661. else
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2663. $as_echo "no" >&6; }
  2664. fi
  2665. if test "x$ac_ct_CC" = x; then
  2666. CC=""
  2667. else
  2668. case $cross_compiling:$ac_tool_warned in
  2669. yes:)
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2671. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2672. ac_tool_warned=yes ;;
  2673. esac
  2674. CC=$ac_ct_CC
  2675. fi
  2676. else
  2677. CC="$ac_cv_prog_CC"
  2678. fi
  2679. if test -z "$CC"; then
  2680. if test -n "$ac_tool_prefix"; then
  2681. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2682. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2684. $as_echo_n "checking for $ac_word... " >&6; }
  2685. if ${ac_cv_prog_CC+:} false; then :
  2686. $as_echo_n "(cached) " >&6
  2687. else
  2688. if test -n "$CC"; then
  2689. ac_cv_prog_CC="$CC" # Let the user override the test.
  2690. else
  2691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2692. for as_dir in $PATH
  2693. do
  2694. IFS=$as_save_IFS
  2695. test -z "$as_dir" && as_dir=.
  2696. for ac_exec_ext in '' $ac_executable_extensions; do
  2697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2698. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2700. break 2
  2701. fi
  2702. done
  2703. done
  2704. IFS=$as_save_IFS
  2705. fi
  2706. fi
  2707. CC=$ac_cv_prog_CC
  2708. if test -n "$CC"; then
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2710. $as_echo "$CC" >&6; }
  2711. else
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2713. $as_echo "no" >&6; }
  2714. fi
  2715. fi
  2716. fi
  2717. if test -z "$CC"; then
  2718. # Extract the first word of "cc", so it can be a program name with args.
  2719. set dummy cc; ac_word=$2
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2721. $as_echo_n "checking for $ac_word... " >&6; }
  2722. if ${ac_cv_prog_CC+:} false; then :
  2723. $as_echo_n "(cached) " >&6
  2724. else
  2725. if test -n "$CC"; then
  2726. ac_cv_prog_CC="$CC" # Let the user override the test.
  2727. else
  2728. ac_prog_rejected=no
  2729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2730. for as_dir in $PATH
  2731. do
  2732. IFS=$as_save_IFS
  2733. test -z "$as_dir" && as_dir=.
  2734. for ac_exec_ext in '' $ac_executable_extensions; do
  2735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2736. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2737. ac_prog_rejected=yes
  2738. continue
  2739. fi
  2740. ac_cv_prog_CC="cc"
  2741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2742. break 2
  2743. fi
  2744. done
  2745. done
  2746. IFS=$as_save_IFS
  2747. if test $ac_prog_rejected = yes; then
  2748. # We found a bogon in the path, so make sure we never use it.
  2749. set dummy $ac_cv_prog_CC
  2750. shift
  2751. if test $# != 0; then
  2752. # We chose a different compiler from the bogus one.
  2753. # However, it has the same basename, so the bogon will be chosen
  2754. # first if we set CC to just the basename; use the full file name.
  2755. shift
  2756. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2757. fi
  2758. fi
  2759. fi
  2760. fi
  2761. CC=$ac_cv_prog_CC
  2762. if test -n "$CC"; then
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2764. $as_echo "$CC" >&6; }
  2765. else
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2767. $as_echo "no" >&6; }
  2768. fi
  2769. fi
  2770. if test -z "$CC"; then
  2771. if test -n "$ac_tool_prefix"; then
  2772. for ac_prog in cl.exe
  2773. do
  2774. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2775. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2777. $as_echo_n "checking for $ac_word... " >&6; }
  2778. if ${ac_cv_prog_CC+:} false; then :
  2779. $as_echo_n "(cached) " >&6
  2780. else
  2781. if test -n "$CC"; then
  2782. ac_cv_prog_CC="$CC" # Let the user override the test.
  2783. else
  2784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2785. for as_dir in $PATH
  2786. do
  2787. IFS=$as_save_IFS
  2788. test -z "$as_dir" && as_dir=.
  2789. for ac_exec_ext in '' $ac_executable_extensions; do
  2790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2791. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2793. break 2
  2794. fi
  2795. done
  2796. done
  2797. IFS=$as_save_IFS
  2798. fi
  2799. fi
  2800. CC=$ac_cv_prog_CC
  2801. if test -n "$CC"; then
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2803. $as_echo "$CC" >&6; }
  2804. else
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2806. $as_echo "no" >&6; }
  2807. fi
  2808. test -n "$CC" && break
  2809. done
  2810. fi
  2811. if test -z "$CC"; then
  2812. ac_ct_CC=$CC
  2813. for ac_prog in cl.exe
  2814. do
  2815. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2816. set dummy $ac_prog; ac_word=$2
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2818. $as_echo_n "checking for $ac_word... " >&6; }
  2819. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2820. $as_echo_n "(cached) " >&6
  2821. else
  2822. if test -n "$ac_ct_CC"; then
  2823. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2824. else
  2825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2826. for as_dir in $PATH
  2827. do
  2828. IFS=$as_save_IFS
  2829. test -z "$as_dir" && as_dir=.
  2830. for ac_exec_ext in '' $ac_executable_extensions; do
  2831. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2832. ac_cv_prog_ac_ct_CC="$ac_prog"
  2833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2834. break 2
  2835. fi
  2836. done
  2837. done
  2838. IFS=$as_save_IFS
  2839. fi
  2840. fi
  2841. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2842. if test -n "$ac_ct_CC"; then
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2844. $as_echo "$ac_ct_CC" >&6; }
  2845. else
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2847. $as_echo "no" >&6; }
  2848. fi
  2849. test -n "$ac_ct_CC" && break
  2850. done
  2851. if test "x$ac_ct_CC" = x; then
  2852. CC=""
  2853. else
  2854. case $cross_compiling:$ac_tool_warned in
  2855. yes:)
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2857. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2858. ac_tool_warned=yes ;;
  2859. esac
  2860. CC=$ac_ct_CC
  2861. fi
  2862. fi
  2863. fi
  2864. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2865. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2866. as_fn_error $? "no acceptable C compiler found in \$PATH
  2867. See \`config.log' for more details" "$LINENO" 5; }
  2868. # Provide some information about the compiler.
  2869. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2870. set X $ac_compile
  2871. ac_compiler=$2
  2872. for ac_option in --version -v -V -qversion; do
  2873. { { ac_try="$ac_compiler $ac_option >&5"
  2874. case "(($ac_try" in
  2875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2876. *) ac_try_echo=$ac_try;;
  2877. esac
  2878. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2879. $as_echo "$ac_try_echo"; } >&5
  2880. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2881. ac_status=$?
  2882. if test -s conftest.err; then
  2883. sed '10a\
  2884. ... rest of stderr output deleted ...
  2885. 10q' conftest.err >conftest.er1
  2886. cat conftest.er1 >&5
  2887. fi
  2888. rm -f conftest.er1 conftest.err
  2889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2890. test $ac_status = 0; }
  2891. done
  2892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2893. /* end confdefs.h. */
  2894. int
  2895. main ()
  2896. {
  2897. ;
  2898. return 0;
  2899. }
  2900. _ACEOF
  2901. ac_clean_files_save=$ac_clean_files
  2902. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2903. # Try to create an executable without -o first, disregard a.out.
  2904. # It will help us diagnose broken compilers, and finding out an intuition
  2905. # of exeext.
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2907. $as_echo_n "checking whether the C compiler works... " >&6; }
  2908. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2909. # The possible output files:
  2910. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2911. ac_rmfiles=
  2912. for ac_file in $ac_files
  2913. do
  2914. case $ac_file in
  2915. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2916. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2917. esac
  2918. done
  2919. rm -f $ac_rmfiles
  2920. if { { ac_try="$ac_link_default"
  2921. case "(($ac_try" in
  2922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2923. *) ac_try_echo=$ac_try;;
  2924. esac
  2925. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2926. $as_echo "$ac_try_echo"; } >&5
  2927. (eval "$ac_link_default") 2>&5
  2928. ac_status=$?
  2929. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2930. test $ac_status = 0; }; then :
  2931. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2932. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2933. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2934. # so that the user can short-circuit this test for compilers unknown to
  2935. # Autoconf.
  2936. for ac_file in $ac_files ''
  2937. do
  2938. test -f "$ac_file" || continue
  2939. case $ac_file in
  2940. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2941. ;;
  2942. [ab].out )
  2943. # We found the default executable, but exeext='' is most
  2944. # certainly right.
  2945. break;;
  2946. *.* )
  2947. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2948. then :; else
  2949. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2950. fi
  2951. # We set ac_cv_exeext here because the later test for it is not
  2952. # safe: cross compilers may not add the suffix if given an `-o'
  2953. # argument, so we may need to know it at that point already.
  2954. # Even if this section looks crufty: it has the advantage of
  2955. # actually working.
  2956. break;;
  2957. * )
  2958. break;;
  2959. esac
  2960. done
  2961. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2962. else
  2963. ac_file=''
  2964. fi
  2965. if test -z "$ac_file"; then :
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2967. $as_echo "no" >&6; }
  2968. $as_echo "$as_me: failed program was:" >&5
  2969. sed 's/^/| /' conftest.$ac_ext >&5
  2970. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2971. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2972. as_fn_error 77 "C compiler cannot create executables
  2973. See \`config.log' for more details" "$LINENO" 5; }
  2974. else
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2976. $as_echo "yes" >&6; }
  2977. fi
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2979. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2981. $as_echo "$ac_file" >&6; }
  2982. ac_exeext=$ac_cv_exeext
  2983. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2984. ac_clean_files=$ac_clean_files_save
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2986. $as_echo_n "checking for suffix of executables... " >&6; }
  2987. if { { ac_try="$ac_link"
  2988. case "(($ac_try" in
  2989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2990. *) ac_try_echo=$ac_try;;
  2991. esac
  2992. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2993. $as_echo "$ac_try_echo"; } >&5
  2994. (eval "$ac_link") 2>&5
  2995. ac_status=$?
  2996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2997. test $ac_status = 0; }; then :
  2998. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2999. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3000. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3001. # `rm'.
  3002. for ac_file in conftest.exe conftest conftest.*; do
  3003. test -f "$ac_file" || continue
  3004. case $ac_file in
  3005. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3006. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3007. break;;
  3008. * ) break;;
  3009. esac
  3010. done
  3011. else
  3012. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3013. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3014. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3015. See \`config.log' for more details" "$LINENO" 5; }
  3016. fi
  3017. rm -f conftest conftest$ac_cv_exeext
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3019. $as_echo "$ac_cv_exeext" >&6; }
  3020. rm -f conftest.$ac_ext
  3021. EXEEXT=$ac_cv_exeext
  3022. ac_exeext=$EXEEXT
  3023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3024. /* end confdefs.h. */
  3025. #include <stdio.h>
  3026. int
  3027. main ()
  3028. {
  3029. FILE *f = fopen ("conftest.out", "w");
  3030. return ferror (f) || fclose (f) != 0;
  3031. ;
  3032. return 0;
  3033. }
  3034. _ACEOF
  3035. ac_clean_files="$ac_clean_files conftest.out"
  3036. # Check that the compiler produces executables we can run. If not, either
  3037. # the compiler is broken, or we cross compile.
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3039. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3040. if test "$cross_compiling" != yes; then
  3041. { { ac_try="$ac_link"
  3042. case "(($ac_try" in
  3043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3044. *) ac_try_echo=$ac_try;;
  3045. esac
  3046. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3047. $as_echo "$ac_try_echo"; } >&5
  3048. (eval "$ac_link") 2>&5
  3049. ac_status=$?
  3050. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3051. test $ac_status = 0; }
  3052. if { ac_try='./conftest$ac_cv_exeext'
  3053. { { case "(($ac_try" in
  3054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3055. *) ac_try_echo=$ac_try;;
  3056. esac
  3057. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3058. $as_echo "$ac_try_echo"; } >&5
  3059. (eval "$ac_try") 2>&5
  3060. ac_status=$?
  3061. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3062. test $ac_status = 0; }; }; then
  3063. cross_compiling=no
  3064. else
  3065. if test "$cross_compiling" = maybe; then
  3066. cross_compiling=yes
  3067. else
  3068. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3070. as_fn_error $? "cannot run C compiled programs.
  3071. If you meant to cross compile, use \`--host'.
  3072. See \`config.log' for more details" "$LINENO" 5; }
  3073. fi
  3074. fi
  3075. fi
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3077. $as_echo "$cross_compiling" >&6; }
  3078. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3079. ac_clean_files=$ac_clean_files_save
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3081. $as_echo_n "checking for suffix of object files... " >&6; }
  3082. if ${ac_cv_objext+:} false; then :
  3083. $as_echo_n "(cached) " >&6
  3084. else
  3085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3086. /* end confdefs.h. */
  3087. int
  3088. main ()
  3089. {
  3090. ;
  3091. return 0;
  3092. }
  3093. _ACEOF
  3094. rm -f conftest.o conftest.obj
  3095. if { { ac_try="$ac_compile"
  3096. case "(($ac_try" in
  3097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3098. *) ac_try_echo=$ac_try;;
  3099. esac
  3100. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3101. $as_echo "$ac_try_echo"; } >&5
  3102. (eval "$ac_compile") 2>&5
  3103. ac_status=$?
  3104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3105. test $ac_status = 0; }; then :
  3106. for ac_file in conftest.o conftest.obj conftest.*; do
  3107. test -f "$ac_file" || continue;
  3108. case $ac_file in
  3109. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3110. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3111. break;;
  3112. esac
  3113. done
  3114. else
  3115. $as_echo "$as_me: failed program was:" >&5
  3116. sed 's/^/| /' conftest.$ac_ext >&5
  3117. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3118. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3119. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3120. See \`config.log' for more details" "$LINENO" 5; }
  3121. fi
  3122. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3123. fi
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3125. $as_echo "$ac_cv_objext" >&6; }
  3126. OBJEXT=$ac_cv_objext
  3127. ac_objext=$OBJEXT
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3129. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3130. if ${ac_cv_c_compiler_gnu+:} false; then :
  3131. $as_echo_n "(cached) " >&6
  3132. else
  3133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3134. /* end confdefs.h. */
  3135. int
  3136. main ()
  3137. {
  3138. #ifndef __GNUC__
  3139. choke me
  3140. #endif
  3141. ;
  3142. return 0;
  3143. }
  3144. _ACEOF
  3145. if ac_fn_c_try_compile "$LINENO"; then :
  3146. ac_compiler_gnu=yes
  3147. else
  3148. ac_compiler_gnu=no
  3149. fi
  3150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3151. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3152. fi
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3154. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3155. if test $ac_compiler_gnu = yes; then
  3156. GCC=yes
  3157. else
  3158. GCC=
  3159. fi
  3160. ac_test_CFLAGS=${CFLAGS+set}
  3161. ac_save_CFLAGS=$CFLAGS
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3163. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3164. if ${ac_cv_prog_cc_g+:} false; then :
  3165. $as_echo_n "(cached) " >&6
  3166. else
  3167. ac_save_c_werror_flag=$ac_c_werror_flag
  3168. ac_c_werror_flag=yes
  3169. ac_cv_prog_cc_g=no
  3170. CFLAGS="-g"
  3171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3172. /* end confdefs.h. */
  3173. int
  3174. main ()
  3175. {
  3176. ;
  3177. return 0;
  3178. }
  3179. _ACEOF
  3180. if ac_fn_c_try_compile "$LINENO"; then :
  3181. ac_cv_prog_cc_g=yes
  3182. else
  3183. CFLAGS=""
  3184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3185. /* end confdefs.h. */
  3186. int
  3187. main ()
  3188. {
  3189. ;
  3190. return 0;
  3191. }
  3192. _ACEOF
  3193. if ac_fn_c_try_compile "$LINENO"; then :
  3194. else
  3195. ac_c_werror_flag=$ac_save_c_werror_flag
  3196. CFLAGS="-g"
  3197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3198. /* end confdefs.h. */
  3199. int
  3200. main ()
  3201. {
  3202. ;
  3203. return 0;
  3204. }
  3205. _ACEOF
  3206. if ac_fn_c_try_compile "$LINENO"; then :
  3207. ac_cv_prog_cc_g=yes
  3208. fi
  3209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3210. fi
  3211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3212. fi
  3213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3214. ac_c_werror_flag=$ac_save_c_werror_flag
  3215. fi
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3217. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3218. if test "$ac_test_CFLAGS" = set; then
  3219. CFLAGS=$ac_save_CFLAGS
  3220. elif test $ac_cv_prog_cc_g = yes; then
  3221. if test "$GCC" = yes; then
  3222. CFLAGS="-g -O2"
  3223. else
  3224. CFLAGS="-g"
  3225. fi
  3226. else
  3227. if test "$GCC" = yes; then
  3228. CFLAGS="-O2"
  3229. else
  3230. CFLAGS=
  3231. fi
  3232. fi
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3234. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3235. if ${ac_cv_prog_cc_c89+:} false; then :
  3236. $as_echo_n "(cached) " >&6
  3237. else
  3238. ac_cv_prog_cc_c89=no
  3239. ac_save_CC=$CC
  3240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3241. /* end confdefs.h. */
  3242. #include <stdarg.h>
  3243. #include <stdio.h>
  3244. struct stat;
  3245. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3246. struct buf { int x; };
  3247. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3248. static char *e (p, i)
  3249. char **p;
  3250. int i;
  3251. {
  3252. return p[i];
  3253. }
  3254. static char *f (char * (*g) (char **, int), char **p, ...)
  3255. {
  3256. char *s;
  3257. va_list v;
  3258. va_start (v,p);
  3259. s = g (p, va_arg (v,int));
  3260. va_end (v);
  3261. return s;
  3262. }
  3263. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3264. function prototypes and stuff, but not '\xHH' hex character constants.
  3265. These don't provoke an error unfortunately, instead are silently treated
  3266. as 'x'. The following induces an error, until -std is added to get
  3267. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3268. array size at least. It's necessary to write '\x00'==0 to get something
  3269. that's true only with -std. */
  3270. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3271. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3272. inside strings and character constants. */
  3273. #define FOO(x) 'x'
  3274. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3275. int test (int i, double x);
  3276. struct s1 {int (*f) (int a);};
  3277. struct s2 {int (*f) (double a);};
  3278. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3279. int argc;
  3280. char **argv;
  3281. int
  3282. main ()
  3283. {
  3284. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3285. ;
  3286. return 0;
  3287. }
  3288. _ACEOF
  3289. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3290. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3291. do
  3292. CC="$ac_save_CC $ac_arg"
  3293. if ac_fn_c_try_compile "$LINENO"; then :
  3294. ac_cv_prog_cc_c89=$ac_arg
  3295. fi
  3296. rm -f core conftest.err conftest.$ac_objext
  3297. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3298. done
  3299. rm -f conftest.$ac_ext
  3300. CC=$ac_save_CC
  3301. fi
  3302. # AC_CACHE_VAL
  3303. case "x$ac_cv_prog_cc_c89" in
  3304. x)
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3306. $as_echo "none needed" >&6; } ;;
  3307. xno)
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3309. $as_echo "unsupported" >&6; } ;;
  3310. *)
  3311. CC="$CC $ac_cv_prog_cc_c89"
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3313. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3314. esac
  3315. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3316. fi
  3317. ac_ext=c
  3318. ac_cpp='$CPP $CPPFLAGS'
  3319. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3320. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3321. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3322. ac_ext=c
  3323. ac_cpp='$CPP $CPPFLAGS'
  3324. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3325. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3326. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3328. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3329. if ${am_cv_prog_cc_c_o+:} false; then :
  3330. $as_echo_n "(cached) " >&6
  3331. else
  3332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3333. /* end confdefs.h. */
  3334. int
  3335. main ()
  3336. {
  3337. ;
  3338. return 0;
  3339. }
  3340. _ACEOF
  3341. # Make sure it works both with $CC and with simple cc.
  3342. # Following AC_PROG_CC_C_O, we do the test twice because some
  3343. # compilers refuse to overwrite an existing .o file with -o,
  3344. # though they will create one.
  3345. am_cv_prog_cc_c_o=yes
  3346. for am_i in 1 2; do
  3347. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3348. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3349. ac_status=$?
  3350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3351. (exit $ac_status); } \
  3352. && test -f conftest2.$ac_objext; then
  3353. : OK
  3354. else
  3355. am_cv_prog_cc_c_o=no
  3356. break
  3357. fi
  3358. done
  3359. rm -f core conftest*
  3360. unset am_i
  3361. fi
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3363. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3364. if test "$am_cv_prog_cc_c_o" != yes; then
  3365. # Losing compiler, so override with the script.
  3366. # FIXME: It is wrong to rewrite CC.
  3367. # But if we don't then we get into trouble of one sort or another.
  3368. # A longer-term fix would be to have automake use am__CC in this case,
  3369. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3370. CC="$am_aux_dir/compile $CC"
  3371. fi
  3372. ac_ext=c
  3373. ac_cpp='$CPP $CPPFLAGS'
  3374. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3375. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3376. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3377. DEPDIR="${am__leading_dot}deps"
  3378. ac_config_commands="$ac_config_commands depfiles"
  3379. am_make=${MAKE-make}
  3380. cat > confinc << 'END'
  3381. am__doit:
  3382. @echo this is the am__doit target
  3383. .PHONY: am__doit
  3384. END
  3385. # If we don't find an include directive, just comment out the code.
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3387. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3388. am__include="#"
  3389. am__quote=
  3390. _am_result=none
  3391. # First try GNU make style include.
  3392. echo "include confinc" > confmf
  3393. # Ignore all kinds of additional output from 'make'.
  3394. case `$am_make -s -f confmf 2> /dev/null` in #(
  3395. *the\ am__doit\ target*)
  3396. am__include=include
  3397. am__quote=
  3398. _am_result=GNU
  3399. ;;
  3400. esac
  3401. # Now try BSD make style include.
  3402. if test "$am__include" = "#"; then
  3403. echo '.include "confinc"' > confmf
  3404. case `$am_make -s -f confmf 2> /dev/null` in #(
  3405. *the\ am__doit\ target*)
  3406. am__include=.include
  3407. am__quote="\""
  3408. _am_result=BSD
  3409. ;;
  3410. esac
  3411. fi
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3413. $as_echo "$_am_result" >&6; }
  3414. rm -f confinc confmf
  3415. # Check whether --enable-dependency-tracking was given.
  3416. if test "${enable_dependency_tracking+set}" = set; then :
  3417. enableval=$enable_dependency_tracking;
  3418. fi
  3419. if test "x$enable_dependency_tracking" != xno; then
  3420. am_depcomp="$ac_aux_dir/depcomp"
  3421. AMDEPBACKSLASH='\'
  3422. am__nodep='_no'
  3423. fi
  3424. if test "x$enable_dependency_tracking" != xno; then
  3425. AMDEP_TRUE=
  3426. AMDEP_FALSE='#'
  3427. else
  3428. AMDEP_TRUE='#'
  3429. AMDEP_FALSE=
  3430. fi
  3431. depcc="$CC" am_compiler_list=
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3433. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3434. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3435. $as_echo_n "(cached) " >&6
  3436. else
  3437. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3438. # We make a subdir and do the tests there. Otherwise we can end up
  3439. # making bogus files that we don't know about and never remove. For
  3440. # instance it was reported that on HP-UX the gcc test will end up
  3441. # making a dummy file named 'D' -- because '-MD' means "put the output
  3442. # in D".
  3443. rm -rf conftest.dir
  3444. mkdir conftest.dir
  3445. # Copy depcomp to subdir because otherwise we won't find it if we're
  3446. # using a relative directory.
  3447. cp "$am_depcomp" conftest.dir
  3448. cd conftest.dir
  3449. # We will build objects and dependencies in a subdirectory because
  3450. # it helps to detect inapplicable dependency modes. For instance
  3451. # both Tru64's cc and ICC support -MD to output dependencies as a
  3452. # side effect of compilation, but ICC will put the dependencies in
  3453. # the current directory while Tru64 will put them in the object
  3454. # directory.
  3455. mkdir sub
  3456. am_cv_CC_dependencies_compiler_type=none
  3457. if test "$am_compiler_list" = ""; then
  3458. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3459. fi
  3460. am__universal=false
  3461. case " $depcc " in #(
  3462. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3463. esac
  3464. for depmode in $am_compiler_list; do
  3465. # Setup a source with many dependencies, because some compilers
  3466. # like to wrap large dependency lists on column 80 (with \), and
  3467. # we should not choose a depcomp mode which is confused by this.
  3468. #
  3469. # We need to recreate these files for each test, as the compiler may
  3470. # overwrite some of them when testing with obscure command lines.
  3471. # This happens at least with the AIX C compiler.
  3472. : > sub/conftest.c
  3473. for i in 1 2 3 4 5 6; do
  3474. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3475. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3476. # Solaris 10 /bin/sh.
  3477. echo '/* dummy */' > sub/conftst$i.h
  3478. done
  3479. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3480. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3481. # mode. It turns out that the SunPro C++ compiler does not properly
  3482. # handle '-M -o', and we need to detect this. Also, some Intel
  3483. # versions had trouble with output in subdirs.
  3484. am__obj=sub/conftest.${OBJEXT-o}
  3485. am__minus_obj="-o $am__obj"
  3486. case $depmode in
  3487. gcc)
  3488. # This depmode causes a compiler race in universal mode.
  3489. test "$am__universal" = false || continue
  3490. ;;
  3491. nosideeffect)
  3492. # After this tag, mechanisms are not by side-effect, so they'll
  3493. # only be used when explicitly requested.
  3494. if test "x$enable_dependency_tracking" = xyes; then
  3495. continue
  3496. else
  3497. break
  3498. fi
  3499. ;;
  3500. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3501. # This compiler won't grok '-c -o', but also, the minuso test has
  3502. # not run yet. These depmodes are late enough in the game, and
  3503. # so weak that their functioning should not be impacted.
  3504. am__obj=conftest.${OBJEXT-o}
  3505. am__minus_obj=
  3506. ;;
  3507. none) break ;;
  3508. esac
  3509. if depmode=$depmode \
  3510. source=sub/conftest.c object=$am__obj \
  3511. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3512. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3513. >/dev/null 2>conftest.err &&
  3514. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3515. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3516. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3517. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3518. # icc doesn't choke on unknown options, it will just issue warnings
  3519. # or remarks (even with -Werror). So we grep stderr for any message
  3520. # that says an option was ignored or not supported.
  3521. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3522. # icc: Command line warning: ignoring option '-M'; no argument required
  3523. # The diagnosis changed in icc 8.0:
  3524. # icc: Command line remark: option '-MP' not supported
  3525. if (grep 'ignoring option' conftest.err ||
  3526. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3527. am_cv_CC_dependencies_compiler_type=$depmode
  3528. break
  3529. fi
  3530. fi
  3531. done
  3532. cd ..
  3533. rm -rf conftest.dir
  3534. else
  3535. am_cv_CC_dependencies_compiler_type=none
  3536. fi
  3537. fi
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3539. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3540. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3541. if
  3542. test "x$enable_dependency_tracking" != xno \
  3543. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3544. am__fastdepCC_TRUE=
  3545. am__fastdepCC_FALSE='#'
  3546. else
  3547. am__fastdepCC_TRUE='#'
  3548. am__fastdepCC_FALSE=
  3549. fi
  3550. ac_ext=cpp
  3551. ac_cpp='$CXXCPP $CPPFLAGS'
  3552. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3553. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3554. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3555. if test -z "$CXX"; then
  3556. if test -n "$CCC"; then
  3557. CXX=$CCC
  3558. else
  3559. if test -n "$ac_tool_prefix"; then
  3560. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3561. do
  3562. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3563. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3565. $as_echo_n "checking for $ac_word... " >&6; }
  3566. if ${ac_cv_prog_CXX+:} false; then :
  3567. $as_echo_n "(cached) " >&6
  3568. else
  3569. if test -n "$CXX"; then
  3570. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3571. else
  3572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3573. for as_dir in $PATH
  3574. do
  3575. IFS=$as_save_IFS
  3576. test -z "$as_dir" && as_dir=.
  3577. for ac_exec_ext in '' $ac_executable_extensions; do
  3578. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3579. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3581. break 2
  3582. fi
  3583. done
  3584. done
  3585. IFS=$as_save_IFS
  3586. fi
  3587. fi
  3588. CXX=$ac_cv_prog_CXX
  3589. if test -n "$CXX"; then
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3591. $as_echo "$CXX" >&6; }
  3592. else
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3594. $as_echo "no" >&6; }
  3595. fi
  3596. test -n "$CXX" && break
  3597. done
  3598. fi
  3599. if test -z "$CXX"; then
  3600. ac_ct_CXX=$CXX
  3601. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3602. do
  3603. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3604. set dummy $ac_prog; ac_word=$2
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3606. $as_echo_n "checking for $ac_word... " >&6; }
  3607. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3608. $as_echo_n "(cached) " >&6
  3609. else
  3610. if test -n "$ac_ct_CXX"; then
  3611. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3612. else
  3613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3614. for as_dir in $PATH
  3615. do
  3616. IFS=$as_save_IFS
  3617. test -z "$as_dir" && as_dir=.
  3618. for ac_exec_ext in '' $ac_executable_extensions; do
  3619. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3620. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3622. break 2
  3623. fi
  3624. done
  3625. done
  3626. IFS=$as_save_IFS
  3627. fi
  3628. fi
  3629. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3630. if test -n "$ac_ct_CXX"; then
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3632. $as_echo "$ac_ct_CXX" >&6; }
  3633. else
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3635. $as_echo "no" >&6; }
  3636. fi
  3637. test -n "$ac_ct_CXX" && break
  3638. done
  3639. if test "x$ac_ct_CXX" = x; then
  3640. CXX="g++"
  3641. else
  3642. case $cross_compiling:$ac_tool_warned in
  3643. yes:)
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3645. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3646. ac_tool_warned=yes ;;
  3647. esac
  3648. CXX=$ac_ct_CXX
  3649. fi
  3650. fi
  3651. fi
  3652. fi
  3653. # Provide some information about the compiler.
  3654. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3655. set X $ac_compile
  3656. ac_compiler=$2
  3657. for ac_option in --version -v -V -qversion; do
  3658. { { ac_try="$ac_compiler $ac_option >&5"
  3659. case "(($ac_try" in
  3660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3661. *) ac_try_echo=$ac_try;;
  3662. esac
  3663. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3664. $as_echo "$ac_try_echo"; } >&5
  3665. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3666. ac_status=$?
  3667. if test -s conftest.err; then
  3668. sed '10a\
  3669. ... rest of stderr output deleted ...
  3670. 10q' conftest.err >conftest.er1
  3671. cat conftest.er1 >&5
  3672. fi
  3673. rm -f conftest.er1 conftest.err
  3674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3675. test $ac_status = 0; }
  3676. done
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3678. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3679. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3683. /* end confdefs.h. */
  3684. int
  3685. main ()
  3686. {
  3687. #ifndef __GNUC__
  3688. choke me
  3689. #endif
  3690. ;
  3691. return 0;
  3692. }
  3693. _ACEOF
  3694. if ac_fn_cxx_try_compile "$LINENO"; then :
  3695. ac_compiler_gnu=yes
  3696. else
  3697. ac_compiler_gnu=no
  3698. fi
  3699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3700. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3701. fi
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3703. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3704. if test $ac_compiler_gnu = yes; then
  3705. GXX=yes
  3706. else
  3707. GXX=
  3708. fi
  3709. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3710. ac_save_CXXFLAGS=$CXXFLAGS
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3712. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3713. if ${ac_cv_prog_cxx_g+:} false; then :
  3714. $as_echo_n "(cached) " >&6
  3715. else
  3716. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3717. ac_cxx_werror_flag=yes
  3718. ac_cv_prog_cxx_g=no
  3719. CXXFLAGS="-g"
  3720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3721. /* end confdefs.h. */
  3722. int
  3723. main ()
  3724. {
  3725. ;
  3726. return 0;
  3727. }
  3728. _ACEOF
  3729. if ac_fn_cxx_try_compile "$LINENO"; then :
  3730. ac_cv_prog_cxx_g=yes
  3731. else
  3732. CXXFLAGS=""
  3733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3734. /* end confdefs.h. */
  3735. int
  3736. main ()
  3737. {
  3738. ;
  3739. return 0;
  3740. }
  3741. _ACEOF
  3742. if ac_fn_cxx_try_compile "$LINENO"; then :
  3743. else
  3744. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3745. CXXFLAGS="-g"
  3746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3747. /* end confdefs.h. */
  3748. int
  3749. main ()
  3750. {
  3751. ;
  3752. return 0;
  3753. }
  3754. _ACEOF
  3755. if ac_fn_cxx_try_compile "$LINENO"; then :
  3756. ac_cv_prog_cxx_g=yes
  3757. fi
  3758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3759. fi
  3760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3761. fi
  3762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3763. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3764. fi
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3766. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3767. if test "$ac_test_CXXFLAGS" = set; then
  3768. CXXFLAGS=$ac_save_CXXFLAGS
  3769. elif test $ac_cv_prog_cxx_g = yes; then
  3770. if test "$GXX" = yes; then
  3771. CXXFLAGS="-g -O2"
  3772. else
  3773. CXXFLAGS="-g"
  3774. fi
  3775. else
  3776. if test "$GXX" = yes; then
  3777. CXXFLAGS="-O2"
  3778. else
  3779. CXXFLAGS=
  3780. fi
  3781. fi
  3782. ac_ext=c
  3783. ac_cpp='$CPP $CPPFLAGS'
  3784. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3785. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3786. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3787. depcc="$CXX" am_compiler_list=
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3789. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3790. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3794. # We make a subdir and do the tests there. Otherwise we can end up
  3795. # making bogus files that we don't know about and never remove. For
  3796. # instance it was reported that on HP-UX the gcc test will end up
  3797. # making a dummy file named 'D' -- because '-MD' means "put the output
  3798. # in D".
  3799. rm -rf conftest.dir
  3800. mkdir conftest.dir
  3801. # Copy depcomp to subdir because otherwise we won't find it if we're
  3802. # using a relative directory.
  3803. cp "$am_depcomp" conftest.dir
  3804. cd conftest.dir
  3805. # We will build objects and dependencies in a subdirectory because
  3806. # it helps to detect inapplicable dependency modes. For instance
  3807. # both Tru64's cc and ICC support -MD to output dependencies as a
  3808. # side effect of compilation, but ICC will put the dependencies in
  3809. # the current directory while Tru64 will put them in the object
  3810. # directory.
  3811. mkdir sub
  3812. am_cv_CXX_dependencies_compiler_type=none
  3813. if test "$am_compiler_list" = ""; then
  3814. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3815. fi
  3816. am__universal=false
  3817. case " $depcc " in #(
  3818. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3819. esac
  3820. for depmode in $am_compiler_list; do
  3821. # Setup a source with many dependencies, because some compilers
  3822. # like to wrap large dependency lists on column 80 (with \), and
  3823. # we should not choose a depcomp mode which is confused by this.
  3824. #
  3825. # We need to recreate these files for each test, as the compiler may
  3826. # overwrite some of them when testing with obscure command lines.
  3827. # This happens at least with the AIX C compiler.
  3828. : > sub/conftest.c
  3829. for i in 1 2 3 4 5 6; do
  3830. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3831. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3832. # Solaris 10 /bin/sh.
  3833. echo '/* dummy */' > sub/conftst$i.h
  3834. done
  3835. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3836. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3837. # mode. It turns out that the SunPro C++ compiler does not properly
  3838. # handle '-M -o', and we need to detect this. Also, some Intel
  3839. # versions had trouble with output in subdirs.
  3840. am__obj=sub/conftest.${OBJEXT-o}
  3841. am__minus_obj="-o $am__obj"
  3842. case $depmode in
  3843. gcc)
  3844. # This depmode causes a compiler race in universal mode.
  3845. test "$am__universal" = false || continue
  3846. ;;
  3847. nosideeffect)
  3848. # After this tag, mechanisms are not by side-effect, so they'll
  3849. # only be used when explicitly requested.
  3850. if test "x$enable_dependency_tracking" = xyes; then
  3851. continue
  3852. else
  3853. break
  3854. fi
  3855. ;;
  3856. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3857. # This compiler won't grok '-c -o', but also, the minuso test has
  3858. # not run yet. These depmodes are late enough in the game, and
  3859. # so weak that their functioning should not be impacted.
  3860. am__obj=conftest.${OBJEXT-o}
  3861. am__minus_obj=
  3862. ;;
  3863. none) break ;;
  3864. esac
  3865. if depmode=$depmode \
  3866. source=sub/conftest.c object=$am__obj \
  3867. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3868. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3869. >/dev/null 2>conftest.err &&
  3870. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3871. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3872. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3873. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3874. # icc doesn't choke on unknown options, it will just issue warnings
  3875. # or remarks (even with -Werror). So we grep stderr for any message
  3876. # that says an option was ignored or not supported.
  3877. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3878. # icc: Command line warning: ignoring option '-M'; no argument required
  3879. # The diagnosis changed in icc 8.0:
  3880. # icc: Command line remark: option '-MP' not supported
  3881. if (grep 'ignoring option' conftest.err ||
  3882. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3883. am_cv_CXX_dependencies_compiler_type=$depmode
  3884. break
  3885. fi
  3886. fi
  3887. done
  3888. cd ..
  3889. rm -rf conftest.dir
  3890. else
  3891. am_cv_CXX_dependencies_compiler_type=none
  3892. fi
  3893. fi
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3895. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3896. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3897. if
  3898. test "x$enable_dependency_tracking" != xno \
  3899. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3900. am__fastdepCXX_TRUE=
  3901. am__fastdepCXX_FALSE='#'
  3902. else
  3903. am__fastdepCXX_TRUE='#'
  3904. am__fastdepCXX_FALSE=
  3905. fi
  3906. # Make sure we can run config.sub.
  3907. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3908. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3910. $as_echo_n "checking build system type... " >&6; }
  3911. if ${ac_cv_build+:} false; then :
  3912. $as_echo_n "(cached) " >&6
  3913. else
  3914. ac_build_alias=$build_alias
  3915. test "x$ac_build_alias" = x &&
  3916. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3917. test "x$ac_build_alias" = x &&
  3918. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3919. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3920. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3921. fi
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3923. $as_echo "$ac_cv_build" >&6; }
  3924. case $ac_cv_build in
  3925. *-*-*) ;;
  3926. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3927. esac
  3928. build=$ac_cv_build
  3929. ac_save_IFS=$IFS; IFS='-'
  3930. set x $ac_cv_build
  3931. shift
  3932. build_cpu=$1
  3933. build_vendor=$2
  3934. shift; shift
  3935. # Remember, the first character of IFS is used to create $*,
  3936. # except with old shells:
  3937. build_os=$*
  3938. IFS=$ac_save_IFS
  3939. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3941. $as_echo_n "checking host system type... " >&6; }
  3942. if ${ac_cv_host+:} false; then :
  3943. $as_echo_n "(cached) " >&6
  3944. else
  3945. if test "x$host_alias" = x; then
  3946. ac_cv_host=$ac_cv_build
  3947. else
  3948. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3949. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3950. fi
  3951. fi
  3952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3953. $as_echo "$ac_cv_host" >&6; }
  3954. case $ac_cv_host in
  3955. *-*-*) ;;
  3956. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3957. esac
  3958. host=$ac_cv_host
  3959. ac_save_IFS=$IFS; IFS='-'
  3960. set x $ac_cv_host
  3961. shift
  3962. host_cpu=$1
  3963. host_vendor=$2
  3964. shift; shift
  3965. # Remember, the first character of IFS is used to create $*,
  3966. # except with old shells:
  3967. host_os=$*
  3968. IFS=$ac_save_IFS
  3969. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3970. if test -n "$ac_tool_prefix"; then
  3971. for ac_prog in ar lib "link -lib"
  3972. do
  3973. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3974. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3976. $as_echo_n "checking for $ac_word... " >&6; }
  3977. if ${ac_cv_prog_AR+:} false; then :
  3978. $as_echo_n "(cached) " >&6
  3979. else
  3980. if test -n "$AR"; then
  3981. ac_cv_prog_AR="$AR" # Let the user override the test.
  3982. else
  3983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3984. for as_dir in $PATH
  3985. do
  3986. IFS=$as_save_IFS
  3987. test -z "$as_dir" && as_dir=.
  3988. for ac_exec_ext in '' $ac_executable_extensions; do
  3989. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3990. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  3991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3992. break 2
  3993. fi
  3994. done
  3995. done
  3996. IFS=$as_save_IFS
  3997. fi
  3998. fi
  3999. AR=$ac_cv_prog_AR
  4000. if test -n "$AR"; then
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4002. $as_echo "$AR" >&6; }
  4003. else
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4005. $as_echo "no" >&6; }
  4006. fi
  4007. test -n "$AR" && break
  4008. done
  4009. fi
  4010. if test -z "$AR"; then
  4011. ac_ct_AR=$AR
  4012. for ac_prog in ar lib "link -lib"
  4013. do
  4014. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4015. set dummy $ac_prog; ac_word=$2
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4017. $as_echo_n "checking for $ac_word... " >&6; }
  4018. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4019. $as_echo_n "(cached) " >&6
  4020. else
  4021. if test -n "$ac_ct_AR"; then
  4022. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4023. else
  4024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4025. for as_dir in $PATH
  4026. do
  4027. IFS=$as_save_IFS
  4028. test -z "$as_dir" && as_dir=.
  4029. for ac_exec_ext in '' $ac_executable_extensions; do
  4030. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4031. ac_cv_prog_ac_ct_AR="$ac_prog"
  4032. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4033. break 2
  4034. fi
  4035. done
  4036. done
  4037. IFS=$as_save_IFS
  4038. fi
  4039. fi
  4040. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4041. if test -n "$ac_ct_AR"; then
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4043. $as_echo "$ac_ct_AR" >&6; }
  4044. else
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4046. $as_echo "no" >&6; }
  4047. fi
  4048. test -n "$ac_ct_AR" && break
  4049. done
  4050. if test "x$ac_ct_AR" = x; then
  4051. AR="false"
  4052. else
  4053. case $cross_compiling:$ac_tool_warned in
  4054. yes:)
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4056. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4057. ac_tool_warned=yes ;;
  4058. esac
  4059. AR=$ac_ct_AR
  4060. fi
  4061. fi
  4062. : ${AR=ar}
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4064. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4065. if ${am_cv_ar_interface+:} false; then :
  4066. $as_echo_n "(cached) " >&6
  4067. else
  4068. ac_ext=c
  4069. ac_cpp='$CPP $CPPFLAGS'
  4070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4073. am_cv_ar_interface=ar
  4074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4075. /* end confdefs.h. */
  4076. int some_variable = 0;
  4077. _ACEOF
  4078. if ac_fn_c_try_compile "$LINENO"; then :
  4079. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4080. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4081. (eval $am_ar_try) 2>&5
  4082. ac_status=$?
  4083. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4084. test $ac_status = 0; }
  4085. if test "$ac_status" -eq 0; then
  4086. am_cv_ar_interface=ar
  4087. else
  4088. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4089. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4090. (eval $am_ar_try) 2>&5
  4091. ac_status=$?
  4092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4093. test $ac_status = 0; }
  4094. if test "$ac_status" -eq 0; then
  4095. am_cv_ar_interface=lib
  4096. else
  4097. am_cv_ar_interface=unknown
  4098. fi
  4099. fi
  4100. rm -f conftest.lib libconftest.a
  4101. fi
  4102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4103. ac_ext=c
  4104. ac_cpp='$CPP $CPPFLAGS'
  4105. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4106. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4107. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4108. fi
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4110. $as_echo "$am_cv_ar_interface" >&6; }
  4111. case $am_cv_ar_interface in
  4112. ar)
  4113. ;;
  4114. lib)
  4115. # Microsoft lib, so override with the ar-lib wrapper script.
  4116. # FIXME: It is wrong to rewrite AR.
  4117. # But if we don't then we get into trouble of one sort or another.
  4118. # A longer-term fix would be to have automake use am__AR in this case,
  4119. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4120. # similar.
  4121. AR="$am_aux_dir/ar-lib $AR"
  4122. ;;
  4123. unknown)
  4124. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4125. ;;
  4126. esac
  4127. case `pwd` in
  4128. *\ * | *\ *)
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4130. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4131. esac
  4132. macro_version='2.4.6'
  4133. macro_revision='2.4.6'
  4134. ltmain=$ac_aux_dir/ltmain.sh
  4135. # Backslashify metacharacters that are still active within
  4136. # double-quoted strings.
  4137. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4138. # Same as above, but do not quote variable references.
  4139. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4140. # Sed substitution to delay expansion of an escaped shell variable in a
  4141. # double_quote_subst'ed string.
  4142. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4143. # Sed substitution to delay expansion of an escaped single quote.
  4144. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4145. # Sed substitution to avoid accidental globbing in evaled expressions
  4146. no_glob_subst='s/\*/\\\*/g'
  4147. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4148. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4149. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4151. $as_echo_n "checking how to print strings... " >&6; }
  4152. # Test print first, because it will be a builtin if present.
  4153. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4154. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4155. ECHO='print -r --'
  4156. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4157. ECHO='printf %s\n'
  4158. else
  4159. # Use this function as a fallback that always works.
  4160. func_fallback_echo ()
  4161. {
  4162. eval 'cat <<_LTECHO_EOF
  4163. $1
  4164. _LTECHO_EOF'
  4165. }
  4166. ECHO='func_fallback_echo'
  4167. fi
  4168. # func_echo_all arg...
  4169. # Invoke $ECHO with all args, space-separated.
  4170. func_echo_all ()
  4171. {
  4172. $ECHO ""
  4173. }
  4174. case $ECHO in
  4175. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4176. $as_echo "printf" >&6; } ;;
  4177. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4178. $as_echo "print -r" >&6; } ;;
  4179. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4180. $as_echo "cat" >&6; } ;;
  4181. esac
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4183. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4184. if ${ac_cv_path_SED+:} false; then :
  4185. $as_echo_n "(cached) " >&6
  4186. else
  4187. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4188. for ac_i in 1 2 3 4 5 6 7; do
  4189. ac_script="$ac_script$as_nl$ac_script"
  4190. done
  4191. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4192. { ac_script=; unset ac_script;}
  4193. if test -z "$SED"; then
  4194. ac_path_SED_found=false
  4195. # Loop through the user's path and test for each of PROGNAME-LIST
  4196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4197. for as_dir in $PATH
  4198. do
  4199. IFS=$as_save_IFS
  4200. test -z "$as_dir" && as_dir=.
  4201. for ac_prog in sed gsed; do
  4202. for ac_exec_ext in '' $ac_executable_extensions; do
  4203. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4204. as_fn_executable_p "$ac_path_SED" || continue
  4205. # Check for GNU ac_path_SED and select it if it is found.
  4206. # Check for GNU $ac_path_SED
  4207. case `"$ac_path_SED" --version 2>&1` in
  4208. *GNU*)
  4209. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4210. *)
  4211. ac_count=0
  4212. $as_echo_n 0123456789 >"conftest.in"
  4213. while :
  4214. do
  4215. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4216. mv "conftest.tmp" "conftest.in"
  4217. cp "conftest.in" "conftest.nl"
  4218. $as_echo '' >> "conftest.nl"
  4219. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4220. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4221. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4222. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4223. # Best one so far, save it but keep looking for a better one
  4224. ac_cv_path_SED="$ac_path_SED"
  4225. ac_path_SED_max=$ac_count
  4226. fi
  4227. # 10*(2^10) chars as input seems more than enough
  4228. test $ac_count -gt 10 && break
  4229. done
  4230. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4231. esac
  4232. $ac_path_SED_found && break 3
  4233. done
  4234. done
  4235. done
  4236. IFS=$as_save_IFS
  4237. if test -z "$ac_cv_path_SED"; then
  4238. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4239. fi
  4240. else
  4241. ac_cv_path_SED=$SED
  4242. fi
  4243. fi
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4245. $as_echo "$ac_cv_path_SED" >&6; }
  4246. SED="$ac_cv_path_SED"
  4247. rm -f conftest.sed
  4248. test -z "$SED" && SED=sed
  4249. Xsed="$SED -e 1s/^X//"
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4251. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4252. if ${ac_cv_path_GREP+:} false; then :
  4253. $as_echo_n "(cached) " >&6
  4254. else
  4255. if test -z "$GREP"; then
  4256. ac_path_GREP_found=false
  4257. # Loop through the user's path and test for each of PROGNAME-LIST
  4258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4259. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4260. do
  4261. IFS=$as_save_IFS
  4262. test -z "$as_dir" && as_dir=.
  4263. for ac_prog in grep ggrep; do
  4264. for ac_exec_ext in '' $ac_executable_extensions; do
  4265. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4266. as_fn_executable_p "$ac_path_GREP" || continue
  4267. # Check for GNU ac_path_GREP and select it if it is found.
  4268. # Check for GNU $ac_path_GREP
  4269. case `"$ac_path_GREP" --version 2>&1` in
  4270. *GNU*)
  4271. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4272. *)
  4273. ac_count=0
  4274. $as_echo_n 0123456789 >"conftest.in"
  4275. while :
  4276. do
  4277. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4278. mv "conftest.tmp" "conftest.in"
  4279. cp "conftest.in" "conftest.nl"
  4280. $as_echo 'GREP' >> "conftest.nl"
  4281. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4282. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4283. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4284. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4285. # Best one so far, save it but keep looking for a better one
  4286. ac_cv_path_GREP="$ac_path_GREP"
  4287. ac_path_GREP_max=$ac_count
  4288. fi
  4289. # 10*(2^10) chars as input seems more than enough
  4290. test $ac_count -gt 10 && break
  4291. done
  4292. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4293. esac
  4294. $ac_path_GREP_found && break 3
  4295. done
  4296. done
  4297. done
  4298. IFS=$as_save_IFS
  4299. if test -z "$ac_cv_path_GREP"; then
  4300. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4301. fi
  4302. else
  4303. ac_cv_path_GREP=$GREP
  4304. fi
  4305. fi
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4307. $as_echo "$ac_cv_path_GREP" >&6; }
  4308. GREP="$ac_cv_path_GREP"
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4310. $as_echo_n "checking for egrep... " >&6; }
  4311. if ${ac_cv_path_EGREP+:} false; then :
  4312. $as_echo_n "(cached) " >&6
  4313. else
  4314. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4315. then ac_cv_path_EGREP="$GREP -E"
  4316. else
  4317. if test -z "$EGREP"; then
  4318. ac_path_EGREP_found=false
  4319. # Loop through the user's path and test for each of PROGNAME-LIST
  4320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4321. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4322. do
  4323. IFS=$as_save_IFS
  4324. test -z "$as_dir" && as_dir=.
  4325. for ac_prog in egrep; do
  4326. for ac_exec_ext in '' $ac_executable_extensions; do
  4327. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4328. as_fn_executable_p "$ac_path_EGREP" || continue
  4329. # Check for GNU ac_path_EGREP and select it if it is found.
  4330. # Check for GNU $ac_path_EGREP
  4331. case `"$ac_path_EGREP" --version 2>&1` in
  4332. *GNU*)
  4333. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4334. *)
  4335. ac_count=0
  4336. $as_echo_n 0123456789 >"conftest.in"
  4337. while :
  4338. do
  4339. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4340. mv "conftest.tmp" "conftest.in"
  4341. cp "conftest.in" "conftest.nl"
  4342. $as_echo 'EGREP' >> "conftest.nl"
  4343. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4344. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4345. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4346. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4347. # Best one so far, save it but keep looking for a better one
  4348. ac_cv_path_EGREP="$ac_path_EGREP"
  4349. ac_path_EGREP_max=$ac_count
  4350. fi
  4351. # 10*(2^10) chars as input seems more than enough
  4352. test $ac_count -gt 10 && break
  4353. done
  4354. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4355. esac
  4356. $ac_path_EGREP_found && break 3
  4357. done
  4358. done
  4359. done
  4360. IFS=$as_save_IFS
  4361. if test -z "$ac_cv_path_EGREP"; then
  4362. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4363. fi
  4364. else
  4365. ac_cv_path_EGREP=$EGREP
  4366. fi
  4367. fi
  4368. fi
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4370. $as_echo "$ac_cv_path_EGREP" >&6; }
  4371. EGREP="$ac_cv_path_EGREP"
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4373. $as_echo_n "checking for fgrep... " >&6; }
  4374. if ${ac_cv_path_FGREP+:} false; then :
  4375. $as_echo_n "(cached) " >&6
  4376. else
  4377. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4378. then ac_cv_path_FGREP="$GREP -F"
  4379. else
  4380. if test -z "$FGREP"; then
  4381. ac_path_FGREP_found=false
  4382. # Loop through the user's path and test for each of PROGNAME-LIST
  4383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4384. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4385. do
  4386. IFS=$as_save_IFS
  4387. test -z "$as_dir" && as_dir=.
  4388. for ac_prog in fgrep; do
  4389. for ac_exec_ext in '' $ac_executable_extensions; do
  4390. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4391. as_fn_executable_p "$ac_path_FGREP" || continue
  4392. # Check for GNU ac_path_FGREP and select it if it is found.
  4393. # Check for GNU $ac_path_FGREP
  4394. case `"$ac_path_FGREP" --version 2>&1` in
  4395. *GNU*)
  4396. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4397. *)
  4398. ac_count=0
  4399. $as_echo_n 0123456789 >"conftest.in"
  4400. while :
  4401. do
  4402. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4403. mv "conftest.tmp" "conftest.in"
  4404. cp "conftest.in" "conftest.nl"
  4405. $as_echo 'FGREP' >> "conftest.nl"
  4406. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4407. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4408. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4409. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4410. # Best one so far, save it but keep looking for a better one
  4411. ac_cv_path_FGREP="$ac_path_FGREP"
  4412. ac_path_FGREP_max=$ac_count
  4413. fi
  4414. # 10*(2^10) chars as input seems more than enough
  4415. test $ac_count -gt 10 && break
  4416. done
  4417. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4418. esac
  4419. $ac_path_FGREP_found && break 3
  4420. done
  4421. done
  4422. done
  4423. IFS=$as_save_IFS
  4424. if test -z "$ac_cv_path_FGREP"; then
  4425. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4426. fi
  4427. else
  4428. ac_cv_path_FGREP=$FGREP
  4429. fi
  4430. fi
  4431. fi
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4433. $as_echo "$ac_cv_path_FGREP" >&6; }
  4434. FGREP="$ac_cv_path_FGREP"
  4435. test -z "$GREP" && GREP=grep
  4436. # Check whether --with-gnu-ld was given.
  4437. if test "${with_gnu_ld+set}" = set; then :
  4438. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4439. else
  4440. with_gnu_ld=no
  4441. fi
  4442. ac_prog=ld
  4443. if test yes = "$GCC"; then
  4444. # Check if gcc -print-prog-name=ld gives a path.
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4446. $as_echo_n "checking for ld used by $CC... " >&6; }
  4447. case $host in
  4448. *-*-mingw*)
  4449. # gcc leaves a trailing carriage return, which upsets mingw
  4450. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4451. *)
  4452. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4453. esac
  4454. case $ac_prog in
  4455. # Accept absolute paths.
  4456. [\\/]* | ?:[\\/]*)
  4457. re_direlt='/[^/][^/]*/\.\./'
  4458. # Canonicalize the pathname of ld
  4459. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4460. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4461. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4462. done
  4463. test -z "$LD" && LD=$ac_prog
  4464. ;;
  4465. "")
  4466. # If it fails, then pretend we aren't using GCC.
  4467. ac_prog=ld
  4468. ;;
  4469. *)
  4470. # If it is relative, then search for the first ld in PATH.
  4471. with_gnu_ld=unknown
  4472. ;;
  4473. esac
  4474. elif test yes = "$with_gnu_ld"; then
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4476. $as_echo_n "checking for GNU ld... " >&6; }
  4477. else
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4479. $as_echo_n "checking for non-GNU ld... " >&6; }
  4480. fi
  4481. if ${lt_cv_path_LD+:} false; then :
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. if test -z "$LD"; then
  4485. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4486. for ac_dir in $PATH; do
  4487. IFS=$lt_save_ifs
  4488. test -z "$ac_dir" && ac_dir=.
  4489. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4490. lt_cv_path_LD=$ac_dir/$ac_prog
  4491. # Check to see if the program is GNU ld. I'd rather use --version,
  4492. # but apparently some variants of GNU ld only accept -v.
  4493. # Break only if it was the GNU/non-GNU ld that we prefer.
  4494. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4495. *GNU* | *'with BFD'*)
  4496. test no != "$with_gnu_ld" && break
  4497. ;;
  4498. *)
  4499. test yes != "$with_gnu_ld" && break
  4500. ;;
  4501. esac
  4502. fi
  4503. done
  4504. IFS=$lt_save_ifs
  4505. else
  4506. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4507. fi
  4508. fi
  4509. LD=$lt_cv_path_LD
  4510. if test -n "$LD"; then
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4512. $as_echo "$LD" >&6; }
  4513. else
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4515. $as_echo "no" >&6; }
  4516. fi
  4517. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4519. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4520. if ${lt_cv_prog_gnu_ld+:} false; then :
  4521. $as_echo_n "(cached) " >&6
  4522. else
  4523. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4524. case `$LD -v 2>&1 </dev/null` in
  4525. *GNU* | *'with BFD'*)
  4526. lt_cv_prog_gnu_ld=yes
  4527. ;;
  4528. *)
  4529. lt_cv_prog_gnu_ld=no
  4530. ;;
  4531. esac
  4532. fi
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4534. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4535. with_gnu_ld=$lt_cv_prog_gnu_ld
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4537. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4538. if ${lt_cv_path_NM+:} false; then :
  4539. $as_echo_n "(cached) " >&6
  4540. else
  4541. if test -n "$NM"; then
  4542. # Let the user override the test.
  4543. lt_cv_path_NM=$NM
  4544. else
  4545. lt_nm_to_check=${ac_tool_prefix}nm
  4546. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4547. lt_nm_to_check="$lt_nm_to_check nm"
  4548. fi
  4549. for lt_tmp_nm in $lt_nm_to_check; do
  4550. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4551. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4552. IFS=$lt_save_ifs
  4553. test -z "$ac_dir" && ac_dir=.
  4554. tmp_nm=$ac_dir/$lt_tmp_nm
  4555. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4556. # Check to see if the nm accepts a BSD-compat flag.
  4557. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4558. # nm: unknown option "B" ignored
  4559. # Tru64's nm complains that /dev/null is an invalid object file
  4560. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4561. case $build_os in
  4562. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4563. *) lt_bad_file=/dev/null ;;
  4564. esac
  4565. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4566. *$lt_bad_file* | *'Invalid file or object type'*)
  4567. lt_cv_path_NM="$tmp_nm -B"
  4568. break 2
  4569. ;;
  4570. *)
  4571. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4572. */dev/null*)
  4573. lt_cv_path_NM="$tmp_nm -p"
  4574. break 2
  4575. ;;
  4576. *)
  4577. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4578. continue # so that we can try to find one that supports BSD flags
  4579. ;;
  4580. esac
  4581. ;;
  4582. esac
  4583. fi
  4584. done
  4585. IFS=$lt_save_ifs
  4586. done
  4587. : ${lt_cv_path_NM=no}
  4588. fi
  4589. fi
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4591. $as_echo "$lt_cv_path_NM" >&6; }
  4592. if test no != "$lt_cv_path_NM"; then
  4593. NM=$lt_cv_path_NM
  4594. else
  4595. # Didn't find any BSD compatible name lister, look for dumpbin.
  4596. if test -n "$DUMPBIN"; then :
  4597. # Let the user override the test.
  4598. else
  4599. if test -n "$ac_tool_prefix"; then
  4600. for ac_prog in dumpbin "link -dump"
  4601. do
  4602. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4603. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4605. $as_echo_n "checking for $ac_word... " >&6; }
  4606. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4607. $as_echo_n "(cached) " >&6
  4608. else
  4609. if test -n "$DUMPBIN"; then
  4610. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4611. else
  4612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4613. for as_dir in $PATH
  4614. do
  4615. IFS=$as_save_IFS
  4616. test -z "$as_dir" && as_dir=.
  4617. for ac_exec_ext in '' $ac_executable_extensions; do
  4618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4619. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4621. break 2
  4622. fi
  4623. done
  4624. done
  4625. IFS=$as_save_IFS
  4626. fi
  4627. fi
  4628. DUMPBIN=$ac_cv_prog_DUMPBIN
  4629. if test -n "$DUMPBIN"; then
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4631. $as_echo "$DUMPBIN" >&6; }
  4632. else
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4634. $as_echo "no" >&6; }
  4635. fi
  4636. test -n "$DUMPBIN" && break
  4637. done
  4638. fi
  4639. if test -z "$DUMPBIN"; then
  4640. ac_ct_DUMPBIN=$DUMPBIN
  4641. for ac_prog in dumpbin "link -dump"
  4642. do
  4643. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4644. set dummy $ac_prog; ac_word=$2
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4646. $as_echo_n "checking for $ac_word... " >&6; }
  4647. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4648. $as_echo_n "(cached) " >&6
  4649. else
  4650. if test -n "$ac_ct_DUMPBIN"; then
  4651. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4652. else
  4653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4654. for as_dir in $PATH
  4655. do
  4656. IFS=$as_save_IFS
  4657. test -z "$as_dir" && as_dir=.
  4658. for ac_exec_ext in '' $ac_executable_extensions; do
  4659. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4660. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4662. break 2
  4663. fi
  4664. done
  4665. done
  4666. IFS=$as_save_IFS
  4667. fi
  4668. fi
  4669. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4670. if test -n "$ac_ct_DUMPBIN"; then
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4672. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4673. else
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4675. $as_echo "no" >&6; }
  4676. fi
  4677. test -n "$ac_ct_DUMPBIN" && break
  4678. done
  4679. if test "x$ac_ct_DUMPBIN" = x; then
  4680. DUMPBIN=":"
  4681. else
  4682. case $cross_compiling:$ac_tool_warned in
  4683. yes:)
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4685. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4686. ac_tool_warned=yes ;;
  4687. esac
  4688. DUMPBIN=$ac_ct_DUMPBIN
  4689. fi
  4690. fi
  4691. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4692. *COFF*)
  4693. DUMPBIN="$DUMPBIN -symbols -headers"
  4694. ;;
  4695. *)
  4696. DUMPBIN=:
  4697. ;;
  4698. esac
  4699. fi
  4700. if test : != "$DUMPBIN"; then
  4701. NM=$DUMPBIN
  4702. fi
  4703. fi
  4704. test -z "$NM" && NM=nm
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4706. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4707. if ${lt_cv_nm_interface+:} false; then :
  4708. $as_echo_n "(cached) " >&6
  4709. else
  4710. lt_cv_nm_interface="BSD nm"
  4711. echo "int some_variable = 0;" > conftest.$ac_ext
  4712. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4713. (eval "$ac_compile" 2>conftest.err)
  4714. cat conftest.err >&5
  4715. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4716. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4717. cat conftest.err >&5
  4718. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4719. cat conftest.out >&5
  4720. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4721. lt_cv_nm_interface="MS dumpbin"
  4722. fi
  4723. rm -f conftest*
  4724. fi
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4726. $as_echo "$lt_cv_nm_interface" >&6; }
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4728. $as_echo_n "checking whether ln -s works... " >&6; }
  4729. LN_S=$as_ln_s
  4730. if test "$LN_S" = "ln -s"; then
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4732. $as_echo "yes" >&6; }
  4733. else
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4735. $as_echo "no, using $LN_S" >&6; }
  4736. fi
  4737. # find the maximum length of command line arguments
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4739. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4740. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4741. $as_echo_n "(cached) " >&6
  4742. else
  4743. i=0
  4744. teststring=ABCD
  4745. case $build_os in
  4746. msdosdjgpp*)
  4747. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4748. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4749. # during glob expansion). Even if it were fixed, the result of this
  4750. # check would be larger than it should be.
  4751. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4752. ;;
  4753. gnu*)
  4754. # Under GNU Hurd, this test is not required because there is
  4755. # no limit to the length of command line arguments.
  4756. # Libtool will interpret -1 as no limit whatsoever
  4757. lt_cv_sys_max_cmd_len=-1;
  4758. ;;
  4759. cygwin* | mingw* | cegcc*)
  4760. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4761. # about 5 minutes as the teststring grows exponentially.
  4762. # Worse, since 9x/ME are not pre-emptively multitasking,
  4763. # you end up with a "frozen" computer, even though with patience
  4764. # the test eventually succeeds (with a max line length of 256k).
  4765. # Instead, let's just punt: use the minimum linelength reported by
  4766. # all of the supported platforms: 8192 (on NT/2K/XP).
  4767. lt_cv_sys_max_cmd_len=8192;
  4768. ;;
  4769. mint*)
  4770. # On MiNT this can take a long time and run out of memory.
  4771. lt_cv_sys_max_cmd_len=8192;
  4772. ;;
  4773. amigaos*)
  4774. # On AmigaOS with pdksh, this test takes hours, literally.
  4775. # So we just punt and use a minimum line length of 8192.
  4776. lt_cv_sys_max_cmd_len=8192;
  4777. ;;
  4778. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4779. # This has been around since 386BSD, at least. Likely further.
  4780. if test -x /sbin/sysctl; then
  4781. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4782. elif test -x /usr/sbin/sysctl; then
  4783. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4784. else
  4785. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4786. fi
  4787. # And add a safety zone
  4788. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4789. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4790. ;;
  4791. interix*)
  4792. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4793. lt_cv_sys_max_cmd_len=196608
  4794. ;;
  4795. os2*)
  4796. # The test takes a long time on OS/2.
  4797. lt_cv_sys_max_cmd_len=8192
  4798. ;;
  4799. osf*)
  4800. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4801. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4802. # nice to cause kernel panics so lets avoid the loop below.
  4803. # First set a reasonable default.
  4804. lt_cv_sys_max_cmd_len=16384
  4805. #
  4806. if test -x /sbin/sysconfig; then
  4807. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4808. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4809. esac
  4810. fi
  4811. ;;
  4812. sco3.2v5*)
  4813. lt_cv_sys_max_cmd_len=102400
  4814. ;;
  4815. sysv5* | sco5v6* | sysv4.2uw2*)
  4816. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4817. if test -n "$kargmax"; then
  4818. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4819. else
  4820. lt_cv_sys_max_cmd_len=32768
  4821. fi
  4822. ;;
  4823. *)
  4824. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4825. if test -n "$lt_cv_sys_max_cmd_len" && \
  4826. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4827. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4828. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4829. else
  4830. # Make teststring a little bigger before we do anything with it.
  4831. # a 1K string should be a reasonable start.
  4832. for i in 1 2 3 4 5 6 7 8; do
  4833. teststring=$teststring$teststring
  4834. done
  4835. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4836. # If test is not a shell built-in, we'll probably end up computing a
  4837. # maximum length that is only half of the actual maximum length, but
  4838. # we can't tell.
  4839. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4840. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4841. test 17 != "$i" # 1/2 MB should be enough
  4842. do
  4843. i=`expr $i + 1`
  4844. teststring=$teststring$teststring
  4845. done
  4846. # Only check the string length outside the loop.
  4847. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4848. teststring=
  4849. # Add a significant safety factor because C++ compilers can tack on
  4850. # massive amounts of additional arguments before passing them to the
  4851. # linker. It appears as though 1/2 is a usable value.
  4852. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4853. fi
  4854. ;;
  4855. esac
  4856. fi
  4857. if test -n "$lt_cv_sys_max_cmd_len"; then
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4859. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4860. else
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4862. $as_echo "none" >&6; }
  4863. fi
  4864. max_cmd_len=$lt_cv_sys_max_cmd_len
  4865. : ${CP="cp -f"}
  4866. : ${MV="mv -f"}
  4867. : ${RM="rm -f"}
  4868. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4869. lt_unset=unset
  4870. else
  4871. lt_unset=false
  4872. fi
  4873. # test EBCDIC or ASCII
  4874. case `echo X|tr X '\101'` in
  4875. A) # ASCII based system
  4876. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4877. lt_SP2NL='tr \040 \012'
  4878. lt_NL2SP='tr \015\012 \040\040'
  4879. ;;
  4880. *) # EBCDIC based system
  4881. lt_SP2NL='tr \100 \n'
  4882. lt_NL2SP='tr \r\n \100\100'
  4883. ;;
  4884. esac
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4886. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4887. if ${lt_cv_to_host_file_cmd+:} false; then :
  4888. $as_echo_n "(cached) " >&6
  4889. else
  4890. case $host in
  4891. *-*-mingw* )
  4892. case $build in
  4893. *-*-mingw* ) # actually msys
  4894. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4895. ;;
  4896. *-*-cygwin* )
  4897. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4898. ;;
  4899. * ) # otherwise, assume *nix
  4900. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4901. ;;
  4902. esac
  4903. ;;
  4904. *-*-cygwin* )
  4905. case $build in
  4906. *-*-mingw* ) # actually msys
  4907. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4908. ;;
  4909. *-*-cygwin* )
  4910. lt_cv_to_host_file_cmd=func_convert_file_noop
  4911. ;;
  4912. * ) # otherwise, assume *nix
  4913. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4914. ;;
  4915. esac
  4916. ;;
  4917. * ) # unhandled hosts (and "normal" native builds)
  4918. lt_cv_to_host_file_cmd=func_convert_file_noop
  4919. ;;
  4920. esac
  4921. fi
  4922. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4924. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4926. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4927. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4928. $as_echo_n "(cached) " >&6
  4929. else
  4930. #assume ordinary cross tools, or native build.
  4931. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4932. case $host in
  4933. *-*-mingw* )
  4934. case $build in
  4935. *-*-mingw* ) # actually msys
  4936. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4937. ;;
  4938. esac
  4939. ;;
  4940. esac
  4941. fi
  4942. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4944. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4946. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4947. if ${lt_cv_ld_reload_flag+:} false; then :
  4948. $as_echo_n "(cached) " >&6
  4949. else
  4950. lt_cv_ld_reload_flag='-r'
  4951. fi
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4953. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4954. reload_flag=$lt_cv_ld_reload_flag
  4955. case $reload_flag in
  4956. "" | " "*) ;;
  4957. *) reload_flag=" $reload_flag" ;;
  4958. esac
  4959. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4960. case $host_os in
  4961. cygwin* | mingw* | pw32* | cegcc*)
  4962. if test yes != "$GCC"; then
  4963. reload_cmds=false
  4964. fi
  4965. ;;
  4966. darwin*)
  4967. if test yes = "$GCC"; then
  4968. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4969. else
  4970. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4971. fi
  4972. ;;
  4973. esac
  4974. if test -n "$ac_tool_prefix"; then
  4975. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4976. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4978. $as_echo_n "checking for $ac_word... " >&6; }
  4979. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4980. $as_echo_n "(cached) " >&6
  4981. else
  4982. if test -n "$OBJDUMP"; then
  4983. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4984. else
  4985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4986. for as_dir in $PATH
  4987. do
  4988. IFS=$as_save_IFS
  4989. test -z "$as_dir" && as_dir=.
  4990. for ac_exec_ext in '' $ac_executable_extensions; do
  4991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4992. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4994. break 2
  4995. fi
  4996. done
  4997. done
  4998. IFS=$as_save_IFS
  4999. fi
  5000. fi
  5001. OBJDUMP=$ac_cv_prog_OBJDUMP
  5002. if test -n "$OBJDUMP"; then
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5004. $as_echo "$OBJDUMP" >&6; }
  5005. else
  5006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5007. $as_echo "no" >&6; }
  5008. fi
  5009. fi
  5010. if test -z "$ac_cv_prog_OBJDUMP"; then
  5011. ac_ct_OBJDUMP=$OBJDUMP
  5012. # Extract the first word of "objdump", so it can be a program name with args.
  5013. set dummy objdump; ac_word=$2
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5015. $as_echo_n "checking for $ac_word... " >&6; }
  5016. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5017. $as_echo_n "(cached) " >&6
  5018. else
  5019. if test -n "$ac_ct_OBJDUMP"; then
  5020. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5029. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5030. $as_echo "$as_me:${as_lineno-$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. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5039. if test -n "$ac_ct_OBJDUMP"; then
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5041. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5042. else
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5044. $as_echo "no" >&6; }
  5045. fi
  5046. if test "x$ac_ct_OBJDUMP" = x; then
  5047. OBJDUMP="false"
  5048. else
  5049. case $cross_compiling:$ac_tool_warned in
  5050. yes:)
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5052. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5053. ac_tool_warned=yes ;;
  5054. esac
  5055. OBJDUMP=$ac_ct_OBJDUMP
  5056. fi
  5057. else
  5058. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5059. fi
  5060. test -z "$OBJDUMP" && OBJDUMP=objdump
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5062. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5063. if ${lt_cv_deplibs_check_method+:} false; then :
  5064. $as_echo_n "(cached) " >&6
  5065. else
  5066. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5067. lt_cv_file_magic_test_file=
  5068. lt_cv_deplibs_check_method='unknown'
  5069. # Need to set the preceding variable on all platforms that support
  5070. # interlibrary dependencies.
  5071. # 'none' -- dependencies not supported.
  5072. # 'unknown' -- same as none, but documents that we really don't know.
  5073. # 'pass_all' -- all dependencies passed with no checks.
  5074. # 'test_compile' -- check by making test program.
  5075. # 'file_magic [[regex]]' -- check by looking for files in library path
  5076. # that responds to the $file_magic_cmd with a given extended regex.
  5077. # If you have 'file' or equivalent on your system and you're not sure
  5078. # whether 'pass_all' will *always* work, you probably want this one.
  5079. case $host_os in
  5080. aix[4-9]*)
  5081. lt_cv_deplibs_check_method=pass_all
  5082. ;;
  5083. beos*)
  5084. lt_cv_deplibs_check_method=pass_all
  5085. ;;
  5086. bsdi[45]*)
  5087. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5088. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5089. lt_cv_file_magic_test_file=/shlib/libc.so
  5090. ;;
  5091. cygwin*)
  5092. # func_win32_libid is a shell function defined in ltmain.sh
  5093. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5094. lt_cv_file_magic_cmd='func_win32_libid'
  5095. ;;
  5096. mingw* | pw32*)
  5097. # Base MSYS/MinGW do not provide the 'file' command needed by
  5098. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5099. # unless we find 'file', for example because we are cross-compiling.
  5100. if ( file / ) >/dev/null 2>&1; then
  5101. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5102. lt_cv_file_magic_cmd='func_win32_libid'
  5103. else
  5104. # Keep this pattern in sync with the one in func_win32_libid.
  5105. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5106. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5107. fi
  5108. ;;
  5109. cegcc*)
  5110. # use the weaker test based on 'objdump'. See mingw*.
  5111. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5112. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5113. ;;
  5114. darwin* | rhapsody*)
  5115. lt_cv_deplibs_check_method=pass_all
  5116. ;;
  5117. freebsd* | dragonfly*)
  5118. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5119. case $host_cpu in
  5120. i*86 )
  5121. # Not sure whether the presence of OpenBSD here was a mistake.
  5122. # Let's accept both of them until this is cleared up.
  5123. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5124. lt_cv_file_magic_cmd=/usr/bin/file
  5125. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5126. ;;
  5127. esac
  5128. else
  5129. lt_cv_deplibs_check_method=pass_all
  5130. fi
  5131. ;;
  5132. haiku*)
  5133. lt_cv_deplibs_check_method=pass_all
  5134. ;;
  5135. hpux10.20* | hpux11*)
  5136. lt_cv_file_magic_cmd=/usr/bin/file
  5137. case $host_cpu in
  5138. ia64*)
  5139. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5140. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5141. ;;
  5142. hppa*64*)
  5143. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5144. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5145. ;;
  5146. *)
  5147. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5148. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5149. ;;
  5150. esac
  5151. ;;
  5152. interix[3-9]*)
  5153. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5154. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5155. ;;
  5156. irix5* | irix6* | nonstopux*)
  5157. case $LD in
  5158. *-32|*"-32 ") libmagic=32-bit;;
  5159. *-n32|*"-n32 ") libmagic=N32;;
  5160. *-64|*"-64 ") libmagic=64-bit;;
  5161. *) libmagic=never-match;;
  5162. esac
  5163. lt_cv_deplibs_check_method=pass_all
  5164. ;;
  5165. # This must be glibc/ELF.
  5166. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5167. lt_cv_deplibs_check_method=pass_all
  5168. ;;
  5169. netbsd*)
  5170. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5171. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5172. else
  5173. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5174. fi
  5175. ;;
  5176. newos6*)
  5177. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5178. lt_cv_file_magic_cmd=/usr/bin/file
  5179. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5180. ;;
  5181. *nto* | *qnx*)
  5182. lt_cv_deplibs_check_method=pass_all
  5183. ;;
  5184. openbsd* | bitrig*)
  5185. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5186. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5187. else
  5188. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5189. fi
  5190. ;;
  5191. osf3* | osf4* | osf5*)
  5192. lt_cv_deplibs_check_method=pass_all
  5193. ;;
  5194. rdos*)
  5195. lt_cv_deplibs_check_method=pass_all
  5196. ;;
  5197. solaris*)
  5198. lt_cv_deplibs_check_method=pass_all
  5199. ;;
  5200. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5201. lt_cv_deplibs_check_method=pass_all
  5202. ;;
  5203. sysv4 | sysv4.3*)
  5204. case $host_vendor in
  5205. motorola)
  5206. 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]'
  5207. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5208. ;;
  5209. ncr)
  5210. lt_cv_deplibs_check_method=pass_all
  5211. ;;
  5212. sequent)
  5213. lt_cv_file_magic_cmd='/bin/file'
  5214. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5215. ;;
  5216. sni)
  5217. lt_cv_file_magic_cmd='/bin/file'
  5218. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5219. lt_cv_file_magic_test_file=/lib/libc.so
  5220. ;;
  5221. siemens)
  5222. lt_cv_deplibs_check_method=pass_all
  5223. ;;
  5224. pc)
  5225. lt_cv_deplibs_check_method=pass_all
  5226. ;;
  5227. esac
  5228. ;;
  5229. tpf*)
  5230. lt_cv_deplibs_check_method=pass_all
  5231. ;;
  5232. os2*)
  5233. lt_cv_deplibs_check_method=pass_all
  5234. ;;
  5235. esac
  5236. fi
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5238. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5239. file_magic_glob=
  5240. want_nocaseglob=no
  5241. if test "$build" = "$host"; then
  5242. case $host_os in
  5243. mingw* | pw32*)
  5244. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5245. want_nocaseglob=yes
  5246. else
  5247. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5248. fi
  5249. ;;
  5250. esac
  5251. fi
  5252. file_magic_cmd=$lt_cv_file_magic_cmd
  5253. deplibs_check_method=$lt_cv_deplibs_check_method
  5254. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5255. if test -n "$ac_tool_prefix"; then
  5256. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5257. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5259. $as_echo_n "checking for $ac_word... " >&6; }
  5260. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5261. $as_echo_n "(cached) " >&6
  5262. else
  5263. if test -n "$DLLTOOL"; then
  5264. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5265. else
  5266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5267. for as_dir in $PATH
  5268. do
  5269. IFS=$as_save_IFS
  5270. test -z "$as_dir" && as_dir=.
  5271. for ac_exec_ext in '' $ac_executable_extensions; do
  5272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5273. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5275. break 2
  5276. fi
  5277. done
  5278. done
  5279. IFS=$as_save_IFS
  5280. fi
  5281. fi
  5282. DLLTOOL=$ac_cv_prog_DLLTOOL
  5283. if test -n "$DLLTOOL"; then
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5285. $as_echo "$DLLTOOL" >&6; }
  5286. else
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5288. $as_echo "no" >&6; }
  5289. fi
  5290. fi
  5291. if test -z "$ac_cv_prog_DLLTOOL"; then
  5292. ac_ct_DLLTOOL=$DLLTOOL
  5293. # Extract the first word of "dlltool", so it can be a program name with args.
  5294. set dummy dlltool; ac_word=$2
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5296. $as_echo_n "checking for $ac_word... " >&6; }
  5297. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5298. $as_echo_n "(cached) " >&6
  5299. else
  5300. if test -n "$ac_ct_DLLTOOL"; then
  5301. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5302. else
  5303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5304. for as_dir in $PATH
  5305. do
  5306. IFS=$as_save_IFS
  5307. test -z "$as_dir" && as_dir=.
  5308. for ac_exec_ext in '' $ac_executable_extensions; do
  5309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5310. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5312. break 2
  5313. fi
  5314. done
  5315. done
  5316. IFS=$as_save_IFS
  5317. fi
  5318. fi
  5319. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5320. if test -n "$ac_ct_DLLTOOL"; then
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5322. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5323. else
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5325. $as_echo "no" >&6; }
  5326. fi
  5327. if test "x$ac_ct_DLLTOOL" = x; then
  5328. DLLTOOL="false"
  5329. else
  5330. case $cross_compiling:$ac_tool_warned in
  5331. yes:)
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5333. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5334. ac_tool_warned=yes ;;
  5335. esac
  5336. DLLTOOL=$ac_ct_DLLTOOL
  5337. fi
  5338. else
  5339. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5340. fi
  5341. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5343. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5344. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5345. $as_echo_n "(cached) " >&6
  5346. else
  5347. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5348. case $host_os in
  5349. cygwin* | mingw* | pw32* | cegcc*)
  5350. # two different shell functions defined in ltmain.sh;
  5351. # decide which one to use based on capabilities of $DLLTOOL
  5352. case `$DLLTOOL --help 2>&1` in
  5353. *--identify-strict*)
  5354. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5355. ;;
  5356. *)
  5357. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5358. ;;
  5359. esac
  5360. ;;
  5361. *)
  5362. # fallback: assume linklib IS sharedlib
  5363. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5364. ;;
  5365. esac
  5366. fi
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5368. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5369. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5370. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5371. if test -n "$ac_tool_prefix"; then
  5372. for ac_prog in ar
  5373. do
  5374. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5375. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5377. $as_echo_n "checking for $ac_word... " >&6; }
  5378. if ${ac_cv_prog_AR+:} false; then :
  5379. $as_echo_n "(cached) " >&6
  5380. else
  5381. if test -n "$AR"; then
  5382. ac_cv_prog_AR="$AR" # Let the user override the test.
  5383. else
  5384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5385. for as_dir in $PATH
  5386. do
  5387. IFS=$as_save_IFS
  5388. test -z "$as_dir" && as_dir=.
  5389. for ac_exec_ext in '' $ac_executable_extensions; do
  5390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5391. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5393. break 2
  5394. fi
  5395. done
  5396. done
  5397. IFS=$as_save_IFS
  5398. fi
  5399. fi
  5400. AR=$ac_cv_prog_AR
  5401. if test -n "$AR"; then
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5403. $as_echo "$AR" >&6; }
  5404. else
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5406. $as_echo "no" >&6; }
  5407. fi
  5408. test -n "$AR" && break
  5409. done
  5410. fi
  5411. if test -z "$AR"; then
  5412. ac_ct_AR=$AR
  5413. for ac_prog in ar
  5414. do
  5415. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5416. set dummy $ac_prog; ac_word=$2
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5418. $as_echo_n "checking for $ac_word... " >&6; }
  5419. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5420. $as_echo_n "(cached) " >&6
  5421. else
  5422. if test -n "$ac_ct_AR"; then
  5423. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5424. else
  5425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5426. for as_dir in $PATH
  5427. do
  5428. IFS=$as_save_IFS
  5429. test -z "$as_dir" && as_dir=.
  5430. for ac_exec_ext in '' $ac_executable_extensions; do
  5431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5432. ac_cv_prog_ac_ct_AR="$ac_prog"
  5433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5434. break 2
  5435. fi
  5436. done
  5437. done
  5438. IFS=$as_save_IFS
  5439. fi
  5440. fi
  5441. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5442. if test -n "$ac_ct_AR"; then
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5444. $as_echo "$ac_ct_AR" >&6; }
  5445. else
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5447. $as_echo "no" >&6; }
  5448. fi
  5449. test -n "$ac_ct_AR" && break
  5450. done
  5451. if test "x$ac_ct_AR" = x; then
  5452. AR="false"
  5453. else
  5454. case $cross_compiling:$ac_tool_warned in
  5455. yes:)
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5457. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5458. ac_tool_warned=yes ;;
  5459. esac
  5460. AR=$ac_ct_AR
  5461. fi
  5462. fi
  5463. : ${AR=ar}
  5464. : ${AR_FLAGS=cru}
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5466. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5467. if ${lt_cv_ar_at_file+:} false; then :
  5468. $as_echo_n "(cached) " >&6
  5469. else
  5470. lt_cv_ar_at_file=no
  5471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5472. /* end confdefs.h. */
  5473. int
  5474. main ()
  5475. {
  5476. ;
  5477. return 0;
  5478. }
  5479. _ACEOF
  5480. if ac_fn_c_try_compile "$LINENO"; then :
  5481. echo conftest.$ac_objext > conftest.lst
  5482. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5483. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5484. (eval $lt_ar_try) 2>&5
  5485. ac_status=$?
  5486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5487. test $ac_status = 0; }
  5488. if test 0 -eq "$ac_status"; then
  5489. # Ensure the archiver fails upon bogus file names.
  5490. rm -f conftest.$ac_objext libconftest.a
  5491. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5492. (eval $lt_ar_try) 2>&5
  5493. ac_status=$?
  5494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5495. test $ac_status = 0; }
  5496. if test 0 -ne "$ac_status"; then
  5497. lt_cv_ar_at_file=@
  5498. fi
  5499. fi
  5500. rm -f conftest.* libconftest.a
  5501. fi
  5502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5503. fi
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5505. $as_echo "$lt_cv_ar_at_file" >&6; }
  5506. if test no = "$lt_cv_ar_at_file"; then
  5507. archiver_list_spec=
  5508. else
  5509. archiver_list_spec=$lt_cv_ar_at_file
  5510. fi
  5511. if test -n "$ac_tool_prefix"; then
  5512. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5513. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5515. $as_echo_n "checking for $ac_word... " >&6; }
  5516. if ${ac_cv_prog_STRIP+:} false; then :
  5517. $as_echo_n "(cached) " >&6
  5518. else
  5519. if test -n "$STRIP"; then
  5520. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5521. else
  5522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5523. for as_dir in $PATH
  5524. do
  5525. IFS=$as_save_IFS
  5526. test -z "$as_dir" && as_dir=.
  5527. for ac_exec_ext in '' $ac_executable_extensions; do
  5528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5529. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5531. break 2
  5532. fi
  5533. done
  5534. done
  5535. IFS=$as_save_IFS
  5536. fi
  5537. fi
  5538. STRIP=$ac_cv_prog_STRIP
  5539. if test -n "$STRIP"; then
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5541. $as_echo "$STRIP" >&6; }
  5542. else
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5544. $as_echo "no" >&6; }
  5545. fi
  5546. fi
  5547. if test -z "$ac_cv_prog_STRIP"; then
  5548. ac_ct_STRIP=$STRIP
  5549. # Extract the first word of "strip", so it can be a program name with args.
  5550. set dummy strip; ac_word=$2
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5552. $as_echo_n "checking for $ac_word... " >&6; }
  5553. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5554. $as_echo_n "(cached) " >&6
  5555. else
  5556. if test -n "$ac_ct_STRIP"; then
  5557. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5558. else
  5559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5560. for as_dir in $PATH
  5561. do
  5562. IFS=$as_save_IFS
  5563. test -z "$as_dir" && as_dir=.
  5564. for ac_exec_ext in '' $ac_executable_extensions; do
  5565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5566. ac_cv_prog_ac_ct_STRIP="strip"
  5567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5568. break 2
  5569. fi
  5570. done
  5571. done
  5572. IFS=$as_save_IFS
  5573. fi
  5574. fi
  5575. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5576. if test -n "$ac_ct_STRIP"; then
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5578. $as_echo "$ac_ct_STRIP" >&6; }
  5579. else
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5581. $as_echo "no" >&6; }
  5582. fi
  5583. if test "x$ac_ct_STRIP" = x; then
  5584. STRIP=":"
  5585. else
  5586. case $cross_compiling:$ac_tool_warned in
  5587. yes:)
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5589. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5590. ac_tool_warned=yes ;;
  5591. esac
  5592. STRIP=$ac_ct_STRIP
  5593. fi
  5594. else
  5595. STRIP="$ac_cv_prog_STRIP"
  5596. fi
  5597. test -z "$STRIP" && STRIP=:
  5598. if test -n "$ac_tool_prefix"; then
  5599. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5600. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5602. $as_echo_n "checking for $ac_word... " >&6; }
  5603. if ${ac_cv_prog_RANLIB+:} false; then :
  5604. $as_echo_n "(cached) " >&6
  5605. else
  5606. if test -n "$RANLIB"; then
  5607. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5608. else
  5609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5610. for as_dir in $PATH
  5611. do
  5612. IFS=$as_save_IFS
  5613. test -z "$as_dir" && as_dir=.
  5614. for ac_exec_ext in '' $ac_executable_extensions; do
  5615. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5616. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5618. break 2
  5619. fi
  5620. done
  5621. done
  5622. IFS=$as_save_IFS
  5623. fi
  5624. fi
  5625. RANLIB=$ac_cv_prog_RANLIB
  5626. if test -n "$RANLIB"; then
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5628. $as_echo "$RANLIB" >&6; }
  5629. else
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5631. $as_echo "no" >&6; }
  5632. fi
  5633. fi
  5634. if test -z "$ac_cv_prog_RANLIB"; then
  5635. ac_ct_RANLIB=$RANLIB
  5636. # Extract the first word of "ranlib", so it can be a program name with args.
  5637. set dummy ranlib; ac_word=$2
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5639. $as_echo_n "checking for $ac_word... " >&6; }
  5640. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5641. $as_echo_n "(cached) " >&6
  5642. else
  5643. if test -n "$ac_ct_RANLIB"; then
  5644. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5645. else
  5646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5647. for as_dir in $PATH
  5648. do
  5649. IFS=$as_save_IFS
  5650. test -z "$as_dir" && as_dir=.
  5651. for ac_exec_ext in '' $ac_executable_extensions; do
  5652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5653. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5655. break 2
  5656. fi
  5657. done
  5658. done
  5659. IFS=$as_save_IFS
  5660. fi
  5661. fi
  5662. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5663. if test -n "$ac_ct_RANLIB"; then
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5665. $as_echo "$ac_ct_RANLIB" >&6; }
  5666. else
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5668. $as_echo "no" >&6; }
  5669. fi
  5670. if test "x$ac_ct_RANLIB" = x; then
  5671. RANLIB=":"
  5672. else
  5673. case $cross_compiling:$ac_tool_warned in
  5674. yes:)
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5676. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5677. ac_tool_warned=yes ;;
  5678. esac
  5679. RANLIB=$ac_ct_RANLIB
  5680. fi
  5681. else
  5682. RANLIB="$ac_cv_prog_RANLIB"
  5683. fi
  5684. test -z "$RANLIB" && RANLIB=:
  5685. # Determine commands to create old-style static archives.
  5686. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5687. old_postinstall_cmds='chmod 644 $oldlib'
  5688. old_postuninstall_cmds=
  5689. if test -n "$RANLIB"; then
  5690. case $host_os in
  5691. bitrig* | openbsd*)
  5692. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5693. ;;
  5694. *)
  5695. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5696. ;;
  5697. esac
  5698. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5699. fi
  5700. case $host_os in
  5701. darwin*)
  5702. lock_old_archive_extraction=yes ;;
  5703. *)
  5704. lock_old_archive_extraction=no ;;
  5705. esac
  5706. # If no C compiler was specified, use CC.
  5707. LTCC=${LTCC-"$CC"}
  5708. # If no C compiler flags were specified, use CFLAGS.
  5709. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5710. # Allow CC to be a program name with arguments.
  5711. compiler=$CC
  5712. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5714. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5715. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5716. $as_echo_n "(cached) " >&6
  5717. else
  5718. # These are sane defaults that work on at least a few old systems.
  5719. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5720. # Character class describing NM global symbol codes.
  5721. symcode='[BCDEGRST]'
  5722. # Regexp to match symbols that can be accessed directly from C.
  5723. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5724. # Define system-specific variables.
  5725. case $host_os in
  5726. aix*)
  5727. symcode='[BCDT]'
  5728. ;;
  5729. cygwin* | mingw* | pw32* | cegcc*)
  5730. symcode='[ABCDGISTW]'
  5731. ;;
  5732. hpux*)
  5733. if test ia64 = "$host_cpu"; then
  5734. symcode='[ABCDEGRST]'
  5735. fi
  5736. ;;
  5737. irix* | nonstopux*)
  5738. symcode='[BCDEGRST]'
  5739. ;;
  5740. osf*)
  5741. symcode='[BCDEGQRST]'
  5742. ;;
  5743. solaris*)
  5744. symcode='[BDRT]'
  5745. ;;
  5746. sco3.2v5*)
  5747. symcode='[DT]'
  5748. ;;
  5749. sysv4.2uw2*)
  5750. symcode='[DT]'
  5751. ;;
  5752. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5753. symcode='[ABDT]'
  5754. ;;
  5755. sysv4)
  5756. symcode='[DFNSTU]'
  5757. ;;
  5758. esac
  5759. # If we're using GNU nm, then use its standard symbol codes.
  5760. case `$NM -V 2>&1` in
  5761. *GNU* | *'with BFD'*)
  5762. symcode='[ABCDGIRSTW]' ;;
  5763. esac
  5764. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5765. # Gets list of data symbols to import.
  5766. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5767. # Adjust the below global symbol transforms to fixup imported variables.
  5768. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5769. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5770. lt_c_name_lib_hook="\
  5771. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5772. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5773. else
  5774. # Disable hooks by default.
  5775. lt_cv_sys_global_symbol_to_import=
  5776. lt_cdecl_hook=
  5777. lt_c_name_hook=
  5778. lt_c_name_lib_hook=
  5779. fi
  5780. # Transform an extracted symbol line into a proper C declaration.
  5781. # Some systems (esp. on ia64) link data and code symbols differently,
  5782. # so use this general approach.
  5783. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5784. $lt_cdecl_hook\
  5785. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5786. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5787. # Transform an extracted symbol line into symbol name and symbol address
  5788. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5789. $lt_c_name_hook\
  5790. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5791. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5792. # Transform an extracted symbol line into symbol name with lib prefix and
  5793. # symbol address.
  5794. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5795. $lt_c_name_lib_hook\
  5796. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5797. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5798. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5799. # Handle CRLF in mingw tool chain
  5800. opt_cr=
  5801. case $build_os in
  5802. mingw*)
  5803. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5804. ;;
  5805. esac
  5806. # Try without a prefix underscore, then with it.
  5807. for ac_symprfx in "" "_"; do
  5808. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5809. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5810. # Write the raw and C identifiers.
  5811. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5812. # Fake it for dumpbin and say T for any non-static function,
  5813. # D for any global variable and I for any imported variable.
  5814. # Also find C++ and __fastcall symbols from MSVC++,
  5815. # which start with @ or ?.
  5816. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5817. " {last_section=section; section=\$ 3};"\
  5818. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5819. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5820. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5821. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5822. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5823. " \$ 0!~/External *\|/{next};"\
  5824. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5825. " {if(hide[section]) next};"\
  5826. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5827. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5828. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5829. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5830. " ' prfx=^$ac_symprfx"
  5831. else
  5832. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5833. fi
  5834. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5835. # Check to see that the pipe works correctly.
  5836. pipe_works=no
  5837. rm -f conftest*
  5838. cat > conftest.$ac_ext <<_LT_EOF
  5839. #ifdef __cplusplus
  5840. extern "C" {
  5841. #endif
  5842. char nm_test_var;
  5843. void nm_test_func(void);
  5844. void nm_test_func(void){}
  5845. #ifdef __cplusplus
  5846. }
  5847. #endif
  5848. int main(){nm_test_var='a';nm_test_func();return(0);}
  5849. _LT_EOF
  5850. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5851. (eval $ac_compile) 2>&5
  5852. ac_status=$?
  5853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5854. test $ac_status = 0; }; then
  5855. # Now try to grab the symbols.
  5856. nlist=conftest.nm
  5857. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5858. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5859. ac_status=$?
  5860. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5861. test $ac_status = 0; } && test -s "$nlist"; then
  5862. # Try sorting and uniquifying the output.
  5863. if sort "$nlist" | uniq > "$nlist"T; then
  5864. mv -f "$nlist"T "$nlist"
  5865. else
  5866. rm -f "$nlist"T
  5867. fi
  5868. # Make sure that we snagged all the symbols we need.
  5869. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5870. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5871. cat <<_LT_EOF > conftest.$ac_ext
  5872. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5873. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5874. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5875. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5876. # define LT_DLSYM_CONST
  5877. #elif defined __osf__
  5878. /* This system does not cope well with relocations in const data. */
  5879. # define LT_DLSYM_CONST
  5880. #else
  5881. # define LT_DLSYM_CONST const
  5882. #endif
  5883. #ifdef __cplusplus
  5884. extern "C" {
  5885. #endif
  5886. _LT_EOF
  5887. # Now generate the symbol file.
  5888. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5889. cat <<_LT_EOF >> conftest.$ac_ext
  5890. /* The mapping between symbol names and symbols. */
  5891. LT_DLSYM_CONST struct {
  5892. const char *name;
  5893. void *address;
  5894. }
  5895. lt__PROGRAM__LTX_preloaded_symbols[] =
  5896. {
  5897. { "@PROGRAM@", (void *) 0 },
  5898. _LT_EOF
  5899. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5900. cat <<\_LT_EOF >> conftest.$ac_ext
  5901. {0, (void *) 0}
  5902. };
  5903. /* This works around a problem in FreeBSD linker */
  5904. #ifdef FREEBSD_WORKAROUND
  5905. static const void *lt_preloaded_setup() {
  5906. return lt__PROGRAM__LTX_preloaded_symbols;
  5907. }
  5908. #endif
  5909. #ifdef __cplusplus
  5910. }
  5911. #endif
  5912. _LT_EOF
  5913. # Now try linking the two files.
  5914. mv conftest.$ac_objext conftstm.$ac_objext
  5915. lt_globsym_save_LIBS=$LIBS
  5916. lt_globsym_save_CFLAGS=$CFLAGS
  5917. LIBS=conftstm.$ac_objext
  5918. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5919. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5920. (eval $ac_link) 2>&5
  5921. ac_status=$?
  5922. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5923. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5924. pipe_works=yes
  5925. fi
  5926. LIBS=$lt_globsym_save_LIBS
  5927. CFLAGS=$lt_globsym_save_CFLAGS
  5928. else
  5929. echo "cannot find nm_test_func in $nlist" >&5
  5930. fi
  5931. else
  5932. echo "cannot find nm_test_var in $nlist" >&5
  5933. fi
  5934. else
  5935. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5936. fi
  5937. else
  5938. echo "$progname: failed program was:" >&5
  5939. cat conftest.$ac_ext >&5
  5940. fi
  5941. rm -rf conftest* conftst*
  5942. # Do not use the global_symbol_pipe unless it works.
  5943. if test yes = "$pipe_works"; then
  5944. break
  5945. else
  5946. lt_cv_sys_global_symbol_pipe=
  5947. fi
  5948. done
  5949. fi
  5950. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5951. lt_cv_sys_global_symbol_to_cdecl=
  5952. fi
  5953. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5955. $as_echo "failed" >&6; }
  5956. else
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5958. $as_echo "ok" >&6; }
  5959. fi
  5960. # Response file support.
  5961. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5962. nm_file_list_spec='@'
  5963. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5964. nm_file_list_spec='@'
  5965. fi
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5967. $as_echo_n "checking for sysroot... " >&6; }
  5968. # Check whether --with-sysroot was given.
  5969. if test "${with_sysroot+set}" = set; then :
  5970. withval=$with_sysroot;
  5971. else
  5972. with_sysroot=no
  5973. fi
  5974. lt_sysroot=
  5975. case $with_sysroot in #(
  5976. yes)
  5977. if test yes = "$GCC"; then
  5978. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5979. fi
  5980. ;; #(
  5981. /*)
  5982. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5983. ;; #(
  5984. no|'')
  5985. ;; #(
  5986. *)
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5988. $as_echo "$with_sysroot" >&6; }
  5989. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5990. ;;
  5991. esac
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5993. $as_echo "${lt_sysroot:-no}" >&6; }
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5995. $as_echo_n "checking for a working dd... " >&6; }
  5996. if ${ac_cv_path_lt_DD+:} false; then :
  5997. $as_echo_n "(cached) " >&6
  5998. else
  5999. printf 0123456789abcdef0123456789abcdef >conftest.i
  6000. cat conftest.i conftest.i >conftest2.i
  6001. : ${lt_DD:=$DD}
  6002. if test -z "$lt_DD"; then
  6003. ac_path_lt_DD_found=false
  6004. # Loop through the user's path and test for each of PROGNAME-LIST
  6005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6006. for as_dir in $PATH
  6007. do
  6008. IFS=$as_save_IFS
  6009. test -z "$as_dir" && as_dir=.
  6010. for ac_prog in dd; do
  6011. for ac_exec_ext in '' $ac_executable_extensions; do
  6012. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6013. as_fn_executable_p "$ac_path_lt_DD" || continue
  6014. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6015. cmp -s conftest.i conftest.out \
  6016. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6017. fi
  6018. $ac_path_lt_DD_found && break 3
  6019. done
  6020. done
  6021. done
  6022. IFS=$as_save_IFS
  6023. if test -z "$ac_cv_path_lt_DD"; then
  6024. :
  6025. fi
  6026. else
  6027. ac_cv_path_lt_DD=$lt_DD
  6028. fi
  6029. rm -f conftest.i conftest2.i conftest.out
  6030. fi
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6032. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6034. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6035. if ${lt_cv_truncate_bin+:} false; then :
  6036. $as_echo_n "(cached) " >&6
  6037. else
  6038. printf 0123456789abcdef0123456789abcdef >conftest.i
  6039. cat conftest.i conftest.i >conftest2.i
  6040. lt_cv_truncate_bin=
  6041. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6042. cmp -s conftest.i conftest.out \
  6043. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6044. fi
  6045. rm -f conftest.i conftest2.i conftest.out
  6046. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6047. fi
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6049. $as_echo "$lt_cv_truncate_bin" >&6; }
  6050. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6051. func_cc_basename ()
  6052. {
  6053. for cc_temp in $*""; do
  6054. case $cc_temp in
  6055. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6056. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6057. \-*) ;;
  6058. *) break;;
  6059. esac
  6060. done
  6061. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6062. }
  6063. # Check whether --enable-libtool-lock was given.
  6064. if test "${enable_libtool_lock+set}" = set; then :
  6065. enableval=$enable_libtool_lock;
  6066. fi
  6067. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6068. # Some flags need to be propagated to the compiler or linker for good
  6069. # libtool support.
  6070. case $host in
  6071. ia64-*-hpux*)
  6072. # Find out what ABI is being produced by ac_compile, and set mode
  6073. # options accordingly.
  6074. echo 'int i;' > conftest.$ac_ext
  6075. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6076. (eval $ac_compile) 2>&5
  6077. ac_status=$?
  6078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6079. test $ac_status = 0; }; then
  6080. case `/usr/bin/file conftest.$ac_objext` in
  6081. *ELF-32*)
  6082. HPUX_IA64_MODE=32
  6083. ;;
  6084. *ELF-64*)
  6085. HPUX_IA64_MODE=64
  6086. ;;
  6087. esac
  6088. fi
  6089. rm -rf conftest*
  6090. ;;
  6091. *-*-irix6*)
  6092. # Find out what ABI is being produced by ac_compile, and set linker
  6093. # options accordingly.
  6094. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6095. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6096. (eval $ac_compile) 2>&5
  6097. ac_status=$?
  6098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6099. test $ac_status = 0; }; then
  6100. if test yes = "$lt_cv_prog_gnu_ld"; then
  6101. case `/usr/bin/file conftest.$ac_objext` in
  6102. *32-bit*)
  6103. LD="${LD-ld} -melf32bsmip"
  6104. ;;
  6105. *N32*)
  6106. LD="${LD-ld} -melf32bmipn32"
  6107. ;;
  6108. *64-bit*)
  6109. LD="${LD-ld} -melf64bmip"
  6110. ;;
  6111. esac
  6112. else
  6113. case `/usr/bin/file conftest.$ac_objext` in
  6114. *32-bit*)
  6115. LD="${LD-ld} -32"
  6116. ;;
  6117. *N32*)
  6118. LD="${LD-ld} -n32"
  6119. ;;
  6120. *64-bit*)
  6121. LD="${LD-ld} -64"
  6122. ;;
  6123. esac
  6124. fi
  6125. fi
  6126. rm -rf conftest*
  6127. ;;
  6128. mips64*-*linux*)
  6129. # Find out what ABI is being produced by ac_compile, and set linker
  6130. # options accordingly.
  6131. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6132. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6133. (eval $ac_compile) 2>&5
  6134. ac_status=$?
  6135. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6136. test $ac_status = 0; }; then
  6137. emul=elf
  6138. case `/usr/bin/file conftest.$ac_objext` in
  6139. *32-bit*)
  6140. emul="${emul}32"
  6141. ;;
  6142. *64-bit*)
  6143. emul="${emul}64"
  6144. ;;
  6145. esac
  6146. case `/usr/bin/file conftest.$ac_objext` in
  6147. *MSB*)
  6148. emul="${emul}btsmip"
  6149. ;;
  6150. *LSB*)
  6151. emul="${emul}ltsmip"
  6152. ;;
  6153. esac
  6154. case `/usr/bin/file conftest.$ac_objext` in
  6155. *N32*)
  6156. emul="${emul}n32"
  6157. ;;
  6158. esac
  6159. LD="${LD-ld} -m $emul"
  6160. fi
  6161. rm -rf conftest*
  6162. ;;
  6163. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6164. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6165. # Find out what ABI is being produced by ac_compile, and set linker
  6166. # options accordingly. Note that the listed cases only cover the
  6167. # situations where additional linker options are needed (such as when
  6168. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6169. # vice versa); the common cases where no linker options are needed do
  6170. # not appear in the list.
  6171. echo 'int i;' > conftest.$ac_ext
  6172. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6173. (eval $ac_compile) 2>&5
  6174. ac_status=$?
  6175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6176. test $ac_status = 0; }; then
  6177. case `/usr/bin/file conftest.o` in
  6178. *32-bit*)
  6179. case $host in
  6180. x86_64-*kfreebsd*-gnu)
  6181. LD="${LD-ld} -m elf_i386_fbsd"
  6182. ;;
  6183. x86_64-*linux*)
  6184. case `/usr/bin/file conftest.o` in
  6185. *x86-64*)
  6186. LD="${LD-ld} -m elf32_x86_64"
  6187. ;;
  6188. *)
  6189. LD="${LD-ld} -m elf_i386"
  6190. ;;
  6191. esac
  6192. ;;
  6193. powerpc64le-*linux*)
  6194. LD="${LD-ld} -m elf32lppclinux"
  6195. ;;
  6196. powerpc64-*linux*)
  6197. LD="${LD-ld} -m elf32ppclinux"
  6198. ;;
  6199. s390x-*linux*)
  6200. LD="${LD-ld} -m elf_s390"
  6201. ;;
  6202. sparc64-*linux*)
  6203. LD="${LD-ld} -m elf32_sparc"
  6204. ;;
  6205. esac
  6206. ;;
  6207. *64-bit*)
  6208. case $host in
  6209. x86_64-*kfreebsd*-gnu)
  6210. LD="${LD-ld} -m elf_x86_64_fbsd"
  6211. ;;
  6212. x86_64-*linux*)
  6213. LD="${LD-ld} -m elf_x86_64"
  6214. ;;
  6215. powerpcle-*linux*)
  6216. LD="${LD-ld} -m elf64lppc"
  6217. ;;
  6218. powerpc-*linux*)
  6219. LD="${LD-ld} -m elf64ppc"
  6220. ;;
  6221. s390*-*linux*|s390*-*tpf*)
  6222. LD="${LD-ld} -m elf64_s390"
  6223. ;;
  6224. sparc*-*linux*)
  6225. LD="${LD-ld} -m elf64_sparc"
  6226. ;;
  6227. esac
  6228. ;;
  6229. esac
  6230. fi
  6231. rm -rf conftest*
  6232. ;;
  6233. *-*-sco3.2v5*)
  6234. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6235. SAVE_CFLAGS=$CFLAGS
  6236. CFLAGS="$CFLAGS -belf"
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6238. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6239. if ${lt_cv_cc_needs_belf+:} false; then :
  6240. $as_echo_n "(cached) " >&6
  6241. else
  6242. ac_ext=c
  6243. ac_cpp='$CPP $CPPFLAGS'
  6244. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6245. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6246. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6248. /* end confdefs.h. */
  6249. int
  6250. main ()
  6251. {
  6252. ;
  6253. return 0;
  6254. }
  6255. _ACEOF
  6256. if ac_fn_c_try_link "$LINENO"; then :
  6257. lt_cv_cc_needs_belf=yes
  6258. else
  6259. lt_cv_cc_needs_belf=no
  6260. fi
  6261. rm -f core conftest.err conftest.$ac_objext \
  6262. conftest$ac_exeext conftest.$ac_ext
  6263. ac_ext=c
  6264. ac_cpp='$CPP $CPPFLAGS'
  6265. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6266. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6267. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6268. fi
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6270. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6271. if test yes != "$lt_cv_cc_needs_belf"; then
  6272. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6273. CFLAGS=$SAVE_CFLAGS
  6274. fi
  6275. ;;
  6276. *-*solaris*)
  6277. # Find out what ABI is being produced by ac_compile, and set linker
  6278. # options accordingly.
  6279. echo 'int i;' > conftest.$ac_ext
  6280. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6281. (eval $ac_compile) 2>&5
  6282. ac_status=$?
  6283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6284. test $ac_status = 0; }; then
  6285. case `/usr/bin/file conftest.o` in
  6286. *64-bit*)
  6287. case $lt_cv_prog_gnu_ld in
  6288. yes*)
  6289. case $host in
  6290. i?86-*-solaris*|x86_64-*-solaris*)
  6291. LD="${LD-ld} -m elf_x86_64"
  6292. ;;
  6293. sparc*-*-solaris*)
  6294. LD="${LD-ld} -m elf64_sparc"
  6295. ;;
  6296. esac
  6297. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6298. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6299. LD=${LD-ld}_sol2
  6300. fi
  6301. ;;
  6302. *)
  6303. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6304. LD="${LD-ld} -64"
  6305. fi
  6306. ;;
  6307. esac
  6308. ;;
  6309. esac
  6310. fi
  6311. rm -rf conftest*
  6312. ;;
  6313. esac
  6314. need_locks=$enable_libtool_lock
  6315. if test -n "$ac_tool_prefix"; then
  6316. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6317. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6319. $as_echo_n "checking for $ac_word... " >&6; }
  6320. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6321. $as_echo_n "(cached) " >&6
  6322. else
  6323. if test -n "$MANIFEST_TOOL"; then
  6324. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6325. else
  6326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6327. for as_dir in $PATH
  6328. do
  6329. IFS=$as_save_IFS
  6330. test -z "$as_dir" && as_dir=.
  6331. for ac_exec_ext in '' $ac_executable_extensions; do
  6332. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6333. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6335. break 2
  6336. fi
  6337. done
  6338. done
  6339. IFS=$as_save_IFS
  6340. fi
  6341. fi
  6342. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6343. if test -n "$MANIFEST_TOOL"; then
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6345. $as_echo "$MANIFEST_TOOL" >&6; }
  6346. else
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6348. $as_echo "no" >&6; }
  6349. fi
  6350. fi
  6351. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6352. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6353. # Extract the first word of "mt", so it can be a program name with args.
  6354. set dummy mt; ac_word=$2
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6356. $as_echo_n "checking for $ac_word... " >&6; }
  6357. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6358. $as_echo_n "(cached) " >&6
  6359. else
  6360. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6361. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6362. else
  6363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6364. for as_dir in $PATH
  6365. do
  6366. IFS=$as_save_IFS
  6367. test -z "$as_dir" && as_dir=.
  6368. for ac_exec_ext in '' $ac_executable_extensions; do
  6369. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6370. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6372. break 2
  6373. fi
  6374. done
  6375. done
  6376. IFS=$as_save_IFS
  6377. fi
  6378. fi
  6379. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6380. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6382. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6383. else
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6385. $as_echo "no" >&6; }
  6386. fi
  6387. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6388. MANIFEST_TOOL=":"
  6389. else
  6390. case $cross_compiling:$ac_tool_warned in
  6391. yes:)
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6393. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6394. ac_tool_warned=yes ;;
  6395. esac
  6396. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6397. fi
  6398. else
  6399. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6400. fi
  6401. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6403. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6404. if ${lt_cv_path_mainfest_tool+:} false; then :
  6405. $as_echo_n "(cached) " >&6
  6406. else
  6407. lt_cv_path_mainfest_tool=no
  6408. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6409. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6410. cat conftest.err >&5
  6411. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6412. lt_cv_path_mainfest_tool=yes
  6413. fi
  6414. rm -f conftest*
  6415. fi
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6417. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6418. if test yes != "$lt_cv_path_mainfest_tool"; then
  6419. MANIFEST_TOOL=:
  6420. fi
  6421. case $host_os in
  6422. rhapsody* | darwin*)
  6423. if test -n "$ac_tool_prefix"; then
  6424. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6425. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6427. $as_echo_n "checking for $ac_word... " >&6; }
  6428. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6429. $as_echo_n "(cached) " >&6
  6430. else
  6431. if test -n "$DSYMUTIL"; then
  6432. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6433. else
  6434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6435. for as_dir in $PATH
  6436. do
  6437. IFS=$as_save_IFS
  6438. test -z "$as_dir" && as_dir=.
  6439. for ac_exec_ext in '' $ac_executable_extensions; do
  6440. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6441. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6443. break 2
  6444. fi
  6445. done
  6446. done
  6447. IFS=$as_save_IFS
  6448. fi
  6449. fi
  6450. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6451. if test -n "$DSYMUTIL"; then
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6453. $as_echo "$DSYMUTIL" >&6; }
  6454. else
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6456. $as_echo "no" >&6; }
  6457. fi
  6458. fi
  6459. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6460. ac_ct_DSYMUTIL=$DSYMUTIL
  6461. # Extract the first word of "dsymutil", so it can be a program name with args.
  6462. set dummy dsymutil; ac_word=$2
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6464. $as_echo_n "checking for $ac_word... " >&6; }
  6465. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6466. $as_echo_n "(cached) " >&6
  6467. else
  6468. if test -n "$ac_ct_DSYMUTIL"; then
  6469. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6470. else
  6471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6472. for as_dir in $PATH
  6473. do
  6474. IFS=$as_save_IFS
  6475. test -z "$as_dir" && as_dir=.
  6476. for ac_exec_ext in '' $ac_executable_extensions; do
  6477. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6478. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6480. break 2
  6481. fi
  6482. done
  6483. done
  6484. IFS=$as_save_IFS
  6485. fi
  6486. fi
  6487. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6488. if test -n "$ac_ct_DSYMUTIL"; then
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6490. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6491. else
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6493. $as_echo "no" >&6; }
  6494. fi
  6495. if test "x$ac_ct_DSYMUTIL" = x; then
  6496. DSYMUTIL=":"
  6497. else
  6498. case $cross_compiling:$ac_tool_warned in
  6499. yes:)
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6501. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6502. ac_tool_warned=yes ;;
  6503. esac
  6504. DSYMUTIL=$ac_ct_DSYMUTIL
  6505. fi
  6506. else
  6507. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6508. fi
  6509. if test -n "$ac_tool_prefix"; then
  6510. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6511. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6513. $as_echo_n "checking for $ac_word... " >&6; }
  6514. if ${ac_cv_prog_NMEDIT+:} false; then :
  6515. $as_echo_n "(cached) " >&6
  6516. else
  6517. if test -n "$NMEDIT"; then
  6518. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6519. else
  6520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6521. for as_dir in $PATH
  6522. do
  6523. IFS=$as_save_IFS
  6524. test -z "$as_dir" && as_dir=.
  6525. for ac_exec_ext in '' $ac_executable_extensions; do
  6526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6527. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6529. break 2
  6530. fi
  6531. done
  6532. done
  6533. IFS=$as_save_IFS
  6534. fi
  6535. fi
  6536. NMEDIT=$ac_cv_prog_NMEDIT
  6537. if test -n "$NMEDIT"; then
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6539. $as_echo "$NMEDIT" >&6; }
  6540. else
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6542. $as_echo "no" >&6; }
  6543. fi
  6544. fi
  6545. if test -z "$ac_cv_prog_NMEDIT"; then
  6546. ac_ct_NMEDIT=$NMEDIT
  6547. # Extract the first word of "nmedit", so it can be a program name with args.
  6548. set dummy nmedit; ac_word=$2
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6550. $as_echo_n "checking for $ac_word... " >&6; }
  6551. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6552. $as_echo_n "(cached) " >&6
  6553. else
  6554. if test -n "$ac_ct_NMEDIT"; then
  6555. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6556. else
  6557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6558. for as_dir in $PATH
  6559. do
  6560. IFS=$as_save_IFS
  6561. test -z "$as_dir" && as_dir=.
  6562. for ac_exec_ext in '' $ac_executable_extensions; do
  6563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6564. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6566. break 2
  6567. fi
  6568. done
  6569. done
  6570. IFS=$as_save_IFS
  6571. fi
  6572. fi
  6573. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6574. if test -n "$ac_ct_NMEDIT"; then
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6576. $as_echo "$ac_ct_NMEDIT" >&6; }
  6577. else
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6579. $as_echo "no" >&6; }
  6580. fi
  6581. if test "x$ac_ct_NMEDIT" = x; then
  6582. NMEDIT=":"
  6583. else
  6584. case $cross_compiling:$ac_tool_warned in
  6585. yes:)
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6587. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6588. ac_tool_warned=yes ;;
  6589. esac
  6590. NMEDIT=$ac_ct_NMEDIT
  6591. fi
  6592. else
  6593. NMEDIT="$ac_cv_prog_NMEDIT"
  6594. fi
  6595. if test -n "$ac_tool_prefix"; then
  6596. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6597. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6599. $as_echo_n "checking for $ac_word... " >&6; }
  6600. if ${ac_cv_prog_LIPO+:} false; then :
  6601. $as_echo_n "(cached) " >&6
  6602. else
  6603. if test -n "$LIPO"; then
  6604. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6605. else
  6606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6607. for as_dir in $PATH
  6608. do
  6609. IFS=$as_save_IFS
  6610. test -z "$as_dir" && as_dir=.
  6611. for ac_exec_ext in '' $ac_executable_extensions; do
  6612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6613. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6615. break 2
  6616. fi
  6617. done
  6618. done
  6619. IFS=$as_save_IFS
  6620. fi
  6621. fi
  6622. LIPO=$ac_cv_prog_LIPO
  6623. if test -n "$LIPO"; then
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6625. $as_echo "$LIPO" >&6; }
  6626. else
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6628. $as_echo "no" >&6; }
  6629. fi
  6630. fi
  6631. if test -z "$ac_cv_prog_LIPO"; then
  6632. ac_ct_LIPO=$LIPO
  6633. # Extract the first word of "lipo", so it can be a program name with args.
  6634. set dummy lipo; ac_word=$2
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6636. $as_echo_n "checking for $ac_word... " >&6; }
  6637. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6638. $as_echo_n "(cached) " >&6
  6639. else
  6640. if test -n "$ac_ct_LIPO"; then
  6641. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6642. else
  6643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6644. for as_dir in $PATH
  6645. do
  6646. IFS=$as_save_IFS
  6647. test -z "$as_dir" && as_dir=.
  6648. for ac_exec_ext in '' $ac_executable_extensions; do
  6649. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6650. ac_cv_prog_ac_ct_LIPO="lipo"
  6651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6652. break 2
  6653. fi
  6654. done
  6655. done
  6656. IFS=$as_save_IFS
  6657. fi
  6658. fi
  6659. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6660. if test -n "$ac_ct_LIPO"; then
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6662. $as_echo "$ac_ct_LIPO" >&6; }
  6663. else
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6665. $as_echo "no" >&6; }
  6666. fi
  6667. if test "x$ac_ct_LIPO" = x; then
  6668. LIPO=":"
  6669. else
  6670. case $cross_compiling:$ac_tool_warned in
  6671. yes:)
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6673. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6674. ac_tool_warned=yes ;;
  6675. esac
  6676. LIPO=$ac_ct_LIPO
  6677. fi
  6678. else
  6679. LIPO="$ac_cv_prog_LIPO"
  6680. fi
  6681. if test -n "$ac_tool_prefix"; then
  6682. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6683. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6685. $as_echo_n "checking for $ac_word... " >&6; }
  6686. if ${ac_cv_prog_OTOOL+:} false; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. if test -n "$OTOOL"; then
  6690. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6691. else
  6692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6693. for as_dir in $PATH
  6694. do
  6695. IFS=$as_save_IFS
  6696. test -z "$as_dir" && as_dir=.
  6697. for ac_exec_ext in '' $ac_executable_extensions; do
  6698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6699. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6701. break 2
  6702. fi
  6703. done
  6704. done
  6705. IFS=$as_save_IFS
  6706. fi
  6707. fi
  6708. OTOOL=$ac_cv_prog_OTOOL
  6709. if test -n "$OTOOL"; then
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6711. $as_echo "$OTOOL" >&6; }
  6712. else
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6714. $as_echo "no" >&6; }
  6715. fi
  6716. fi
  6717. if test -z "$ac_cv_prog_OTOOL"; then
  6718. ac_ct_OTOOL=$OTOOL
  6719. # Extract the first word of "otool", so it can be a program name with args.
  6720. set dummy otool; ac_word=$2
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6722. $as_echo_n "checking for $ac_word... " >&6; }
  6723. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6724. $as_echo_n "(cached) " >&6
  6725. else
  6726. if test -n "$ac_ct_OTOOL"; then
  6727. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6728. else
  6729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6730. for as_dir in $PATH
  6731. do
  6732. IFS=$as_save_IFS
  6733. test -z "$as_dir" && as_dir=.
  6734. for ac_exec_ext in '' $ac_executable_extensions; do
  6735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6736. ac_cv_prog_ac_ct_OTOOL="otool"
  6737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6738. break 2
  6739. fi
  6740. done
  6741. done
  6742. IFS=$as_save_IFS
  6743. fi
  6744. fi
  6745. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6746. if test -n "$ac_ct_OTOOL"; then
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6748. $as_echo "$ac_ct_OTOOL" >&6; }
  6749. else
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6751. $as_echo "no" >&6; }
  6752. fi
  6753. if test "x$ac_ct_OTOOL" = x; then
  6754. OTOOL=":"
  6755. else
  6756. case $cross_compiling:$ac_tool_warned in
  6757. yes:)
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6759. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6760. ac_tool_warned=yes ;;
  6761. esac
  6762. OTOOL=$ac_ct_OTOOL
  6763. fi
  6764. else
  6765. OTOOL="$ac_cv_prog_OTOOL"
  6766. fi
  6767. if test -n "$ac_tool_prefix"; then
  6768. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6769. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6771. $as_echo_n "checking for $ac_word... " >&6; }
  6772. if ${ac_cv_prog_OTOOL64+:} false; then :
  6773. $as_echo_n "(cached) " >&6
  6774. else
  6775. if test -n "$OTOOL64"; then
  6776. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6777. else
  6778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6779. for as_dir in $PATH
  6780. do
  6781. IFS=$as_save_IFS
  6782. test -z "$as_dir" && as_dir=.
  6783. for ac_exec_ext in '' $ac_executable_extensions; do
  6784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6785. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6787. break 2
  6788. fi
  6789. done
  6790. done
  6791. IFS=$as_save_IFS
  6792. fi
  6793. fi
  6794. OTOOL64=$ac_cv_prog_OTOOL64
  6795. if test -n "$OTOOL64"; then
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6797. $as_echo "$OTOOL64" >&6; }
  6798. else
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6800. $as_echo "no" >&6; }
  6801. fi
  6802. fi
  6803. if test -z "$ac_cv_prog_OTOOL64"; then
  6804. ac_ct_OTOOL64=$OTOOL64
  6805. # Extract the first word of "otool64", so it can be a program name with args.
  6806. set dummy otool64; ac_word=$2
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6808. $as_echo_n "checking for $ac_word... " >&6; }
  6809. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6810. $as_echo_n "(cached) " >&6
  6811. else
  6812. if test -n "$ac_ct_OTOOL64"; then
  6813. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6814. else
  6815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6816. for as_dir in $PATH
  6817. do
  6818. IFS=$as_save_IFS
  6819. test -z "$as_dir" && as_dir=.
  6820. for ac_exec_ext in '' $ac_executable_extensions; do
  6821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6822. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6824. break 2
  6825. fi
  6826. done
  6827. done
  6828. IFS=$as_save_IFS
  6829. fi
  6830. fi
  6831. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6832. if test -n "$ac_ct_OTOOL64"; then
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6834. $as_echo "$ac_ct_OTOOL64" >&6; }
  6835. else
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6837. $as_echo "no" >&6; }
  6838. fi
  6839. if test "x$ac_ct_OTOOL64" = x; then
  6840. OTOOL64=":"
  6841. else
  6842. case $cross_compiling:$ac_tool_warned in
  6843. yes:)
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6845. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6846. ac_tool_warned=yes ;;
  6847. esac
  6848. OTOOL64=$ac_ct_OTOOL64
  6849. fi
  6850. else
  6851. OTOOL64="$ac_cv_prog_OTOOL64"
  6852. fi
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6854. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6855. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6856. $as_echo_n "(cached) " >&6
  6857. else
  6858. lt_cv_apple_cc_single_mod=no
  6859. if test -z "$LT_MULTI_MODULE"; then
  6860. # By default we will add the -single_module flag. You can override
  6861. # by either setting the environment variable LT_MULTI_MODULE
  6862. # non-empty at configure time, or by adding -multi_module to the
  6863. # link flags.
  6864. rm -rf libconftest.dylib*
  6865. echo "int foo(void){return 1;}" > conftest.c
  6866. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6867. -dynamiclib -Wl,-single_module conftest.c" >&5
  6868. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6869. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6870. _lt_result=$?
  6871. # If there is a non-empty error log, and "single_module"
  6872. # appears in it, assume the flag caused a linker warning
  6873. if test -s conftest.err && $GREP single_module conftest.err; then
  6874. cat conftest.err >&5
  6875. # Otherwise, if the output was created with a 0 exit code from
  6876. # the compiler, it worked.
  6877. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6878. lt_cv_apple_cc_single_mod=yes
  6879. else
  6880. cat conftest.err >&5
  6881. fi
  6882. rm -rf libconftest.dylib*
  6883. rm -f conftest.*
  6884. fi
  6885. fi
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6887. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6889. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6890. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6891. $as_echo_n "(cached) " >&6
  6892. else
  6893. lt_cv_ld_exported_symbols_list=no
  6894. save_LDFLAGS=$LDFLAGS
  6895. echo "_main" > conftest.sym
  6896. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6898. /* end confdefs.h. */
  6899. int
  6900. main ()
  6901. {
  6902. ;
  6903. return 0;
  6904. }
  6905. _ACEOF
  6906. if ac_fn_c_try_link "$LINENO"; then :
  6907. lt_cv_ld_exported_symbols_list=yes
  6908. else
  6909. lt_cv_ld_exported_symbols_list=no
  6910. fi
  6911. rm -f core conftest.err conftest.$ac_objext \
  6912. conftest$ac_exeext conftest.$ac_ext
  6913. LDFLAGS=$save_LDFLAGS
  6914. fi
  6915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6916. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6918. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6919. if ${lt_cv_ld_force_load+:} false; then :
  6920. $as_echo_n "(cached) " >&6
  6921. else
  6922. lt_cv_ld_force_load=no
  6923. cat > conftest.c << _LT_EOF
  6924. int forced_loaded() { return 2;}
  6925. _LT_EOF
  6926. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6927. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6928. echo "$AR cru libconftest.a conftest.o" >&5
  6929. $AR cru libconftest.a conftest.o 2>&5
  6930. echo "$RANLIB libconftest.a" >&5
  6931. $RANLIB libconftest.a 2>&5
  6932. cat > conftest.c << _LT_EOF
  6933. int main() { return 0;}
  6934. _LT_EOF
  6935. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6936. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6937. _lt_result=$?
  6938. if test -s conftest.err && $GREP force_load conftest.err; then
  6939. cat conftest.err >&5
  6940. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6941. lt_cv_ld_force_load=yes
  6942. else
  6943. cat conftest.err >&5
  6944. fi
  6945. rm -f conftest.err libconftest.a conftest conftest.c
  6946. rm -rf conftest.dSYM
  6947. fi
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6949. $as_echo "$lt_cv_ld_force_load" >&6; }
  6950. case $host_os in
  6951. rhapsody* | darwin1.[012])
  6952. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6953. darwin1.*)
  6954. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6955. darwin*) # darwin 5.x on
  6956. # if running on 10.5 or later, the deployment target defaults
  6957. # to the OS version, if on x86, and 10.4, the deployment
  6958. # target defaults to 10.4. Don't you love it?
  6959. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6960. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6961. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6962. 10.[012][,.]*)
  6963. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6964. 10.*)
  6965. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6966. esac
  6967. ;;
  6968. esac
  6969. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6970. _lt_dar_single_mod='$single_module'
  6971. fi
  6972. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6973. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6974. else
  6975. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6976. fi
  6977. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6978. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6979. else
  6980. _lt_dsymutil=
  6981. fi
  6982. ;;
  6983. esac
  6984. # func_munge_path_list VARIABLE PATH
  6985. # -----------------------------------
  6986. # VARIABLE is name of variable containing _space_ separated list of
  6987. # directories to be munged by the contents of PATH, which is string
  6988. # having a format:
  6989. # "DIR[:DIR]:"
  6990. # string "DIR[ DIR]" will be prepended to VARIABLE
  6991. # ":DIR[:DIR]"
  6992. # string "DIR[ DIR]" will be appended to VARIABLE
  6993. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6994. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6995. # "DIRA[ DIRA]" will be appended to VARIABLE
  6996. # "DIR[:DIR]"
  6997. # VARIABLE will be replaced by "DIR[ DIR]"
  6998. func_munge_path_list ()
  6999. {
  7000. case x$2 in
  7001. x)
  7002. ;;
  7003. *:)
  7004. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7005. ;;
  7006. x:*)
  7007. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7008. ;;
  7009. *::*)
  7010. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7011. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7012. ;;
  7013. *)
  7014. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7015. ;;
  7016. esac
  7017. }
  7018. ac_ext=c
  7019. ac_cpp='$CPP $CPPFLAGS'
  7020. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7021. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7022. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7024. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7025. # On Suns, sometimes $CPP names a directory.
  7026. if test -n "$CPP" && test -d "$CPP"; then
  7027. CPP=
  7028. fi
  7029. if test -z "$CPP"; then
  7030. if ${ac_cv_prog_CPP+:} false; then :
  7031. $as_echo_n "(cached) " >&6
  7032. else
  7033. # Double quotes because CPP needs to be expanded
  7034. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7035. do
  7036. ac_preproc_ok=false
  7037. for ac_c_preproc_warn_flag in '' yes
  7038. do
  7039. # Use a header file that comes with gcc, so configuring glibc
  7040. # with a fresh cross-compiler works.
  7041. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7042. # <limits.h> exists even on freestanding compilers.
  7043. # On the NeXT, cc -E runs the code through the compiler's parser,
  7044. # not just through cpp. "Syntax error" is here to catch this case.
  7045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7046. /* end confdefs.h. */
  7047. #ifdef __STDC__
  7048. # include <limits.h>
  7049. #else
  7050. # include <assert.h>
  7051. #endif
  7052. Syntax error
  7053. _ACEOF
  7054. if ac_fn_c_try_cpp "$LINENO"; then :
  7055. else
  7056. # Broken: fails on valid input.
  7057. continue
  7058. fi
  7059. rm -f conftest.err conftest.i conftest.$ac_ext
  7060. # OK, works on sane cases. Now check whether nonexistent headers
  7061. # can be detected and how.
  7062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7063. /* end confdefs.h. */
  7064. #include <ac_nonexistent.h>
  7065. _ACEOF
  7066. if ac_fn_c_try_cpp "$LINENO"; then :
  7067. # Broken: success on invalid input.
  7068. continue
  7069. else
  7070. # Passes both tests.
  7071. ac_preproc_ok=:
  7072. break
  7073. fi
  7074. rm -f conftest.err conftest.i conftest.$ac_ext
  7075. done
  7076. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7077. rm -f conftest.i conftest.err conftest.$ac_ext
  7078. if $ac_preproc_ok; then :
  7079. break
  7080. fi
  7081. done
  7082. ac_cv_prog_CPP=$CPP
  7083. fi
  7084. CPP=$ac_cv_prog_CPP
  7085. else
  7086. ac_cv_prog_CPP=$CPP
  7087. fi
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7089. $as_echo "$CPP" >&6; }
  7090. ac_preproc_ok=false
  7091. for ac_c_preproc_warn_flag in '' yes
  7092. do
  7093. # Use a header file that comes with gcc, so configuring glibc
  7094. # with a fresh cross-compiler works.
  7095. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7096. # <limits.h> exists even on freestanding compilers.
  7097. # On the NeXT, cc -E runs the code through the compiler's parser,
  7098. # not just through cpp. "Syntax error" is here to catch this case.
  7099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7100. /* end confdefs.h. */
  7101. #ifdef __STDC__
  7102. # include <limits.h>
  7103. #else
  7104. # include <assert.h>
  7105. #endif
  7106. Syntax error
  7107. _ACEOF
  7108. if ac_fn_c_try_cpp "$LINENO"; then :
  7109. else
  7110. # Broken: fails on valid input.
  7111. continue
  7112. fi
  7113. rm -f conftest.err conftest.i conftest.$ac_ext
  7114. # OK, works on sane cases. Now check whether nonexistent headers
  7115. # can be detected and how.
  7116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7117. /* end confdefs.h. */
  7118. #include <ac_nonexistent.h>
  7119. _ACEOF
  7120. if ac_fn_c_try_cpp "$LINENO"; then :
  7121. # Broken: success on invalid input.
  7122. continue
  7123. else
  7124. # Passes both tests.
  7125. ac_preproc_ok=:
  7126. break
  7127. fi
  7128. rm -f conftest.err conftest.i conftest.$ac_ext
  7129. done
  7130. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7131. rm -f conftest.i conftest.err conftest.$ac_ext
  7132. if $ac_preproc_ok; then :
  7133. else
  7134. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7135. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7136. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7137. See \`config.log' for more details" "$LINENO" 5; }
  7138. fi
  7139. ac_ext=c
  7140. ac_cpp='$CPP $CPPFLAGS'
  7141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7145. $as_echo_n "checking for ANSI C header files... " >&6; }
  7146. if ${ac_cv_header_stdc+:} false; then :
  7147. $as_echo_n "(cached) " >&6
  7148. else
  7149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7150. /* end confdefs.h. */
  7151. #include <stdlib.h>
  7152. #include <stdarg.h>
  7153. #include <string.h>
  7154. #include <float.h>
  7155. int
  7156. main ()
  7157. {
  7158. ;
  7159. return 0;
  7160. }
  7161. _ACEOF
  7162. if ac_fn_c_try_compile "$LINENO"; then :
  7163. ac_cv_header_stdc=yes
  7164. else
  7165. ac_cv_header_stdc=no
  7166. fi
  7167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7168. if test $ac_cv_header_stdc = yes; then
  7169. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7171. /* end confdefs.h. */
  7172. #include <string.h>
  7173. _ACEOF
  7174. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7175. $EGREP "memchr" >/dev/null 2>&1; then :
  7176. else
  7177. ac_cv_header_stdc=no
  7178. fi
  7179. rm -f conftest*
  7180. fi
  7181. if test $ac_cv_header_stdc = yes; then
  7182. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7184. /* end confdefs.h. */
  7185. #include <stdlib.h>
  7186. _ACEOF
  7187. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7188. $EGREP "free" >/dev/null 2>&1; then :
  7189. else
  7190. ac_cv_header_stdc=no
  7191. fi
  7192. rm -f conftest*
  7193. fi
  7194. if test $ac_cv_header_stdc = yes; then
  7195. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7196. if test "$cross_compiling" = yes; then :
  7197. :
  7198. else
  7199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7200. /* end confdefs.h. */
  7201. #include <ctype.h>
  7202. #include <stdlib.h>
  7203. #if ((' ' & 0x0FF) == 0x020)
  7204. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7205. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7206. #else
  7207. # define ISLOWER(c) \
  7208. (('a' <= (c) && (c) <= 'i') \
  7209. || ('j' <= (c) && (c) <= 'r') \
  7210. || ('s' <= (c) && (c) <= 'z'))
  7211. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7212. #endif
  7213. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7214. int
  7215. main ()
  7216. {
  7217. int i;
  7218. for (i = 0; i < 256; i++)
  7219. if (XOR (islower (i), ISLOWER (i))
  7220. || toupper (i) != TOUPPER (i))
  7221. return 2;
  7222. return 0;
  7223. }
  7224. _ACEOF
  7225. if ac_fn_c_try_run "$LINENO"; then :
  7226. else
  7227. ac_cv_header_stdc=no
  7228. fi
  7229. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7230. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7231. fi
  7232. fi
  7233. fi
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7235. $as_echo "$ac_cv_header_stdc" >&6; }
  7236. if test $ac_cv_header_stdc = yes; then
  7237. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7238. fi
  7239. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7240. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7241. inttypes.h stdint.h unistd.h
  7242. do :
  7243. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7244. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7245. "
  7246. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7247. cat >>confdefs.h <<_ACEOF
  7248. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7249. _ACEOF
  7250. fi
  7251. done
  7252. for ac_header in dlfcn.h
  7253. do :
  7254. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7255. "
  7256. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7257. cat >>confdefs.h <<_ACEOF
  7258. #define HAVE_DLFCN_H 1
  7259. _ACEOF
  7260. fi
  7261. done
  7262. func_stripname_cnf ()
  7263. {
  7264. case $2 in
  7265. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  7266. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  7267. esac
  7268. } # func_stripname_cnf
  7269. # Set options
  7270. enable_dlopen=no
  7271. enable_win32_dll=no
  7272. # Check whether --enable-shared was given.
  7273. if test "${enable_shared+set}" = set; then :
  7274. enableval=$enable_shared; p=${PACKAGE-default}
  7275. case $enableval in
  7276. yes) enable_shared=yes ;;
  7277. no) enable_shared=no ;;
  7278. *)
  7279. enable_shared=no
  7280. # Look at the argument we got. We use all the common list separators.
  7281. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7282. for pkg in $enableval; do
  7283. IFS=$lt_save_ifs
  7284. if test "X$pkg" = "X$p"; then
  7285. enable_shared=yes
  7286. fi
  7287. done
  7288. IFS=$lt_save_ifs
  7289. ;;
  7290. esac
  7291. else
  7292. enable_shared=yes
  7293. fi
  7294. # Check whether --enable-static was given.
  7295. if test "${enable_static+set}" = set; then :
  7296. enableval=$enable_static; p=${PACKAGE-default}
  7297. case $enableval in
  7298. yes) enable_static=yes ;;
  7299. no) enable_static=no ;;
  7300. *)
  7301. enable_static=no
  7302. # Look at the argument we got. We use all the common list separators.
  7303. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7304. for pkg in $enableval; do
  7305. IFS=$lt_save_ifs
  7306. if test "X$pkg" = "X$p"; then
  7307. enable_static=yes
  7308. fi
  7309. done
  7310. IFS=$lt_save_ifs
  7311. ;;
  7312. esac
  7313. else
  7314. enable_static=yes
  7315. fi
  7316. # Check whether --with-pic was given.
  7317. if test "${with_pic+set}" = set; then :
  7318. withval=$with_pic; lt_p=${PACKAGE-default}
  7319. case $withval in
  7320. yes|no) pic_mode=$withval ;;
  7321. *)
  7322. pic_mode=default
  7323. # Look at the argument we got. We use all the common list separators.
  7324. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7325. for lt_pkg in $withval; do
  7326. IFS=$lt_save_ifs
  7327. if test "X$lt_pkg" = "X$lt_p"; then
  7328. pic_mode=yes
  7329. fi
  7330. done
  7331. IFS=$lt_save_ifs
  7332. ;;
  7333. esac
  7334. else
  7335. pic_mode=default
  7336. fi
  7337. # Check whether --enable-fast-install was given.
  7338. if test "${enable_fast_install+set}" = set; then :
  7339. enableval=$enable_fast_install; p=${PACKAGE-default}
  7340. case $enableval in
  7341. yes) enable_fast_install=yes ;;
  7342. no) enable_fast_install=no ;;
  7343. *)
  7344. enable_fast_install=no
  7345. # Look at the argument we got. We use all the common list separators.
  7346. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7347. for pkg in $enableval; do
  7348. IFS=$lt_save_ifs
  7349. if test "X$pkg" = "X$p"; then
  7350. enable_fast_install=yes
  7351. fi
  7352. done
  7353. IFS=$lt_save_ifs
  7354. ;;
  7355. esac
  7356. else
  7357. enable_fast_install=yes
  7358. fi
  7359. shared_archive_member_spec=
  7360. case $host,$enable_shared in
  7361. power*-*-aix[5-9]*,yes)
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7363. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7364. # Check whether --with-aix-soname was given.
  7365. if test "${with_aix_soname+set}" = set; then :
  7366. withval=$with_aix_soname; case $withval in
  7367. aix|svr4|both)
  7368. ;;
  7369. *)
  7370. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7371. ;;
  7372. esac
  7373. lt_cv_with_aix_soname=$with_aix_soname
  7374. else
  7375. if ${lt_cv_with_aix_soname+:} false; then :
  7376. $as_echo_n "(cached) " >&6
  7377. else
  7378. lt_cv_with_aix_soname=aix
  7379. fi
  7380. with_aix_soname=$lt_cv_with_aix_soname
  7381. fi
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7383. $as_echo "$with_aix_soname" >&6; }
  7384. if test aix != "$with_aix_soname"; then
  7385. # For the AIX way of multilib, we name the shared archive member
  7386. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7387. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7388. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7389. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7390. if test 64 = "${OBJECT_MODE-32}"; then
  7391. shared_archive_member_spec=shr_64
  7392. else
  7393. shared_archive_member_spec=shr
  7394. fi
  7395. fi
  7396. ;;
  7397. *)
  7398. with_aix_soname=aix
  7399. ;;
  7400. esac
  7401. # This can be used to rebuild libtool when needed
  7402. LIBTOOL_DEPS=$ltmain
  7403. # Always use our own libtool.
  7404. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7405. test -z "$LN_S" && LN_S="ln -s"
  7406. if test -n "${ZSH_VERSION+set}"; then
  7407. setopt NO_GLOB_SUBST
  7408. fi
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7410. $as_echo_n "checking for objdir... " >&6; }
  7411. if ${lt_cv_objdir+:} false; then :
  7412. $as_echo_n "(cached) " >&6
  7413. else
  7414. rm -f .libs 2>/dev/null
  7415. mkdir .libs 2>/dev/null
  7416. if test -d .libs; then
  7417. lt_cv_objdir=.libs
  7418. else
  7419. # MS-DOS does not allow filenames that begin with a dot.
  7420. lt_cv_objdir=_libs
  7421. fi
  7422. rmdir .libs 2>/dev/null
  7423. fi
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7425. $as_echo "$lt_cv_objdir" >&6; }
  7426. objdir=$lt_cv_objdir
  7427. cat >>confdefs.h <<_ACEOF
  7428. #define LT_OBJDIR "$lt_cv_objdir/"
  7429. _ACEOF
  7430. case $host_os in
  7431. aix3*)
  7432. # AIX sometimes has problems with the GCC collect2 program. For some
  7433. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7434. # vanish in a puff of smoke.
  7435. if test set != "${COLLECT_NAMES+set}"; then
  7436. COLLECT_NAMES=
  7437. export COLLECT_NAMES
  7438. fi
  7439. ;;
  7440. esac
  7441. # Global variables:
  7442. ofile=libtool
  7443. can_build_shared=yes
  7444. # All known linkers require a '.a' archive for static linking (except MSVC,
  7445. # which needs '.lib').
  7446. libext=a
  7447. with_gnu_ld=$lt_cv_prog_gnu_ld
  7448. old_CC=$CC
  7449. old_CFLAGS=$CFLAGS
  7450. # Set sane defaults for various variables
  7451. test -z "$CC" && CC=cc
  7452. test -z "$LTCC" && LTCC=$CC
  7453. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7454. test -z "$LD" && LD=ld
  7455. test -z "$ac_objext" && ac_objext=o
  7456. func_cc_basename $compiler
  7457. cc_basename=$func_cc_basename_result
  7458. # Only perform the check for file, if the check method requires it
  7459. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7460. case $deplibs_check_method in
  7461. file_magic*)
  7462. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7464. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7465. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7466. $as_echo_n "(cached) " >&6
  7467. else
  7468. case $MAGIC_CMD in
  7469. [\\/*] | ?:[\\/]*)
  7470. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7471. ;;
  7472. *)
  7473. lt_save_MAGIC_CMD=$MAGIC_CMD
  7474. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7475. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7476. for ac_dir in $ac_dummy; do
  7477. IFS=$lt_save_ifs
  7478. test -z "$ac_dir" && ac_dir=.
  7479. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7480. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7481. if test -n "$file_magic_test_file"; then
  7482. case $deplibs_check_method in
  7483. "file_magic "*)
  7484. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7485. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7486. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7487. $EGREP "$file_magic_regex" > /dev/null; then
  7488. :
  7489. else
  7490. cat <<_LT_EOF 1>&2
  7491. *** Warning: the command libtool uses to detect shared libraries,
  7492. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7493. *** The result is that libtool may fail to recognize shared libraries
  7494. *** as such. This will affect the creation of libtool libraries that
  7495. *** depend on shared libraries, but programs linked with such libtool
  7496. *** libraries will work regardless of this problem. Nevertheless, you
  7497. *** may want to report the problem to your system manager and/or to
  7498. *** bug-libtool@gnu.org
  7499. _LT_EOF
  7500. fi ;;
  7501. esac
  7502. fi
  7503. break
  7504. fi
  7505. done
  7506. IFS=$lt_save_ifs
  7507. MAGIC_CMD=$lt_save_MAGIC_CMD
  7508. ;;
  7509. esac
  7510. fi
  7511. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7512. if test -n "$MAGIC_CMD"; then
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7514. $as_echo "$MAGIC_CMD" >&6; }
  7515. else
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7517. $as_echo "no" >&6; }
  7518. fi
  7519. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7520. if test -n "$ac_tool_prefix"; then
  7521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7522. $as_echo_n "checking for file... " >&6; }
  7523. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7524. $as_echo_n "(cached) " >&6
  7525. else
  7526. case $MAGIC_CMD in
  7527. [\\/*] | ?:[\\/]*)
  7528. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7529. ;;
  7530. *)
  7531. lt_save_MAGIC_CMD=$MAGIC_CMD
  7532. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7533. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7534. for ac_dir in $ac_dummy; do
  7535. IFS=$lt_save_ifs
  7536. test -z "$ac_dir" && ac_dir=.
  7537. if test -f "$ac_dir/file"; then
  7538. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7539. if test -n "$file_magic_test_file"; then
  7540. case $deplibs_check_method in
  7541. "file_magic "*)
  7542. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7543. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7544. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7545. $EGREP "$file_magic_regex" > /dev/null; then
  7546. :
  7547. else
  7548. cat <<_LT_EOF 1>&2
  7549. *** Warning: the command libtool uses to detect shared libraries,
  7550. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7551. *** The result is that libtool may fail to recognize shared libraries
  7552. *** as such. This will affect the creation of libtool libraries that
  7553. *** depend on shared libraries, but programs linked with such libtool
  7554. *** libraries will work regardless of this problem. Nevertheless, you
  7555. *** may want to report the problem to your system manager and/or to
  7556. *** bug-libtool@gnu.org
  7557. _LT_EOF
  7558. fi ;;
  7559. esac
  7560. fi
  7561. break
  7562. fi
  7563. done
  7564. IFS=$lt_save_ifs
  7565. MAGIC_CMD=$lt_save_MAGIC_CMD
  7566. ;;
  7567. esac
  7568. fi
  7569. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7570. if test -n "$MAGIC_CMD"; then
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7572. $as_echo "$MAGIC_CMD" >&6; }
  7573. else
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7575. $as_echo "no" >&6; }
  7576. fi
  7577. else
  7578. MAGIC_CMD=:
  7579. fi
  7580. fi
  7581. fi
  7582. ;;
  7583. esac
  7584. # Use C for the default configuration in the libtool script
  7585. lt_save_CC=$CC
  7586. ac_ext=c
  7587. ac_cpp='$CPP $CPPFLAGS'
  7588. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7589. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7590. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7591. # Source file extension for C test sources.
  7592. ac_ext=c
  7593. # Object file extension for compiled C test sources.
  7594. objext=o
  7595. objext=$objext
  7596. # Code to be used in simple compile tests
  7597. lt_simple_compile_test_code="int some_variable = 0;"
  7598. # Code to be used in simple link tests
  7599. lt_simple_link_test_code='int main(){return(0);}'
  7600. # If no C compiler was specified, use CC.
  7601. LTCC=${LTCC-"$CC"}
  7602. # If no C compiler flags were specified, use CFLAGS.
  7603. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7604. # Allow CC to be a program name with arguments.
  7605. compiler=$CC
  7606. # Save the default compiler, since it gets overwritten when the other
  7607. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7608. compiler_DEFAULT=$CC
  7609. # save warnings/boilerplate of simple test code
  7610. ac_outfile=conftest.$ac_objext
  7611. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7612. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7613. _lt_compiler_boilerplate=`cat conftest.err`
  7614. $RM conftest*
  7615. ac_outfile=conftest.$ac_objext
  7616. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7617. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7618. _lt_linker_boilerplate=`cat conftest.err`
  7619. $RM -r conftest*
  7620. ## CAVEAT EMPTOR:
  7621. ## There is no encapsulation within the following macros, do not change
  7622. ## the running order or otherwise move them around unless you know exactly
  7623. ## what you are doing...
  7624. if test -n "$compiler"; then
  7625. lt_prog_compiler_no_builtin_flag=
  7626. if test yes = "$GCC"; then
  7627. case $cc_basename in
  7628. nvcc*)
  7629. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7630. *)
  7631. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7632. esac
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7634. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7635. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7636. $as_echo_n "(cached) " >&6
  7637. else
  7638. lt_cv_prog_compiler_rtti_exceptions=no
  7639. ac_outfile=conftest.$ac_objext
  7640. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7641. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7642. # Insert the option either (1) after the last *FLAGS variable, or
  7643. # (2) before a word containing "conftest.", or (3) at the end.
  7644. # Note that $ac_compile itself does not contain backslashes and begins
  7645. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7646. # The option is referenced via a variable to avoid confusing sed.
  7647. lt_compile=`echo "$ac_compile" | $SED \
  7648. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7649. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7650. -e 's:$: $lt_compiler_flag:'`
  7651. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7652. (eval "$lt_compile" 2>conftest.err)
  7653. ac_status=$?
  7654. cat conftest.err >&5
  7655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7656. if (exit $ac_status) && test -s "$ac_outfile"; then
  7657. # The compiler can only warn and ignore the option if not recognized
  7658. # So say no if there are warnings other than the usual output.
  7659. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7660. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7661. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7662. lt_cv_prog_compiler_rtti_exceptions=yes
  7663. fi
  7664. fi
  7665. $RM conftest*
  7666. fi
  7667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7668. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7669. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7670. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7671. else
  7672. :
  7673. fi
  7674. fi
  7675. lt_prog_compiler_wl=
  7676. lt_prog_compiler_pic=
  7677. lt_prog_compiler_static=
  7678. if test yes = "$GCC"; then
  7679. lt_prog_compiler_wl='-Wl,'
  7680. lt_prog_compiler_static='-static'
  7681. case $host_os in
  7682. aix*)
  7683. # All AIX code is PIC.
  7684. if test ia64 = "$host_cpu"; then
  7685. # AIX 5 now supports IA64 processor
  7686. lt_prog_compiler_static='-Bstatic'
  7687. fi
  7688. lt_prog_compiler_pic='-fPIC'
  7689. ;;
  7690. amigaos*)
  7691. case $host_cpu in
  7692. powerpc)
  7693. # see comment about AmigaOS4 .so support
  7694. lt_prog_compiler_pic='-fPIC'
  7695. ;;
  7696. m68k)
  7697. # FIXME: we need at least 68020 code to build shared libraries, but
  7698. # adding the '-m68020' flag to GCC prevents building anything better,
  7699. # like '-m68040'.
  7700. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7701. ;;
  7702. esac
  7703. ;;
  7704. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7705. # PIC is the default for these OSes.
  7706. ;;
  7707. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7708. # This hack is so that the source file can tell whether it is being
  7709. # built for inclusion in a dll (and should export symbols for example).
  7710. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7711. # (--disable-auto-import) libraries
  7712. lt_prog_compiler_pic='-DDLL_EXPORT'
  7713. case $host_os in
  7714. os2*)
  7715. lt_prog_compiler_static='$wl-static'
  7716. ;;
  7717. esac
  7718. ;;
  7719. darwin* | rhapsody*)
  7720. # PIC is the default on this platform
  7721. # Common symbols not allowed in MH_DYLIB files
  7722. lt_prog_compiler_pic='-fno-common'
  7723. ;;
  7724. haiku*)
  7725. # PIC is the default for Haiku.
  7726. # The "-static" flag exists, but is broken.
  7727. lt_prog_compiler_static=
  7728. ;;
  7729. hpux*)
  7730. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7731. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7732. # sets the default TLS model and affects inlining.
  7733. case $host_cpu in
  7734. hppa*64*)
  7735. # +Z the default
  7736. ;;
  7737. *)
  7738. lt_prog_compiler_pic='-fPIC'
  7739. ;;
  7740. esac
  7741. ;;
  7742. interix[3-9]*)
  7743. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7744. # Instead, we relocate shared libraries at runtime.
  7745. ;;
  7746. msdosdjgpp*)
  7747. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7748. # on systems that don't support them.
  7749. lt_prog_compiler_can_build_shared=no
  7750. enable_shared=no
  7751. ;;
  7752. *nto* | *qnx*)
  7753. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7754. # it will coredump.
  7755. lt_prog_compiler_pic='-fPIC -shared'
  7756. ;;
  7757. sysv4*MP*)
  7758. if test -d /usr/nec; then
  7759. lt_prog_compiler_pic=-Kconform_pic
  7760. fi
  7761. ;;
  7762. *)
  7763. lt_prog_compiler_pic='-fPIC'
  7764. ;;
  7765. esac
  7766. case $cc_basename in
  7767. nvcc*) # Cuda Compiler Driver 2.2
  7768. lt_prog_compiler_wl='-Xlinker '
  7769. if test -n "$lt_prog_compiler_pic"; then
  7770. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7771. fi
  7772. ;;
  7773. esac
  7774. else
  7775. # PORTME Check for flag to pass linker flags through the system compiler.
  7776. case $host_os in
  7777. aix*)
  7778. lt_prog_compiler_wl='-Wl,'
  7779. if test ia64 = "$host_cpu"; then
  7780. # AIX 5 now supports IA64 processor
  7781. lt_prog_compiler_static='-Bstatic'
  7782. else
  7783. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7784. fi
  7785. ;;
  7786. darwin* | rhapsody*)
  7787. # PIC is the default on this platform
  7788. # Common symbols not allowed in MH_DYLIB files
  7789. lt_prog_compiler_pic='-fno-common'
  7790. case $cc_basename in
  7791. nagfor*)
  7792. # NAG Fortran compiler
  7793. lt_prog_compiler_wl='-Wl,-Wl,,'
  7794. lt_prog_compiler_pic='-PIC'
  7795. lt_prog_compiler_static='-Bstatic'
  7796. ;;
  7797. esac
  7798. ;;
  7799. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7800. # This hack is so that the source file can tell whether it is being
  7801. # built for inclusion in a dll (and should export symbols for example).
  7802. lt_prog_compiler_pic='-DDLL_EXPORT'
  7803. case $host_os in
  7804. os2*)
  7805. lt_prog_compiler_static='$wl-static'
  7806. ;;
  7807. esac
  7808. ;;
  7809. hpux9* | hpux10* | hpux11*)
  7810. lt_prog_compiler_wl='-Wl,'
  7811. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7812. # not for PA HP-UX.
  7813. case $host_cpu in
  7814. hppa*64*|ia64*)
  7815. # +Z the default
  7816. ;;
  7817. *)
  7818. lt_prog_compiler_pic='+Z'
  7819. ;;
  7820. esac
  7821. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7822. lt_prog_compiler_static='$wl-a ${wl}archive'
  7823. ;;
  7824. irix5* | irix6* | nonstopux*)
  7825. lt_prog_compiler_wl='-Wl,'
  7826. # PIC (with -KPIC) is the default.
  7827. lt_prog_compiler_static='-non_shared'
  7828. ;;
  7829. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7830. case $cc_basename in
  7831. # old Intel for x86_64, which still supported -KPIC.
  7832. ecc*)
  7833. lt_prog_compiler_wl='-Wl,'
  7834. lt_prog_compiler_pic='-KPIC'
  7835. lt_prog_compiler_static='-static'
  7836. ;;
  7837. # icc used to be incompatible with GCC.
  7838. # ICC 10 doesn't accept -KPIC any more.
  7839. icc* | ifort*)
  7840. lt_prog_compiler_wl='-Wl,'
  7841. lt_prog_compiler_pic='-fPIC'
  7842. lt_prog_compiler_static='-static'
  7843. ;;
  7844. # Lahey Fortran 8.1.
  7845. lf95*)
  7846. lt_prog_compiler_wl='-Wl,'
  7847. lt_prog_compiler_pic='--shared'
  7848. lt_prog_compiler_static='--static'
  7849. ;;
  7850. nagfor*)
  7851. # NAG Fortran compiler
  7852. lt_prog_compiler_wl='-Wl,-Wl,,'
  7853. lt_prog_compiler_pic='-PIC'
  7854. lt_prog_compiler_static='-Bstatic'
  7855. ;;
  7856. tcc*)
  7857. # Fabrice Bellard et al's Tiny C Compiler
  7858. lt_prog_compiler_wl='-Wl,'
  7859. lt_prog_compiler_pic='-fPIC'
  7860. lt_prog_compiler_static='-static'
  7861. ;;
  7862. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7863. # Portland Group compilers (*not* the Pentium gcc compiler,
  7864. # which looks to be a dead project)
  7865. lt_prog_compiler_wl='-Wl,'
  7866. lt_prog_compiler_pic='-fpic'
  7867. lt_prog_compiler_static='-Bstatic'
  7868. ;;
  7869. ccc*)
  7870. lt_prog_compiler_wl='-Wl,'
  7871. # All Alpha code is PIC.
  7872. lt_prog_compiler_static='-non_shared'
  7873. ;;
  7874. xl* | bgxl* | bgf* | mpixl*)
  7875. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7876. lt_prog_compiler_wl='-Wl,'
  7877. lt_prog_compiler_pic='-qpic'
  7878. lt_prog_compiler_static='-qstaticlink'
  7879. ;;
  7880. *)
  7881. case `$CC -V 2>&1 | sed 5q` in
  7882. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7883. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7884. lt_prog_compiler_pic='-KPIC'
  7885. lt_prog_compiler_static='-Bstatic'
  7886. lt_prog_compiler_wl=''
  7887. ;;
  7888. *Sun\ F* | *Sun*Fortran*)
  7889. lt_prog_compiler_pic='-KPIC'
  7890. lt_prog_compiler_static='-Bstatic'
  7891. lt_prog_compiler_wl='-Qoption ld '
  7892. ;;
  7893. *Sun\ C*)
  7894. # Sun C 5.9
  7895. lt_prog_compiler_pic='-KPIC'
  7896. lt_prog_compiler_static='-Bstatic'
  7897. lt_prog_compiler_wl='-Wl,'
  7898. ;;
  7899. *Intel*\ [CF]*Compiler*)
  7900. lt_prog_compiler_wl='-Wl,'
  7901. lt_prog_compiler_pic='-fPIC'
  7902. lt_prog_compiler_static='-static'
  7903. ;;
  7904. *Portland\ Group*)
  7905. lt_prog_compiler_wl='-Wl,'
  7906. lt_prog_compiler_pic='-fpic'
  7907. lt_prog_compiler_static='-Bstatic'
  7908. ;;
  7909. esac
  7910. ;;
  7911. esac
  7912. ;;
  7913. newsos6)
  7914. lt_prog_compiler_pic='-KPIC'
  7915. lt_prog_compiler_static='-Bstatic'
  7916. ;;
  7917. *nto* | *qnx*)
  7918. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7919. # it will coredump.
  7920. lt_prog_compiler_pic='-fPIC -shared'
  7921. ;;
  7922. osf3* | osf4* | osf5*)
  7923. lt_prog_compiler_wl='-Wl,'
  7924. # All OSF/1 code is PIC.
  7925. lt_prog_compiler_static='-non_shared'
  7926. ;;
  7927. rdos*)
  7928. lt_prog_compiler_static='-non_shared'
  7929. ;;
  7930. solaris*)
  7931. lt_prog_compiler_pic='-KPIC'
  7932. lt_prog_compiler_static='-Bstatic'
  7933. case $cc_basename in
  7934. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7935. lt_prog_compiler_wl='-Qoption ld ';;
  7936. *)
  7937. lt_prog_compiler_wl='-Wl,';;
  7938. esac
  7939. ;;
  7940. sunos4*)
  7941. lt_prog_compiler_wl='-Qoption ld '
  7942. lt_prog_compiler_pic='-PIC'
  7943. lt_prog_compiler_static='-Bstatic'
  7944. ;;
  7945. sysv4 | sysv4.2uw2* | sysv4.3*)
  7946. lt_prog_compiler_wl='-Wl,'
  7947. lt_prog_compiler_pic='-KPIC'
  7948. lt_prog_compiler_static='-Bstatic'
  7949. ;;
  7950. sysv4*MP*)
  7951. if test -d /usr/nec; then
  7952. lt_prog_compiler_pic='-Kconform_pic'
  7953. lt_prog_compiler_static='-Bstatic'
  7954. fi
  7955. ;;
  7956. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7957. lt_prog_compiler_wl='-Wl,'
  7958. lt_prog_compiler_pic='-KPIC'
  7959. lt_prog_compiler_static='-Bstatic'
  7960. ;;
  7961. unicos*)
  7962. lt_prog_compiler_wl='-Wl,'
  7963. lt_prog_compiler_can_build_shared=no
  7964. ;;
  7965. uts4*)
  7966. lt_prog_compiler_pic='-pic'
  7967. lt_prog_compiler_static='-Bstatic'
  7968. ;;
  7969. *)
  7970. lt_prog_compiler_can_build_shared=no
  7971. ;;
  7972. esac
  7973. fi
  7974. case $host_os in
  7975. # For platforms that do not support PIC, -DPIC is meaningless:
  7976. *djgpp*)
  7977. lt_prog_compiler_pic=
  7978. ;;
  7979. *)
  7980. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7981. ;;
  7982. esac
  7983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7984. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7985. if ${lt_cv_prog_compiler_pic+:} false; then :
  7986. $as_echo_n "(cached) " >&6
  7987. else
  7988. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7989. fi
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7991. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7992. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7993. #
  7994. # Check to make sure the PIC flag actually works.
  7995. #
  7996. if test -n "$lt_prog_compiler_pic"; then
  7997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7998. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7999. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8000. $as_echo_n "(cached) " >&6
  8001. else
  8002. lt_cv_prog_compiler_pic_works=no
  8003. ac_outfile=conftest.$ac_objext
  8004. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8005. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8006. # Insert the option either (1) after the last *FLAGS variable, or
  8007. # (2) before a word containing "conftest.", or (3) at the end.
  8008. # Note that $ac_compile itself does not contain backslashes and begins
  8009. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8010. # The option is referenced via a variable to avoid confusing sed.
  8011. lt_compile=`echo "$ac_compile" | $SED \
  8012. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8013. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8014. -e 's:$: $lt_compiler_flag:'`
  8015. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8016. (eval "$lt_compile" 2>conftest.err)
  8017. ac_status=$?
  8018. cat conftest.err >&5
  8019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8020. if (exit $ac_status) && test -s "$ac_outfile"; then
  8021. # The compiler can only warn and ignore the option if not recognized
  8022. # So say no if there are warnings other than the usual output.
  8023. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8024. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8025. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8026. lt_cv_prog_compiler_pic_works=yes
  8027. fi
  8028. fi
  8029. $RM conftest*
  8030. fi
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8032. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8033. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8034. case $lt_prog_compiler_pic in
  8035. "" | " "*) ;;
  8036. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8037. esac
  8038. else
  8039. lt_prog_compiler_pic=
  8040. lt_prog_compiler_can_build_shared=no
  8041. fi
  8042. fi
  8043. #
  8044. # Check to make sure the static flag actually works.
  8045. #
  8046. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8048. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8049. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8050. $as_echo_n "(cached) " >&6
  8051. else
  8052. lt_cv_prog_compiler_static_works=no
  8053. save_LDFLAGS=$LDFLAGS
  8054. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8055. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8056. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8057. # The linker can only warn and ignore the option if not recognized
  8058. # So say no if there are warnings
  8059. if test -s conftest.err; then
  8060. # Append any errors to the config.log.
  8061. cat conftest.err 1>&5
  8062. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8063. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8064. if diff conftest.exp conftest.er2 >/dev/null; then
  8065. lt_cv_prog_compiler_static_works=yes
  8066. fi
  8067. else
  8068. lt_cv_prog_compiler_static_works=yes
  8069. fi
  8070. fi
  8071. $RM -r conftest*
  8072. LDFLAGS=$save_LDFLAGS
  8073. fi
  8074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8075. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8076. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8077. :
  8078. else
  8079. lt_prog_compiler_static=
  8080. fi
  8081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8082. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8083. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8084. $as_echo_n "(cached) " >&6
  8085. else
  8086. lt_cv_prog_compiler_c_o=no
  8087. $RM -r conftest 2>/dev/null
  8088. mkdir conftest
  8089. cd conftest
  8090. mkdir out
  8091. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8092. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8093. # Insert the option either (1) after the last *FLAGS variable, or
  8094. # (2) before a word containing "conftest.", or (3) at the end.
  8095. # Note that $ac_compile itself does not contain backslashes and begins
  8096. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8097. lt_compile=`echo "$ac_compile" | $SED \
  8098. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8099. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8100. -e 's:$: $lt_compiler_flag:'`
  8101. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8102. (eval "$lt_compile" 2>out/conftest.err)
  8103. ac_status=$?
  8104. cat out/conftest.err >&5
  8105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8106. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8107. then
  8108. # The compiler can only warn and ignore the option if not recognized
  8109. # So say no if there are warnings
  8110. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8111. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8112. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8113. lt_cv_prog_compiler_c_o=yes
  8114. fi
  8115. fi
  8116. chmod u+w . 2>&5
  8117. $RM conftest*
  8118. # SGI C++ compiler will create directory out/ii_files/ for
  8119. # template instantiation
  8120. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8121. $RM out/* && rmdir out
  8122. cd ..
  8123. $RM -r conftest
  8124. $RM conftest*
  8125. fi
  8126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8127. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8129. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8130. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8131. $as_echo_n "(cached) " >&6
  8132. else
  8133. lt_cv_prog_compiler_c_o=no
  8134. $RM -r conftest 2>/dev/null
  8135. mkdir conftest
  8136. cd conftest
  8137. mkdir out
  8138. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8139. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8140. # Insert the option either (1) after the last *FLAGS variable, or
  8141. # (2) before a word containing "conftest.", or (3) at the end.
  8142. # Note that $ac_compile itself does not contain backslashes and begins
  8143. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8144. lt_compile=`echo "$ac_compile" | $SED \
  8145. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8146. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8147. -e 's:$: $lt_compiler_flag:'`
  8148. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8149. (eval "$lt_compile" 2>out/conftest.err)
  8150. ac_status=$?
  8151. cat out/conftest.err >&5
  8152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8153. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8154. then
  8155. # The compiler can only warn and ignore the option if not recognized
  8156. # So say no if there are warnings
  8157. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8158. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8159. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8160. lt_cv_prog_compiler_c_o=yes
  8161. fi
  8162. fi
  8163. chmod u+w . 2>&5
  8164. $RM conftest*
  8165. # SGI C++ compiler will create directory out/ii_files/ for
  8166. # template instantiation
  8167. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8168. $RM out/* && rmdir out
  8169. cd ..
  8170. $RM -r conftest
  8171. $RM conftest*
  8172. fi
  8173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8174. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8175. hard_links=nottested
  8176. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8177. # do not overwrite the value of need_locks provided by the user
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8179. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8180. hard_links=yes
  8181. $RM conftest*
  8182. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8183. touch conftest.a
  8184. ln conftest.a conftest.b 2>&5 || hard_links=no
  8185. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8187. $as_echo "$hard_links" >&6; }
  8188. if test no = "$hard_links"; then
  8189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8190. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8191. need_locks=warn
  8192. fi
  8193. else
  8194. need_locks=no
  8195. fi
  8196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8197. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8198. runpath_var=
  8199. allow_undefined_flag=
  8200. always_export_symbols=no
  8201. archive_cmds=
  8202. archive_expsym_cmds=
  8203. compiler_needs_object=no
  8204. enable_shared_with_static_runtimes=no
  8205. export_dynamic_flag_spec=
  8206. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8207. hardcode_automatic=no
  8208. hardcode_direct=no
  8209. hardcode_direct_absolute=no
  8210. hardcode_libdir_flag_spec=
  8211. hardcode_libdir_separator=
  8212. hardcode_minus_L=no
  8213. hardcode_shlibpath_var=unsupported
  8214. inherit_rpath=no
  8215. link_all_deplibs=unknown
  8216. module_cmds=
  8217. module_expsym_cmds=
  8218. old_archive_from_new_cmds=
  8219. old_archive_from_expsyms_cmds=
  8220. thread_safe_flag_spec=
  8221. whole_archive_flag_spec=
  8222. # include_expsyms should be a list of space-separated symbols to be *always*
  8223. # included in the symbol list
  8224. include_expsyms=
  8225. # exclude_expsyms can be an extended regexp of symbols to exclude
  8226. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8227. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8228. # as well as any symbol that contains 'd'.
  8229. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8230. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8231. # platforms (ab)use it in PIC code, but their linkers get confused if
  8232. # the symbol is explicitly referenced. Since portable code cannot
  8233. # rely on this symbol name, it's probably fine to never include it in
  8234. # preloaded symbol tables.
  8235. # Exclude shared library initialization/finalization symbols.
  8236. extract_expsyms_cmds=
  8237. case $host_os in
  8238. cygwin* | mingw* | pw32* | cegcc*)
  8239. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8240. # When not using gcc, we currently assume that we are using
  8241. # Microsoft Visual C++.
  8242. if test yes != "$GCC"; then
  8243. with_gnu_ld=no
  8244. fi
  8245. ;;
  8246. interix*)
  8247. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8248. with_gnu_ld=yes
  8249. ;;
  8250. openbsd* | bitrig*)
  8251. with_gnu_ld=no
  8252. ;;
  8253. esac
  8254. ld_shlibs=yes
  8255. # On some targets, GNU ld is compatible enough with the native linker
  8256. # that we're better off using the native interface for both.
  8257. lt_use_gnu_ld_interface=no
  8258. if test yes = "$with_gnu_ld"; then
  8259. case $host_os in
  8260. aix*)
  8261. # The AIX port of GNU ld has always aspired to compatibility
  8262. # with the native linker. However, as the warning in the GNU ld
  8263. # block says, versions before 2.19.5* couldn't really create working
  8264. # shared libraries, regardless of the interface used.
  8265. case `$LD -v 2>&1` in
  8266. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8267. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8268. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8269. *)
  8270. lt_use_gnu_ld_interface=yes
  8271. ;;
  8272. esac
  8273. ;;
  8274. *)
  8275. lt_use_gnu_ld_interface=yes
  8276. ;;
  8277. esac
  8278. fi
  8279. if test yes = "$lt_use_gnu_ld_interface"; then
  8280. # If archive_cmds runs LD, not CC, wlarc should be empty
  8281. wlarc='$wl'
  8282. # Set some defaults for GNU ld with shared library support. These
  8283. # are reset later if shared libraries are not supported. Putting them
  8284. # here allows them to be overridden if necessary.
  8285. runpath_var=LD_RUN_PATH
  8286. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8287. export_dynamic_flag_spec='$wl--export-dynamic'
  8288. # ancient GNU ld didn't support --whole-archive et. al.
  8289. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8290. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8291. else
  8292. whole_archive_flag_spec=
  8293. fi
  8294. supports_anon_versioning=no
  8295. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8296. *GNU\ gold*) supports_anon_versioning=yes ;;
  8297. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8298. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8299. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8300. *\ 2.11.*) ;; # other 2.11 versions
  8301. *) supports_anon_versioning=yes ;;
  8302. esac
  8303. # See if GNU ld supports shared libraries.
  8304. case $host_os in
  8305. aix[3-9]*)
  8306. # On AIX/PPC, the GNU linker is very broken
  8307. if test ia64 != "$host_cpu"; then
  8308. ld_shlibs=no
  8309. cat <<_LT_EOF 1>&2
  8310. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8311. *** to be unable to reliably create shared libraries on AIX.
  8312. *** Therefore, libtool is disabling shared libraries support. If you
  8313. *** really care for shared libraries, you may want to install binutils
  8314. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8315. *** You will then need to restart the configuration process.
  8316. _LT_EOF
  8317. fi
  8318. ;;
  8319. amigaos*)
  8320. case $host_cpu in
  8321. powerpc)
  8322. # see comment about AmigaOS4 .so support
  8323. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8324. archive_expsym_cmds=''
  8325. ;;
  8326. m68k)
  8327. 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)'
  8328. hardcode_libdir_flag_spec='-L$libdir'
  8329. hardcode_minus_L=yes
  8330. ;;
  8331. esac
  8332. ;;
  8333. beos*)
  8334. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8335. allow_undefined_flag=unsupported
  8336. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8337. # support --undefined. This deserves some investigation. FIXME
  8338. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8339. else
  8340. ld_shlibs=no
  8341. fi
  8342. ;;
  8343. cygwin* | mingw* | pw32* | cegcc*)
  8344. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8345. # as there is no search path for DLLs.
  8346. hardcode_libdir_flag_spec='-L$libdir'
  8347. export_dynamic_flag_spec='$wl--export-all-symbols'
  8348. allow_undefined_flag=unsupported
  8349. always_export_symbols=no
  8350. enable_shared_with_static_runtimes=yes
  8351. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8352. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8353. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8354. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8355. # If the export-symbols file already is a .def file, use it as
  8356. # is; otherwise, prepend EXPORTS...
  8357. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8358. cp $export_symbols $output_objdir/$soname.def;
  8359. else
  8360. echo EXPORTS > $output_objdir/$soname.def;
  8361. cat $export_symbols >> $output_objdir/$soname.def;
  8362. fi~
  8363. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8364. else
  8365. ld_shlibs=no
  8366. fi
  8367. ;;
  8368. haiku*)
  8369. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8370. link_all_deplibs=yes
  8371. ;;
  8372. os2*)
  8373. hardcode_libdir_flag_spec='-L$libdir'
  8374. hardcode_minus_L=yes
  8375. allow_undefined_flag=unsupported
  8376. shrext_cmds=.dll
  8377. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8378. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8379. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8380. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8381. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8382. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8383. emximp -o $lib $output_objdir/$libname.def'
  8384. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8385. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8386. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8387. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8388. prefix_cmds="$SED"~
  8389. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8390. prefix_cmds="$prefix_cmds -e 1d";
  8391. fi~
  8392. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8393. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8394. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8395. emximp -o $lib $output_objdir/$libname.def'
  8396. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8397. enable_shared_with_static_runtimes=yes
  8398. ;;
  8399. interix[3-9]*)
  8400. hardcode_direct=no
  8401. hardcode_shlibpath_var=no
  8402. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8403. export_dynamic_flag_spec='$wl-E'
  8404. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8405. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8406. # default) and relocated if they conflict, which is a slow very memory
  8407. # consuming and fragmenting process. To avoid this, we pick a random,
  8408. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8409. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8410. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8411. 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'
  8412. ;;
  8413. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8414. tmp_diet=no
  8415. if test linux-dietlibc = "$host_os"; then
  8416. case $cc_basename in
  8417. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8418. esac
  8419. fi
  8420. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8421. && test no = "$tmp_diet"
  8422. then
  8423. tmp_addflag=' $pic_flag'
  8424. tmp_sharedflag='-shared'
  8425. case $cc_basename,$host_cpu in
  8426. pgcc*) # Portland Group C compiler
  8427. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8428. tmp_addflag=' $pic_flag'
  8429. ;;
  8430. pgf77* | pgf90* | pgf95* | pgfortran*)
  8431. # Portland Group f77 and f90 compilers
  8432. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8433. tmp_addflag=' $pic_flag -Mnomain' ;;
  8434. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8435. tmp_addflag=' -i_dynamic' ;;
  8436. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8437. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8438. ifc* | ifort*) # Intel Fortran compiler
  8439. tmp_addflag=' -nofor_main' ;;
  8440. lf95*) # Lahey Fortran 8.1
  8441. whole_archive_flag_spec=
  8442. tmp_sharedflag='--shared' ;;
  8443. nagfor*) # NAGFOR 5.3
  8444. tmp_sharedflag='-Wl,-shared' ;;
  8445. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8446. tmp_sharedflag='-qmkshrobj'
  8447. tmp_addflag= ;;
  8448. nvcc*) # Cuda Compiler Driver 2.2
  8449. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8450. compiler_needs_object=yes
  8451. ;;
  8452. esac
  8453. case `$CC -V 2>&1 | sed 5q` in
  8454. *Sun\ C*) # Sun C 5.9
  8455. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8456. compiler_needs_object=yes
  8457. tmp_sharedflag='-G' ;;
  8458. *Sun\ F*) # Sun Fortran 8.3
  8459. tmp_sharedflag='-G' ;;
  8460. esac
  8461. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8462. if test yes = "$supports_anon_versioning"; then
  8463. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8464. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8465. echo "local: *; };" >> $output_objdir/$libname.ver~
  8466. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8467. fi
  8468. case $cc_basename in
  8469. tcc*)
  8470. export_dynamic_flag_spec='-rdynamic'
  8471. ;;
  8472. xlf* | bgf* | bgxlf* | mpixlf*)
  8473. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8474. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8475. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8476. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8477. if test yes = "$supports_anon_versioning"; then
  8478. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8479. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8480. echo "local: *; };" >> $output_objdir/$libname.ver~
  8481. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8482. fi
  8483. ;;
  8484. esac
  8485. else
  8486. ld_shlibs=no
  8487. fi
  8488. ;;
  8489. netbsd*)
  8490. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8491. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8492. wlarc=
  8493. else
  8494. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8495. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8496. fi
  8497. ;;
  8498. solaris*)
  8499. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8500. ld_shlibs=no
  8501. cat <<_LT_EOF 1>&2
  8502. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8503. *** create shared libraries on Solaris systems. Therefore, libtool
  8504. *** is disabling shared libraries support. We urge you to upgrade GNU
  8505. *** binutils to release 2.9.1 or newer. Another option is to modify
  8506. *** your PATH or compiler configuration so that the native linker is
  8507. *** used, and then restart.
  8508. _LT_EOF
  8509. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8510. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8511. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8512. else
  8513. ld_shlibs=no
  8514. fi
  8515. ;;
  8516. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8517. case `$LD -v 2>&1` in
  8518. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8519. ld_shlibs=no
  8520. cat <<_LT_EOF 1>&2
  8521. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8522. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8523. *** is disabling shared libraries support. We urge you to upgrade GNU
  8524. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8525. *** your PATH or compiler configuration so that the native linker is
  8526. *** used, and then restart.
  8527. _LT_EOF
  8528. ;;
  8529. *)
  8530. # For security reasons, it is highly recommended that you always
  8531. # use absolute paths for naming shared libraries, and exclude the
  8532. # DT_RUNPATH tag from executables and libraries. But doing so
  8533. # requires that you compile everything twice, which is a pain.
  8534. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8535. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8536. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8537. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8538. else
  8539. ld_shlibs=no
  8540. fi
  8541. ;;
  8542. esac
  8543. ;;
  8544. sunos4*)
  8545. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8546. wlarc=
  8547. hardcode_direct=yes
  8548. hardcode_shlibpath_var=no
  8549. ;;
  8550. *)
  8551. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8552. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8553. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8554. else
  8555. ld_shlibs=no
  8556. fi
  8557. ;;
  8558. esac
  8559. if test no = "$ld_shlibs"; then
  8560. runpath_var=
  8561. hardcode_libdir_flag_spec=
  8562. export_dynamic_flag_spec=
  8563. whole_archive_flag_spec=
  8564. fi
  8565. else
  8566. # PORTME fill in a description of your system's linker (not GNU ld)
  8567. case $host_os in
  8568. aix3*)
  8569. allow_undefined_flag=unsupported
  8570. always_export_symbols=yes
  8571. 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'
  8572. # Note: this linker hardcodes the directories in LIBPATH if there
  8573. # are no directories specified by -L.
  8574. hardcode_minus_L=yes
  8575. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8576. # Neither direct hardcoding nor static linking is supported with a
  8577. # broken collect2.
  8578. hardcode_direct=unsupported
  8579. fi
  8580. ;;
  8581. aix[4-9]*)
  8582. if test ia64 = "$host_cpu"; then
  8583. # On IA64, the linker does run time linking by default, so we don't
  8584. # have to do anything special.
  8585. aix_use_runtimelinking=no
  8586. exp_sym_flag='-Bexport'
  8587. no_entry_flag=
  8588. else
  8589. # If we're using GNU nm, then we don't want the "-C" option.
  8590. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8591. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8592. # weak defined symbols like other global defined symbols, whereas
  8593. # GNU nm marks them as "W".
  8594. # While the 'weak' keyword is ignored in the Export File, we need
  8595. # it in the Import File for the 'aix-soname' feature, so we have
  8596. # to replace the "-B" option with "-P" for AIX nm.
  8597. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8598. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8599. else
  8600. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8601. fi
  8602. aix_use_runtimelinking=no
  8603. # Test if we are trying to use run time linking or normal
  8604. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8605. # have runtime linking enabled, and use it for executables.
  8606. # For shared libraries, we enable/disable runtime linking
  8607. # depending on the kind of the shared library created -
  8608. # when "with_aix_soname,aix_use_runtimelinking" is:
  8609. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8610. # "aix,yes" lib.so shared, rtl:yes, for executables
  8611. # lib.a static archive
  8612. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8613. # lib.a(lib.so.V) shared, rtl:no, for executables
  8614. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8615. # lib.a(lib.so.V) shared, rtl:no
  8616. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8617. # lib.a static archive
  8618. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8619. for ld_flag in $LDFLAGS; do
  8620. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8621. aix_use_runtimelinking=yes
  8622. break
  8623. fi
  8624. done
  8625. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8626. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8627. # so we don't have lib.a shared libs to link our executables.
  8628. # We have to force runtime linking in this case.
  8629. aix_use_runtimelinking=yes
  8630. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8631. fi
  8632. ;;
  8633. esac
  8634. exp_sym_flag='-bexport'
  8635. no_entry_flag='-bnoentry'
  8636. fi
  8637. # When large executables or shared objects are built, AIX ld can
  8638. # have problems creating the table of contents. If linking a library
  8639. # or program results in "error TOC overflow" add -mminimal-toc to
  8640. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8641. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8642. archive_cmds=''
  8643. hardcode_direct=yes
  8644. hardcode_direct_absolute=yes
  8645. hardcode_libdir_separator=':'
  8646. link_all_deplibs=yes
  8647. file_list_spec='$wl-f,'
  8648. case $with_aix_soname,$aix_use_runtimelinking in
  8649. aix,*) ;; # traditional, no import file
  8650. svr4,* | *,yes) # use import file
  8651. # The Import File defines what to hardcode.
  8652. hardcode_direct=no
  8653. hardcode_direct_absolute=no
  8654. ;;
  8655. esac
  8656. if test yes = "$GCC"; then
  8657. case $host_os in aix4.[012]|aix4.[012].*)
  8658. # We only want to do this on AIX 4.2 and lower, the check
  8659. # below for broken collect2 doesn't work under 4.3+
  8660. collect2name=`$CC -print-prog-name=collect2`
  8661. if test -f "$collect2name" &&
  8662. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8663. then
  8664. # We have reworked collect2
  8665. :
  8666. else
  8667. # We have old collect2
  8668. hardcode_direct=unsupported
  8669. # It fails to find uninstalled libraries when the uninstalled
  8670. # path is not listed in the libpath. Setting hardcode_minus_L
  8671. # to unsupported forces relinking
  8672. hardcode_minus_L=yes
  8673. hardcode_libdir_flag_spec='-L$libdir'
  8674. hardcode_libdir_separator=
  8675. fi
  8676. ;;
  8677. esac
  8678. shared_flag='-shared'
  8679. if test yes = "$aix_use_runtimelinking"; then
  8680. shared_flag="$shared_flag "'$wl-G'
  8681. fi
  8682. # Need to ensure runtime linking is disabled for the traditional
  8683. # shared library, or the linker may eventually find shared libraries
  8684. # /with/ Import File - we do not want to mix them.
  8685. shared_flag_aix='-shared'
  8686. shared_flag_svr4='-shared $wl-G'
  8687. else
  8688. # not using gcc
  8689. if test ia64 = "$host_cpu"; then
  8690. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8691. # chokes on -Wl,-G. The following line is correct:
  8692. shared_flag='-G'
  8693. else
  8694. if test yes = "$aix_use_runtimelinking"; then
  8695. shared_flag='$wl-G'
  8696. else
  8697. shared_flag='$wl-bM:SRE'
  8698. fi
  8699. shared_flag_aix='$wl-bM:SRE'
  8700. shared_flag_svr4='$wl-G'
  8701. fi
  8702. fi
  8703. export_dynamic_flag_spec='$wl-bexpall'
  8704. # It seems that -bexpall does not export symbols beginning with
  8705. # underscore (_), so it is better to generate a list of symbols to export.
  8706. always_export_symbols=yes
  8707. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8708. # Warning - without using the other runtime loading flags (-brtl),
  8709. # -berok will link without error, but may produce a broken library.
  8710. allow_undefined_flag='-berok'
  8711. # Determine the default libpath from the value encoded in an
  8712. # empty executable.
  8713. if test set = "${lt_cv_aix_libpath+set}"; then
  8714. aix_libpath=$lt_cv_aix_libpath
  8715. else
  8716. if ${lt_cv_aix_libpath_+:} false; then :
  8717. $as_echo_n "(cached) " >&6
  8718. else
  8719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8720. /* end confdefs.h. */
  8721. int
  8722. main ()
  8723. {
  8724. ;
  8725. return 0;
  8726. }
  8727. _ACEOF
  8728. if ac_fn_c_try_link "$LINENO"; then :
  8729. lt_aix_libpath_sed='
  8730. /Import File Strings/,/^$/ {
  8731. /^0/ {
  8732. s/^0 *\([^ ]*\) *$/\1/
  8733. p
  8734. }
  8735. }'
  8736. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8737. # Check for a 64-bit object if we didn't find anything.
  8738. if test -z "$lt_cv_aix_libpath_"; then
  8739. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8740. fi
  8741. fi
  8742. rm -f core conftest.err conftest.$ac_objext \
  8743. conftest$ac_exeext conftest.$ac_ext
  8744. if test -z "$lt_cv_aix_libpath_"; then
  8745. lt_cv_aix_libpath_=/usr/lib:/lib
  8746. fi
  8747. fi
  8748. aix_libpath=$lt_cv_aix_libpath_
  8749. fi
  8750. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8751. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8752. else
  8753. if test ia64 = "$host_cpu"; then
  8754. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8755. allow_undefined_flag="-z nodefs"
  8756. 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"
  8757. else
  8758. # Determine the default libpath from the value encoded in an
  8759. # empty executable.
  8760. if test set = "${lt_cv_aix_libpath+set}"; then
  8761. aix_libpath=$lt_cv_aix_libpath
  8762. else
  8763. if ${lt_cv_aix_libpath_+:} false; then :
  8764. $as_echo_n "(cached) " >&6
  8765. else
  8766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8767. /* end confdefs.h. */
  8768. int
  8769. main ()
  8770. {
  8771. ;
  8772. return 0;
  8773. }
  8774. _ACEOF
  8775. if ac_fn_c_try_link "$LINENO"; then :
  8776. lt_aix_libpath_sed='
  8777. /Import File Strings/,/^$/ {
  8778. /^0/ {
  8779. s/^0 *\([^ ]*\) *$/\1/
  8780. p
  8781. }
  8782. }'
  8783. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8784. # Check for a 64-bit object if we didn't find anything.
  8785. if test -z "$lt_cv_aix_libpath_"; then
  8786. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8787. fi
  8788. fi
  8789. rm -f core conftest.err conftest.$ac_objext \
  8790. conftest$ac_exeext conftest.$ac_ext
  8791. if test -z "$lt_cv_aix_libpath_"; then
  8792. lt_cv_aix_libpath_=/usr/lib:/lib
  8793. fi
  8794. fi
  8795. aix_libpath=$lt_cv_aix_libpath_
  8796. fi
  8797. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8798. # Warning - without using the other run time loading flags,
  8799. # -berok will link without error, but may produce a broken library.
  8800. no_undefined_flag=' $wl-bernotok'
  8801. allow_undefined_flag=' $wl-berok'
  8802. if test yes = "$with_gnu_ld"; then
  8803. # We only use this code for GNU lds that support --whole-archive.
  8804. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8805. else
  8806. # Exported symbols can be pulled into shared objects from archives
  8807. whole_archive_flag_spec='$convenience'
  8808. fi
  8809. archive_cmds_need_lc=yes
  8810. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8811. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8812. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8813. if test svr4 != "$with_aix_soname"; then
  8814. # This is similar to how AIX traditionally builds its shared libraries.
  8815. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8816. fi
  8817. if test aix != "$with_aix_soname"; then
  8818. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8819. else
  8820. # used by -dlpreopen to get the symbols
  8821. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8822. fi
  8823. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8824. fi
  8825. fi
  8826. ;;
  8827. amigaos*)
  8828. case $host_cpu in
  8829. powerpc)
  8830. # see comment about AmigaOS4 .so support
  8831. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8832. archive_expsym_cmds=''
  8833. ;;
  8834. m68k)
  8835. 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)'
  8836. hardcode_libdir_flag_spec='-L$libdir'
  8837. hardcode_minus_L=yes
  8838. ;;
  8839. esac
  8840. ;;
  8841. bsdi[45]*)
  8842. export_dynamic_flag_spec=-rdynamic
  8843. ;;
  8844. cygwin* | mingw* | pw32* | cegcc*)
  8845. # When not using gcc, we currently assume that we are using
  8846. # Microsoft Visual C++.
  8847. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8848. # no search path for DLLs.
  8849. case $cc_basename in
  8850. cl*)
  8851. # Native MSVC
  8852. hardcode_libdir_flag_spec=' '
  8853. allow_undefined_flag=unsupported
  8854. always_export_symbols=yes
  8855. file_list_spec='@'
  8856. # Tell ltmain to make .lib files, not .a files.
  8857. libext=lib
  8858. # Tell ltmain to make .dll files, not .so files.
  8859. shrext_cmds=.dll
  8860. # FIXME: Setting linknames here is a bad hack.
  8861. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8862. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8863. cp "$export_symbols" "$output_objdir/$soname.def";
  8864. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8865. else
  8866. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8867. fi~
  8868. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8869. linknames='
  8870. # The linker will not automatically build a static lib if we build a DLL.
  8871. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8872. enable_shared_with_static_runtimes=yes
  8873. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8874. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8875. # Don't use ranlib
  8876. old_postinstall_cmds='chmod 644 $oldlib'
  8877. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8878. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8879. case $lt_outputfile in
  8880. *.exe|*.EXE) ;;
  8881. *)
  8882. lt_outputfile=$lt_outputfile.exe
  8883. lt_tool_outputfile=$lt_tool_outputfile.exe
  8884. ;;
  8885. esac~
  8886. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8887. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8888. $RM "$lt_outputfile.manifest";
  8889. fi'
  8890. ;;
  8891. *)
  8892. # Assume MSVC wrapper
  8893. hardcode_libdir_flag_spec=' '
  8894. allow_undefined_flag=unsupported
  8895. # Tell ltmain to make .lib files, not .a files.
  8896. libext=lib
  8897. # Tell ltmain to make .dll files, not .so files.
  8898. shrext_cmds=.dll
  8899. # FIXME: Setting linknames here is a bad hack.
  8900. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8901. # The linker will automatically build a .lib file if we build a DLL.
  8902. old_archive_from_new_cmds='true'
  8903. # FIXME: Should let the user specify the lib program.
  8904. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8905. enable_shared_with_static_runtimes=yes
  8906. ;;
  8907. esac
  8908. ;;
  8909. darwin* | rhapsody*)
  8910. archive_cmds_need_lc=no
  8911. hardcode_direct=no
  8912. hardcode_automatic=yes
  8913. hardcode_shlibpath_var=unsupported
  8914. if test yes = "$lt_cv_ld_force_load"; then
  8915. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8916. else
  8917. whole_archive_flag_spec=''
  8918. fi
  8919. link_all_deplibs=yes
  8920. allow_undefined_flag=$_lt_dar_allow_undefined
  8921. case $cc_basename in
  8922. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8923. *) _lt_dar_can_shared=$GCC ;;
  8924. esac
  8925. if test yes = "$_lt_dar_can_shared"; then
  8926. output_verbose_link_cmd=func_echo_all
  8927. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8928. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8929. 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"
  8930. 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"
  8931. else
  8932. ld_shlibs=no
  8933. fi
  8934. ;;
  8935. dgux*)
  8936. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8937. hardcode_libdir_flag_spec='-L$libdir'
  8938. hardcode_shlibpath_var=no
  8939. ;;
  8940. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8941. # support. Future versions do this automatically, but an explicit c++rt0.o
  8942. # does not break anything, and helps significantly (at the cost of a little
  8943. # extra space).
  8944. freebsd2.2*)
  8945. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8946. hardcode_libdir_flag_spec='-R$libdir'
  8947. hardcode_direct=yes
  8948. hardcode_shlibpath_var=no
  8949. ;;
  8950. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8951. freebsd2.*)
  8952. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8953. hardcode_direct=yes
  8954. hardcode_minus_L=yes
  8955. hardcode_shlibpath_var=no
  8956. ;;
  8957. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8958. freebsd* | dragonfly*)
  8959. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8960. hardcode_libdir_flag_spec='-R$libdir'
  8961. hardcode_direct=yes
  8962. hardcode_shlibpath_var=no
  8963. ;;
  8964. hpux9*)
  8965. if test yes = "$GCC"; then
  8966. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8967. else
  8968. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8969. fi
  8970. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8971. hardcode_libdir_separator=:
  8972. hardcode_direct=yes
  8973. # hardcode_minus_L: Not really in the search PATH,
  8974. # but as the default location of the library.
  8975. hardcode_minus_L=yes
  8976. export_dynamic_flag_spec='$wl-E'
  8977. ;;
  8978. hpux10*)
  8979. if test yes,no = "$GCC,$with_gnu_ld"; then
  8980. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8981. else
  8982. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8983. fi
  8984. if test no = "$with_gnu_ld"; then
  8985. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8986. hardcode_libdir_separator=:
  8987. hardcode_direct=yes
  8988. hardcode_direct_absolute=yes
  8989. export_dynamic_flag_spec='$wl-E'
  8990. # hardcode_minus_L: Not really in the search PATH,
  8991. # but as the default location of the library.
  8992. hardcode_minus_L=yes
  8993. fi
  8994. ;;
  8995. hpux11*)
  8996. if test yes,no = "$GCC,$with_gnu_ld"; then
  8997. case $host_cpu in
  8998. hppa*64*)
  8999. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9000. ;;
  9001. ia64*)
  9002. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9003. ;;
  9004. *)
  9005. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9006. ;;
  9007. esac
  9008. else
  9009. case $host_cpu in
  9010. hppa*64*)
  9011. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9012. ;;
  9013. ia64*)
  9014. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9015. ;;
  9016. *)
  9017. # Older versions of the 11.00 compiler do not understand -b yet
  9018. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9020. $as_echo_n "checking if $CC understands -b... " >&6; }
  9021. if ${lt_cv_prog_compiler__b+:} false; then :
  9022. $as_echo_n "(cached) " >&6
  9023. else
  9024. lt_cv_prog_compiler__b=no
  9025. save_LDFLAGS=$LDFLAGS
  9026. LDFLAGS="$LDFLAGS -b"
  9027. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9028. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9029. # The linker can only warn and ignore the option if not recognized
  9030. # So say no if there are warnings
  9031. if test -s conftest.err; then
  9032. # Append any errors to the config.log.
  9033. cat conftest.err 1>&5
  9034. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9035. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9036. if diff conftest.exp conftest.er2 >/dev/null; then
  9037. lt_cv_prog_compiler__b=yes
  9038. fi
  9039. else
  9040. lt_cv_prog_compiler__b=yes
  9041. fi
  9042. fi
  9043. $RM -r conftest*
  9044. LDFLAGS=$save_LDFLAGS
  9045. fi
  9046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9047. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9048. if test yes = "$lt_cv_prog_compiler__b"; then
  9049. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9050. else
  9051. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9052. fi
  9053. ;;
  9054. esac
  9055. fi
  9056. if test no = "$with_gnu_ld"; then
  9057. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9058. hardcode_libdir_separator=:
  9059. case $host_cpu in
  9060. hppa*64*|ia64*)
  9061. hardcode_direct=no
  9062. hardcode_shlibpath_var=no
  9063. ;;
  9064. *)
  9065. hardcode_direct=yes
  9066. hardcode_direct_absolute=yes
  9067. export_dynamic_flag_spec='$wl-E'
  9068. # hardcode_minus_L: Not really in the search PATH,
  9069. # but as the default location of the library.
  9070. hardcode_minus_L=yes
  9071. ;;
  9072. esac
  9073. fi
  9074. ;;
  9075. irix5* | irix6* | nonstopux*)
  9076. if test yes = "$GCC"; then
  9077. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9078. # Try to use the -exported_symbol ld option, if it does not
  9079. # work, assume that -exports_file does not work either and
  9080. # implicitly export all symbols.
  9081. # This should be the same for all languages, so no per-tag cache variable.
  9082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9083. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9084. if ${lt_cv_irix_exported_symbol+:} false; then :
  9085. $as_echo_n "(cached) " >&6
  9086. else
  9087. save_LDFLAGS=$LDFLAGS
  9088. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9090. /* end confdefs.h. */
  9091. int foo (void) { return 0; }
  9092. _ACEOF
  9093. if ac_fn_c_try_link "$LINENO"; then :
  9094. lt_cv_irix_exported_symbol=yes
  9095. else
  9096. lt_cv_irix_exported_symbol=no
  9097. fi
  9098. rm -f core conftest.err conftest.$ac_objext \
  9099. conftest$ac_exeext conftest.$ac_ext
  9100. LDFLAGS=$save_LDFLAGS
  9101. fi
  9102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9103. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9104. if test yes = "$lt_cv_irix_exported_symbol"; then
  9105. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9106. fi
  9107. else
  9108. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9109. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9110. fi
  9111. archive_cmds_need_lc='no'
  9112. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9113. hardcode_libdir_separator=:
  9114. inherit_rpath=yes
  9115. link_all_deplibs=yes
  9116. ;;
  9117. linux*)
  9118. case $cc_basename in
  9119. tcc*)
  9120. # Fabrice Bellard et al's Tiny C Compiler
  9121. ld_shlibs=yes
  9122. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9123. ;;
  9124. esac
  9125. ;;
  9126. netbsd*)
  9127. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9128. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9129. else
  9130. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9131. fi
  9132. hardcode_libdir_flag_spec='-R$libdir'
  9133. hardcode_direct=yes
  9134. hardcode_shlibpath_var=no
  9135. ;;
  9136. newsos6)
  9137. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9138. hardcode_direct=yes
  9139. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9140. hardcode_libdir_separator=:
  9141. hardcode_shlibpath_var=no
  9142. ;;
  9143. *nto* | *qnx*)
  9144. ;;
  9145. openbsd* | bitrig*)
  9146. if test -f /usr/libexec/ld.so; then
  9147. hardcode_direct=yes
  9148. hardcode_shlibpath_var=no
  9149. hardcode_direct_absolute=yes
  9150. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9151. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9152. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9153. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9154. export_dynamic_flag_spec='$wl-E'
  9155. else
  9156. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9157. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9158. fi
  9159. else
  9160. ld_shlibs=no
  9161. fi
  9162. ;;
  9163. os2*)
  9164. hardcode_libdir_flag_spec='-L$libdir'
  9165. hardcode_minus_L=yes
  9166. allow_undefined_flag=unsupported
  9167. shrext_cmds=.dll
  9168. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9169. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9170. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9171. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9172. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9173. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9174. emximp -o $lib $output_objdir/$libname.def'
  9175. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9176. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9177. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9178. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9179. prefix_cmds="$SED"~
  9180. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9181. prefix_cmds="$prefix_cmds -e 1d";
  9182. fi~
  9183. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9184. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9185. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9186. emximp -o $lib $output_objdir/$libname.def'
  9187. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9188. enable_shared_with_static_runtimes=yes
  9189. ;;
  9190. osf3*)
  9191. if test yes = "$GCC"; then
  9192. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9193. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9194. else
  9195. allow_undefined_flag=' -expect_unresolved \*'
  9196. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9197. fi
  9198. archive_cmds_need_lc='no'
  9199. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9200. hardcode_libdir_separator=:
  9201. ;;
  9202. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9203. if test yes = "$GCC"; then
  9204. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9205. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9206. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9207. else
  9208. allow_undefined_flag=' -expect_unresolved \*'
  9209. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9210. 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~
  9211. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9212. # Both c and cxx compiler support -rpath directly
  9213. hardcode_libdir_flag_spec='-rpath $libdir'
  9214. fi
  9215. archive_cmds_need_lc='no'
  9216. hardcode_libdir_separator=:
  9217. ;;
  9218. solaris*)
  9219. no_undefined_flag=' -z defs'
  9220. if test yes = "$GCC"; then
  9221. wlarc='$wl'
  9222. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9223. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9224. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9225. else
  9226. case `$CC -V 2>&1` in
  9227. *"Compilers 5.0"*)
  9228. wlarc=''
  9229. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9230. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9231. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9232. ;;
  9233. *)
  9234. wlarc='$wl'
  9235. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9236. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9237. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9238. ;;
  9239. esac
  9240. fi
  9241. hardcode_libdir_flag_spec='-R$libdir'
  9242. hardcode_shlibpath_var=no
  9243. case $host_os in
  9244. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9245. *)
  9246. # The compiler driver will combine and reorder linker options,
  9247. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9248. # but is careful enough not to reorder.
  9249. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9250. if test yes = "$GCC"; then
  9251. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9252. else
  9253. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9254. fi
  9255. ;;
  9256. esac
  9257. link_all_deplibs=yes
  9258. ;;
  9259. sunos4*)
  9260. if test sequent = "$host_vendor"; then
  9261. # Use $CC to link under sequent, because it throws in some extra .o
  9262. # files that make .init and .fini sections work.
  9263. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9264. else
  9265. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9266. fi
  9267. hardcode_libdir_flag_spec='-L$libdir'
  9268. hardcode_direct=yes
  9269. hardcode_minus_L=yes
  9270. hardcode_shlibpath_var=no
  9271. ;;
  9272. sysv4)
  9273. case $host_vendor in
  9274. sni)
  9275. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9276. hardcode_direct=yes # is this really true???
  9277. ;;
  9278. siemens)
  9279. ## LD is ld it makes a PLAMLIB
  9280. ## CC just makes a GrossModule.
  9281. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9282. reload_cmds='$CC -r -o $output$reload_objs'
  9283. hardcode_direct=no
  9284. ;;
  9285. motorola)
  9286. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9287. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9288. ;;
  9289. esac
  9290. runpath_var='LD_RUN_PATH'
  9291. hardcode_shlibpath_var=no
  9292. ;;
  9293. sysv4.3*)
  9294. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9295. hardcode_shlibpath_var=no
  9296. export_dynamic_flag_spec='-Bexport'
  9297. ;;
  9298. sysv4*MP*)
  9299. if test -d /usr/nec; then
  9300. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9301. hardcode_shlibpath_var=no
  9302. runpath_var=LD_RUN_PATH
  9303. hardcode_runpath_var=yes
  9304. ld_shlibs=yes
  9305. fi
  9306. ;;
  9307. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9308. no_undefined_flag='$wl-z,text'
  9309. archive_cmds_need_lc=no
  9310. hardcode_shlibpath_var=no
  9311. runpath_var='LD_RUN_PATH'
  9312. if test yes = "$GCC"; then
  9313. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9314. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9315. else
  9316. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9317. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9318. fi
  9319. ;;
  9320. sysv5* | sco3.2v5* | sco5v6*)
  9321. # Note: We CANNOT use -z defs as we might desire, because we do not
  9322. # link with -lc, and that would cause any symbols used from libc to
  9323. # always be unresolved, which means just about no library would
  9324. # ever link correctly. If we're not using GNU ld we use -z text
  9325. # though, which does catch some bad symbols but isn't as heavy-handed
  9326. # as -z defs.
  9327. no_undefined_flag='$wl-z,text'
  9328. allow_undefined_flag='$wl-z,nodefs'
  9329. archive_cmds_need_lc=no
  9330. hardcode_shlibpath_var=no
  9331. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9332. hardcode_libdir_separator=':'
  9333. link_all_deplibs=yes
  9334. export_dynamic_flag_spec='$wl-Bexport'
  9335. runpath_var='LD_RUN_PATH'
  9336. if test yes = "$GCC"; then
  9337. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9338. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9339. else
  9340. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9341. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9342. fi
  9343. ;;
  9344. uts4*)
  9345. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9346. hardcode_libdir_flag_spec='-L$libdir'
  9347. hardcode_shlibpath_var=no
  9348. ;;
  9349. *)
  9350. ld_shlibs=no
  9351. ;;
  9352. esac
  9353. if test sni = "$host_vendor"; then
  9354. case $host in
  9355. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9356. export_dynamic_flag_spec='$wl-Blargedynsym'
  9357. ;;
  9358. esac
  9359. fi
  9360. fi
  9361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9362. $as_echo "$ld_shlibs" >&6; }
  9363. test no = "$ld_shlibs" && can_build_shared=no
  9364. with_gnu_ld=$with_gnu_ld
  9365. #
  9366. # Do we need to explicitly link libc?
  9367. #
  9368. case "x$archive_cmds_need_lc" in
  9369. x|xyes)
  9370. # Assume -lc should be added
  9371. archive_cmds_need_lc=yes
  9372. if test yes,yes = "$GCC,$enable_shared"; then
  9373. case $archive_cmds in
  9374. *'~'*)
  9375. # FIXME: we may have to deal with multi-command sequences.
  9376. ;;
  9377. '$CC '*)
  9378. # Test whether the compiler implicitly links with -lc since on some
  9379. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9380. # to ld, don't add -lc before -lgcc.
  9381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9382. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9383. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9384. $as_echo_n "(cached) " >&6
  9385. else
  9386. $RM conftest*
  9387. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9388. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9389. (eval $ac_compile) 2>&5
  9390. ac_status=$?
  9391. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9392. test $ac_status = 0; } 2>conftest.err; then
  9393. soname=conftest
  9394. lib=conftest
  9395. libobjs=conftest.$ac_objext
  9396. deplibs=
  9397. wl=$lt_prog_compiler_wl
  9398. pic_flag=$lt_prog_compiler_pic
  9399. compiler_flags=-v
  9400. linker_flags=-v
  9401. verstring=
  9402. output_objdir=.
  9403. libname=conftest
  9404. lt_save_allow_undefined_flag=$allow_undefined_flag
  9405. allow_undefined_flag=
  9406. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9407. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9408. ac_status=$?
  9409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9410. test $ac_status = 0; }
  9411. then
  9412. lt_cv_archive_cmds_need_lc=no
  9413. else
  9414. lt_cv_archive_cmds_need_lc=yes
  9415. fi
  9416. allow_undefined_flag=$lt_save_allow_undefined_flag
  9417. else
  9418. cat conftest.err 1>&5
  9419. fi
  9420. $RM conftest*
  9421. fi
  9422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9423. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9424. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9425. ;;
  9426. esac
  9427. fi
  9428. ;;
  9429. esac
  9430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9431. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9432. if test yes = "$GCC"; then
  9433. case $host_os in
  9434. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9435. *) lt_awk_arg='/^libraries:/' ;;
  9436. esac
  9437. case $host_os in
  9438. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9439. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9440. esac
  9441. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9442. case $lt_search_path_spec in
  9443. *\;*)
  9444. # if the path contains ";" then we assume it to be the separator
  9445. # otherwise default to the standard path separator (i.e. ":") - it is
  9446. # assumed that no part of a normal pathname contains ";" but that should
  9447. # okay in the real world where ";" in dirpaths is itself problematic.
  9448. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9449. ;;
  9450. *)
  9451. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9452. ;;
  9453. esac
  9454. # Ok, now we have the path, separated by spaces, we can step through it
  9455. # and add multilib dir if necessary...
  9456. lt_tmp_lt_search_path_spec=
  9457. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9458. # ...but if some path component already ends with the multilib dir we assume
  9459. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9460. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9461. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9462. lt_multi_os_dir=
  9463. ;;
  9464. esac
  9465. for lt_sys_path in $lt_search_path_spec; do
  9466. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9467. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9468. elif test -n "$lt_multi_os_dir"; then
  9469. test -d "$lt_sys_path" && \
  9470. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9471. fi
  9472. done
  9473. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9474. BEGIN {RS = " "; FS = "/|\n";} {
  9475. lt_foo = "";
  9476. lt_count = 0;
  9477. for (lt_i = NF; lt_i > 0; lt_i--) {
  9478. if ($lt_i != "" && $lt_i != ".") {
  9479. if ($lt_i == "..") {
  9480. lt_count++;
  9481. } else {
  9482. if (lt_count == 0) {
  9483. lt_foo = "/" $lt_i lt_foo;
  9484. } else {
  9485. lt_count--;
  9486. }
  9487. }
  9488. }
  9489. }
  9490. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9491. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9492. }'`
  9493. # AWK program above erroneously prepends '/' to C:/dos/paths
  9494. # for these hosts.
  9495. case $host_os in
  9496. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9497. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9498. esac
  9499. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9500. else
  9501. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9502. fi
  9503. library_names_spec=
  9504. libname_spec='lib$name'
  9505. soname_spec=
  9506. shrext_cmds=.so
  9507. postinstall_cmds=
  9508. postuninstall_cmds=
  9509. finish_cmds=
  9510. finish_eval=
  9511. shlibpath_var=
  9512. shlibpath_overrides_runpath=unknown
  9513. version_type=none
  9514. dynamic_linker="$host_os ld.so"
  9515. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9516. need_lib_prefix=unknown
  9517. hardcode_into_libs=no
  9518. # when you set need_version to no, make sure it does not cause -set_version
  9519. # flags to be left without arguments
  9520. need_version=unknown
  9521. case $host_os in
  9522. aix3*)
  9523. version_type=linux # correct to gnu/linux during the next big refactor
  9524. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9525. shlibpath_var=LIBPATH
  9526. # AIX 3 has no versioning support, so we append a major version to the name.
  9527. soname_spec='$libname$release$shared_ext$major'
  9528. ;;
  9529. aix[4-9]*)
  9530. version_type=linux # correct to gnu/linux during the next big refactor
  9531. need_lib_prefix=no
  9532. need_version=no
  9533. hardcode_into_libs=yes
  9534. if test ia64 = "$host_cpu"; then
  9535. # AIX 5 supports IA64
  9536. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9537. shlibpath_var=LD_LIBRARY_PATH
  9538. else
  9539. # With GCC up to 2.95.x, collect2 would create an import file
  9540. # for dependence libraries. The import file would start with
  9541. # the line '#! .'. This would cause the generated library to
  9542. # depend on '.', always an invalid library. This was fixed in
  9543. # development snapshots of GCC prior to 3.0.
  9544. case $host_os in
  9545. aix4 | aix4.[01] | aix4.[01].*)
  9546. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9547. echo ' yes '
  9548. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9549. :
  9550. else
  9551. can_build_shared=no
  9552. fi
  9553. ;;
  9554. esac
  9555. # Using Import Files as archive members, it is possible to support
  9556. # filename-based versioning of shared library archives on AIX. While
  9557. # this would work for both with and without runtime linking, it will
  9558. # prevent static linking of such archives. So we do filename-based
  9559. # shared library versioning with .so extension only, which is used
  9560. # when both runtime linking and shared linking is enabled.
  9561. # Unfortunately, runtime linking may impact performance, so we do
  9562. # not want this to be the default eventually. Also, we use the
  9563. # versioned .so libs for executables only if there is the -brtl
  9564. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9565. # To allow for filename-based versioning support, we need to create
  9566. # libNAME.so.V as an archive file, containing:
  9567. # *) an Import File, referring to the versioned filename of the
  9568. # archive as well as the shared archive member, telling the
  9569. # bitwidth (32 or 64) of that shared object, and providing the
  9570. # list of exported symbols of that shared object, eventually
  9571. # decorated with the 'weak' keyword
  9572. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9573. # it being seen by the linker.
  9574. # At run time we better use the real file rather than another symlink,
  9575. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9576. case $with_aix_soname,$aix_use_runtimelinking in
  9577. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9578. # soname into executable. Probably we can add versioning support to
  9579. # collect2, so additional links can be useful in future.
  9580. aix,yes) # traditional libtool
  9581. dynamic_linker='AIX unversionable lib.so'
  9582. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9583. # instead of lib<name>.a to let people know that these are not
  9584. # typical AIX shared libraries.
  9585. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9586. ;;
  9587. aix,no) # traditional AIX only
  9588. dynamic_linker='AIX lib.a(lib.so.V)'
  9589. # We preserve .a as extension for shared libraries through AIX4.2
  9590. # and later when we are not doing run time linking.
  9591. library_names_spec='$libname$release.a $libname.a'
  9592. soname_spec='$libname$release$shared_ext$major'
  9593. ;;
  9594. svr4,*) # full svr4 only
  9595. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9596. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9597. # We do not specify a path in Import Files, so LIBPATH fires.
  9598. shlibpath_overrides_runpath=yes
  9599. ;;
  9600. *,yes) # both, prefer svr4
  9601. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9602. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9603. # unpreferred sharedlib libNAME.a needs extra handling
  9604. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9605. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9606. # We do not specify a path in Import Files, so LIBPATH fires.
  9607. shlibpath_overrides_runpath=yes
  9608. ;;
  9609. *,no) # both, prefer aix
  9610. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9611. library_names_spec='$libname$release.a $libname.a'
  9612. soname_spec='$libname$release$shared_ext$major'
  9613. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9614. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9615. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9616. ;;
  9617. esac
  9618. shlibpath_var=LIBPATH
  9619. fi
  9620. ;;
  9621. amigaos*)
  9622. case $host_cpu in
  9623. powerpc)
  9624. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9625. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9626. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9627. ;;
  9628. m68k)
  9629. library_names_spec='$libname.ixlibrary $libname.a'
  9630. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9631. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9632. ;;
  9633. esac
  9634. ;;
  9635. beos*)
  9636. library_names_spec='$libname$shared_ext'
  9637. dynamic_linker="$host_os ld.so"
  9638. shlibpath_var=LIBRARY_PATH
  9639. ;;
  9640. bsdi[45]*)
  9641. version_type=linux # correct to gnu/linux during the next big refactor
  9642. need_version=no
  9643. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9644. soname_spec='$libname$release$shared_ext$major'
  9645. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9646. shlibpath_var=LD_LIBRARY_PATH
  9647. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9648. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9649. # the default ld.so.conf also contains /usr/contrib/lib and
  9650. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9651. # libtool to hard-code these into programs
  9652. ;;
  9653. cygwin* | mingw* | pw32* | cegcc*)
  9654. version_type=windows
  9655. shrext_cmds=.dll
  9656. need_version=no
  9657. need_lib_prefix=no
  9658. case $GCC,$cc_basename in
  9659. yes,*)
  9660. # gcc
  9661. library_names_spec='$libname.dll.a'
  9662. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9663. postinstall_cmds='base_file=`basename \$file`~
  9664. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9665. dldir=$destdir/`dirname \$dlpath`~
  9666. test -d \$dldir || mkdir -p \$dldir~
  9667. $install_prog $dir/$dlname \$dldir/$dlname~
  9668. chmod a+x \$dldir/$dlname~
  9669. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9670. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9671. fi'
  9672. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9673. dlpath=$dir/\$dldll~
  9674. $RM \$dlpath'
  9675. shlibpath_overrides_runpath=yes
  9676. case $host_os in
  9677. cygwin*)
  9678. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9679. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9680. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9681. ;;
  9682. mingw* | cegcc*)
  9683. # MinGW DLLs use traditional 'lib' prefix
  9684. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9685. ;;
  9686. pw32*)
  9687. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9688. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9689. ;;
  9690. esac
  9691. dynamic_linker='Win32 ld.exe'
  9692. ;;
  9693. *,cl*)
  9694. # Native MSVC
  9695. libname_spec='$name'
  9696. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9697. library_names_spec='$libname.dll.lib'
  9698. case $build_os in
  9699. mingw*)
  9700. sys_lib_search_path_spec=
  9701. lt_save_ifs=$IFS
  9702. IFS=';'
  9703. for lt_path in $LIB
  9704. do
  9705. IFS=$lt_save_ifs
  9706. # Let DOS variable expansion print the short 8.3 style file name.
  9707. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9708. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9709. done
  9710. IFS=$lt_save_ifs
  9711. # Convert to MSYS style.
  9712. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9713. ;;
  9714. cygwin*)
  9715. # Convert to unix form, then to dos form, then back to unix form
  9716. # but this time dos style (no spaces!) so that the unix form looks
  9717. # like /cygdrive/c/PROGRA~1:/cygdr...
  9718. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9719. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9720. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9721. ;;
  9722. *)
  9723. sys_lib_search_path_spec=$LIB
  9724. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9725. # It is most probably a Windows format PATH.
  9726. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9727. else
  9728. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9729. fi
  9730. # FIXME: find the short name or the path components, as spaces are
  9731. # common. (e.g. "Program Files" -> "PROGRA~1")
  9732. ;;
  9733. esac
  9734. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9735. postinstall_cmds='base_file=`basename \$file`~
  9736. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9737. dldir=$destdir/`dirname \$dlpath`~
  9738. test -d \$dldir || mkdir -p \$dldir~
  9739. $install_prog $dir/$dlname \$dldir/$dlname'
  9740. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9741. dlpath=$dir/\$dldll~
  9742. $RM \$dlpath'
  9743. shlibpath_overrides_runpath=yes
  9744. dynamic_linker='Win32 link.exe'
  9745. ;;
  9746. *)
  9747. # Assume MSVC wrapper
  9748. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9749. dynamic_linker='Win32 ld.exe'
  9750. ;;
  9751. esac
  9752. # FIXME: first we should search . and the directory the executable is in
  9753. shlibpath_var=PATH
  9754. ;;
  9755. darwin* | rhapsody*)
  9756. dynamic_linker="$host_os dyld"
  9757. version_type=darwin
  9758. need_lib_prefix=no
  9759. need_version=no
  9760. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9761. soname_spec='$libname$release$major$shared_ext'
  9762. shlibpath_overrides_runpath=yes
  9763. shlibpath_var=DYLD_LIBRARY_PATH
  9764. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9765. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9766. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9767. ;;
  9768. dgux*)
  9769. version_type=linux # correct to gnu/linux during the next big refactor
  9770. need_lib_prefix=no
  9771. need_version=no
  9772. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9773. soname_spec='$libname$release$shared_ext$major'
  9774. shlibpath_var=LD_LIBRARY_PATH
  9775. ;;
  9776. freebsd* | dragonfly*)
  9777. # DragonFly does not have aout. When/if they implement a new
  9778. # versioning mechanism, adjust this.
  9779. if test -x /usr/bin/objformat; then
  9780. objformat=`/usr/bin/objformat`
  9781. else
  9782. case $host_os in
  9783. freebsd[23].*) objformat=aout ;;
  9784. *) objformat=elf ;;
  9785. esac
  9786. fi
  9787. version_type=freebsd-$objformat
  9788. case $version_type in
  9789. freebsd-elf*)
  9790. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9791. soname_spec='$libname$release$shared_ext$major'
  9792. need_version=no
  9793. need_lib_prefix=no
  9794. ;;
  9795. freebsd-*)
  9796. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9797. need_version=yes
  9798. ;;
  9799. esac
  9800. shlibpath_var=LD_LIBRARY_PATH
  9801. case $host_os in
  9802. freebsd2.*)
  9803. shlibpath_overrides_runpath=yes
  9804. ;;
  9805. freebsd3.[01]* | freebsdelf3.[01]*)
  9806. shlibpath_overrides_runpath=yes
  9807. hardcode_into_libs=yes
  9808. ;;
  9809. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9810. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9811. shlibpath_overrides_runpath=no
  9812. hardcode_into_libs=yes
  9813. ;;
  9814. *) # from 4.6 on, and DragonFly
  9815. shlibpath_overrides_runpath=yes
  9816. hardcode_into_libs=yes
  9817. ;;
  9818. esac
  9819. ;;
  9820. haiku*)
  9821. version_type=linux # correct to gnu/linux during the next big refactor
  9822. need_lib_prefix=no
  9823. need_version=no
  9824. dynamic_linker="$host_os runtime_loader"
  9825. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9826. soname_spec='$libname$release$shared_ext$major'
  9827. shlibpath_var=LIBRARY_PATH
  9828. shlibpath_overrides_runpath=no
  9829. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9830. hardcode_into_libs=yes
  9831. ;;
  9832. hpux9* | hpux10* | hpux11*)
  9833. # Give a soname corresponding to the major version so that dld.sl refuses to
  9834. # link against other versions.
  9835. version_type=sunos
  9836. need_lib_prefix=no
  9837. need_version=no
  9838. case $host_cpu in
  9839. ia64*)
  9840. shrext_cmds='.so'
  9841. hardcode_into_libs=yes
  9842. dynamic_linker="$host_os dld.so"
  9843. shlibpath_var=LD_LIBRARY_PATH
  9844. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9845. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9846. soname_spec='$libname$release$shared_ext$major'
  9847. if test 32 = "$HPUX_IA64_MODE"; then
  9848. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9849. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9850. else
  9851. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9852. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9853. fi
  9854. ;;
  9855. hppa*64*)
  9856. shrext_cmds='.sl'
  9857. hardcode_into_libs=yes
  9858. dynamic_linker="$host_os dld.sl"
  9859. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9860. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9861. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9862. soname_spec='$libname$release$shared_ext$major'
  9863. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9864. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9865. ;;
  9866. *)
  9867. shrext_cmds='.sl'
  9868. dynamic_linker="$host_os dld.sl"
  9869. shlibpath_var=SHLIB_PATH
  9870. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9871. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9872. soname_spec='$libname$release$shared_ext$major'
  9873. ;;
  9874. esac
  9875. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9876. postinstall_cmds='chmod 555 $lib'
  9877. # or fails outright, so override atomically:
  9878. install_override_mode=555
  9879. ;;
  9880. interix[3-9]*)
  9881. version_type=linux # correct to gnu/linux during the next big refactor
  9882. need_lib_prefix=no
  9883. need_version=no
  9884. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9885. soname_spec='$libname$release$shared_ext$major'
  9886. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9887. shlibpath_var=LD_LIBRARY_PATH
  9888. shlibpath_overrides_runpath=no
  9889. hardcode_into_libs=yes
  9890. ;;
  9891. irix5* | irix6* | nonstopux*)
  9892. case $host_os in
  9893. nonstopux*) version_type=nonstopux ;;
  9894. *)
  9895. if test yes = "$lt_cv_prog_gnu_ld"; then
  9896. version_type=linux # correct to gnu/linux during the next big refactor
  9897. else
  9898. version_type=irix
  9899. fi ;;
  9900. esac
  9901. need_lib_prefix=no
  9902. need_version=no
  9903. soname_spec='$libname$release$shared_ext$major'
  9904. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9905. case $host_os in
  9906. irix5* | nonstopux*)
  9907. libsuff= shlibsuff=
  9908. ;;
  9909. *)
  9910. case $LD in # libtool.m4 will add one of these switches to LD
  9911. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9912. libsuff= shlibsuff= libmagic=32-bit;;
  9913. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9914. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9915. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9916. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9917. *) libsuff= shlibsuff= libmagic=never-match;;
  9918. esac
  9919. ;;
  9920. esac
  9921. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9922. shlibpath_overrides_runpath=no
  9923. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9924. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9925. hardcode_into_libs=yes
  9926. ;;
  9927. # No shared lib support for Linux oldld, aout, or coff.
  9928. linux*oldld* | linux*aout* | linux*coff*)
  9929. dynamic_linker=no
  9930. ;;
  9931. linux*android*)
  9932. version_type=none # Android doesn't support versioned libraries.
  9933. need_lib_prefix=no
  9934. need_version=no
  9935. library_names_spec='$libname$release$shared_ext'
  9936. soname_spec='$libname$release$shared_ext'
  9937. finish_cmds=
  9938. shlibpath_var=LD_LIBRARY_PATH
  9939. shlibpath_overrides_runpath=yes
  9940. # This implies no fast_install, which is unacceptable.
  9941. # Some rework will be needed to allow for fast_install
  9942. # before this can be enabled.
  9943. hardcode_into_libs=yes
  9944. dynamic_linker='Android linker'
  9945. # Don't embed -rpath directories since the linker doesn't support them.
  9946. hardcode_libdir_flag_spec='-L$libdir'
  9947. ;;
  9948. # This must be glibc/ELF.
  9949. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9950. version_type=linux # correct to gnu/linux during the next big refactor
  9951. need_lib_prefix=no
  9952. need_version=no
  9953. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9954. soname_spec='$libname$release$shared_ext$major'
  9955. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9956. shlibpath_var=LD_LIBRARY_PATH
  9957. shlibpath_overrides_runpath=no
  9958. # Some binutils ld are patched to set DT_RUNPATH
  9959. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9960. $as_echo_n "(cached) " >&6
  9961. else
  9962. lt_cv_shlibpath_overrides_runpath=no
  9963. save_LDFLAGS=$LDFLAGS
  9964. save_libdir=$libdir
  9965. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9966. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9968. /* end confdefs.h. */
  9969. int
  9970. main ()
  9971. {
  9972. ;
  9973. return 0;
  9974. }
  9975. _ACEOF
  9976. if ac_fn_c_try_link "$LINENO"; then :
  9977. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9978. lt_cv_shlibpath_overrides_runpath=yes
  9979. fi
  9980. fi
  9981. rm -f core conftest.err conftest.$ac_objext \
  9982. conftest$ac_exeext conftest.$ac_ext
  9983. LDFLAGS=$save_LDFLAGS
  9984. libdir=$save_libdir
  9985. fi
  9986. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9987. # This implies no fast_install, which is unacceptable.
  9988. # Some rework will be needed to allow for fast_install
  9989. # before this can be enabled.
  9990. hardcode_into_libs=yes
  9991. # Add ABI-specific directories to the system library path.
  9992. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9993. # Ideally, we could use ldconfig to report *all* directores which are
  9994. # searched for libraries, however this is still not possible. Aside from not
  9995. # being certain /sbin/ldconfig is available, command
  9996. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9997. # even though it is searched at run-time. Try to do the best guess by
  9998. # appending ld.so.conf contents (and includes) to the search path.
  9999. if test -f /etc/ld.so.conf; then
  10000. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10001. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10002. fi
  10003. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10004. # powerpc, because MkLinux only supported shared libraries with the
  10005. # GNU dynamic linker. Since this was broken with cross compilers,
  10006. # most powerpc-linux boxes support dynamic linking these days and
  10007. # people can always --disable-shared, the test was removed, and we
  10008. # assume the GNU/Linux dynamic linker is in use.
  10009. dynamic_linker='GNU/Linux ld.so'
  10010. ;;
  10011. netbsd*)
  10012. version_type=sunos
  10013. need_lib_prefix=no
  10014. need_version=no
  10015. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10016. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10017. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10018. dynamic_linker='NetBSD (a.out) ld.so'
  10019. else
  10020. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10021. soname_spec='$libname$release$shared_ext$major'
  10022. dynamic_linker='NetBSD ld.elf_so'
  10023. fi
  10024. shlibpath_var=LD_LIBRARY_PATH
  10025. shlibpath_overrides_runpath=yes
  10026. hardcode_into_libs=yes
  10027. ;;
  10028. newsos6)
  10029. version_type=linux # correct to gnu/linux during the next big refactor
  10030. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10031. shlibpath_var=LD_LIBRARY_PATH
  10032. shlibpath_overrides_runpath=yes
  10033. ;;
  10034. *nto* | *qnx*)
  10035. version_type=qnx
  10036. need_lib_prefix=no
  10037. need_version=no
  10038. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10039. soname_spec='$libname$release$shared_ext$major'
  10040. shlibpath_var=LD_LIBRARY_PATH
  10041. shlibpath_overrides_runpath=no
  10042. hardcode_into_libs=yes
  10043. dynamic_linker='ldqnx.so'
  10044. ;;
  10045. openbsd* | bitrig*)
  10046. version_type=sunos
  10047. sys_lib_dlsearch_path_spec=/usr/lib
  10048. need_lib_prefix=no
  10049. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10050. need_version=no
  10051. else
  10052. need_version=yes
  10053. fi
  10054. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10055. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10056. shlibpath_var=LD_LIBRARY_PATH
  10057. shlibpath_overrides_runpath=yes
  10058. ;;
  10059. os2*)
  10060. libname_spec='$name'
  10061. version_type=windows
  10062. shrext_cmds=.dll
  10063. need_version=no
  10064. need_lib_prefix=no
  10065. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10066. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10067. v=$($ECHO $release$versuffix | tr -d .-);
  10068. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10069. $ECHO $n$v`$shared_ext'
  10070. library_names_spec='${libname}_dll.$libext'
  10071. dynamic_linker='OS/2 ld.exe'
  10072. shlibpath_var=BEGINLIBPATH
  10073. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10074. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10075. postinstall_cmds='base_file=`basename \$file`~
  10076. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10077. dldir=$destdir/`dirname \$dlpath`~
  10078. test -d \$dldir || mkdir -p \$dldir~
  10079. $install_prog $dir/$dlname \$dldir/$dlname~
  10080. chmod a+x \$dldir/$dlname~
  10081. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10082. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10083. fi'
  10084. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10085. dlpath=$dir/\$dldll~
  10086. $RM \$dlpath'
  10087. ;;
  10088. osf3* | osf4* | osf5*)
  10089. version_type=osf
  10090. need_lib_prefix=no
  10091. need_version=no
  10092. soname_spec='$libname$release$shared_ext$major'
  10093. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10094. shlibpath_var=LD_LIBRARY_PATH
  10095. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10096. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10097. ;;
  10098. rdos*)
  10099. dynamic_linker=no
  10100. ;;
  10101. solaris*)
  10102. version_type=linux # correct to gnu/linux during the next big refactor
  10103. need_lib_prefix=no
  10104. need_version=no
  10105. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10106. soname_spec='$libname$release$shared_ext$major'
  10107. shlibpath_var=LD_LIBRARY_PATH
  10108. shlibpath_overrides_runpath=yes
  10109. hardcode_into_libs=yes
  10110. # ldd complains unless libraries are executable
  10111. postinstall_cmds='chmod +x $lib'
  10112. ;;
  10113. sunos4*)
  10114. version_type=sunos
  10115. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10116. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10117. shlibpath_var=LD_LIBRARY_PATH
  10118. shlibpath_overrides_runpath=yes
  10119. if test yes = "$with_gnu_ld"; then
  10120. need_lib_prefix=no
  10121. fi
  10122. need_version=yes
  10123. ;;
  10124. sysv4 | sysv4.3*)
  10125. version_type=linux # correct to gnu/linux during the next big refactor
  10126. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10127. soname_spec='$libname$release$shared_ext$major'
  10128. shlibpath_var=LD_LIBRARY_PATH
  10129. case $host_vendor in
  10130. sni)
  10131. shlibpath_overrides_runpath=no
  10132. need_lib_prefix=no
  10133. runpath_var=LD_RUN_PATH
  10134. ;;
  10135. siemens)
  10136. need_lib_prefix=no
  10137. ;;
  10138. motorola)
  10139. need_lib_prefix=no
  10140. need_version=no
  10141. shlibpath_overrides_runpath=no
  10142. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10143. ;;
  10144. esac
  10145. ;;
  10146. sysv4*MP*)
  10147. if test -d /usr/nec; then
  10148. version_type=linux # correct to gnu/linux during the next big refactor
  10149. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10150. soname_spec='$libname$shared_ext.$major'
  10151. shlibpath_var=LD_LIBRARY_PATH
  10152. fi
  10153. ;;
  10154. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10155. version_type=sco
  10156. need_lib_prefix=no
  10157. need_version=no
  10158. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10159. soname_spec='$libname$release$shared_ext$major'
  10160. shlibpath_var=LD_LIBRARY_PATH
  10161. shlibpath_overrides_runpath=yes
  10162. hardcode_into_libs=yes
  10163. if test yes = "$with_gnu_ld"; then
  10164. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10165. else
  10166. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10167. case $host_os in
  10168. sco3.2v5*)
  10169. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10170. ;;
  10171. esac
  10172. fi
  10173. sys_lib_dlsearch_path_spec='/usr/lib'
  10174. ;;
  10175. tpf*)
  10176. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10177. version_type=linux # correct to gnu/linux during the next big refactor
  10178. need_lib_prefix=no
  10179. need_version=no
  10180. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10181. shlibpath_var=LD_LIBRARY_PATH
  10182. shlibpath_overrides_runpath=no
  10183. hardcode_into_libs=yes
  10184. ;;
  10185. uts4*)
  10186. version_type=linux # correct to gnu/linux during the next big refactor
  10187. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10188. soname_spec='$libname$release$shared_ext$major'
  10189. shlibpath_var=LD_LIBRARY_PATH
  10190. ;;
  10191. *)
  10192. dynamic_linker=no
  10193. ;;
  10194. esac
  10195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10196. $as_echo "$dynamic_linker" >&6; }
  10197. test no = "$dynamic_linker" && can_build_shared=no
  10198. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10199. if test yes = "$GCC"; then
  10200. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10201. fi
  10202. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10203. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10204. fi
  10205. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10206. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10207. fi
  10208. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10209. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10210. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10211. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10212. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10213. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10215. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10216. hardcode_action=
  10217. if test -n "$hardcode_libdir_flag_spec" ||
  10218. test -n "$runpath_var" ||
  10219. test yes = "$hardcode_automatic"; then
  10220. # We can hardcode non-existent directories.
  10221. if test no != "$hardcode_direct" &&
  10222. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10223. # have to relink, otherwise we might link with an installed library
  10224. # when we should be linking with a yet-to-be-installed one
  10225. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10226. test no != "$hardcode_minus_L"; then
  10227. # Linking always hardcodes the temporary library directory.
  10228. hardcode_action=relink
  10229. else
  10230. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10231. hardcode_action=immediate
  10232. fi
  10233. else
  10234. # We cannot hardcode anything, or else we can only hardcode existing
  10235. # directories.
  10236. hardcode_action=unsupported
  10237. fi
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10239. $as_echo "$hardcode_action" >&6; }
  10240. if test relink = "$hardcode_action" ||
  10241. test yes = "$inherit_rpath"; then
  10242. # Fast installation is not supported
  10243. enable_fast_install=no
  10244. elif test yes = "$shlibpath_overrides_runpath" ||
  10245. test no = "$enable_shared"; then
  10246. # Fast installation is not necessary
  10247. enable_fast_install=needless
  10248. fi
  10249. if test yes != "$enable_dlopen"; then
  10250. enable_dlopen=unknown
  10251. enable_dlopen_self=unknown
  10252. enable_dlopen_self_static=unknown
  10253. else
  10254. lt_cv_dlopen=no
  10255. lt_cv_dlopen_libs=
  10256. case $host_os in
  10257. beos*)
  10258. lt_cv_dlopen=load_add_on
  10259. lt_cv_dlopen_libs=
  10260. lt_cv_dlopen_self=yes
  10261. ;;
  10262. mingw* | pw32* | cegcc*)
  10263. lt_cv_dlopen=LoadLibrary
  10264. lt_cv_dlopen_libs=
  10265. ;;
  10266. cygwin*)
  10267. lt_cv_dlopen=dlopen
  10268. lt_cv_dlopen_libs=
  10269. ;;
  10270. darwin*)
  10271. # if libdl is installed we need to link against it
  10272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10273. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10274. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10275. $as_echo_n "(cached) " >&6
  10276. else
  10277. ac_check_lib_save_LIBS=$LIBS
  10278. LIBS="-ldl $LIBS"
  10279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10280. /* end confdefs.h. */
  10281. /* Override any GCC internal prototype to avoid an error.
  10282. Use char because int might match the return type of a GCC
  10283. builtin and then its argument prototype would still apply. */
  10284. #ifdef __cplusplus
  10285. extern "C"
  10286. #endif
  10287. char dlopen ();
  10288. int
  10289. main ()
  10290. {
  10291. return dlopen ();
  10292. ;
  10293. return 0;
  10294. }
  10295. _ACEOF
  10296. if ac_fn_c_try_link "$LINENO"; then :
  10297. ac_cv_lib_dl_dlopen=yes
  10298. else
  10299. ac_cv_lib_dl_dlopen=no
  10300. fi
  10301. rm -f core conftest.err conftest.$ac_objext \
  10302. conftest$ac_exeext conftest.$ac_ext
  10303. LIBS=$ac_check_lib_save_LIBS
  10304. fi
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10306. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10307. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10308. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10309. else
  10310. lt_cv_dlopen=dyld
  10311. lt_cv_dlopen_libs=
  10312. lt_cv_dlopen_self=yes
  10313. fi
  10314. ;;
  10315. tpf*)
  10316. # Don't try to run any link tests for TPF. We know it's impossible
  10317. # because TPF is a cross-compiler, and we know how we open DSOs.
  10318. lt_cv_dlopen=dlopen
  10319. lt_cv_dlopen_libs=
  10320. lt_cv_dlopen_self=no
  10321. ;;
  10322. *)
  10323. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10324. if test "x$ac_cv_func_shl_load" = xyes; then :
  10325. lt_cv_dlopen=shl_load
  10326. else
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10328. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10329. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10330. $as_echo_n "(cached) " >&6
  10331. else
  10332. ac_check_lib_save_LIBS=$LIBS
  10333. LIBS="-ldld $LIBS"
  10334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10335. /* end confdefs.h. */
  10336. /* Override any GCC internal prototype to avoid an error.
  10337. Use char because int might match the return type of a GCC
  10338. builtin and then its argument prototype would still apply. */
  10339. #ifdef __cplusplus
  10340. extern "C"
  10341. #endif
  10342. char shl_load ();
  10343. int
  10344. main ()
  10345. {
  10346. return shl_load ();
  10347. ;
  10348. return 0;
  10349. }
  10350. _ACEOF
  10351. if ac_fn_c_try_link "$LINENO"; then :
  10352. ac_cv_lib_dld_shl_load=yes
  10353. else
  10354. ac_cv_lib_dld_shl_load=no
  10355. fi
  10356. rm -f core conftest.err conftest.$ac_objext \
  10357. conftest$ac_exeext conftest.$ac_ext
  10358. LIBS=$ac_check_lib_save_LIBS
  10359. fi
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10361. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10362. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10363. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10364. else
  10365. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10366. if test "x$ac_cv_func_dlopen" = xyes; then :
  10367. lt_cv_dlopen=dlopen
  10368. else
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10370. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10371. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10372. $as_echo_n "(cached) " >&6
  10373. else
  10374. ac_check_lib_save_LIBS=$LIBS
  10375. LIBS="-ldl $LIBS"
  10376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10377. /* end confdefs.h. */
  10378. /* Override any GCC internal prototype to avoid an error.
  10379. Use char because int might match the return type of a GCC
  10380. builtin and then its argument prototype would still apply. */
  10381. #ifdef __cplusplus
  10382. extern "C"
  10383. #endif
  10384. char dlopen ();
  10385. int
  10386. main ()
  10387. {
  10388. return dlopen ();
  10389. ;
  10390. return 0;
  10391. }
  10392. _ACEOF
  10393. if ac_fn_c_try_link "$LINENO"; then :
  10394. ac_cv_lib_dl_dlopen=yes
  10395. else
  10396. ac_cv_lib_dl_dlopen=no
  10397. fi
  10398. rm -f core conftest.err conftest.$ac_objext \
  10399. conftest$ac_exeext conftest.$ac_ext
  10400. LIBS=$ac_check_lib_save_LIBS
  10401. fi
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10403. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10404. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10405. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10406. else
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10408. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10409. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10410. $as_echo_n "(cached) " >&6
  10411. else
  10412. ac_check_lib_save_LIBS=$LIBS
  10413. LIBS="-lsvld $LIBS"
  10414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10415. /* end confdefs.h. */
  10416. /* Override any GCC internal prototype to avoid an error.
  10417. Use char because int might match the return type of a GCC
  10418. builtin and then its argument prototype would still apply. */
  10419. #ifdef __cplusplus
  10420. extern "C"
  10421. #endif
  10422. char dlopen ();
  10423. int
  10424. main ()
  10425. {
  10426. return dlopen ();
  10427. ;
  10428. return 0;
  10429. }
  10430. _ACEOF
  10431. if ac_fn_c_try_link "$LINENO"; then :
  10432. ac_cv_lib_svld_dlopen=yes
  10433. else
  10434. ac_cv_lib_svld_dlopen=no
  10435. fi
  10436. rm -f core conftest.err conftest.$ac_objext \
  10437. conftest$ac_exeext conftest.$ac_ext
  10438. LIBS=$ac_check_lib_save_LIBS
  10439. fi
  10440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10441. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10442. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10443. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10444. else
  10445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10446. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10447. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10448. $as_echo_n "(cached) " >&6
  10449. else
  10450. ac_check_lib_save_LIBS=$LIBS
  10451. LIBS="-ldld $LIBS"
  10452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10453. /* end confdefs.h. */
  10454. /* Override any GCC internal prototype to avoid an error.
  10455. Use char because int might match the return type of a GCC
  10456. builtin and then its argument prototype would still apply. */
  10457. #ifdef __cplusplus
  10458. extern "C"
  10459. #endif
  10460. char dld_link ();
  10461. int
  10462. main ()
  10463. {
  10464. return dld_link ();
  10465. ;
  10466. return 0;
  10467. }
  10468. _ACEOF
  10469. if ac_fn_c_try_link "$LINENO"; then :
  10470. ac_cv_lib_dld_dld_link=yes
  10471. else
  10472. ac_cv_lib_dld_dld_link=no
  10473. fi
  10474. rm -f core conftest.err conftest.$ac_objext \
  10475. conftest$ac_exeext conftest.$ac_ext
  10476. LIBS=$ac_check_lib_save_LIBS
  10477. fi
  10478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10479. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10480. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10481. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10482. fi
  10483. fi
  10484. fi
  10485. fi
  10486. fi
  10487. fi
  10488. ;;
  10489. esac
  10490. if test no = "$lt_cv_dlopen"; then
  10491. enable_dlopen=no
  10492. else
  10493. enable_dlopen=yes
  10494. fi
  10495. case $lt_cv_dlopen in
  10496. dlopen)
  10497. save_CPPFLAGS=$CPPFLAGS
  10498. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10499. save_LDFLAGS=$LDFLAGS
  10500. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10501. save_LIBS=$LIBS
  10502. LIBS="$lt_cv_dlopen_libs $LIBS"
  10503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10504. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10505. if ${lt_cv_dlopen_self+:} false; then :
  10506. $as_echo_n "(cached) " >&6
  10507. else
  10508. if test yes = "$cross_compiling"; then :
  10509. lt_cv_dlopen_self=cross
  10510. else
  10511. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10512. lt_status=$lt_dlunknown
  10513. cat > conftest.$ac_ext <<_LT_EOF
  10514. #line $LINENO "configure"
  10515. #include "confdefs.h"
  10516. #if HAVE_DLFCN_H
  10517. #include <dlfcn.h>
  10518. #endif
  10519. #include <stdio.h>
  10520. #ifdef RTLD_GLOBAL
  10521. # define LT_DLGLOBAL RTLD_GLOBAL
  10522. #else
  10523. # ifdef DL_GLOBAL
  10524. # define LT_DLGLOBAL DL_GLOBAL
  10525. # else
  10526. # define LT_DLGLOBAL 0
  10527. # endif
  10528. #endif
  10529. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10530. find out it does not work in some platform. */
  10531. #ifndef LT_DLLAZY_OR_NOW
  10532. # ifdef RTLD_LAZY
  10533. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10534. # else
  10535. # ifdef DL_LAZY
  10536. # define LT_DLLAZY_OR_NOW DL_LAZY
  10537. # else
  10538. # ifdef RTLD_NOW
  10539. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10540. # else
  10541. # ifdef DL_NOW
  10542. # define LT_DLLAZY_OR_NOW DL_NOW
  10543. # else
  10544. # define LT_DLLAZY_OR_NOW 0
  10545. # endif
  10546. # endif
  10547. # endif
  10548. # endif
  10549. #endif
  10550. /* When -fvisibility=hidden is used, assume the code has been annotated
  10551. correspondingly for the symbols needed. */
  10552. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10553. int fnord () __attribute__((visibility("default")));
  10554. #endif
  10555. int fnord () { return 42; }
  10556. int main ()
  10557. {
  10558. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10559. int status = $lt_dlunknown;
  10560. if (self)
  10561. {
  10562. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10563. else
  10564. {
  10565. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10566. else puts (dlerror ());
  10567. }
  10568. /* dlclose (self); */
  10569. }
  10570. else
  10571. puts (dlerror ());
  10572. return status;
  10573. }
  10574. _LT_EOF
  10575. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10576. (eval $ac_link) 2>&5
  10577. ac_status=$?
  10578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10579. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10580. (./conftest; exit; ) >&5 2>/dev/null
  10581. lt_status=$?
  10582. case x$lt_status in
  10583. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10584. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10585. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10586. esac
  10587. else :
  10588. # compilation failed
  10589. lt_cv_dlopen_self=no
  10590. fi
  10591. fi
  10592. rm -fr conftest*
  10593. fi
  10594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10595. $as_echo "$lt_cv_dlopen_self" >&6; }
  10596. if test yes = "$lt_cv_dlopen_self"; then
  10597. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10599. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10600. if ${lt_cv_dlopen_self_static+:} false; then :
  10601. $as_echo_n "(cached) " >&6
  10602. else
  10603. if test yes = "$cross_compiling"; then :
  10604. lt_cv_dlopen_self_static=cross
  10605. else
  10606. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10607. lt_status=$lt_dlunknown
  10608. cat > conftest.$ac_ext <<_LT_EOF
  10609. #line $LINENO "configure"
  10610. #include "confdefs.h"
  10611. #if HAVE_DLFCN_H
  10612. #include <dlfcn.h>
  10613. #endif
  10614. #include <stdio.h>
  10615. #ifdef RTLD_GLOBAL
  10616. # define LT_DLGLOBAL RTLD_GLOBAL
  10617. #else
  10618. # ifdef DL_GLOBAL
  10619. # define LT_DLGLOBAL DL_GLOBAL
  10620. # else
  10621. # define LT_DLGLOBAL 0
  10622. # endif
  10623. #endif
  10624. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10625. find out it does not work in some platform. */
  10626. #ifndef LT_DLLAZY_OR_NOW
  10627. # ifdef RTLD_LAZY
  10628. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10629. # else
  10630. # ifdef DL_LAZY
  10631. # define LT_DLLAZY_OR_NOW DL_LAZY
  10632. # else
  10633. # ifdef RTLD_NOW
  10634. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10635. # else
  10636. # ifdef DL_NOW
  10637. # define LT_DLLAZY_OR_NOW DL_NOW
  10638. # else
  10639. # define LT_DLLAZY_OR_NOW 0
  10640. # endif
  10641. # endif
  10642. # endif
  10643. # endif
  10644. #endif
  10645. /* When -fvisibility=hidden is used, assume the code has been annotated
  10646. correspondingly for the symbols needed. */
  10647. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10648. int fnord () __attribute__((visibility("default")));
  10649. #endif
  10650. int fnord () { return 42; }
  10651. int main ()
  10652. {
  10653. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10654. int status = $lt_dlunknown;
  10655. if (self)
  10656. {
  10657. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10658. else
  10659. {
  10660. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10661. else puts (dlerror ());
  10662. }
  10663. /* dlclose (self); */
  10664. }
  10665. else
  10666. puts (dlerror ());
  10667. return status;
  10668. }
  10669. _LT_EOF
  10670. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10671. (eval $ac_link) 2>&5
  10672. ac_status=$?
  10673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10674. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10675. (./conftest; exit; ) >&5 2>/dev/null
  10676. lt_status=$?
  10677. case x$lt_status in
  10678. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10679. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10680. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10681. esac
  10682. else :
  10683. # compilation failed
  10684. lt_cv_dlopen_self_static=no
  10685. fi
  10686. fi
  10687. rm -fr conftest*
  10688. fi
  10689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10690. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10691. fi
  10692. CPPFLAGS=$save_CPPFLAGS
  10693. LDFLAGS=$save_LDFLAGS
  10694. LIBS=$save_LIBS
  10695. ;;
  10696. esac
  10697. case $lt_cv_dlopen_self in
  10698. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10699. *) enable_dlopen_self=unknown ;;
  10700. esac
  10701. case $lt_cv_dlopen_self_static in
  10702. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10703. *) enable_dlopen_self_static=unknown ;;
  10704. esac
  10705. fi
  10706. striplib=
  10707. old_striplib=
  10708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10709. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10710. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10711. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10712. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10714. $as_echo "yes" >&6; }
  10715. else
  10716. # FIXME - insert some real tests, host_os isn't really good enough
  10717. case $host_os in
  10718. darwin*)
  10719. if test -n "$STRIP"; then
  10720. striplib="$STRIP -x"
  10721. old_striplib="$STRIP -S"
  10722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10723. $as_echo "yes" >&6; }
  10724. else
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10726. $as_echo "no" >&6; }
  10727. fi
  10728. ;;
  10729. *)
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10731. $as_echo "no" >&6; }
  10732. ;;
  10733. esac
  10734. fi
  10735. # Report what library types will actually be built
  10736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10737. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10739. $as_echo "$can_build_shared" >&6; }
  10740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10741. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10742. test no = "$can_build_shared" && enable_shared=no
  10743. # On AIX, shared libraries and static libraries use the same namespace, and
  10744. # are all built from PIC.
  10745. case $host_os in
  10746. aix3*)
  10747. test yes = "$enable_shared" && enable_static=no
  10748. if test -n "$RANLIB"; then
  10749. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10750. postinstall_cmds='$RANLIB $lib'
  10751. fi
  10752. ;;
  10753. aix[4-9]*)
  10754. if test ia64 != "$host_cpu"; then
  10755. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10756. yes,aix,yes) ;; # shared object as lib.so file only
  10757. yes,svr4,*) ;; # shared object as lib.so archive member only
  10758. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10759. esac
  10760. fi
  10761. ;;
  10762. esac
  10763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10764. $as_echo "$enable_shared" >&6; }
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10766. $as_echo_n "checking whether to build static libraries... " >&6; }
  10767. # Make sure either enable_shared or enable_static is yes.
  10768. test yes = "$enable_shared" || enable_static=yes
  10769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10770. $as_echo "$enable_static" >&6; }
  10771. fi
  10772. ac_ext=c
  10773. ac_cpp='$CPP $CPPFLAGS'
  10774. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10775. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10776. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10777. CC=$lt_save_CC
  10778. if test -n "$CXX" && ( test no != "$CXX" &&
  10779. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  10780. (test g++ != "$CXX"))); then
  10781. ac_ext=cpp
  10782. ac_cpp='$CXXCPP $CPPFLAGS'
  10783. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10784. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10785. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10787. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10788. if test -z "$CXXCPP"; then
  10789. if ${ac_cv_prog_CXXCPP+:} false; then :
  10790. $as_echo_n "(cached) " >&6
  10791. else
  10792. # Double quotes because CXXCPP needs to be expanded
  10793. for CXXCPP in "$CXX -E" "/lib/cpp"
  10794. do
  10795. ac_preproc_ok=false
  10796. for ac_cxx_preproc_warn_flag in '' yes
  10797. do
  10798. # Use a header file that comes with gcc, so configuring glibc
  10799. # with a fresh cross-compiler works.
  10800. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10801. # <limits.h> exists even on freestanding compilers.
  10802. # On the NeXT, cc -E runs the code through the compiler's parser,
  10803. # not just through cpp. "Syntax error" is here to catch this case.
  10804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10805. /* end confdefs.h. */
  10806. #ifdef __STDC__
  10807. # include <limits.h>
  10808. #else
  10809. # include <assert.h>
  10810. #endif
  10811. Syntax error
  10812. _ACEOF
  10813. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10814. else
  10815. # Broken: fails on valid input.
  10816. continue
  10817. fi
  10818. rm -f conftest.err conftest.i conftest.$ac_ext
  10819. # OK, works on sane cases. Now check whether nonexistent headers
  10820. # can be detected and how.
  10821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10822. /* end confdefs.h. */
  10823. #include <ac_nonexistent.h>
  10824. _ACEOF
  10825. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10826. # Broken: success on invalid input.
  10827. continue
  10828. else
  10829. # Passes both tests.
  10830. ac_preproc_ok=:
  10831. break
  10832. fi
  10833. rm -f conftest.err conftest.i conftest.$ac_ext
  10834. done
  10835. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10836. rm -f conftest.i conftest.err conftest.$ac_ext
  10837. if $ac_preproc_ok; then :
  10838. break
  10839. fi
  10840. done
  10841. ac_cv_prog_CXXCPP=$CXXCPP
  10842. fi
  10843. CXXCPP=$ac_cv_prog_CXXCPP
  10844. else
  10845. ac_cv_prog_CXXCPP=$CXXCPP
  10846. fi
  10847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10848. $as_echo "$CXXCPP" >&6; }
  10849. ac_preproc_ok=false
  10850. for ac_cxx_preproc_warn_flag in '' yes
  10851. do
  10852. # Use a header file that comes with gcc, so configuring glibc
  10853. # with a fresh cross-compiler works.
  10854. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10855. # <limits.h> exists even on freestanding compilers.
  10856. # On the NeXT, cc -E runs the code through the compiler's parser,
  10857. # not just through cpp. "Syntax error" is here to catch this case.
  10858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10859. /* end confdefs.h. */
  10860. #ifdef __STDC__
  10861. # include <limits.h>
  10862. #else
  10863. # include <assert.h>
  10864. #endif
  10865. Syntax error
  10866. _ACEOF
  10867. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10868. else
  10869. # Broken: fails on valid input.
  10870. continue
  10871. fi
  10872. rm -f conftest.err conftest.i conftest.$ac_ext
  10873. # OK, works on sane cases. Now check whether nonexistent headers
  10874. # can be detected and how.
  10875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10876. /* end confdefs.h. */
  10877. #include <ac_nonexistent.h>
  10878. _ACEOF
  10879. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10880. # Broken: success on invalid input.
  10881. continue
  10882. else
  10883. # Passes both tests.
  10884. ac_preproc_ok=:
  10885. break
  10886. fi
  10887. rm -f conftest.err conftest.i conftest.$ac_ext
  10888. done
  10889. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10890. rm -f conftest.i conftest.err conftest.$ac_ext
  10891. if $ac_preproc_ok; then :
  10892. else
  10893. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10894. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10895. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10896. See \`config.log' for more details" "$LINENO" 5; }
  10897. fi
  10898. ac_ext=c
  10899. ac_cpp='$CPP $CPPFLAGS'
  10900. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10901. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10902. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10903. else
  10904. _lt_caught_CXX_error=yes
  10905. fi
  10906. ac_ext=cpp
  10907. ac_cpp='$CXXCPP $CPPFLAGS'
  10908. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10909. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10910. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10911. archive_cmds_need_lc_CXX=no
  10912. allow_undefined_flag_CXX=
  10913. always_export_symbols_CXX=no
  10914. archive_expsym_cmds_CXX=
  10915. compiler_needs_object_CXX=no
  10916. export_dynamic_flag_spec_CXX=
  10917. hardcode_direct_CXX=no
  10918. hardcode_direct_absolute_CXX=no
  10919. hardcode_libdir_flag_spec_CXX=
  10920. hardcode_libdir_separator_CXX=
  10921. hardcode_minus_L_CXX=no
  10922. hardcode_shlibpath_var_CXX=unsupported
  10923. hardcode_automatic_CXX=no
  10924. inherit_rpath_CXX=no
  10925. module_cmds_CXX=
  10926. module_expsym_cmds_CXX=
  10927. link_all_deplibs_CXX=unknown
  10928. old_archive_cmds_CXX=$old_archive_cmds
  10929. reload_flag_CXX=$reload_flag
  10930. reload_cmds_CXX=$reload_cmds
  10931. no_undefined_flag_CXX=
  10932. whole_archive_flag_spec_CXX=
  10933. enable_shared_with_static_runtimes_CXX=no
  10934. # Source file extension for C++ test sources.
  10935. ac_ext=cpp
  10936. # Object file extension for compiled C++ test sources.
  10937. objext=o
  10938. objext_CXX=$objext
  10939. # No sense in running all these tests if we already determined that
  10940. # the CXX compiler isn't working. Some variables (like enable_shared)
  10941. # are currently assumed to apply to all compilers on this platform,
  10942. # and will be corrupted by setting them based on a non-working compiler.
  10943. if test yes != "$_lt_caught_CXX_error"; then
  10944. # Code to be used in simple compile tests
  10945. lt_simple_compile_test_code="int some_variable = 0;"
  10946. # Code to be used in simple link tests
  10947. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10948. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10949. # If no C compiler was specified, use CC.
  10950. LTCC=${LTCC-"$CC"}
  10951. # If no C compiler flags were specified, use CFLAGS.
  10952. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10953. # Allow CC to be a program name with arguments.
  10954. compiler=$CC
  10955. # save warnings/boilerplate of simple test code
  10956. ac_outfile=conftest.$ac_objext
  10957. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10958. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10959. _lt_compiler_boilerplate=`cat conftest.err`
  10960. $RM conftest*
  10961. ac_outfile=conftest.$ac_objext
  10962. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10963. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10964. _lt_linker_boilerplate=`cat conftest.err`
  10965. $RM -r conftest*
  10966. # Allow CC to be a program name with arguments.
  10967. lt_save_CC=$CC
  10968. lt_save_CFLAGS=$CFLAGS
  10969. lt_save_LD=$LD
  10970. lt_save_GCC=$GCC
  10971. GCC=$GXX
  10972. lt_save_with_gnu_ld=$with_gnu_ld
  10973. lt_save_path_LD=$lt_cv_path_LD
  10974. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10975. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10976. else
  10977. $as_unset lt_cv_prog_gnu_ld
  10978. fi
  10979. if test -n "${lt_cv_path_LDCXX+set}"; then
  10980. lt_cv_path_LD=$lt_cv_path_LDCXX
  10981. else
  10982. $as_unset lt_cv_path_LD
  10983. fi
  10984. test -z "${LDCXX+set}" || LD=$LDCXX
  10985. CC=${CXX-"c++"}
  10986. CFLAGS=$CXXFLAGS
  10987. compiler=$CC
  10988. compiler_CXX=$CC
  10989. func_cc_basename $compiler
  10990. cc_basename=$func_cc_basename_result
  10991. if test -n "$compiler"; then
  10992. # We don't want -fno-exception when compiling C++ code, so set the
  10993. # no_builtin_flag separately
  10994. if test yes = "$GXX"; then
  10995. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10996. else
  10997. lt_prog_compiler_no_builtin_flag_CXX=
  10998. fi
  10999. if test yes = "$GXX"; then
  11000. # Set up default GNU C++ configuration
  11001. # Check whether --with-gnu-ld was given.
  11002. if test "${with_gnu_ld+set}" = set; then :
  11003. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11004. else
  11005. with_gnu_ld=no
  11006. fi
  11007. ac_prog=ld
  11008. if test yes = "$GCC"; then
  11009. # Check if gcc -print-prog-name=ld gives a path.
  11010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11011. $as_echo_n "checking for ld used by $CC... " >&6; }
  11012. case $host in
  11013. *-*-mingw*)
  11014. # gcc leaves a trailing carriage return, which upsets mingw
  11015. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11016. *)
  11017. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11018. esac
  11019. case $ac_prog in
  11020. # Accept absolute paths.
  11021. [\\/]* | ?:[\\/]*)
  11022. re_direlt='/[^/][^/]*/\.\./'
  11023. # Canonicalize the pathname of ld
  11024. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11025. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11026. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11027. done
  11028. test -z "$LD" && LD=$ac_prog
  11029. ;;
  11030. "")
  11031. # If it fails, then pretend we aren't using GCC.
  11032. ac_prog=ld
  11033. ;;
  11034. *)
  11035. # If it is relative, then search for the first ld in PATH.
  11036. with_gnu_ld=unknown
  11037. ;;
  11038. esac
  11039. elif test yes = "$with_gnu_ld"; then
  11040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11041. $as_echo_n "checking for GNU ld... " >&6; }
  11042. else
  11043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11044. $as_echo_n "checking for non-GNU ld... " >&6; }
  11045. fi
  11046. if ${lt_cv_path_LD+:} false; then :
  11047. $as_echo_n "(cached) " >&6
  11048. else
  11049. if test -z "$LD"; then
  11050. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11051. for ac_dir in $PATH; do
  11052. IFS=$lt_save_ifs
  11053. test -z "$ac_dir" && ac_dir=.
  11054. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11055. lt_cv_path_LD=$ac_dir/$ac_prog
  11056. # Check to see if the program is GNU ld. I'd rather use --version,
  11057. # but apparently some variants of GNU ld only accept -v.
  11058. # Break only if it was the GNU/non-GNU ld that we prefer.
  11059. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11060. *GNU* | *'with BFD'*)
  11061. test no != "$with_gnu_ld" && break
  11062. ;;
  11063. *)
  11064. test yes != "$with_gnu_ld" && break
  11065. ;;
  11066. esac
  11067. fi
  11068. done
  11069. IFS=$lt_save_ifs
  11070. else
  11071. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11072. fi
  11073. fi
  11074. LD=$lt_cv_path_LD
  11075. if test -n "$LD"; then
  11076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11077. $as_echo "$LD" >&6; }
  11078. else
  11079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11080. $as_echo "no" >&6; }
  11081. fi
  11082. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11084. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11085. if ${lt_cv_prog_gnu_ld+:} false; then :
  11086. $as_echo_n "(cached) " >&6
  11087. else
  11088. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11089. case `$LD -v 2>&1 </dev/null` in
  11090. *GNU* | *'with BFD'*)
  11091. lt_cv_prog_gnu_ld=yes
  11092. ;;
  11093. *)
  11094. lt_cv_prog_gnu_ld=no
  11095. ;;
  11096. esac
  11097. fi
  11098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11099. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11100. with_gnu_ld=$lt_cv_prog_gnu_ld
  11101. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11102. # archiving commands below assume that GNU ld is being used.
  11103. if test yes = "$with_gnu_ld"; then
  11104. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11105. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11106. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11107. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11108. # If archive_cmds runs LD, not CC, wlarc should be empty
  11109. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11110. # investigate it a little bit more. (MM)
  11111. wlarc='$wl'
  11112. # ancient GNU ld didn't support --whole-archive et. al.
  11113. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11114. $GREP 'no-whole-archive' > /dev/null; then
  11115. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11116. else
  11117. whole_archive_flag_spec_CXX=
  11118. fi
  11119. else
  11120. with_gnu_ld=no
  11121. wlarc=
  11122. # A generic and very simple default shared library creation
  11123. # command for GNU C++ for the case where it uses the native
  11124. # linker, instead of GNU ld. If possible, this setting should
  11125. # overridden to take advantage of the native linker features on
  11126. # the platform it is being used on.
  11127. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11128. fi
  11129. # Commands to make compiler produce verbose output that lists
  11130. # what "hidden" libraries, object files and flags are used when
  11131. # linking a shared library.
  11132. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11133. else
  11134. GXX=no
  11135. with_gnu_ld=no
  11136. wlarc=
  11137. fi
  11138. # PORTME: fill in a description of your system's C++ link characteristics
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11140. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11141. ld_shlibs_CXX=yes
  11142. case $host_os in
  11143. aix3*)
  11144. # FIXME: insert proper C++ library support
  11145. ld_shlibs_CXX=no
  11146. ;;
  11147. aix[4-9]*)
  11148. if test ia64 = "$host_cpu"; then
  11149. # On IA64, the linker does run time linking by default, so we don't
  11150. # have to do anything special.
  11151. aix_use_runtimelinking=no
  11152. exp_sym_flag='-Bexport'
  11153. no_entry_flag=
  11154. else
  11155. aix_use_runtimelinking=no
  11156. # Test if we are trying to use run time linking or normal
  11157. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11158. # have runtime linking enabled, and use it for executables.
  11159. # For shared libraries, we enable/disable runtime linking
  11160. # depending on the kind of the shared library created -
  11161. # when "with_aix_soname,aix_use_runtimelinking" is:
  11162. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11163. # "aix,yes" lib.so shared, rtl:yes, for executables
  11164. # lib.a static archive
  11165. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11166. # lib.a(lib.so.V) shared, rtl:no, for executables
  11167. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11168. # lib.a(lib.so.V) shared, rtl:no
  11169. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11170. # lib.a static archive
  11171. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11172. for ld_flag in $LDFLAGS; do
  11173. case $ld_flag in
  11174. *-brtl*)
  11175. aix_use_runtimelinking=yes
  11176. break
  11177. ;;
  11178. esac
  11179. done
  11180. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11181. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11182. # so we don't have lib.a shared libs to link our executables.
  11183. # We have to force runtime linking in this case.
  11184. aix_use_runtimelinking=yes
  11185. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11186. fi
  11187. ;;
  11188. esac
  11189. exp_sym_flag='-bexport'
  11190. no_entry_flag='-bnoentry'
  11191. fi
  11192. # When large executables or shared objects are built, AIX ld can
  11193. # have problems creating the table of contents. If linking a library
  11194. # or program results in "error TOC overflow" add -mminimal-toc to
  11195. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11196. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11197. archive_cmds_CXX=''
  11198. hardcode_direct_CXX=yes
  11199. hardcode_direct_absolute_CXX=yes
  11200. hardcode_libdir_separator_CXX=':'
  11201. link_all_deplibs_CXX=yes
  11202. file_list_spec_CXX='$wl-f,'
  11203. case $with_aix_soname,$aix_use_runtimelinking in
  11204. aix,*) ;; # no import file
  11205. svr4,* | *,yes) # use import file
  11206. # The Import File defines what to hardcode.
  11207. hardcode_direct_CXX=no
  11208. hardcode_direct_absolute_CXX=no
  11209. ;;
  11210. esac
  11211. if test yes = "$GXX"; then
  11212. case $host_os in aix4.[012]|aix4.[012].*)
  11213. # We only want to do this on AIX 4.2 and lower, the check
  11214. # below for broken collect2 doesn't work under 4.3+
  11215. collect2name=`$CC -print-prog-name=collect2`
  11216. if test -f "$collect2name" &&
  11217. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11218. then
  11219. # We have reworked collect2
  11220. :
  11221. else
  11222. # We have old collect2
  11223. hardcode_direct_CXX=unsupported
  11224. # It fails to find uninstalled libraries when the uninstalled
  11225. # path is not listed in the libpath. Setting hardcode_minus_L
  11226. # to unsupported forces relinking
  11227. hardcode_minus_L_CXX=yes
  11228. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11229. hardcode_libdir_separator_CXX=
  11230. fi
  11231. esac
  11232. shared_flag='-shared'
  11233. if test yes = "$aix_use_runtimelinking"; then
  11234. shared_flag=$shared_flag' $wl-G'
  11235. fi
  11236. # Need to ensure runtime linking is disabled for the traditional
  11237. # shared library, or the linker may eventually find shared libraries
  11238. # /with/ Import File - we do not want to mix them.
  11239. shared_flag_aix='-shared'
  11240. shared_flag_svr4='-shared $wl-G'
  11241. else
  11242. # not using gcc
  11243. if test ia64 = "$host_cpu"; then
  11244. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11245. # chokes on -Wl,-G. The following line is correct:
  11246. shared_flag='-G'
  11247. else
  11248. if test yes = "$aix_use_runtimelinking"; then
  11249. shared_flag='$wl-G'
  11250. else
  11251. shared_flag='$wl-bM:SRE'
  11252. fi
  11253. shared_flag_aix='$wl-bM:SRE'
  11254. shared_flag_svr4='$wl-G'
  11255. fi
  11256. fi
  11257. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11258. # It seems that -bexpall does not export symbols beginning with
  11259. # underscore (_), so it is better to generate a list of symbols to
  11260. # export.
  11261. always_export_symbols_CXX=yes
  11262. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11263. # Warning - without using the other runtime loading flags (-brtl),
  11264. # -berok will link without error, but may produce a broken library.
  11265. # The "-G" linker flag allows undefined symbols.
  11266. no_undefined_flag_CXX='-bernotok'
  11267. # Determine the default libpath from the value encoded in an empty
  11268. # executable.
  11269. if test set = "${lt_cv_aix_libpath+set}"; then
  11270. aix_libpath=$lt_cv_aix_libpath
  11271. else
  11272. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11273. $as_echo_n "(cached) " >&6
  11274. else
  11275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11276. /* end confdefs.h. */
  11277. int
  11278. main ()
  11279. {
  11280. ;
  11281. return 0;
  11282. }
  11283. _ACEOF
  11284. if ac_fn_cxx_try_link "$LINENO"; then :
  11285. lt_aix_libpath_sed='
  11286. /Import File Strings/,/^$/ {
  11287. /^0/ {
  11288. s/^0 *\([^ ]*\) *$/\1/
  11289. p
  11290. }
  11291. }'
  11292. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11293. # Check for a 64-bit object if we didn't find anything.
  11294. if test -z "$lt_cv_aix_libpath__CXX"; then
  11295. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11296. fi
  11297. fi
  11298. rm -f core conftest.err conftest.$ac_objext \
  11299. conftest$ac_exeext conftest.$ac_ext
  11300. if test -z "$lt_cv_aix_libpath__CXX"; then
  11301. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11302. fi
  11303. fi
  11304. aix_libpath=$lt_cv_aix_libpath__CXX
  11305. fi
  11306. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11307. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  11308. else
  11309. if test ia64 = "$host_cpu"; then
  11310. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11311. allow_undefined_flag_CXX="-z nodefs"
  11312. 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"
  11313. else
  11314. # Determine the default libpath from the value encoded in an
  11315. # empty executable.
  11316. if test set = "${lt_cv_aix_libpath+set}"; then
  11317. aix_libpath=$lt_cv_aix_libpath
  11318. else
  11319. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11320. $as_echo_n "(cached) " >&6
  11321. else
  11322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11323. /* end confdefs.h. */
  11324. int
  11325. main ()
  11326. {
  11327. ;
  11328. return 0;
  11329. }
  11330. _ACEOF
  11331. if ac_fn_cxx_try_link "$LINENO"; then :
  11332. lt_aix_libpath_sed='
  11333. /Import File Strings/,/^$/ {
  11334. /^0/ {
  11335. s/^0 *\([^ ]*\) *$/\1/
  11336. p
  11337. }
  11338. }'
  11339. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11340. # Check for a 64-bit object if we didn't find anything.
  11341. if test -z "$lt_cv_aix_libpath__CXX"; then
  11342. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11343. fi
  11344. fi
  11345. rm -f core conftest.err conftest.$ac_objext \
  11346. conftest$ac_exeext conftest.$ac_ext
  11347. if test -z "$lt_cv_aix_libpath__CXX"; then
  11348. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11349. fi
  11350. fi
  11351. aix_libpath=$lt_cv_aix_libpath__CXX
  11352. fi
  11353. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11354. # Warning - without using the other run time loading flags,
  11355. # -berok will link without error, but may produce a broken library.
  11356. no_undefined_flag_CXX=' $wl-bernotok'
  11357. allow_undefined_flag_CXX=' $wl-berok'
  11358. if test yes = "$with_gnu_ld"; then
  11359. # We only use this code for GNU lds that support --whole-archive.
  11360. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11361. else
  11362. # Exported symbols can be pulled into shared objects from archives
  11363. whole_archive_flag_spec_CXX='$convenience'
  11364. fi
  11365. archive_cmds_need_lc_CXX=yes
  11366. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11367. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11368. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11369. if test svr4 != "$with_aix_soname"; then
  11370. # This is similar to how AIX traditionally builds its shared
  11371. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11372. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  11373. fi
  11374. if test aix != "$with_aix_soname"; then
  11375. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  11376. else
  11377. # used by -dlpreopen to get the symbols
  11378. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11379. fi
  11380. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11381. fi
  11382. fi
  11383. ;;
  11384. beos*)
  11385. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11386. allow_undefined_flag_CXX=unsupported
  11387. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11388. # support --undefined. This deserves some investigation. FIXME
  11389. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11390. else
  11391. ld_shlibs_CXX=no
  11392. fi
  11393. ;;
  11394. chorus*)
  11395. case $cc_basename in
  11396. *)
  11397. # FIXME: insert proper C++ library support
  11398. ld_shlibs_CXX=no
  11399. ;;
  11400. esac
  11401. ;;
  11402. cygwin* | mingw* | pw32* | cegcc*)
  11403. case $GXX,$cc_basename in
  11404. ,cl* | no,cl*)
  11405. # Native MSVC
  11406. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11407. # no search path for DLLs.
  11408. hardcode_libdir_flag_spec_CXX=' '
  11409. allow_undefined_flag_CXX=unsupported
  11410. always_export_symbols_CXX=yes
  11411. file_list_spec_CXX='@'
  11412. # Tell ltmain to make .lib files, not .a files.
  11413. libext=lib
  11414. # Tell ltmain to make .dll files, not .so files.
  11415. shrext_cmds=.dll
  11416. # FIXME: Setting linknames here is a bad hack.
  11417. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11418. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11419. cp "$export_symbols" "$output_objdir/$soname.def";
  11420. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11421. else
  11422. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11423. fi~
  11424. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11425. linknames='
  11426. # The linker will not automatically build a static lib if we build a DLL.
  11427. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11428. enable_shared_with_static_runtimes_CXX=yes
  11429. # Don't use ranlib
  11430. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11431. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11432. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11433. case $lt_outputfile in
  11434. *.exe|*.EXE) ;;
  11435. *)
  11436. lt_outputfile=$lt_outputfile.exe
  11437. lt_tool_outputfile=$lt_tool_outputfile.exe
  11438. ;;
  11439. esac~
  11440. func_to_tool_file "$lt_outputfile"~
  11441. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11442. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11443. $RM "$lt_outputfile.manifest";
  11444. fi'
  11445. ;;
  11446. *)
  11447. # g++
  11448. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11449. # as there is no search path for DLLs.
  11450. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11451. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11452. allow_undefined_flag_CXX=unsupported
  11453. always_export_symbols_CXX=no
  11454. enable_shared_with_static_runtimes_CXX=yes
  11455. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11456. 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'
  11457. # If the export-symbols file already is a .def file, use it as
  11458. # is; otherwise, prepend EXPORTS...
  11459. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11460. cp $export_symbols $output_objdir/$soname.def;
  11461. else
  11462. echo EXPORTS > $output_objdir/$soname.def;
  11463. cat $export_symbols >> $output_objdir/$soname.def;
  11464. fi~
  11465. $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'
  11466. else
  11467. ld_shlibs_CXX=no
  11468. fi
  11469. ;;
  11470. esac
  11471. ;;
  11472. darwin* | rhapsody*)
  11473. archive_cmds_need_lc_CXX=no
  11474. hardcode_direct_CXX=no
  11475. hardcode_automatic_CXX=yes
  11476. hardcode_shlibpath_var_CXX=unsupported
  11477. if test yes = "$lt_cv_ld_force_load"; then
  11478. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11479. else
  11480. whole_archive_flag_spec_CXX=''
  11481. fi
  11482. link_all_deplibs_CXX=yes
  11483. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11484. case $cc_basename in
  11485. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11486. *) _lt_dar_can_shared=$GCC ;;
  11487. esac
  11488. if test yes = "$_lt_dar_can_shared"; then
  11489. output_verbose_link_cmd=func_echo_all
  11490. 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"
  11491. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11492. 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"
  11493. 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"
  11494. if test yes != "$lt_cv_apple_cc_single_mod"; then
  11495. 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"
  11496. 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"
  11497. fi
  11498. else
  11499. ld_shlibs_CXX=no
  11500. fi
  11501. ;;
  11502. os2*)
  11503. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11504. hardcode_minus_L_CXX=yes
  11505. allow_undefined_flag_CXX=unsupported
  11506. shrext_cmds=.dll
  11507. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11508. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11509. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11510. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11511. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11512. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11513. emximp -o $lib $output_objdir/$libname.def'
  11514. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11515. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11516. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11517. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11518. prefix_cmds="$SED"~
  11519. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11520. prefix_cmds="$prefix_cmds -e 1d";
  11521. fi~
  11522. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11523. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11524. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11525. emximp -o $lib $output_objdir/$libname.def'
  11526. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11527. enable_shared_with_static_runtimes_CXX=yes
  11528. ;;
  11529. dgux*)
  11530. case $cc_basename in
  11531. ec++*)
  11532. # FIXME: insert proper C++ library support
  11533. ld_shlibs_CXX=no
  11534. ;;
  11535. ghcx*)
  11536. # Green Hills C++ Compiler
  11537. # FIXME: insert proper C++ library support
  11538. ld_shlibs_CXX=no
  11539. ;;
  11540. *)
  11541. # FIXME: insert proper C++ library support
  11542. ld_shlibs_CXX=no
  11543. ;;
  11544. esac
  11545. ;;
  11546. freebsd2.*)
  11547. # C++ shared libraries reported to be fairly broken before
  11548. # switch to ELF
  11549. ld_shlibs_CXX=no
  11550. ;;
  11551. freebsd-elf*)
  11552. archive_cmds_need_lc_CXX=no
  11553. ;;
  11554. freebsd* | dragonfly*)
  11555. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11556. # conventions
  11557. ld_shlibs_CXX=yes
  11558. ;;
  11559. haiku*)
  11560. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11561. link_all_deplibs_CXX=yes
  11562. ;;
  11563. hpux9*)
  11564. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  11565. hardcode_libdir_separator_CXX=:
  11566. export_dynamic_flag_spec_CXX='$wl-E'
  11567. hardcode_direct_CXX=yes
  11568. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11569. # but as the default
  11570. # location of the library.
  11571. case $cc_basename in
  11572. CC*)
  11573. # FIXME: insert proper C++ library support
  11574. ld_shlibs_CXX=no
  11575. ;;
  11576. aCC*)
  11577. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  11578. # Commands to make compiler produce verbose output that lists
  11579. # what "hidden" libraries, object files and flags are used when
  11580. # linking a shared library.
  11581. #
  11582. # There doesn't appear to be a way to prevent this compiler from
  11583. # explicitly linking system object files so we need to strip them
  11584. # from the output so that they don't get included in the library
  11585. # dependencies.
  11586. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11587. ;;
  11588. *)
  11589. if test yes = "$GXX"; then
  11590. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  11591. else
  11592. # FIXME: insert proper C++ library support
  11593. ld_shlibs_CXX=no
  11594. fi
  11595. ;;
  11596. esac
  11597. ;;
  11598. hpux10*|hpux11*)
  11599. if test no = "$with_gnu_ld"; then
  11600. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  11601. hardcode_libdir_separator_CXX=:
  11602. case $host_cpu in
  11603. hppa*64*|ia64*)
  11604. ;;
  11605. *)
  11606. export_dynamic_flag_spec_CXX='$wl-E'
  11607. ;;
  11608. esac
  11609. fi
  11610. case $host_cpu in
  11611. hppa*64*|ia64*)
  11612. hardcode_direct_CXX=no
  11613. hardcode_shlibpath_var_CXX=no
  11614. ;;
  11615. *)
  11616. hardcode_direct_CXX=yes
  11617. hardcode_direct_absolute_CXX=yes
  11618. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11619. # but as the default
  11620. # location of the library.
  11621. ;;
  11622. esac
  11623. case $cc_basename in
  11624. CC*)
  11625. # FIXME: insert proper C++ library support
  11626. ld_shlibs_CXX=no
  11627. ;;
  11628. aCC*)
  11629. case $host_cpu in
  11630. hppa*64*)
  11631. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11632. ;;
  11633. ia64*)
  11634. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11635. ;;
  11636. *)
  11637. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11638. ;;
  11639. esac
  11640. # Commands to make compiler produce verbose output that lists
  11641. # what "hidden" libraries, object files and flags are used when
  11642. # linking a shared library.
  11643. #
  11644. # There doesn't appear to be a way to prevent this compiler from
  11645. # explicitly linking system object files so we need to strip them
  11646. # from the output so that they don't get included in the library
  11647. # dependencies.
  11648. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11649. ;;
  11650. *)
  11651. if test yes = "$GXX"; then
  11652. if test no = "$with_gnu_ld"; then
  11653. case $host_cpu in
  11654. hppa*64*)
  11655. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11656. ;;
  11657. ia64*)
  11658. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11659. ;;
  11660. *)
  11661. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11662. ;;
  11663. esac
  11664. fi
  11665. else
  11666. # FIXME: insert proper C++ library support
  11667. ld_shlibs_CXX=no
  11668. fi
  11669. ;;
  11670. esac
  11671. ;;
  11672. interix[3-9]*)
  11673. hardcode_direct_CXX=no
  11674. hardcode_shlibpath_var_CXX=no
  11675. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11676. export_dynamic_flag_spec_CXX='$wl-E'
  11677. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11678. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11679. # default) and relocated if they conflict, which is a slow very memory
  11680. # consuming and fragmenting process. To avoid this, we pick a random,
  11681. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11682. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11683. 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'
  11684. 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'
  11685. ;;
  11686. irix5* | irix6*)
  11687. case $cc_basename in
  11688. CC*)
  11689. # SGI C++
  11690. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  11691. # Archives containing C++ object files must be created using
  11692. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11693. # necessary to make sure instantiated templates are included
  11694. # in the archive.
  11695. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11696. ;;
  11697. *)
  11698. if test yes = "$GXX"; then
  11699. if test no = "$with_gnu_ld"; then
  11700. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  11701. else
  11702. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  11703. fi
  11704. fi
  11705. link_all_deplibs_CXX=yes
  11706. ;;
  11707. esac
  11708. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11709. hardcode_libdir_separator_CXX=:
  11710. inherit_rpath_CXX=yes
  11711. ;;
  11712. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11713. case $cc_basename in
  11714. KCC*)
  11715. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11716. # KCC will only create a shared library if the output file
  11717. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11718. # to its proper name (with version) after linking.
  11719. 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'
  11720. 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'
  11721. # Commands to make compiler produce verbose output that lists
  11722. # what "hidden" libraries, object files and flags are used when
  11723. # linking a shared library.
  11724. #
  11725. # There doesn't appear to be a way to prevent this compiler from
  11726. # explicitly linking system object files so we need to strip them
  11727. # from the output so that they don't get included in the library
  11728. # dependencies.
  11729. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11730. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11731. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11732. # Archives containing C++ object files must be created using
  11733. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11734. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11735. ;;
  11736. icpc* | ecpc* )
  11737. # Intel C++
  11738. with_gnu_ld=yes
  11739. # version 8.0 and above of icpc choke on multiply defined symbols
  11740. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11741. # earlier do not add the objects themselves.
  11742. case `$CC -V 2>&1` in
  11743. *"Version 7."*)
  11744. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11745. 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'
  11746. ;;
  11747. *) # Version 8.0 or newer
  11748. tmp_idyn=
  11749. case $host_cpu in
  11750. ia64*) tmp_idyn=' -i_dynamic';;
  11751. esac
  11752. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11753. 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'
  11754. ;;
  11755. esac
  11756. archive_cmds_need_lc_CXX=no
  11757. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11758. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11759. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11760. ;;
  11761. pgCC* | pgcpp*)
  11762. # Portland Group C++ compiler
  11763. case `$CC -V` in
  11764. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11765. prelink_cmds_CXX='tpldir=Template.dir~
  11766. rm -rf $tpldir~
  11767. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11768. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11769. old_archive_cmds_CXX='tpldir=Template.dir~
  11770. rm -rf $tpldir~
  11771. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11772. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11773. $RANLIB $oldlib'
  11774. archive_cmds_CXX='tpldir=Template.dir~
  11775. rm -rf $tpldir~
  11776. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11777. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11778. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11779. rm -rf $tpldir~
  11780. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11781. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11782. ;;
  11783. *) # Version 6 and above use weak symbols
  11784. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11785. 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'
  11786. ;;
  11787. esac
  11788. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  11789. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11790. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  11791. ;;
  11792. cxx*)
  11793. # Compaq C++
  11794. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11795. 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'
  11796. runpath_var=LD_RUN_PATH
  11797. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11798. hardcode_libdir_separator_CXX=:
  11799. # Commands to make compiler produce verbose output that lists
  11800. # what "hidden" libraries, object files and flags are used when
  11801. # linking a shared library.
  11802. #
  11803. # There doesn't appear to be a way to prevent this compiler from
  11804. # explicitly linking system object files so we need to strip them
  11805. # from the output so that they don't get included in the library
  11806. # dependencies.
  11807. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11808. ;;
  11809. xl* | mpixl* | bgxl*)
  11810. # IBM XL 8.0 on PPC, with GNU ld
  11811. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11812. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11813. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11814. if test yes = "$supports_anon_versioning"; then
  11815. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11816. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11817. echo "local: *; };" >> $output_objdir/$libname.ver~
  11818. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  11819. fi
  11820. ;;
  11821. *)
  11822. case `$CC -V 2>&1 | sed 5q` in
  11823. *Sun\ C*)
  11824. # Sun C++ 5.9
  11825. no_undefined_flag_CXX=' -zdefs'
  11826. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11827. 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'
  11828. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11829. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  11830. compiler_needs_object_CXX=yes
  11831. # Not sure whether something based on
  11832. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11833. # would be better.
  11834. output_verbose_link_cmd='func_echo_all'
  11835. # Archives containing C++ object files must be created using
  11836. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11837. # necessary to make sure instantiated templates are included
  11838. # in the archive.
  11839. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11840. ;;
  11841. esac
  11842. ;;
  11843. esac
  11844. ;;
  11845. lynxos*)
  11846. # FIXME: insert proper C++ library support
  11847. ld_shlibs_CXX=no
  11848. ;;
  11849. m88k*)
  11850. # FIXME: insert proper C++ library support
  11851. ld_shlibs_CXX=no
  11852. ;;
  11853. mvs*)
  11854. case $cc_basename in
  11855. cxx*)
  11856. # FIXME: insert proper C++ library support
  11857. ld_shlibs_CXX=no
  11858. ;;
  11859. *)
  11860. # FIXME: insert proper C++ library support
  11861. ld_shlibs_CXX=no
  11862. ;;
  11863. esac
  11864. ;;
  11865. netbsd*)
  11866. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11867. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11868. wlarc=
  11869. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11870. hardcode_direct_CXX=yes
  11871. hardcode_shlibpath_var_CXX=no
  11872. fi
  11873. # Workaround some broken pre-1.5 toolchains
  11874. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11875. ;;
  11876. *nto* | *qnx*)
  11877. ld_shlibs_CXX=yes
  11878. ;;
  11879. openbsd* | bitrig*)
  11880. if test -f /usr/libexec/ld.so; then
  11881. hardcode_direct_CXX=yes
  11882. hardcode_shlibpath_var_CXX=no
  11883. hardcode_direct_absolute_CXX=yes
  11884. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11885. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11886. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  11887. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  11888. export_dynamic_flag_spec_CXX='$wl-E'
  11889. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11890. fi
  11891. output_verbose_link_cmd=func_echo_all
  11892. else
  11893. ld_shlibs_CXX=no
  11894. fi
  11895. ;;
  11896. osf3* | osf4* | osf5*)
  11897. case $cc_basename in
  11898. KCC*)
  11899. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11900. # KCC will only create a shared library if the output file
  11901. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11902. # to its proper name (with version) after linking.
  11903. 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'
  11904. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  11905. hardcode_libdir_separator_CXX=:
  11906. # Archives containing C++ object files must be created using
  11907. # the KAI C++ compiler.
  11908. case $host in
  11909. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11910. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11911. esac
  11912. ;;
  11913. RCC*)
  11914. # Rational C++ 2.4.1
  11915. # FIXME: insert proper C++ library support
  11916. ld_shlibs_CXX=no
  11917. ;;
  11918. cxx*)
  11919. case $host in
  11920. osf3*)
  11921. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  11922. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  11923. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11924. ;;
  11925. *)
  11926. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11927. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  11928. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11929. echo "-hidden">> $lib.exp~
  11930. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  11931. $RM $lib.exp'
  11932. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11933. ;;
  11934. esac
  11935. hardcode_libdir_separator_CXX=:
  11936. # Commands to make compiler produce verbose output that lists
  11937. # what "hidden" libraries, object files and flags are used when
  11938. # linking a shared library.
  11939. #
  11940. # There doesn't appear to be a way to prevent this compiler from
  11941. # explicitly linking system object files so we need to strip them
  11942. # from the output so that they don't get included in the library
  11943. # dependencies.
  11944. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11945. ;;
  11946. *)
  11947. if test yes,no = "$GXX,$with_gnu_ld"; then
  11948. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  11949. case $host in
  11950. osf3*)
  11951. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  11952. ;;
  11953. *)
  11954. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  11955. ;;
  11956. esac
  11957. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11958. hardcode_libdir_separator_CXX=:
  11959. # Commands to make compiler produce verbose output that lists
  11960. # what "hidden" libraries, object files and flags are used when
  11961. # linking a shared library.
  11962. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11963. else
  11964. # FIXME: insert proper C++ library support
  11965. ld_shlibs_CXX=no
  11966. fi
  11967. ;;
  11968. esac
  11969. ;;
  11970. psos*)
  11971. # FIXME: insert proper C++ library support
  11972. ld_shlibs_CXX=no
  11973. ;;
  11974. sunos4*)
  11975. case $cc_basename in
  11976. CC*)
  11977. # Sun C++ 4.x
  11978. # FIXME: insert proper C++ library support
  11979. ld_shlibs_CXX=no
  11980. ;;
  11981. lcc*)
  11982. # Lucid
  11983. # FIXME: insert proper C++ library support
  11984. ld_shlibs_CXX=no
  11985. ;;
  11986. *)
  11987. # FIXME: insert proper C++ library support
  11988. ld_shlibs_CXX=no
  11989. ;;
  11990. esac
  11991. ;;
  11992. solaris*)
  11993. case $cc_basename in
  11994. CC* | sunCC*)
  11995. # Sun C++ 4.2, 5.x and Centerline C++
  11996. archive_cmds_need_lc_CXX=yes
  11997. no_undefined_flag_CXX=' -zdefs'
  11998. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11999. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12000. $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'
  12001. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12002. hardcode_shlibpath_var_CXX=no
  12003. case $host_os in
  12004. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12005. *)
  12006. # The compiler driver will combine and reorder linker options,
  12007. # but understands '-z linker_flag'.
  12008. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12009. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12010. ;;
  12011. esac
  12012. link_all_deplibs_CXX=yes
  12013. output_verbose_link_cmd='func_echo_all'
  12014. # Archives containing C++ object files must be created using
  12015. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12016. # necessary to make sure instantiated templates are included
  12017. # in the archive.
  12018. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12019. ;;
  12020. gcx*)
  12021. # Green Hills C++ Compiler
  12022. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12023. # The C++ compiler must be used to create the archive.
  12024. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12025. ;;
  12026. *)
  12027. # GNU C++ compiler with Solaris linker
  12028. if test yes,no = "$GXX,$with_gnu_ld"; then
  12029. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12030. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12031. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12032. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12033. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12034. # Commands to make compiler produce verbose output that lists
  12035. # what "hidden" libraries, object files and flags are used when
  12036. # linking a shared library.
  12037. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12038. else
  12039. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12040. # platform.
  12041. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12042. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12043. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12044. # Commands to make compiler produce verbose output that lists
  12045. # what "hidden" libraries, object files and flags are used when
  12046. # linking a shared library.
  12047. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12048. fi
  12049. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12050. case $host_os in
  12051. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12052. *)
  12053. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12054. ;;
  12055. esac
  12056. fi
  12057. ;;
  12058. esac
  12059. ;;
  12060. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12061. no_undefined_flag_CXX='$wl-z,text'
  12062. archive_cmds_need_lc_CXX=no
  12063. hardcode_shlibpath_var_CXX=no
  12064. runpath_var='LD_RUN_PATH'
  12065. case $cc_basename in
  12066. CC*)
  12067. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12068. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12069. ;;
  12070. *)
  12071. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12072. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12073. ;;
  12074. esac
  12075. ;;
  12076. sysv5* | sco3.2v5* | sco5v6*)
  12077. # Note: We CANNOT use -z defs as we might desire, because we do not
  12078. # link with -lc, and that would cause any symbols used from libc to
  12079. # always be unresolved, which means just about no library would
  12080. # ever link correctly. If we're not using GNU ld we use -z text
  12081. # though, which does catch some bad symbols but isn't as heavy-handed
  12082. # as -z defs.
  12083. no_undefined_flag_CXX='$wl-z,text'
  12084. allow_undefined_flag_CXX='$wl-z,nodefs'
  12085. archive_cmds_need_lc_CXX=no
  12086. hardcode_shlibpath_var_CXX=no
  12087. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12088. hardcode_libdir_separator_CXX=':'
  12089. link_all_deplibs_CXX=yes
  12090. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12091. runpath_var='LD_RUN_PATH'
  12092. case $cc_basename in
  12093. CC*)
  12094. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12095. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12096. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12097. '"$old_archive_cmds_CXX"
  12098. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12099. '"$reload_cmds_CXX"
  12100. ;;
  12101. *)
  12102. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12103. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12104. ;;
  12105. esac
  12106. ;;
  12107. tandem*)
  12108. case $cc_basename in
  12109. NCC*)
  12110. # NonStop-UX NCC 3.20
  12111. # FIXME: insert proper C++ library support
  12112. ld_shlibs_CXX=no
  12113. ;;
  12114. *)
  12115. # FIXME: insert proper C++ library support
  12116. ld_shlibs_CXX=no
  12117. ;;
  12118. esac
  12119. ;;
  12120. vxworks*)
  12121. # FIXME: insert proper C++ library support
  12122. ld_shlibs_CXX=no
  12123. ;;
  12124. *)
  12125. # FIXME: insert proper C++ library support
  12126. ld_shlibs_CXX=no
  12127. ;;
  12128. esac
  12129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12130. $as_echo "$ld_shlibs_CXX" >&6; }
  12131. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12132. GCC_CXX=$GXX
  12133. LD_CXX=$LD
  12134. ## CAVEAT EMPTOR:
  12135. ## There is no encapsulation within the following macros, do not change
  12136. ## the running order or otherwise move them around unless you know exactly
  12137. ## what you are doing...
  12138. # Dependencies to place before and after the object being linked:
  12139. predep_objects_CXX=
  12140. postdep_objects_CXX=
  12141. predeps_CXX=
  12142. postdeps_CXX=
  12143. compiler_lib_search_path_CXX=
  12144. cat > conftest.$ac_ext <<_LT_EOF
  12145. class Foo
  12146. {
  12147. public:
  12148. Foo (void) { a = 0; }
  12149. private:
  12150. int a;
  12151. };
  12152. _LT_EOF
  12153. _lt_libdeps_save_CFLAGS=$CFLAGS
  12154. case "$CC $CFLAGS " in #(
  12155. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12156. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12157. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12158. esac
  12159. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12160. (eval $ac_compile) 2>&5
  12161. ac_status=$?
  12162. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12163. test $ac_status = 0; }; then
  12164. # Parse the compiler output and extract the necessary
  12165. # objects, libraries and library flags.
  12166. # Sentinel used to keep track of whether or not we are before
  12167. # the conftest object file.
  12168. pre_test_object_deps_done=no
  12169. for p in `eval "$output_verbose_link_cmd"`; do
  12170. case $prev$p in
  12171. -L* | -R* | -l*)
  12172. # Some compilers place space between "-{L,R}" and the path.
  12173. # Remove the space.
  12174. if test x-L = "$p" ||
  12175. test x-R = "$p"; then
  12176. prev=$p
  12177. continue
  12178. fi
  12179. # Expand the sysroot to ease extracting the directories later.
  12180. if test -z "$prev"; then
  12181. case $p in
  12182. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12183. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12184. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12185. esac
  12186. fi
  12187. case $p in
  12188. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12189. esac
  12190. if test no = "$pre_test_object_deps_done"; then
  12191. case $prev in
  12192. -L | -R)
  12193. # Internal compiler library paths should come after those
  12194. # provided the user. The postdeps already come after the
  12195. # user supplied libs so there is no need to process them.
  12196. if test -z "$compiler_lib_search_path_CXX"; then
  12197. compiler_lib_search_path_CXX=$prev$p
  12198. else
  12199. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12200. fi
  12201. ;;
  12202. # The "-l" case would never come before the object being
  12203. # linked, so don't bother handling this case.
  12204. esac
  12205. else
  12206. if test -z "$postdeps_CXX"; then
  12207. postdeps_CXX=$prev$p
  12208. else
  12209. postdeps_CXX="${postdeps_CXX} $prev$p"
  12210. fi
  12211. fi
  12212. prev=
  12213. ;;
  12214. *.lto.$objext) ;; # Ignore GCC LTO objects
  12215. *.$objext)
  12216. # This assumes that the test object file only shows up
  12217. # once in the compiler output.
  12218. if test "$p" = "conftest.$objext"; then
  12219. pre_test_object_deps_done=yes
  12220. continue
  12221. fi
  12222. if test no = "$pre_test_object_deps_done"; then
  12223. if test -z "$predep_objects_CXX"; then
  12224. predep_objects_CXX=$p
  12225. else
  12226. predep_objects_CXX="$predep_objects_CXX $p"
  12227. fi
  12228. else
  12229. if test -z "$postdep_objects_CXX"; then
  12230. postdep_objects_CXX=$p
  12231. else
  12232. postdep_objects_CXX="$postdep_objects_CXX $p"
  12233. fi
  12234. fi
  12235. ;;
  12236. *) ;; # Ignore the rest.
  12237. esac
  12238. done
  12239. # Clean up.
  12240. rm -f a.out a.exe
  12241. else
  12242. echo "libtool.m4: error: problem compiling CXX test program"
  12243. fi
  12244. $RM -f confest.$objext
  12245. CFLAGS=$_lt_libdeps_save_CFLAGS
  12246. # PORTME: override above test on systems where it is broken
  12247. case $host_os in
  12248. interix[3-9]*)
  12249. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12250. # hack all around it, let's just trust "g++" to DTRT.
  12251. predep_objects_CXX=
  12252. postdep_objects_CXX=
  12253. postdeps_CXX=
  12254. ;;
  12255. esac
  12256. case " $postdeps_CXX " in
  12257. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12258. esac
  12259. compiler_lib_search_dirs_CXX=
  12260. if test -n "${compiler_lib_search_path_CXX}"; then
  12261. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12262. fi
  12263. lt_prog_compiler_wl_CXX=
  12264. lt_prog_compiler_pic_CXX=
  12265. lt_prog_compiler_static_CXX=
  12266. # C++ specific cases for pic, static, wl, etc.
  12267. if test yes = "$GXX"; then
  12268. lt_prog_compiler_wl_CXX='-Wl,'
  12269. lt_prog_compiler_static_CXX='-static'
  12270. case $host_os in
  12271. aix*)
  12272. # All AIX code is PIC.
  12273. if test ia64 = "$host_cpu"; then
  12274. # AIX 5 now supports IA64 processor
  12275. lt_prog_compiler_static_CXX='-Bstatic'
  12276. fi
  12277. lt_prog_compiler_pic_CXX='-fPIC'
  12278. ;;
  12279. amigaos*)
  12280. case $host_cpu in
  12281. powerpc)
  12282. # see comment about AmigaOS4 .so support
  12283. lt_prog_compiler_pic_CXX='-fPIC'
  12284. ;;
  12285. m68k)
  12286. # FIXME: we need at least 68020 code to build shared libraries, but
  12287. # adding the '-m68020' flag to GCC prevents building anything better,
  12288. # like '-m68040'.
  12289. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12290. ;;
  12291. esac
  12292. ;;
  12293. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12294. # PIC is the default for these OSes.
  12295. ;;
  12296. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12297. # This hack is so that the source file can tell whether it is being
  12298. # built for inclusion in a dll (and should export symbols for example).
  12299. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12300. # (--disable-auto-import) libraries
  12301. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12302. case $host_os in
  12303. os2*)
  12304. lt_prog_compiler_static_CXX='$wl-static'
  12305. ;;
  12306. esac
  12307. ;;
  12308. darwin* | rhapsody*)
  12309. # PIC is the default on this platform
  12310. # Common symbols not allowed in MH_DYLIB files
  12311. lt_prog_compiler_pic_CXX='-fno-common'
  12312. ;;
  12313. *djgpp*)
  12314. # DJGPP does not support shared libraries at all
  12315. lt_prog_compiler_pic_CXX=
  12316. ;;
  12317. haiku*)
  12318. # PIC is the default for Haiku.
  12319. # The "-static" flag exists, but is broken.
  12320. lt_prog_compiler_static_CXX=
  12321. ;;
  12322. interix[3-9]*)
  12323. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12324. # Instead, we relocate shared libraries at runtime.
  12325. ;;
  12326. sysv4*MP*)
  12327. if test -d /usr/nec; then
  12328. lt_prog_compiler_pic_CXX=-Kconform_pic
  12329. fi
  12330. ;;
  12331. hpux*)
  12332. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12333. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12334. # sets the default TLS model and affects inlining.
  12335. case $host_cpu in
  12336. hppa*64*)
  12337. ;;
  12338. *)
  12339. lt_prog_compiler_pic_CXX='-fPIC'
  12340. ;;
  12341. esac
  12342. ;;
  12343. *qnx* | *nto*)
  12344. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12345. # it will coredump.
  12346. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12347. ;;
  12348. *)
  12349. lt_prog_compiler_pic_CXX='-fPIC'
  12350. ;;
  12351. esac
  12352. else
  12353. case $host_os in
  12354. aix[4-9]*)
  12355. # All AIX code is PIC.
  12356. if test ia64 = "$host_cpu"; then
  12357. # AIX 5 now supports IA64 processor
  12358. lt_prog_compiler_static_CXX='-Bstatic'
  12359. else
  12360. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12361. fi
  12362. ;;
  12363. chorus*)
  12364. case $cc_basename in
  12365. cxch68*)
  12366. # Green Hills C++ Compiler
  12367. # _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"
  12368. ;;
  12369. esac
  12370. ;;
  12371. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12372. # This hack is so that the source file can tell whether it is being
  12373. # built for inclusion in a dll (and should export symbols for example).
  12374. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12375. ;;
  12376. dgux*)
  12377. case $cc_basename in
  12378. ec++*)
  12379. lt_prog_compiler_pic_CXX='-KPIC'
  12380. ;;
  12381. ghcx*)
  12382. # Green Hills C++ Compiler
  12383. lt_prog_compiler_pic_CXX='-pic'
  12384. ;;
  12385. *)
  12386. ;;
  12387. esac
  12388. ;;
  12389. freebsd* | dragonfly*)
  12390. # FreeBSD uses GNU C++
  12391. ;;
  12392. hpux9* | hpux10* | hpux11*)
  12393. case $cc_basename in
  12394. CC*)
  12395. lt_prog_compiler_wl_CXX='-Wl,'
  12396. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12397. if test ia64 != "$host_cpu"; then
  12398. lt_prog_compiler_pic_CXX='+Z'
  12399. fi
  12400. ;;
  12401. aCC*)
  12402. lt_prog_compiler_wl_CXX='-Wl,'
  12403. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12404. case $host_cpu in
  12405. hppa*64*|ia64*)
  12406. # +Z the default
  12407. ;;
  12408. *)
  12409. lt_prog_compiler_pic_CXX='+Z'
  12410. ;;
  12411. esac
  12412. ;;
  12413. *)
  12414. ;;
  12415. esac
  12416. ;;
  12417. interix*)
  12418. # This is c89, which is MS Visual C++ (no shared libs)
  12419. # Anyone wants to do a port?
  12420. ;;
  12421. irix5* | irix6* | nonstopux*)
  12422. case $cc_basename in
  12423. CC*)
  12424. lt_prog_compiler_wl_CXX='-Wl,'
  12425. lt_prog_compiler_static_CXX='-non_shared'
  12426. # CC pic flag -KPIC is the default.
  12427. ;;
  12428. *)
  12429. ;;
  12430. esac
  12431. ;;
  12432. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12433. case $cc_basename in
  12434. KCC*)
  12435. # KAI C++ Compiler
  12436. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12437. lt_prog_compiler_pic_CXX='-fPIC'
  12438. ;;
  12439. ecpc* )
  12440. # old Intel C++ for x86_64, which still supported -KPIC.
  12441. lt_prog_compiler_wl_CXX='-Wl,'
  12442. lt_prog_compiler_pic_CXX='-KPIC'
  12443. lt_prog_compiler_static_CXX='-static'
  12444. ;;
  12445. icpc* )
  12446. # Intel C++, used to be incompatible with GCC.
  12447. # ICC 10 doesn't accept -KPIC any more.
  12448. lt_prog_compiler_wl_CXX='-Wl,'
  12449. lt_prog_compiler_pic_CXX='-fPIC'
  12450. lt_prog_compiler_static_CXX='-static'
  12451. ;;
  12452. pgCC* | pgcpp*)
  12453. # Portland Group C++ compiler
  12454. lt_prog_compiler_wl_CXX='-Wl,'
  12455. lt_prog_compiler_pic_CXX='-fpic'
  12456. lt_prog_compiler_static_CXX='-Bstatic'
  12457. ;;
  12458. cxx*)
  12459. # Compaq C++
  12460. # Make sure the PIC flag is empty. It appears that all Alpha
  12461. # Linux and Compaq Tru64 Unix objects are PIC.
  12462. lt_prog_compiler_pic_CXX=
  12463. lt_prog_compiler_static_CXX='-non_shared'
  12464. ;;
  12465. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12466. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12467. lt_prog_compiler_wl_CXX='-Wl,'
  12468. lt_prog_compiler_pic_CXX='-qpic'
  12469. lt_prog_compiler_static_CXX='-qstaticlink'
  12470. ;;
  12471. *)
  12472. case `$CC -V 2>&1 | sed 5q` in
  12473. *Sun\ C*)
  12474. # Sun C++ 5.9
  12475. lt_prog_compiler_pic_CXX='-KPIC'
  12476. lt_prog_compiler_static_CXX='-Bstatic'
  12477. lt_prog_compiler_wl_CXX='-Qoption ld '
  12478. ;;
  12479. esac
  12480. ;;
  12481. esac
  12482. ;;
  12483. lynxos*)
  12484. ;;
  12485. m88k*)
  12486. ;;
  12487. mvs*)
  12488. case $cc_basename in
  12489. cxx*)
  12490. lt_prog_compiler_pic_CXX='-W c,exportall'
  12491. ;;
  12492. *)
  12493. ;;
  12494. esac
  12495. ;;
  12496. netbsd*)
  12497. ;;
  12498. *qnx* | *nto*)
  12499. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12500. # it will coredump.
  12501. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12502. ;;
  12503. osf3* | osf4* | osf5*)
  12504. case $cc_basename in
  12505. KCC*)
  12506. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12507. ;;
  12508. RCC*)
  12509. # Rational C++ 2.4.1
  12510. lt_prog_compiler_pic_CXX='-pic'
  12511. ;;
  12512. cxx*)
  12513. # Digital/Compaq C++
  12514. lt_prog_compiler_wl_CXX='-Wl,'
  12515. # Make sure the PIC flag is empty. It appears that all Alpha
  12516. # Linux and Compaq Tru64 Unix objects are PIC.
  12517. lt_prog_compiler_pic_CXX=
  12518. lt_prog_compiler_static_CXX='-non_shared'
  12519. ;;
  12520. *)
  12521. ;;
  12522. esac
  12523. ;;
  12524. psos*)
  12525. ;;
  12526. solaris*)
  12527. case $cc_basename in
  12528. CC* | sunCC*)
  12529. # Sun C++ 4.2, 5.x and Centerline C++
  12530. lt_prog_compiler_pic_CXX='-KPIC'
  12531. lt_prog_compiler_static_CXX='-Bstatic'
  12532. lt_prog_compiler_wl_CXX='-Qoption ld '
  12533. ;;
  12534. gcx*)
  12535. # Green Hills C++ Compiler
  12536. lt_prog_compiler_pic_CXX='-PIC'
  12537. ;;
  12538. *)
  12539. ;;
  12540. esac
  12541. ;;
  12542. sunos4*)
  12543. case $cc_basename in
  12544. CC*)
  12545. # Sun C++ 4.x
  12546. lt_prog_compiler_pic_CXX='-pic'
  12547. lt_prog_compiler_static_CXX='-Bstatic'
  12548. ;;
  12549. lcc*)
  12550. # Lucid
  12551. lt_prog_compiler_pic_CXX='-pic'
  12552. ;;
  12553. *)
  12554. ;;
  12555. esac
  12556. ;;
  12557. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12558. case $cc_basename in
  12559. CC*)
  12560. lt_prog_compiler_wl_CXX='-Wl,'
  12561. lt_prog_compiler_pic_CXX='-KPIC'
  12562. lt_prog_compiler_static_CXX='-Bstatic'
  12563. ;;
  12564. esac
  12565. ;;
  12566. tandem*)
  12567. case $cc_basename in
  12568. NCC*)
  12569. # NonStop-UX NCC 3.20
  12570. lt_prog_compiler_pic_CXX='-KPIC'
  12571. ;;
  12572. *)
  12573. ;;
  12574. esac
  12575. ;;
  12576. vxworks*)
  12577. ;;
  12578. *)
  12579. lt_prog_compiler_can_build_shared_CXX=no
  12580. ;;
  12581. esac
  12582. fi
  12583. case $host_os in
  12584. # For platforms that do not support PIC, -DPIC is meaningless:
  12585. *djgpp*)
  12586. lt_prog_compiler_pic_CXX=
  12587. ;;
  12588. *)
  12589. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12590. ;;
  12591. esac
  12592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12593. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12594. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12595. $as_echo_n "(cached) " >&6
  12596. else
  12597. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12598. fi
  12599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12600. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12601. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12602. #
  12603. # Check to make sure the PIC flag actually works.
  12604. #
  12605. if test -n "$lt_prog_compiler_pic_CXX"; then
  12606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12607. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12608. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12609. $as_echo_n "(cached) " >&6
  12610. else
  12611. lt_cv_prog_compiler_pic_works_CXX=no
  12612. ac_outfile=conftest.$ac_objext
  12613. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12614. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  12615. # Insert the option either (1) after the last *FLAGS variable, or
  12616. # (2) before a word containing "conftest.", or (3) at the end.
  12617. # Note that $ac_compile itself does not contain backslashes and begins
  12618. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12619. # The option is referenced via a variable to avoid confusing sed.
  12620. lt_compile=`echo "$ac_compile" | $SED \
  12621. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12622. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12623. -e 's:$: $lt_compiler_flag:'`
  12624. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12625. (eval "$lt_compile" 2>conftest.err)
  12626. ac_status=$?
  12627. cat conftest.err >&5
  12628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12629. if (exit $ac_status) && test -s "$ac_outfile"; then
  12630. # The compiler can only warn and ignore the option if not recognized
  12631. # So say no if there are warnings other than the usual output.
  12632. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12633. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12634. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12635. lt_cv_prog_compiler_pic_works_CXX=yes
  12636. fi
  12637. fi
  12638. $RM conftest*
  12639. fi
  12640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12641. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12642. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  12643. case $lt_prog_compiler_pic_CXX in
  12644. "" | " "*) ;;
  12645. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12646. esac
  12647. else
  12648. lt_prog_compiler_pic_CXX=
  12649. lt_prog_compiler_can_build_shared_CXX=no
  12650. fi
  12651. fi
  12652. #
  12653. # Check to make sure the static flag actually works.
  12654. #
  12655. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12657. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12658. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12659. $as_echo_n "(cached) " >&6
  12660. else
  12661. lt_cv_prog_compiler_static_works_CXX=no
  12662. save_LDFLAGS=$LDFLAGS
  12663. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12664. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12665. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12666. # The linker can only warn and ignore the option if not recognized
  12667. # So say no if there are warnings
  12668. if test -s conftest.err; then
  12669. # Append any errors to the config.log.
  12670. cat conftest.err 1>&5
  12671. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12672. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12673. if diff conftest.exp conftest.er2 >/dev/null; then
  12674. lt_cv_prog_compiler_static_works_CXX=yes
  12675. fi
  12676. else
  12677. lt_cv_prog_compiler_static_works_CXX=yes
  12678. fi
  12679. fi
  12680. $RM -r conftest*
  12681. LDFLAGS=$save_LDFLAGS
  12682. fi
  12683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12684. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12685. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  12686. :
  12687. else
  12688. lt_prog_compiler_static_CXX=
  12689. fi
  12690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12691. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12692. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12693. $as_echo_n "(cached) " >&6
  12694. else
  12695. lt_cv_prog_compiler_c_o_CXX=no
  12696. $RM -r conftest 2>/dev/null
  12697. mkdir conftest
  12698. cd conftest
  12699. mkdir out
  12700. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12701. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12702. # Insert the option either (1) after the last *FLAGS variable, or
  12703. # (2) before a word containing "conftest.", or (3) at the end.
  12704. # Note that $ac_compile itself does not contain backslashes and begins
  12705. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12706. lt_compile=`echo "$ac_compile" | $SED \
  12707. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12708. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12709. -e 's:$: $lt_compiler_flag:'`
  12710. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12711. (eval "$lt_compile" 2>out/conftest.err)
  12712. ac_status=$?
  12713. cat out/conftest.err >&5
  12714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12715. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12716. then
  12717. # The compiler can only warn and ignore the option if not recognized
  12718. # So say no if there are warnings
  12719. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12720. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12721. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12722. lt_cv_prog_compiler_c_o_CXX=yes
  12723. fi
  12724. fi
  12725. chmod u+w . 2>&5
  12726. $RM conftest*
  12727. # SGI C++ compiler will create directory out/ii_files/ for
  12728. # template instantiation
  12729. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12730. $RM out/* && rmdir out
  12731. cd ..
  12732. $RM -r conftest
  12733. $RM conftest*
  12734. fi
  12735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12736. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12738. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12739. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12740. $as_echo_n "(cached) " >&6
  12741. else
  12742. lt_cv_prog_compiler_c_o_CXX=no
  12743. $RM -r conftest 2>/dev/null
  12744. mkdir conftest
  12745. cd conftest
  12746. mkdir out
  12747. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12748. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12749. # Insert the option either (1) after the last *FLAGS variable, or
  12750. # (2) before a word containing "conftest.", or (3) at the end.
  12751. # Note that $ac_compile itself does not contain backslashes and begins
  12752. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12753. lt_compile=`echo "$ac_compile" | $SED \
  12754. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12755. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12756. -e 's:$: $lt_compiler_flag:'`
  12757. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12758. (eval "$lt_compile" 2>out/conftest.err)
  12759. ac_status=$?
  12760. cat out/conftest.err >&5
  12761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12762. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12763. then
  12764. # The compiler can only warn and ignore the option if not recognized
  12765. # So say no if there are warnings
  12766. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12767. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12768. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12769. lt_cv_prog_compiler_c_o_CXX=yes
  12770. fi
  12771. fi
  12772. chmod u+w . 2>&5
  12773. $RM conftest*
  12774. # SGI C++ compiler will create directory out/ii_files/ for
  12775. # template instantiation
  12776. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12777. $RM out/* && rmdir out
  12778. cd ..
  12779. $RM -r conftest
  12780. $RM conftest*
  12781. fi
  12782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12783. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12784. hard_links=nottested
  12785. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  12786. # do not overwrite the value of need_locks provided by the user
  12787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12788. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12789. hard_links=yes
  12790. $RM conftest*
  12791. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12792. touch conftest.a
  12793. ln conftest.a conftest.b 2>&5 || hard_links=no
  12794. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12796. $as_echo "$hard_links" >&6; }
  12797. if test no = "$hard_links"; then
  12798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  12799. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  12800. need_locks=warn
  12801. fi
  12802. else
  12803. need_locks=no
  12804. fi
  12805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12806. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12807. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12808. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12809. case $host_os in
  12810. aix[4-9]*)
  12811. # If we're using GNU nm, then we don't want the "-C" option.
  12812. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  12813. # Without the "-l" option, or with the "-B" option, AIX nm treats
  12814. # weak defined symbols like other global defined symbols, whereas
  12815. # GNU nm marks them as "W".
  12816. # While the 'weak' keyword is ignored in the Export File, we need
  12817. # it in the Import File for the 'aix-soname' feature, so we have
  12818. # to replace the "-B" option with "-P" for AIX nm.
  12819. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12820. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  12821. else
  12822. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  12823. fi
  12824. ;;
  12825. pw32*)
  12826. export_symbols_cmds_CXX=$ltdll_cmds
  12827. ;;
  12828. cygwin* | mingw* | cegcc*)
  12829. case $cc_basename in
  12830. cl*)
  12831. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12832. ;;
  12833. *)
  12834. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12835. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12836. ;;
  12837. esac
  12838. ;;
  12839. *)
  12840. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12841. ;;
  12842. esac
  12843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12844. $as_echo "$ld_shlibs_CXX" >&6; }
  12845. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12846. with_gnu_ld_CXX=$with_gnu_ld
  12847. #
  12848. # Do we need to explicitly link libc?
  12849. #
  12850. case "x$archive_cmds_need_lc_CXX" in
  12851. x|xyes)
  12852. # Assume -lc should be added
  12853. archive_cmds_need_lc_CXX=yes
  12854. if test yes,yes = "$GCC,$enable_shared"; then
  12855. case $archive_cmds_CXX in
  12856. *'~'*)
  12857. # FIXME: we may have to deal with multi-command sequences.
  12858. ;;
  12859. '$CC '*)
  12860. # Test whether the compiler implicitly links with -lc since on some
  12861. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12862. # to ld, don't add -lc before -lgcc.
  12863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12864. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12865. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12866. $as_echo_n "(cached) " >&6
  12867. else
  12868. $RM conftest*
  12869. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12870. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12871. (eval $ac_compile) 2>&5
  12872. ac_status=$?
  12873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12874. test $ac_status = 0; } 2>conftest.err; then
  12875. soname=conftest
  12876. lib=conftest
  12877. libobjs=conftest.$ac_objext
  12878. deplibs=
  12879. wl=$lt_prog_compiler_wl_CXX
  12880. pic_flag=$lt_prog_compiler_pic_CXX
  12881. compiler_flags=-v
  12882. linker_flags=-v
  12883. verstring=
  12884. output_objdir=.
  12885. libname=conftest
  12886. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12887. allow_undefined_flag_CXX=
  12888. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12889. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12890. ac_status=$?
  12891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12892. test $ac_status = 0; }
  12893. then
  12894. lt_cv_archive_cmds_need_lc_CXX=no
  12895. else
  12896. lt_cv_archive_cmds_need_lc_CXX=yes
  12897. fi
  12898. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12899. else
  12900. cat conftest.err 1>&5
  12901. fi
  12902. $RM conftest*
  12903. fi
  12904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12905. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12906. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12907. ;;
  12908. esac
  12909. fi
  12910. ;;
  12911. esac
  12912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12913. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12914. library_names_spec=
  12915. libname_spec='lib$name'
  12916. soname_spec=
  12917. shrext_cmds=.so
  12918. postinstall_cmds=
  12919. postuninstall_cmds=
  12920. finish_cmds=
  12921. finish_eval=
  12922. shlibpath_var=
  12923. shlibpath_overrides_runpath=unknown
  12924. version_type=none
  12925. dynamic_linker="$host_os ld.so"
  12926. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12927. need_lib_prefix=unknown
  12928. hardcode_into_libs=no
  12929. # when you set need_version to no, make sure it does not cause -set_version
  12930. # flags to be left without arguments
  12931. need_version=unknown
  12932. case $host_os in
  12933. aix3*)
  12934. version_type=linux # correct to gnu/linux during the next big refactor
  12935. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  12936. shlibpath_var=LIBPATH
  12937. # AIX 3 has no versioning support, so we append a major version to the name.
  12938. soname_spec='$libname$release$shared_ext$major'
  12939. ;;
  12940. aix[4-9]*)
  12941. version_type=linux # correct to gnu/linux during the next big refactor
  12942. need_lib_prefix=no
  12943. need_version=no
  12944. hardcode_into_libs=yes
  12945. if test ia64 = "$host_cpu"; then
  12946. # AIX 5 supports IA64
  12947. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  12948. shlibpath_var=LD_LIBRARY_PATH
  12949. else
  12950. # With GCC up to 2.95.x, collect2 would create an import file
  12951. # for dependence libraries. The import file would start with
  12952. # the line '#! .'. This would cause the generated library to
  12953. # depend on '.', always an invalid library. This was fixed in
  12954. # development snapshots of GCC prior to 3.0.
  12955. case $host_os in
  12956. aix4 | aix4.[01] | aix4.[01].*)
  12957. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12958. echo ' yes '
  12959. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  12960. :
  12961. else
  12962. can_build_shared=no
  12963. fi
  12964. ;;
  12965. esac
  12966. # Using Import Files as archive members, it is possible to support
  12967. # filename-based versioning of shared library archives on AIX. While
  12968. # this would work for both with and without runtime linking, it will
  12969. # prevent static linking of such archives. So we do filename-based
  12970. # shared library versioning with .so extension only, which is used
  12971. # when both runtime linking and shared linking is enabled.
  12972. # Unfortunately, runtime linking may impact performance, so we do
  12973. # not want this to be the default eventually. Also, we use the
  12974. # versioned .so libs for executables only if there is the -brtl
  12975. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  12976. # To allow for filename-based versioning support, we need to create
  12977. # libNAME.so.V as an archive file, containing:
  12978. # *) an Import File, referring to the versioned filename of the
  12979. # archive as well as the shared archive member, telling the
  12980. # bitwidth (32 or 64) of that shared object, and providing the
  12981. # list of exported symbols of that shared object, eventually
  12982. # decorated with the 'weak' keyword
  12983. # *) the shared object with the F_LOADONLY flag set, to really avoid
  12984. # it being seen by the linker.
  12985. # At run time we better use the real file rather than another symlink,
  12986. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  12987. case $with_aix_soname,$aix_use_runtimelinking in
  12988. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  12989. # soname into executable. Probably we can add versioning support to
  12990. # collect2, so additional links can be useful in future.
  12991. aix,yes) # traditional libtool
  12992. dynamic_linker='AIX unversionable lib.so'
  12993. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12994. # instead of lib<name>.a to let people know that these are not
  12995. # typical AIX shared libraries.
  12996. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12997. ;;
  12998. aix,no) # traditional AIX only
  12999. dynamic_linker='AIX lib.a(lib.so.V)'
  13000. # We preserve .a as extension for shared libraries through AIX4.2
  13001. # and later when we are not doing run time linking.
  13002. library_names_spec='$libname$release.a $libname.a'
  13003. soname_spec='$libname$release$shared_ext$major'
  13004. ;;
  13005. svr4,*) # full svr4 only
  13006. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13007. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13008. # We do not specify a path in Import Files, so LIBPATH fires.
  13009. shlibpath_overrides_runpath=yes
  13010. ;;
  13011. *,yes) # both, prefer svr4
  13012. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13013. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13014. # unpreferred sharedlib libNAME.a needs extra handling
  13015. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13016. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13017. # We do not specify a path in Import Files, so LIBPATH fires.
  13018. shlibpath_overrides_runpath=yes
  13019. ;;
  13020. *,no) # both, prefer aix
  13021. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13022. library_names_spec='$libname$release.a $libname.a'
  13023. soname_spec='$libname$release$shared_ext$major'
  13024. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13025. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13026. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13027. ;;
  13028. esac
  13029. shlibpath_var=LIBPATH
  13030. fi
  13031. ;;
  13032. amigaos*)
  13033. case $host_cpu in
  13034. powerpc)
  13035. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13036. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13037. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13038. ;;
  13039. m68k)
  13040. library_names_spec='$libname.ixlibrary $libname.a'
  13041. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13042. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  13043. ;;
  13044. esac
  13045. ;;
  13046. beos*)
  13047. library_names_spec='$libname$shared_ext'
  13048. dynamic_linker="$host_os ld.so"
  13049. shlibpath_var=LIBRARY_PATH
  13050. ;;
  13051. bsdi[45]*)
  13052. version_type=linux # correct to gnu/linux during the next big refactor
  13053. need_version=no
  13054. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13055. soname_spec='$libname$release$shared_ext$major'
  13056. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13057. shlibpath_var=LD_LIBRARY_PATH
  13058. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13059. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13060. # the default ld.so.conf also contains /usr/contrib/lib and
  13061. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13062. # libtool to hard-code these into programs
  13063. ;;
  13064. cygwin* | mingw* | pw32* | cegcc*)
  13065. version_type=windows
  13066. shrext_cmds=.dll
  13067. need_version=no
  13068. need_lib_prefix=no
  13069. case $GCC,$cc_basename in
  13070. yes,*)
  13071. # gcc
  13072. library_names_spec='$libname.dll.a'
  13073. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13074. postinstall_cmds='base_file=`basename \$file`~
  13075. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13076. dldir=$destdir/`dirname \$dlpath`~
  13077. test -d \$dldir || mkdir -p \$dldir~
  13078. $install_prog $dir/$dlname \$dldir/$dlname~
  13079. chmod a+x \$dldir/$dlname~
  13080. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13081. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13082. fi'
  13083. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13084. dlpath=$dir/\$dldll~
  13085. $RM \$dlpath'
  13086. shlibpath_overrides_runpath=yes
  13087. case $host_os in
  13088. cygwin*)
  13089. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13090. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13091. ;;
  13092. mingw* | cegcc*)
  13093. # MinGW DLLs use traditional 'lib' prefix
  13094. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13095. ;;
  13096. pw32*)
  13097. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13098. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13099. ;;
  13100. esac
  13101. dynamic_linker='Win32 ld.exe'
  13102. ;;
  13103. *,cl*)
  13104. # Native MSVC
  13105. libname_spec='$name'
  13106. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13107. library_names_spec='$libname.dll.lib'
  13108. case $build_os in
  13109. mingw*)
  13110. sys_lib_search_path_spec=
  13111. lt_save_ifs=$IFS
  13112. IFS=';'
  13113. for lt_path in $LIB
  13114. do
  13115. IFS=$lt_save_ifs
  13116. # Let DOS variable expansion print the short 8.3 style file name.
  13117. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13118. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13119. done
  13120. IFS=$lt_save_ifs
  13121. # Convert to MSYS style.
  13122. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13123. ;;
  13124. cygwin*)
  13125. # Convert to unix form, then to dos form, then back to unix form
  13126. # but this time dos style (no spaces!) so that the unix form looks
  13127. # like /cygdrive/c/PROGRA~1:/cygdr...
  13128. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13129. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13130. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13131. ;;
  13132. *)
  13133. sys_lib_search_path_spec=$LIB
  13134. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13135. # It is most probably a Windows format PATH.
  13136. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13137. else
  13138. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13139. fi
  13140. # FIXME: find the short name or the path components, as spaces are
  13141. # common. (e.g. "Program Files" -> "PROGRA~1")
  13142. ;;
  13143. esac
  13144. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13145. postinstall_cmds='base_file=`basename \$file`~
  13146. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13147. dldir=$destdir/`dirname \$dlpath`~
  13148. test -d \$dldir || mkdir -p \$dldir~
  13149. $install_prog $dir/$dlname \$dldir/$dlname'
  13150. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13151. dlpath=$dir/\$dldll~
  13152. $RM \$dlpath'
  13153. shlibpath_overrides_runpath=yes
  13154. dynamic_linker='Win32 link.exe'
  13155. ;;
  13156. *)
  13157. # Assume MSVC wrapper
  13158. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13159. dynamic_linker='Win32 ld.exe'
  13160. ;;
  13161. esac
  13162. # FIXME: first we should search . and the directory the executable is in
  13163. shlibpath_var=PATH
  13164. ;;
  13165. darwin* | rhapsody*)
  13166. dynamic_linker="$host_os dyld"
  13167. version_type=darwin
  13168. need_lib_prefix=no
  13169. need_version=no
  13170. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13171. soname_spec='$libname$release$major$shared_ext'
  13172. shlibpath_overrides_runpath=yes
  13173. shlibpath_var=DYLD_LIBRARY_PATH
  13174. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13175. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13176. ;;
  13177. dgux*)
  13178. version_type=linux # correct to gnu/linux during the next big refactor
  13179. need_lib_prefix=no
  13180. need_version=no
  13181. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13182. soname_spec='$libname$release$shared_ext$major'
  13183. shlibpath_var=LD_LIBRARY_PATH
  13184. ;;
  13185. freebsd* | dragonfly*)
  13186. # DragonFly does not have aout. When/if they implement a new
  13187. # versioning mechanism, adjust this.
  13188. if test -x /usr/bin/objformat; then
  13189. objformat=`/usr/bin/objformat`
  13190. else
  13191. case $host_os in
  13192. freebsd[23].*) objformat=aout ;;
  13193. *) objformat=elf ;;
  13194. esac
  13195. fi
  13196. version_type=freebsd-$objformat
  13197. case $version_type in
  13198. freebsd-elf*)
  13199. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13200. soname_spec='$libname$release$shared_ext$major'
  13201. need_version=no
  13202. need_lib_prefix=no
  13203. ;;
  13204. freebsd-*)
  13205. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13206. need_version=yes
  13207. ;;
  13208. esac
  13209. shlibpath_var=LD_LIBRARY_PATH
  13210. case $host_os in
  13211. freebsd2.*)
  13212. shlibpath_overrides_runpath=yes
  13213. ;;
  13214. freebsd3.[01]* | freebsdelf3.[01]*)
  13215. shlibpath_overrides_runpath=yes
  13216. hardcode_into_libs=yes
  13217. ;;
  13218. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13219. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13220. shlibpath_overrides_runpath=no
  13221. hardcode_into_libs=yes
  13222. ;;
  13223. *) # from 4.6 on, and DragonFly
  13224. shlibpath_overrides_runpath=yes
  13225. hardcode_into_libs=yes
  13226. ;;
  13227. esac
  13228. ;;
  13229. haiku*)
  13230. version_type=linux # correct to gnu/linux during the next big refactor
  13231. need_lib_prefix=no
  13232. need_version=no
  13233. dynamic_linker="$host_os runtime_loader"
  13234. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13235. soname_spec='$libname$release$shared_ext$major'
  13236. shlibpath_var=LIBRARY_PATH
  13237. shlibpath_overrides_runpath=no
  13238. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13239. hardcode_into_libs=yes
  13240. ;;
  13241. hpux9* | hpux10* | hpux11*)
  13242. # Give a soname corresponding to the major version so that dld.sl refuses to
  13243. # link against other versions.
  13244. version_type=sunos
  13245. need_lib_prefix=no
  13246. need_version=no
  13247. case $host_cpu in
  13248. ia64*)
  13249. shrext_cmds='.so'
  13250. hardcode_into_libs=yes
  13251. dynamic_linker="$host_os dld.so"
  13252. shlibpath_var=LD_LIBRARY_PATH
  13253. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13254. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13255. soname_spec='$libname$release$shared_ext$major'
  13256. if test 32 = "$HPUX_IA64_MODE"; then
  13257. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13258. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13259. else
  13260. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13261. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13262. fi
  13263. ;;
  13264. hppa*64*)
  13265. shrext_cmds='.sl'
  13266. hardcode_into_libs=yes
  13267. dynamic_linker="$host_os dld.sl"
  13268. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13269. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13270. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13271. soname_spec='$libname$release$shared_ext$major'
  13272. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13273. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13274. ;;
  13275. *)
  13276. shrext_cmds='.sl'
  13277. dynamic_linker="$host_os dld.sl"
  13278. shlibpath_var=SHLIB_PATH
  13279. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13280. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13281. soname_spec='$libname$release$shared_ext$major'
  13282. ;;
  13283. esac
  13284. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13285. postinstall_cmds='chmod 555 $lib'
  13286. # or fails outright, so override atomically:
  13287. install_override_mode=555
  13288. ;;
  13289. interix[3-9]*)
  13290. version_type=linux # correct to gnu/linux during the next big refactor
  13291. need_lib_prefix=no
  13292. need_version=no
  13293. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13294. soname_spec='$libname$release$shared_ext$major'
  13295. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13296. shlibpath_var=LD_LIBRARY_PATH
  13297. shlibpath_overrides_runpath=no
  13298. hardcode_into_libs=yes
  13299. ;;
  13300. irix5* | irix6* | nonstopux*)
  13301. case $host_os in
  13302. nonstopux*) version_type=nonstopux ;;
  13303. *)
  13304. if test yes = "$lt_cv_prog_gnu_ld"; then
  13305. version_type=linux # correct to gnu/linux during the next big refactor
  13306. else
  13307. version_type=irix
  13308. fi ;;
  13309. esac
  13310. need_lib_prefix=no
  13311. need_version=no
  13312. soname_spec='$libname$release$shared_ext$major'
  13313. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13314. case $host_os in
  13315. irix5* | nonstopux*)
  13316. libsuff= shlibsuff=
  13317. ;;
  13318. *)
  13319. case $LD in # libtool.m4 will add one of these switches to LD
  13320. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13321. libsuff= shlibsuff= libmagic=32-bit;;
  13322. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13323. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13324. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13325. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13326. *) libsuff= shlibsuff= libmagic=never-match;;
  13327. esac
  13328. ;;
  13329. esac
  13330. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13331. shlibpath_overrides_runpath=no
  13332. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13333. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13334. hardcode_into_libs=yes
  13335. ;;
  13336. # No shared lib support for Linux oldld, aout, or coff.
  13337. linux*oldld* | linux*aout* | linux*coff*)
  13338. dynamic_linker=no
  13339. ;;
  13340. linux*android*)
  13341. version_type=none # Android doesn't support versioned libraries.
  13342. need_lib_prefix=no
  13343. need_version=no
  13344. library_names_spec='$libname$release$shared_ext'
  13345. soname_spec='$libname$release$shared_ext'
  13346. finish_cmds=
  13347. shlibpath_var=LD_LIBRARY_PATH
  13348. shlibpath_overrides_runpath=yes
  13349. # This implies no fast_install, which is unacceptable.
  13350. # Some rework will be needed to allow for fast_install
  13351. # before this can be enabled.
  13352. hardcode_into_libs=yes
  13353. dynamic_linker='Android linker'
  13354. # Don't embed -rpath directories since the linker doesn't support them.
  13355. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13356. ;;
  13357. # This must be glibc/ELF.
  13358. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13359. version_type=linux # correct to gnu/linux during the next big refactor
  13360. need_lib_prefix=no
  13361. need_version=no
  13362. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13363. soname_spec='$libname$release$shared_ext$major'
  13364. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13365. shlibpath_var=LD_LIBRARY_PATH
  13366. shlibpath_overrides_runpath=no
  13367. # Some binutils ld are patched to set DT_RUNPATH
  13368. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13369. $as_echo_n "(cached) " >&6
  13370. else
  13371. lt_cv_shlibpath_overrides_runpath=no
  13372. save_LDFLAGS=$LDFLAGS
  13373. save_libdir=$libdir
  13374. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13375. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13377. /* end confdefs.h. */
  13378. int
  13379. main ()
  13380. {
  13381. ;
  13382. return 0;
  13383. }
  13384. _ACEOF
  13385. if ac_fn_cxx_try_link "$LINENO"; then :
  13386. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13387. lt_cv_shlibpath_overrides_runpath=yes
  13388. fi
  13389. fi
  13390. rm -f core conftest.err conftest.$ac_objext \
  13391. conftest$ac_exeext conftest.$ac_ext
  13392. LDFLAGS=$save_LDFLAGS
  13393. libdir=$save_libdir
  13394. fi
  13395. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13396. # This implies no fast_install, which is unacceptable.
  13397. # Some rework will be needed to allow for fast_install
  13398. # before this can be enabled.
  13399. hardcode_into_libs=yes
  13400. # Add ABI-specific directories to the system library path.
  13401. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13402. # Ideally, we could use ldconfig to report *all* directores which are
  13403. # searched for libraries, however this is still not possible. Aside from not
  13404. # being certain /sbin/ldconfig is available, command
  13405. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13406. # even though it is searched at run-time. Try to do the best guess by
  13407. # appending ld.so.conf contents (and includes) to the search path.
  13408. if test -f /etc/ld.so.conf; then
  13409. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13410. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13411. fi
  13412. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13413. # powerpc, because MkLinux only supported shared libraries with the
  13414. # GNU dynamic linker. Since this was broken with cross compilers,
  13415. # most powerpc-linux boxes support dynamic linking these days and
  13416. # people can always --disable-shared, the test was removed, and we
  13417. # assume the GNU/Linux dynamic linker is in use.
  13418. dynamic_linker='GNU/Linux ld.so'
  13419. ;;
  13420. netbsd*)
  13421. version_type=sunos
  13422. need_lib_prefix=no
  13423. need_version=no
  13424. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13425. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13426. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13427. dynamic_linker='NetBSD (a.out) ld.so'
  13428. else
  13429. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13430. soname_spec='$libname$release$shared_ext$major'
  13431. dynamic_linker='NetBSD ld.elf_so'
  13432. fi
  13433. shlibpath_var=LD_LIBRARY_PATH
  13434. shlibpath_overrides_runpath=yes
  13435. hardcode_into_libs=yes
  13436. ;;
  13437. newsos6)
  13438. version_type=linux # correct to gnu/linux during the next big refactor
  13439. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13440. shlibpath_var=LD_LIBRARY_PATH
  13441. shlibpath_overrides_runpath=yes
  13442. ;;
  13443. *nto* | *qnx*)
  13444. version_type=qnx
  13445. need_lib_prefix=no
  13446. need_version=no
  13447. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13448. soname_spec='$libname$release$shared_ext$major'
  13449. shlibpath_var=LD_LIBRARY_PATH
  13450. shlibpath_overrides_runpath=no
  13451. hardcode_into_libs=yes
  13452. dynamic_linker='ldqnx.so'
  13453. ;;
  13454. openbsd* | bitrig*)
  13455. version_type=sunos
  13456. sys_lib_dlsearch_path_spec=/usr/lib
  13457. need_lib_prefix=no
  13458. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13459. need_version=no
  13460. else
  13461. need_version=yes
  13462. fi
  13463. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13464. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13465. shlibpath_var=LD_LIBRARY_PATH
  13466. shlibpath_overrides_runpath=yes
  13467. ;;
  13468. os2*)
  13469. libname_spec='$name'
  13470. version_type=windows
  13471. shrext_cmds=.dll
  13472. need_version=no
  13473. need_lib_prefix=no
  13474. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13475. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13476. v=$($ECHO $release$versuffix | tr -d .-);
  13477. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13478. $ECHO $n$v`$shared_ext'
  13479. library_names_spec='${libname}_dll.$libext'
  13480. dynamic_linker='OS/2 ld.exe'
  13481. shlibpath_var=BEGINLIBPATH
  13482. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13483. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13484. postinstall_cmds='base_file=`basename \$file`~
  13485. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13486. dldir=$destdir/`dirname \$dlpath`~
  13487. test -d \$dldir || mkdir -p \$dldir~
  13488. $install_prog $dir/$dlname \$dldir/$dlname~
  13489. chmod a+x \$dldir/$dlname~
  13490. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13491. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13492. fi'
  13493. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13494. dlpath=$dir/\$dldll~
  13495. $RM \$dlpath'
  13496. ;;
  13497. osf3* | osf4* | osf5*)
  13498. version_type=osf
  13499. need_lib_prefix=no
  13500. need_version=no
  13501. soname_spec='$libname$release$shared_ext$major'
  13502. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13503. shlibpath_var=LD_LIBRARY_PATH
  13504. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13505. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13506. ;;
  13507. rdos*)
  13508. dynamic_linker=no
  13509. ;;
  13510. solaris*)
  13511. version_type=linux # correct to gnu/linux during the next big refactor
  13512. need_lib_prefix=no
  13513. need_version=no
  13514. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13515. soname_spec='$libname$release$shared_ext$major'
  13516. shlibpath_var=LD_LIBRARY_PATH
  13517. shlibpath_overrides_runpath=yes
  13518. hardcode_into_libs=yes
  13519. # ldd complains unless libraries are executable
  13520. postinstall_cmds='chmod +x $lib'
  13521. ;;
  13522. sunos4*)
  13523. version_type=sunos
  13524. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13525. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13526. shlibpath_var=LD_LIBRARY_PATH
  13527. shlibpath_overrides_runpath=yes
  13528. if test yes = "$with_gnu_ld"; then
  13529. need_lib_prefix=no
  13530. fi
  13531. need_version=yes
  13532. ;;
  13533. sysv4 | sysv4.3*)
  13534. version_type=linux # correct to gnu/linux during the next big refactor
  13535. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13536. soname_spec='$libname$release$shared_ext$major'
  13537. shlibpath_var=LD_LIBRARY_PATH
  13538. case $host_vendor in
  13539. sni)
  13540. shlibpath_overrides_runpath=no
  13541. need_lib_prefix=no
  13542. runpath_var=LD_RUN_PATH
  13543. ;;
  13544. siemens)
  13545. need_lib_prefix=no
  13546. ;;
  13547. motorola)
  13548. need_lib_prefix=no
  13549. need_version=no
  13550. shlibpath_overrides_runpath=no
  13551. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13552. ;;
  13553. esac
  13554. ;;
  13555. sysv4*MP*)
  13556. if test -d /usr/nec; then
  13557. version_type=linux # correct to gnu/linux during the next big refactor
  13558. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  13559. soname_spec='$libname$shared_ext.$major'
  13560. shlibpath_var=LD_LIBRARY_PATH
  13561. fi
  13562. ;;
  13563. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13564. version_type=sco
  13565. need_lib_prefix=no
  13566. need_version=no
  13567. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  13568. soname_spec='$libname$release$shared_ext$major'
  13569. shlibpath_var=LD_LIBRARY_PATH
  13570. shlibpath_overrides_runpath=yes
  13571. hardcode_into_libs=yes
  13572. if test yes = "$with_gnu_ld"; then
  13573. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13574. else
  13575. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13576. case $host_os in
  13577. sco3.2v5*)
  13578. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13579. ;;
  13580. esac
  13581. fi
  13582. sys_lib_dlsearch_path_spec='/usr/lib'
  13583. ;;
  13584. tpf*)
  13585. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13586. version_type=linux # correct to gnu/linux during the next big refactor
  13587. need_lib_prefix=no
  13588. need_version=no
  13589. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13590. shlibpath_var=LD_LIBRARY_PATH
  13591. shlibpath_overrides_runpath=no
  13592. hardcode_into_libs=yes
  13593. ;;
  13594. uts4*)
  13595. version_type=linux # correct to gnu/linux during the next big refactor
  13596. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13597. soname_spec='$libname$release$shared_ext$major'
  13598. shlibpath_var=LD_LIBRARY_PATH
  13599. ;;
  13600. *)
  13601. dynamic_linker=no
  13602. ;;
  13603. esac
  13604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13605. $as_echo "$dynamic_linker" >&6; }
  13606. test no = "$dynamic_linker" && can_build_shared=no
  13607. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13608. if test yes = "$GCC"; then
  13609. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13610. fi
  13611. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  13612. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  13613. fi
  13614. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  13615. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  13616. fi
  13617. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  13618. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  13619. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  13620. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  13621. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  13622. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  13623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13624. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13625. hardcode_action_CXX=
  13626. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13627. test -n "$runpath_var_CXX" ||
  13628. test yes = "$hardcode_automatic_CXX"; then
  13629. # We can hardcode non-existent directories.
  13630. if test no != "$hardcode_direct_CXX" &&
  13631. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13632. # have to relink, otherwise we might link with an installed library
  13633. # when we should be linking with a yet-to-be-installed one
  13634. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  13635. test no != "$hardcode_minus_L_CXX"; then
  13636. # Linking always hardcodes the temporary library directory.
  13637. hardcode_action_CXX=relink
  13638. else
  13639. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13640. hardcode_action_CXX=immediate
  13641. fi
  13642. else
  13643. # We cannot hardcode anything, or else we can only hardcode existing
  13644. # directories.
  13645. hardcode_action_CXX=unsupported
  13646. fi
  13647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13648. $as_echo "$hardcode_action_CXX" >&6; }
  13649. if test relink = "$hardcode_action_CXX" ||
  13650. test yes = "$inherit_rpath_CXX"; then
  13651. # Fast installation is not supported
  13652. enable_fast_install=no
  13653. elif test yes = "$shlibpath_overrides_runpath" ||
  13654. test no = "$enable_shared"; then
  13655. # Fast installation is not necessary
  13656. enable_fast_install=needless
  13657. fi
  13658. fi # test -n "$compiler"
  13659. CC=$lt_save_CC
  13660. CFLAGS=$lt_save_CFLAGS
  13661. LDCXX=$LD
  13662. LD=$lt_save_LD
  13663. GCC=$lt_save_GCC
  13664. with_gnu_ld=$lt_save_with_gnu_ld
  13665. lt_cv_path_LDCXX=$lt_cv_path_LD
  13666. lt_cv_path_LD=$lt_save_path_LD
  13667. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13668. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13669. fi # test yes != "$_lt_caught_CXX_error"
  13670. ac_ext=c
  13671. ac_cpp='$CPP $CPPFLAGS'
  13672. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13673. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13674. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13675. ac_config_commands="$ac_config_commands libtool"
  13676. # Only expand once:
  13677. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  13678. ac_ext=cpp
  13679. ac_cpp='$CXXCPP $CPPFLAGS'
  13680. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13681. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13682. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13683. ac_success=no
  13684. if test x$ac_success = xno; then
  13685. for alternative in ${ax_cxx_compile_alternatives}; do
  13686. switch="-std=gnu++${alternative}"
  13687. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  13689. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  13690. if eval \${$cachevar+:} false; then :
  13691. $as_echo_n "(cached) " >&6
  13692. else
  13693. ac_save_CXX="$CXX"
  13694. CXX="$CXX $switch"
  13695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13696. /* end confdefs.h. */
  13697. // If the compiler admits that it is not ready for C++11, why torture it?
  13698. // Hopefully, this will speed up the test.
  13699. #ifndef __cplusplus
  13700. #error "This is not a C++ compiler"
  13701. #elif __cplusplus < 201103L
  13702. #error "This is not a C++11 compiler"
  13703. #else
  13704. namespace cxx11
  13705. {
  13706. namespace test_static_assert
  13707. {
  13708. template <typename T>
  13709. struct check
  13710. {
  13711. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  13712. };
  13713. }
  13714. namespace test_final_override
  13715. {
  13716. struct Base
  13717. {
  13718. virtual void f() {}
  13719. };
  13720. struct Derived : public Base
  13721. {
  13722. virtual void f() override {}
  13723. };
  13724. }
  13725. namespace test_double_right_angle_brackets
  13726. {
  13727. template < typename T >
  13728. struct check {};
  13729. typedef check<void> single_type;
  13730. typedef check<check<void>> double_type;
  13731. typedef check<check<check<void>>> triple_type;
  13732. typedef check<check<check<check<void>>>> quadruple_type;
  13733. }
  13734. namespace test_decltype
  13735. {
  13736. int
  13737. f()
  13738. {
  13739. int a = 1;
  13740. decltype(a) b = 2;
  13741. return a + b;
  13742. }
  13743. }
  13744. namespace test_type_deduction
  13745. {
  13746. template < typename T1, typename T2 >
  13747. struct is_same
  13748. {
  13749. static const bool value = false;
  13750. };
  13751. template < typename T >
  13752. struct is_same<T, T>
  13753. {
  13754. static const bool value = true;
  13755. };
  13756. template < typename T1, typename T2 >
  13757. auto
  13758. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  13759. {
  13760. return a1 + a2;
  13761. }
  13762. int
  13763. test(const int c, volatile int v)
  13764. {
  13765. static_assert(is_same<int, decltype(0)>::value == true, "");
  13766. static_assert(is_same<int, decltype(c)>::value == false, "");
  13767. static_assert(is_same<int, decltype(v)>::value == false, "");
  13768. auto ac = c;
  13769. auto av = v;
  13770. auto sumi = ac + av + 'x';
  13771. auto sumf = ac + av + 1.0;
  13772. static_assert(is_same<int, decltype(ac)>::value == true, "");
  13773. static_assert(is_same<int, decltype(av)>::value == true, "");
  13774. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  13775. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  13776. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  13777. return (sumf > 0.0) ? sumi : add(c, v);
  13778. }
  13779. }
  13780. namespace test_noexcept
  13781. {
  13782. int f() { return 0; }
  13783. int g() noexcept { return 0; }
  13784. static_assert(noexcept(f()) == false, "");
  13785. static_assert(noexcept(g()) == true, "");
  13786. }
  13787. namespace test_constexpr
  13788. {
  13789. template < typename CharT >
  13790. unsigned long constexpr
  13791. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  13792. {
  13793. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  13794. }
  13795. template < typename CharT >
  13796. unsigned long constexpr
  13797. strlen_c(const CharT *const s) noexcept
  13798. {
  13799. return strlen_c_r(s, 0UL);
  13800. }
  13801. static_assert(strlen_c("") == 0UL, "");
  13802. static_assert(strlen_c("1") == 1UL, "");
  13803. static_assert(strlen_c("example") == 7UL, "");
  13804. static_assert(strlen_c("another\0example") == 7UL, "");
  13805. }
  13806. namespace test_rvalue_references
  13807. {
  13808. template < int N >
  13809. struct answer
  13810. {
  13811. static constexpr int value = N;
  13812. };
  13813. answer<1> f(int&) { return answer<1>(); }
  13814. answer<2> f(const int&) { return answer<2>(); }
  13815. answer<3> f(int&&) { return answer<3>(); }
  13816. void
  13817. test()
  13818. {
  13819. int i = 0;
  13820. const int c = 0;
  13821. static_assert(decltype(f(i))::value == 1, "");
  13822. static_assert(decltype(f(c))::value == 2, "");
  13823. static_assert(decltype(f(0))::value == 3, "");
  13824. }
  13825. }
  13826. namespace test_uniform_initialization
  13827. {
  13828. struct test
  13829. {
  13830. static const int zero {};
  13831. static const int one {1};
  13832. };
  13833. static_assert(test::zero == 0, "");
  13834. static_assert(test::one == 1, "");
  13835. }
  13836. namespace test_lambdas
  13837. {
  13838. void
  13839. test1()
  13840. {
  13841. auto lambda1 = [](){};
  13842. auto lambda2 = lambda1;
  13843. lambda1();
  13844. lambda2();
  13845. }
  13846. int
  13847. test2()
  13848. {
  13849. auto a = [](int i, int j){ return i + j; }(1, 2);
  13850. auto b = []() -> int { return '0'; }();
  13851. auto c = [=](){ return a + b; }();
  13852. auto d = [&](){ return c; }();
  13853. auto e = [a, &b](int x) mutable {
  13854. const auto identity = [](int y){ return y; };
  13855. for (auto i = 0; i < a; ++i)
  13856. a += b--;
  13857. return x + identity(a + b);
  13858. }(0);
  13859. return a + b + c + d + e;
  13860. }
  13861. int
  13862. test3()
  13863. {
  13864. const auto nullary = [](){ return 0; };
  13865. const auto unary = [](int x){ return x; };
  13866. using nullary_t = decltype(nullary);
  13867. using unary_t = decltype(unary);
  13868. const auto higher1st = [](nullary_t f){ return f(); };
  13869. const auto higher2nd = [unary](nullary_t f1){
  13870. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  13871. };
  13872. return higher1st(nullary) + higher2nd(nullary)(unary);
  13873. }
  13874. }
  13875. namespace test_variadic_templates
  13876. {
  13877. template <int...>
  13878. struct sum;
  13879. template <int N0, int... N1toN>
  13880. struct sum<N0, N1toN...>
  13881. {
  13882. static constexpr auto value = N0 + sum<N1toN...>::value;
  13883. };
  13884. template <>
  13885. struct sum<>
  13886. {
  13887. static constexpr auto value = 0;
  13888. };
  13889. static_assert(sum<>::value == 0, "");
  13890. static_assert(sum<1>::value == 1, "");
  13891. static_assert(sum<23>::value == 23, "");
  13892. static_assert(sum<1, 2>::value == 3, "");
  13893. static_assert(sum<5, 5, 11>::value == 21, "");
  13894. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  13895. }
  13896. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  13897. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  13898. // because of this.
  13899. namespace test_template_alias_sfinae
  13900. {
  13901. struct foo {};
  13902. template<typename T>
  13903. using member = typename T::member_type;
  13904. template<typename T>
  13905. void func(...) {}
  13906. template<typename T>
  13907. void func(member<T>*) {}
  13908. void test();
  13909. void test() { func<foo>(0); }
  13910. }
  13911. } // namespace cxx11
  13912. #endif // __cplusplus >= 201103L
  13913. _ACEOF
  13914. if ac_fn_cxx_try_compile "$LINENO"; then :
  13915. eval $cachevar=yes
  13916. else
  13917. eval $cachevar=no
  13918. fi
  13919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13920. CXX="$ac_save_CXX"
  13921. fi
  13922. eval ac_res=\$$cachevar
  13923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13924. $as_echo "$ac_res" >&6; }
  13925. if eval test x\$$cachevar = xyes; then
  13926. CXX="$CXX $switch"
  13927. if test -n "$CXXCPP" ; then
  13928. CXXCPP="$CXXCPP $switch"
  13929. fi
  13930. ac_success=yes
  13931. break
  13932. fi
  13933. done
  13934. fi
  13935. if test x$ac_success = xno; then
  13936. for alternative in ${ax_cxx_compile_alternatives}; do
  13937. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  13938. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  13939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  13940. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  13941. if eval \${$cachevar+:} false; then :
  13942. $as_echo_n "(cached) " >&6
  13943. else
  13944. ac_save_CXX="$CXX"
  13945. CXX="$CXX $switch"
  13946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13947. /* end confdefs.h. */
  13948. // If the compiler admits that it is not ready for C++11, why torture it?
  13949. // Hopefully, this will speed up the test.
  13950. #ifndef __cplusplus
  13951. #error "This is not a C++ compiler"
  13952. #elif __cplusplus < 201103L
  13953. #error "This is not a C++11 compiler"
  13954. #else
  13955. namespace cxx11
  13956. {
  13957. namespace test_static_assert
  13958. {
  13959. template <typename T>
  13960. struct check
  13961. {
  13962. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  13963. };
  13964. }
  13965. namespace test_final_override
  13966. {
  13967. struct Base
  13968. {
  13969. virtual void f() {}
  13970. };
  13971. struct Derived : public Base
  13972. {
  13973. virtual void f() override {}
  13974. };
  13975. }
  13976. namespace test_double_right_angle_brackets
  13977. {
  13978. template < typename T >
  13979. struct check {};
  13980. typedef check<void> single_type;
  13981. typedef check<check<void>> double_type;
  13982. typedef check<check<check<void>>> triple_type;
  13983. typedef check<check<check<check<void>>>> quadruple_type;
  13984. }
  13985. namespace test_decltype
  13986. {
  13987. int
  13988. f()
  13989. {
  13990. int a = 1;
  13991. decltype(a) b = 2;
  13992. return a + b;
  13993. }
  13994. }
  13995. namespace test_type_deduction
  13996. {
  13997. template < typename T1, typename T2 >
  13998. struct is_same
  13999. {
  14000. static const bool value = false;
  14001. };
  14002. template < typename T >
  14003. struct is_same<T, T>
  14004. {
  14005. static const bool value = true;
  14006. };
  14007. template < typename T1, typename T2 >
  14008. auto
  14009. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  14010. {
  14011. return a1 + a2;
  14012. }
  14013. int
  14014. test(const int c, volatile int v)
  14015. {
  14016. static_assert(is_same<int, decltype(0)>::value == true, "");
  14017. static_assert(is_same<int, decltype(c)>::value == false, "");
  14018. static_assert(is_same<int, decltype(v)>::value == false, "");
  14019. auto ac = c;
  14020. auto av = v;
  14021. auto sumi = ac + av + 'x';
  14022. auto sumf = ac + av + 1.0;
  14023. static_assert(is_same<int, decltype(ac)>::value == true, "");
  14024. static_assert(is_same<int, decltype(av)>::value == true, "");
  14025. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  14026. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  14027. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  14028. return (sumf > 0.0) ? sumi : add(c, v);
  14029. }
  14030. }
  14031. namespace test_noexcept
  14032. {
  14033. int f() { return 0; }
  14034. int g() noexcept { return 0; }
  14035. static_assert(noexcept(f()) == false, "");
  14036. static_assert(noexcept(g()) == true, "");
  14037. }
  14038. namespace test_constexpr
  14039. {
  14040. template < typename CharT >
  14041. unsigned long constexpr
  14042. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  14043. {
  14044. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  14045. }
  14046. template < typename CharT >
  14047. unsigned long constexpr
  14048. strlen_c(const CharT *const s) noexcept
  14049. {
  14050. return strlen_c_r(s, 0UL);
  14051. }
  14052. static_assert(strlen_c("") == 0UL, "");
  14053. static_assert(strlen_c("1") == 1UL, "");
  14054. static_assert(strlen_c("example") == 7UL, "");
  14055. static_assert(strlen_c("another\0example") == 7UL, "");
  14056. }
  14057. namespace test_rvalue_references
  14058. {
  14059. template < int N >
  14060. struct answer
  14061. {
  14062. static constexpr int value = N;
  14063. };
  14064. answer<1> f(int&) { return answer<1>(); }
  14065. answer<2> f(const int&) { return answer<2>(); }
  14066. answer<3> f(int&&) { return answer<3>(); }
  14067. void
  14068. test()
  14069. {
  14070. int i = 0;
  14071. const int c = 0;
  14072. static_assert(decltype(f(i))::value == 1, "");
  14073. static_assert(decltype(f(c))::value == 2, "");
  14074. static_assert(decltype(f(0))::value == 3, "");
  14075. }
  14076. }
  14077. namespace test_uniform_initialization
  14078. {
  14079. struct test
  14080. {
  14081. static const int zero {};
  14082. static const int one {1};
  14083. };
  14084. static_assert(test::zero == 0, "");
  14085. static_assert(test::one == 1, "");
  14086. }
  14087. namespace test_lambdas
  14088. {
  14089. void
  14090. test1()
  14091. {
  14092. auto lambda1 = [](){};
  14093. auto lambda2 = lambda1;
  14094. lambda1();
  14095. lambda2();
  14096. }
  14097. int
  14098. test2()
  14099. {
  14100. auto a = [](int i, int j){ return i + j; }(1, 2);
  14101. auto b = []() -> int { return '0'; }();
  14102. auto c = [=](){ return a + b; }();
  14103. auto d = [&](){ return c; }();
  14104. auto e = [a, &b](int x) mutable {
  14105. const auto identity = [](int y){ return y; };
  14106. for (auto i = 0; i < a; ++i)
  14107. a += b--;
  14108. return x + identity(a + b);
  14109. }(0);
  14110. return a + b + c + d + e;
  14111. }
  14112. int
  14113. test3()
  14114. {
  14115. const auto nullary = [](){ return 0; };
  14116. const auto unary = [](int x){ return x; };
  14117. using nullary_t = decltype(nullary);
  14118. using unary_t = decltype(unary);
  14119. const auto higher1st = [](nullary_t f){ return f(); };
  14120. const auto higher2nd = [unary](nullary_t f1){
  14121. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  14122. };
  14123. return higher1st(nullary) + higher2nd(nullary)(unary);
  14124. }
  14125. }
  14126. namespace test_variadic_templates
  14127. {
  14128. template <int...>
  14129. struct sum;
  14130. template <int N0, int... N1toN>
  14131. struct sum<N0, N1toN...>
  14132. {
  14133. static constexpr auto value = N0 + sum<N1toN...>::value;
  14134. };
  14135. template <>
  14136. struct sum<>
  14137. {
  14138. static constexpr auto value = 0;
  14139. };
  14140. static_assert(sum<>::value == 0, "");
  14141. static_assert(sum<1>::value == 1, "");
  14142. static_assert(sum<23>::value == 23, "");
  14143. static_assert(sum<1, 2>::value == 3, "");
  14144. static_assert(sum<5, 5, 11>::value == 21, "");
  14145. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  14146. }
  14147. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  14148. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  14149. // because of this.
  14150. namespace test_template_alias_sfinae
  14151. {
  14152. struct foo {};
  14153. template<typename T>
  14154. using member = typename T::member_type;
  14155. template<typename T>
  14156. void func(...) {}
  14157. template<typename T>
  14158. void func(member<T>*) {}
  14159. void test();
  14160. void test() { func<foo>(0); }
  14161. }
  14162. } // namespace cxx11
  14163. #endif // __cplusplus >= 201103L
  14164. _ACEOF
  14165. if ac_fn_cxx_try_compile "$LINENO"; then :
  14166. eval $cachevar=yes
  14167. else
  14168. eval $cachevar=no
  14169. fi
  14170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14171. CXX="$ac_save_CXX"
  14172. fi
  14173. eval ac_res=\$$cachevar
  14174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14175. $as_echo "$ac_res" >&6; }
  14176. if eval test x\$$cachevar = xyes; then
  14177. CXX="$CXX $switch"
  14178. if test -n "$CXXCPP" ; then
  14179. CXXCPP="$CXXCPP $switch"
  14180. fi
  14181. ac_success=yes
  14182. break
  14183. fi
  14184. done
  14185. if test x$ac_success = xyes; then
  14186. break
  14187. fi
  14188. done
  14189. fi
  14190. ac_ext=c
  14191. ac_cpp='$CPP $CPPFLAGS'
  14192. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14193. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14194. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14195. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  14196. if test x$ac_success = xno; then
  14197. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  14198. fi
  14199. fi
  14200. if test x$ac_success = xno; then
  14201. HAVE_CXX11=0
  14202. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  14203. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  14204. else
  14205. HAVE_CXX11=1
  14206. $as_echo "#define HAVE_CXX11 1" >>confdefs.h
  14207. fi
  14208. os_linux=no
  14209. os_windows=no
  14210. os_mac=no
  14211. # Detect the target system
  14212. case "${host_os}" in
  14213. linux*)
  14214. os_linux=yes
  14215. ;;
  14216. cygwin*|mingw*)
  14217. os_windows=yes
  14218. ;;
  14219. darwin*)
  14220. os_mac=yes
  14221. ;;
  14222. *)
  14223. as_fn_error $? "\"OS $host_os is not supported\"" "$LINENO" 5
  14224. ;;
  14225. esac
  14226. # Check whether --enable-static-binary was given.
  14227. if test "${enable_static_binary+set}" = set; then :
  14228. enableval=$enable_static_binary;
  14229. EXTRA_LDFLAGS="-all-static"
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -static-libgcc" >&5
  14231. $as_echo_n "checking whether the linker accepts -static-libgcc... " >&6; }
  14232. if ${ax_cv_check_ldflags___static_libgcc+:} false; then :
  14233. $as_echo_n "(cached) " >&6
  14234. else
  14235. ax_check_save_flags=$LDFLAGS
  14236. LDFLAGS="$LDFLAGS -static-libgcc"
  14237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14238. /* end confdefs.h. */
  14239. int
  14240. main ()
  14241. {
  14242. ;
  14243. return 0;
  14244. }
  14245. _ACEOF
  14246. if ac_fn_c_try_link "$LINENO"; then :
  14247. ax_cv_check_ldflags___static_libgcc=yes
  14248. else
  14249. ax_cv_check_ldflags___static_libgcc=no
  14250. fi
  14251. rm -f core conftest.err conftest.$ac_objext \
  14252. conftest$ac_exeext conftest.$ac_ext
  14253. LDFLAGS=$ax_check_save_flags
  14254. fi
  14255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___static_libgcc" >&5
  14256. $as_echo "$ax_cv_check_ldflags___static_libgcc" >&6; }
  14257. if test "x$ax_cv_check_ldflags___static_libgcc" = xyes; then :
  14258. EXTRA_LDFLAGS="${EXTRA_LDFLAGS} -static-libgcc"
  14259. else
  14260. :
  14261. fi
  14262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -static-libstdc++" >&5
  14263. $as_echo_n "checking whether the linker accepts -static-libstdc++... " >&6; }
  14264. if ${ax_cv_check_ldflags___static_libstdcpp+:} false; then :
  14265. $as_echo_n "(cached) " >&6
  14266. else
  14267. ax_check_save_flags=$LDFLAGS
  14268. LDFLAGS="$LDFLAGS -static-libstdc++"
  14269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14270. /* end confdefs.h. */
  14271. int
  14272. main ()
  14273. {
  14274. ;
  14275. return 0;
  14276. }
  14277. _ACEOF
  14278. if ac_fn_c_try_link "$LINENO"; then :
  14279. ax_cv_check_ldflags___static_libstdcpp=yes
  14280. else
  14281. ax_cv_check_ldflags___static_libstdcpp=no
  14282. fi
  14283. rm -f core conftest.err conftest.$ac_objext \
  14284. conftest$ac_exeext conftest.$ac_ext
  14285. LDFLAGS=$ax_check_save_flags
  14286. fi
  14287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___static_libstdcpp" >&5
  14288. $as_echo "$ax_cv_check_ldflags___static_libstdcpp" >&6; }
  14289. if test "x$ax_cv_check_ldflags___static_libstdcpp" = xyes; then :
  14290. EXTRA_LDFLAGS="${EXTRA_LDFLAGS} -static-libstdc++"
  14291. else
  14292. :
  14293. fi
  14294. fi
  14295. if test "$os_linux" = "yes"; then
  14296. LINUX_TRUE=
  14297. LINUX_FALSE='#'
  14298. else
  14299. LINUX_TRUE='#'
  14300. LINUX_FALSE=
  14301. fi
  14302. if test "$os_windows" = "yes"; then
  14303. WINDOWS_TRUE=
  14304. WINDOWS_FALSE='#'
  14305. else
  14306. WINDOWS_TRUE='#'
  14307. WINDOWS_FALSE=
  14308. fi
  14309. if test "$os_mac" = "yes"; then
  14310. OSX_TRUE=
  14311. OSX_FALSE='#'
  14312. else
  14313. OSX_TRUE='#'
  14314. OSX_FALSE=
  14315. fi
  14316. ac_config_files="$ac_config_files Makefile"
  14317. cat >confcache <<\_ACEOF
  14318. # This file is a shell script that caches the results of configure
  14319. # tests run on this system so they can be shared between configure
  14320. # scripts and configure runs, see configure's option --config-cache.
  14321. # It is not useful on other systems. If it contains results you don't
  14322. # want to keep, you may remove or edit it.
  14323. #
  14324. # config.status only pays attention to the cache file if you give it
  14325. # the --recheck option to rerun configure.
  14326. #
  14327. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14328. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14329. # following values.
  14330. _ACEOF
  14331. # The following way of writing the cache mishandles newlines in values,
  14332. # but we know of no workaround that is simple, portable, and efficient.
  14333. # So, we kill variables containing newlines.
  14334. # Ultrix sh set writes to stderr and can't be redirected directly,
  14335. # and sets the high bit in the cache file unless we assign to the vars.
  14336. (
  14337. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14338. eval ac_val=\$$ac_var
  14339. case $ac_val in #(
  14340. *${as_nl}*)
  14341. case $ac_var in #(
  14342. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14343. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14344. esac
  14345. case $ac_var in #(
  14346. _ | IFS | as_nl) ;; #(
  14347. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14348. *) { eval $ac_var=; unset $ac_var;} ;;
  14349. esac ;;
  14350. esac
  14351. done
  14352. (set) 2>&1 |
  14353. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14354. *${as_nl}ac_space=\ *)
  14355. # `set' does not quote correctly, so add quotes: double-quote
  14356. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14357. sed -n \
  14358. "s/'/'\\\\''/g;
  14359. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14360. ;; #(
  14361. *)
  14362. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14363. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14364. ;;
  14365. esac |
  14366. sort
  14367. ) |
  14368. sed '
  14369. /^ac_cv_env_/b end
  14370. t clear
  14371. :clear
  14372. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14373. t end
  14374. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14375. :end' >>confcache
  14376. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14377. if test -w "$cache_file"; then
  14378. if test "x$cache_file" != "x/dev/null"; then
  14379. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14380. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14381. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14382. cat confcache >"$cache_file"
  14383. else
  14384. case $cache_file in #(
  14385. */* | ?:*)
  14386. mv -f confcache "$cache_file"$$ &&
  14387. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14388. *)
  14389. mv -f confcache "$cache_file" ;;
  14390. esac
  14391. fi
  14392. fi
  14393. else
  14394. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14395. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14396. fi
  14397. fi
  14398. rm -f confcache
  14399. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14400. # Let make expand exec_prefix.
  14401. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14402. # Transform confdefs.h into DEFS.
  14403. # Protect against shell expansion while executing Makefile rules.
  14404. # Protect against Makefile macro expansion.
  14405. #
  14406. # If the first sed substitution is executed (which looks for macros that
  14407. # take arguments), then branch to the quote section. Otherwise,
  14408. # look for a macro that doesn't take arguments.
  14409. ac_script='
  14410. :mline
  14411. /\\$/{
  14412. N
  14413. s,\\\n,,
  14414. b mline
  14415. }
  14416. t clear
  14417. :clear
  14418. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  14419. t quote
  14420. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  14421. t quote
  14422. b any
  14423. :quote
  14424. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  14425. s/\[/\\&/g
  14426. s/\]/\\&/g
  14427. s/\$/$$/g
  14428. H
  14429. :any
  14430. ${
  14431. g
  14432. s/^\n//
  14433. s/\n/ /g
  14434. p
  14435. }
  14436. '
  14437. DEFS=`sed -n "$ac_script" confdefs.h`
  14438. ac_libobjs=
  14439. ac_ltlibobjs=
  14440. U=
  14441. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14442. # 1. Remove the extension, and $U if already installed.
  14443. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14444. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14445. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14446. # will be set to the directory where LIBOBJS objects are built.
  14447. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14448. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14449. done
  14450. LIBOBJS=$ac_libobjs
  14451. LTLIBOBJS=$ac_ltlibobjs
  14452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14453. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14454. if test -n "$am_sleep_pid"; then
  14455. # Hide warnings about reused PIDs.
  14456. wait $am_sleep_pid 2>/dev/null
  14457. fi
  14458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14459. $as_echo "done" >&6; }
  14460. if test -n "$EXEEXT"; then
  14461. am__EXEEXT_TRUE=
  14462. am__EXEEXT_FALSE='#'
  14463. else
  14464. am__EXEEXT_TRUE='#'
  14465. am__EXEEXT_FALSE=
  14466. fi
  14467. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14468. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14469. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14470. fi
  14471. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14472. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14473. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14474. fi
  14475. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14476. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14477. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14478. fi
  14479. if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
  14480. as_fn_error $? "conditional \"LINUX\" was never defined.
  14481. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14482. fi
  14483. if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
  14484. as_fn_error $? "conditional \"WINDOWS\" was never defined.
  14485. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14486. fi
  14487. if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then
  14488. as_fn_error $? "conditional \"OSX\" was never defined.
  14489. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14490. fi
  14491. : "${CONFIG_STATUS=./config.status}"
  14492. ac_write_fail=0
  14493. ac_clean_files_save=$ac_clean_files
  14494. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14495. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14496. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14497. as_write_fail=0
  14498. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14499. #! $SHELL
  14500. # Generated by $as_me.
  14501. # Run this file to recreate the current configuration.
  14502. # Compiler output produced by configure, useful for debugging
  14503. # configure, is in config.log if it exists.
  14504. debug=false
  14505. ac_cs_recheck=false
  14506. ac_cs_silent=false
  14507. SHELL=\${CONFIG_SHELL-$SHELL}
  14508. export SHELL
  14509. _ASEOF
  14510. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14511. ## -------------------- ##
  14512. ## M4sh Initialization. ##
  14513. ## -------------------- ##
  14514. # Be more Bourne compatible
  14515. DUALCASE=1; export DUALCASE # for MKS sh
  14516. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14517. emulate sh
  14518. NULLCMD=:
  14519. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14520. # is contrary to our usage. Disable this feature.
  14521. alias -g '${1+"$@"}'='"$@"'
  14522. setopt NO_GLOB_SUBST
  14523. else
  14524. case `(set -o) 2>/dev/null` in #(
  14525. *posix*) :
  14526. set -o posix ;; #(
  14527. *) :
  14528. ;;
  14529. esac
  14530. fi
  14531. as_nl='
  14532. '
  14533. export as_nl
  14534. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14535. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14536. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14537. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14538. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14539. # but without wasting forks for bash or zsh.
  14540. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14541. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14542. as_echo='print -r --'
  14543. as_echo_n='print -rn --'
  14544. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14545. as_echo='printf %s\n'
  14546. as_echo_n='printf %s'
  14547. else
  14548. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14549. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14550. as_echo_n='/usr/ucb/echo -n'
  14551. else
  14552. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14553. as_echo_n_body='eval
  14554. arg=$1;
  14555. case $arg in #(
  14556. *"$as_nl"*)
  14557. expr "X$arg" : "X\\(.*\\)$as_nl";
  14558. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14559. esac;
  14560. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14561. '
  14562. export as_echo_n_body
  14563. as_echo_n='sh -c $as_echo_n_body as_echo'
  14564. fi
  14565. export as_echo_body
  14566. as_echo='sh -c $as_echo_body as_echo'
  14567. fi
  14568. # The user is always right.
  14569. if test "${PATH_SEPARATOR+set}" != set; then
  14570. PATH_SEPARATOR=:
  14571. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14572. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14573. PATH_SEPARATOR=';'
  14574. }
  14575. fi
  14576. # IFS
  14577. # We need space, tab and new line, in precisely that order. Quoting is
  14578. # there to prevent editors from complaining about space-tab.
  14579. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14580. # splitting by setting IFS to empty value.)
  14581. IFS=" "" $as_nl"
  14582. # Find who we are. Look in the path if we contain no directory separator.
  14583. as_myself=
  14584. case $0 in #((
  14585. *[\\/]* ) as_myself=$0 ;;
  14586. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14587. for as_dir in $PATH
  14588. do
  14589. IFS=$as_save_IFS
  14590. test -z "$as_dir" && as_dir=.
  14591. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14592. done
  14593. IFS=$as_save_IFS
  14594. ;;
  14595. esac
  14596. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14597. # in which case we are not to be found in the path.
  14598. if test "x$as_myself" = x; then
  14599. as_myself=$0
  14600. fi
  14601. if test ! -f "$as_myself"; then
  14602. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14603. exit 1
  14604. fi
  14605. # Unset variables that we do not need and which cause bugs (e.g. in
  14606. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14607. # suppresses any "Segmentation fault" message there. '((' could
  14608. # trigger a bug in pdksh 5.2.14.
  14609. for as_var in BASH_ENV ENV MAIL MAILPATH
  14610. do eval test x\${$as_var+set} = xset \
  14611. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14612. done
  14613. PS1='$ '
  14614. PS2='> '
  14615. PS4='+ '
  14616. # NLS nuisances.
  14617. LC_ALL=C
  14618. export LC_ALL
  14619. LANGUAGE=C
  14620. export LANGUAGE
  14621. # CDPATH.
  14622. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14623. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14624. # ----------------------------------------
  14625. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14626. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14627. # script with STATUS, using 1 if that was 0.
  14628. as_fn_error ()
  14629. {
  14630. as_status=$1; test $as_status -eq 0 && as_status=1
  14631. if test "$4"; then
  14632. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14633. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14634. fi
  14635. $as_echo "$as_me: error: $2" >&2
  14636. as_fn_exit $as_status
  14637. } # as_fn_error
  14638. # as_fn_set_status STATUS
  14639. # -----------------------
  14640. # Set $? to STATUS, without forking.
  14641. as_fn_set_status ()
  14642. {
  14643. return $1
  14644. } # as_fn_set_status
  14645. # as_fn_exit STATUS
  14646. # -----------------
  14647. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14648. as_fn_exit ()
  14649. {
  14650. set +e
  14651. as_fn_set_status $1
  14652. exit $1
  14653. } # as_fn_exit
  14654. # as_fn_unset VAR
  14655. # ---------------
  14656. # Portably unset VAR.
  14657. as_fn_unset ()
  14658. {
  14659. { eval $1=; unset $1;}
  14660. }
  14661. as_unset=as_fn_unset
  14662. # as_fn_append VAR VALUE
  14663. # ----------------------
  14664. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14665. # advantage of any shell optimizations that allow amortized linear growth over
  14666. # repeated appends, instead of the typical quadratic growth present in naive
  14667. # implementations.
  14668. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14669. eval 'as_fn_append ()
  14670. {
  14671. eval $1+=\$2
  14672. }'
  14673. else
  14674. as_fn_append ()
  14675. {
  14676. eval $1=\$$1\$2
  14677. }
  14678. fi # as_fn_append
  14679. # as_fn_arith ARG...
  14680. # ------------------
  14681. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14682. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14683. # must be portable across $(()) and expr.
  14684. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14685. eval 'as_fn_arith ()
  14686. {
  14687. as_val=$(( $* ))
  14688. }'
  14689. else
  14690. as_fn_arith ()
  14691. {
  14692. as_val=`expr "$@" || test $? -eq 1`
  14693. }
  14694. fi # as_fn_arith
  14695. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14696. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14697. as_expr=expr
  14698. else
  14699. as_expr=false
  14700. fi
  14701. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14702. as_basename=basename
  14703. else
  14704. as_basename=false
  14705. fi
  14706. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14707. as_dirname=dirname
  14708. else
  14709. as_dirname=false
  14710. fi
  14711. as_me=`$as_basename -- "$0" ||
  14712. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14713. X"$0" : 'X\(//\)$' \| \
  14714. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14715. $as_echo X/"$0" |
  14716. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14717. s//\1/
  14718. q
  14719. }
  14720. /^X\/\(\/\/\)$/{
  14721. s//\1/
  14722. q
  14723. }
  14724. /^X\/\(\/\).*/{
  14725. s//\1/
  14726. q
  14727. }
  14728. s/.*/./; q'`
  14729. # Avoid depending upon Character Ranges.
  14730. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14731. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14732. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14733. as_cr_digits='0123456789'
  14734. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14735. ECHO_C= ECHO_N= ECHO_T=
  14736. case `echo -n x` in #(((((
  14737. -n*)
  14738. case `echo 'xy\c'` in
  14739. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14740. xy) ECHO_C='\c';;
  14741. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14742. ECHO_T=' ';;
  14743. esac;;
  14744. *)
  14745. ECHO_N='-n';;
  14746. esac
  14747. rm -f conf$$ conf$$.exe conf$$.file
  14748. if test -d conf$$.dir; then
  14749. rm -f conf$$.dir/conf$$.file
  14750. else
  14751. rm -f conf$$.dir
  14752. mkdir conf$$.dir 2>/dev/null
  14753. fi
  14754. if (echo >conf$$.file) 2>/dev/null; then
  14755. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14756. as_ln_s='ln -s'
  14757. # ... but there are two gotchas:
  14758. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14759. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14760. # In both cases, we have to default to `cp -pR'.
  14761. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14762. as_ln_s='cp -pR'
  14763. elif ln conf$$.file conf$$ 2>/dev/null; then
  14764. as_ln_s=ln
  14765. else
  14766. as_ln_s='cp -pR'
  14767. fi
  14768. else
  14769. as_ln_s='cp -pR'
  14770. fi
  14771. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14772. rmdir conf$$.dir 2>/dev/null
  14773. # as_fn_mkdir_p
  14774. # -------------
  14775. # Create "$as_dir" as a directory, including parents if necessary.
  14776. as_fn_mkdir_p ()
  14777. {
  14778. case $as_dir in #(
  14779. -*) as_dir=./$as_dir;;
  14780. esac
  14781. test -d "$as_dir" || eval $as_mkdir_p || {
  14782. as_dirs=
  14783. while :; do
  14784. case $as_dir in #(
  14785. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14786. *) as_qdir=$as_dir;;
  14787. esac
  14788. as_dirs="'$as_qdir' $as_dirs"
  14789. as_dir=`$as_dirname -- "$as_dir" ||
  14790. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14791. X"$as_dir" : 'X\(//\)[^/]' \| \
  14792. X"$as_dir" : 'X\(//\)$' \| \
  14793. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14794. $as_echo X"$as_dir" |
  14795. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14796. s//\1/
  14797. q
  14798. }
  14799. /^X\(\/\/\)[^/].*/{
  14800. s//\1/
  14801. q
  14802. }
  14803. /^X\(\/\/\)$/{
  14804. s//\1/
  14805. q
  14806. }
  14807. /^X\(\/\).*/{
  14808. s//\1/
  14809. q
  14810. }
  14811. s/.*/./; q'`
  14812. test -d "$as_dir" && break
  14813. done
  14814. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14815. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14816. } # as_fn_mkdir_p
  14817. if mkdir -p . 2>/dev/null; then
  14818. as_mkdir_p='mkdir -p "$as_dir"'
  14819. else
  14820. test -d ./-p && rmdir ./-p
  14821. as_mkdir_p=false
  14822. fi
  14823. # as_fn_executable_p FILE
  14824. # -----------------------
  14825. # Test if FILE is an executable regular file.
  14826. as_fn_executable_p ()
  14827. {
  14828. test -f "$1" && test -x "$1"
  14829. } # as_fn_executable_p
  14830. as_test_x='test -x'
  14831. as_executable_p=as_fn_executable_p
  14832. # Sed expression to map a string onto a valid CPP name.
  14833. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14834. # Sed expression to map a string onto a valid variable name.
  14835. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14836. exec 6>&1
  14837. ## ----------------------------------- ##
  14838. ## Main body of $CONFIG_STATUS script. ##
  14839. ## ----------------------------------- ##
  14840. _ASEOF
  14841. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14842. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14843. # Save the log message, to keep $0 and so on meaningful, and to
  14844. # report actual input values of CONFIG_FILES etc. instead of their
  14845. # values after options handling.
  14846. ac_log="
  14847. This file was extended by godotapkfixer) $as_me 1.0, which was
  14848. generated by GNU Autoconf 2.69. Invocation command line was
  14849. CONFIG_FILES = $CONFIG_FILES
  14850. CONFIG_HEADERS = $CONFIG_HEADERS
  14851. CONFIG_LINKS = $CONFIG_LINKS
  14852. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14853. $ $0 $@
  14854. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14855. "
  14856. _ACEOF
  14857. case $ac_config_files in *"
  14858. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14859. esac
  14860. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14861. # Files that config.status was made for.
  14862. config_files="$ac_config_files"
  14863. config_commands="$ac_config_commands"
  14864. _ACEOF
  14865. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14866. ac_cs_usage="\
  14867. \`$as_me' instantiates files and other configuration actions
  14868. from templates according to the current configuration. Unless the files
  14869. and actions are specified as TAGs, all are instantiated by default.
  14870. Usage: $0 [OPTION]... [TAG]...
  14871. -h, --help print this help, then exit
  14872. -V, --version print version number and configuration settings, then exit
  14873. --config print configuration, then exit
  14874. -q, --quiet, --silent
  14875. do not print progress messages
  14876. -d, --debug don't remove temporary files
  14877. --recheck update $as_me by reconfiguring in the same conditions
  14878. --file=FILE[:TEMPLATE]
  14879. instantiate the configuration file FILE
  14880. Configuration files:
  14881. $config_files
  14882. Configuration commands:
  14883. $config_commands
  14884. Report bugs to the package provider."
  14885. _ACEOF
  14886. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14887. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14888. ac_cs_version="\\
  14889. godotapkfixer) config.status 1.0
  14890. configured by $0, generated by GNU Autoconf 2.69,
  14891. with options \\"\$ac_cs_config\\"
  14892. Copyright (C) 2012 Free Software Foundation, Inc.
  14893. This config.status script is free software; the Free Software Foundation
  14894. gives unlimited permission to copy, distribute and modify it."
  14895. ac_pwd='$ac_pwd'
  14896. srcdir='$srcdir'
  14897. INSTALL='$INSTALL'
  14898. MKDIR_P='$MKDIR_P'
  14899. AWK='$AWK'
  14900. test -n "\$AWK" || AWK=awk
  14901. _ACEOF
  14902. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14903. # The default lists apply if the user does not specify any file.
  14904. ac_need_defaults=:
  14905. while test $# != 0
  14906. do
  14907. case $1 in
  14908. --*=?*)
  14909. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14910. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14911. ac_shift=:
  14912. ;;
  14913. --*=)
  14914. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14915. ac_optarg=
  14916. ac_shift=:
  14917. ;;
  14918. *)
  14919. ac_option=$1
  14920. ac_optarg=$2
  14921. ac_shift=shift
  14922. ;;
  14923. esac
  14924. case $ac_option in
  14925. # Handling of the options.
  14926. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14927. ac_cs_recheck=: ;;
  14928. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14929. $as_echo "$ac_cs_version"; exit ;;
  14930. --config | --confi | --conf | --con | --co | --c )
  14931. $as_echo "$ac_cs_config"; exit ;;
  14932. --debug | --debu | --deb | --de | --d | -d )
  14933. debug=: ;;
  14934. --file | --fil | --fi | --f )
  14935. $ac_shift
  14936. case $ac_optarg in
  14937. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14938. '') as_fn_error $? "missing file argument" ;;
  14939. esac
  14940. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14941. ac_need_defaults=false;;
  14942. --he | --h | --help | --hel | -h )
  14943. $as_echo "$ac_cs_usage"; exit ;;
  14944. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14945. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14946. ac_cs_silent=: ;;
  14947. # This is an error.
  14948. -*) as_fn_error $? "unrecognized option: \`$1'
  14949. Try \`$0 --help' for more information." ;;
  14950. *) as_fn_append ac_config_targets " $1"
  14951. ac_need_defaults=false ;;
  14952. esac
  14953. shift
  14954. done
  14955. ac_configure_extra_args=
  14956. if $ac_cs_silent; then
  14957. exec 6>/dev/null
  14958. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14959. fi
  14960. _ACEOF
  14961. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14962. if \$ac_cs_recheck; then
  14963. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14964. shift
  14965. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14966. CONFIG_SHELL='$SHELL'
  14967. export CONFIG_SHELL
  14968. exec "\$@"
  14969. fi
  14970. _ACEOF
  14971. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14972. exec 5>>config.log
  14973. {
  14974. echo
  14975. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14976. ## Running $as_me. ##
  14977. _ASBOX
  14978. $as_echo "$ac_log"
  14979. } >&5
  14980. _ACEOF
  14981. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14982. #
  14983. # INIT-COMMANDS
  14984. #
  14985. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14986. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14987. # if CDPATH is set.
  14988. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14989. sed_quote_subst='$sed_quote_subst'
  14990. double_quote_subst='$double_quote_subst'
  14991. delay_variable_subst='$delay_variable_subst'
  14992. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14993. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14994. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14995. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14996. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14997. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14998. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  14999. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15000. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15001. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15002. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15003. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15004. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15005. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15006. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15007. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15008. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15009. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15010. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15011. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15012. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15013. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15014. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15015. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15016. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15017. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15018. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15019. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15020. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15021. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15022. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15023. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15024. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15025. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15026. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15027. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15028. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15029. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15030. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15031. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15032. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15033. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15034. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15035. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15036. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15037. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15038. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15039. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15040. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15041. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15042. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15043. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15044. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15045. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15046. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15047. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15048. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  15049. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15050. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15051. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  15052. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15053. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15054. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  15055. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15056. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15057. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15058. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15059. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15060. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15061. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15062. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15063. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15064. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15065. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15066. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15067. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15068. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15069. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15070. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15071. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15072. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15073. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15074. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15075. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15076. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15077. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15078. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15079. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15080. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15081. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15082. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15083. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15084. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15085. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15086. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15087. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15088. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15089. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15090. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15091. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15092. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15093. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15094. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15095. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15096. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15097. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15098. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15099. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15100. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15101. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15102. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15103. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15104. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15105. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15106. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15107. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15108. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15109. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15110. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15111. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15112. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15113. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15114. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15115. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15116. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15117. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15118. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15119. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  15120. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  15121. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15122. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15123. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15124. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15125. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15126. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15127. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15128. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15129. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15130. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15131. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15132. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15133. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15134. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15135. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15136. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15137. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15138. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15139. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15140. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15141. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15142. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15143. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15144. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15145. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15146. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15147. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15148. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15149. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15150. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15151. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15152. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15153. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15154. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15155. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15156. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15157. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15158. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15159. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15160. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15161. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15162. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15163. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15164. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15165. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15166. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15167. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15168. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15169. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15170. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15171. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15172. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15173. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15174. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15175. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15176. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15177. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15178. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15179. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15180. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15181. LTCC='$LTCC'
  15182. LTCFLAGS='$LTCFLAGS'
  15183. compiler='$compiler_DEFAULT'
  15184. # A function that is used when there is no print builtin or printf.
  15185. func_fallback_echo ()
  15186. {
  15187. eval 'cat <<_LTECHO_EOF
  15188. \$1
  15189. _LTECHO_EOF'
  15190. }
  15191. # Quote evaled strings.
  15192. for var in SHELL \
  15193. ECHO \
  15194. PATH_SEPARATOR \
  15195. SED \
  15196. GREP \
  15197. EGREP \
  15198. FGREP \
  15199. LD \
  15200. NM \
  15201. LN_S \
  15202. lt_SP2NL \
  15203. lt_NL2SP \
  15204. reload_flag \
  15205. OBJDUMP \
  15206. deplibs_check_method \
  15207. file_magic_cmd \
  15208. file_magic_glob \
  15209. want_nocaseglob \
  15210. DLLTOOL \
  15211. sharedlib_from_linklib_cmd \
  15212. AR \
  15213. AR_FLAGS \
  15214. archiver_list_spec \
  15215. STRIP \
  15216. RANLIB \
  15217. CC \
  15218. CFLAGS \
  15219. compiler \
  15220. lt_cv_sys_global_symbol_pipe \
  15221. lt_cv_sys_global_symbol_to_cdecl \
  15222. lt_cv_sys_global_symbol_to_import \
  15223. lt_cv_sys_global_symbol_to_c_name_address \
  15224. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15225. lt_cv_nm_interface \
  15226. nm_file_list_spec \
  15227. lt_cv_truncate_bin \
  15228. lt_prog_compiler_no_builtin_flag \
  15229. lt_prog_compiler_pic \
  15230. lt_prog_compiler_wl \
  15231. lt_prog_compiler_static \
  15232. lt_cv_prog_compiler_c_o \
  15233. need_locks \
  15234. MANIFEST_TOOL \
  15235. DSYMUTIL \
  15236. NMEDIT \
  15237. LIPO \
  15238. OTOOL \
  15239. OTOOL64 \
  15240. shrext_cmds \
  15241. export_dynamic_flag_spec \
  15242. whole_archive_flag_spec \
  15243. compiler_needs_object \
  15244. with_gnu_ld \
  15245. allow_undefined_flag \
  15246. no_undefined_flag \
  15247. hardcode_libdir_flag_spec \
  15248. hardcode_libdir_separator \
  15249. exclude_expsyms \
  15250. include_expsyms \
  15251. file_list_spec \
  15252. variables_saved_for_relink \
  15253. libname_spec \
  15254. library_names_spec \
  15255. soname_spec \
  15256. install_override_mode \
  15257. finish_eval \
  15258. old_striplib \
  15259. striplib \
  15260. compiler_lib_search_dirs \
  15261. predep_objects \
  15262. postdep_objects \
  15263. predeps \
  15264. postdeps \
  15265. compiler_lib_search_path \
  15266. LD_CXX \
  15267. reload_flag_CXX \
  15268. compiler_CXX \
  15269. lt_prog_compiler_no_builtin_flag_CXX \
  15270. lt_prog_compiler_pic_CXX \
  15271. lt_prog_compiler_wl_CXX \
  15272. lt_prog_compiler_static_CXX \
  15273. lt_cv_prog_compiler_c_o_CXX \
  15274. export_dynamic_flag_spec_CXX \
  15275. whole_archive_flag_spec_CXX \
  15276. compiler_needs_object_CXX \
  15277. with_gnu_ld_CXX \
  15278. allow_undefined_flag_CXX \
  15279. no_undefined_flag_CXX \
  15280. hardcode_libdir_flag_spec_CXX \
  15281. hardcode_libdir_separator_CXX \
  15282. exclude_expsyms_CXX \
  15283. include_expsyms_CXX \
  15284. file_list_spec_CXX \
  15285. compiler_lib_search_dirs_CXX \
  15286. predep_objects_CXX \
  15287. postdep_objects_CXX \
  15288. predeps_CXX \
  15289. postdeps_CXX \
  15290. compiler_lib_search_path_CXX; do
  15291. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15292. *[\\\\\\\`\\"\\\$]*)
  15293. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  15294. ;;
  15295. *)
  15296. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15297. ;;
  15298. esac
  15299. done
  15300. # Double-quote double-evaled strings.
  15301. for var in reload_cmds \
  15302. old_postinstall_cmds \
  15303. old_postuninstall_cmds \
  15304. old_archive_cmds \
  15305. extract_expsyms_cmds \
  15306. old_archive_from_new_cmds \
  15307. old_archive_from_expsyms_cmds \
  15308. archive_cmds \
  15309. archive_expsym_cmds \
  15310. module_cmds \
  15311. module_expsym_cmds \
  15312. export_symbols_cmds \
  15313. prelink_cmds \
  15314. postlink_cmds \
  15315. postinstall_cmds \
  15316. postuninstall_cmds \
  15317. finish_cmds \
  15318. sys_lib_search_path_spec \
  15319. configure_time_dlsearch_path \
  15320. configure_time_lt_sys_library_path \
  15321. reload_cmds_CXX \
  15322. old_archive_cmds_CXX \
  15323. old_archive_from_new_cmds_CXX \
  15324. old_archive_from_expsyms_cmds_CXX \
  15325. archive_cmds_CXX \
  15326. archive_expsym_cmds_CXX \
  15327. module_cmds_CXX \
  15328. module_expsym_cmds_CXX \
  15329. export_symbols_cmds_CXX \
  15330. prelink_cmds_CXX \
  15331. postlink_cmds_CXX; do
  15332. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15333. *[\\\\\\\`\\"\\\$]*)
  15334. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  15335. ;;
  15336. *)
  15337. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15338. ;;
  15339. esac
  15340. done
  15341. ac_aux_dir='$ac_aux_dir'
  15342. # See if we are running on zsh, and set the options that allow our
  15343. # commands through without removal of \ escapes INIT.
  15344. if test -n "\${ZSH_VERSION+set}"; then
  15345. setopt NO_GLOB_SUBST
  15346. fi
  15347. PACKAGE='$PACKAGE'
  15348. VERSION='$VERSION'
  15349. RM='$RM'
  15350. ofile='$ofile'
  15351. _ACEOF
  15352. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15353. # Handling of arguments.
  15354. for ac_config_target in $ac_config_targets
  15355. do
  15356. case $ac_config_target in
  15357. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15358. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15359. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15360. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15361. esac
  15362. done
  15363. # If the user did not use the arguments to specify the items to instantiate,
  15364. # then the envvar interface is used. Set only those that are not.
  15365. # We use the long form for the default assignment because of an extremely
  15366. # bizarre bug on SunOS 4.1.3.
  15367. if $ac_need_defaults; then
  15368. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15369. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15370. fi
  15371. # Have a temporary directory for convenience. Make it in the build tree
  15372. # simply because there is no reason against having it here, and in addition,
  15373. # creating and moving files from /tmp can sometimes cause problems.
  15374. # Hook for its removal unless debugging.
  15375. # Note that there is a small window in which the directory will not be cleaned:
  15376. # after its creation but before its name has been assigned to `$tmp'.
  15377. $debug ||
  15378. {
  15379. tmp= ac_tmp=
  15380. trap 'exit_status=$?
  15381. : "${ac_tmp:=$tmp}"
  15382. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15383. ' 0
  15384. trap 'as_fn_exit 1' 1 2 13 15
  15385. }
  15386. # Create a (secure) tmp directory for tmp files.
  15387. {
  15388. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15389. test -d "$tmp"
  15390. } ||
  15391. {
  15392. tmp=./conf$$-$RANDOM
  15393. (umask 077 && mkdir "$tmp")
  15394. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15395. ac_tmp=$tmp
  15396. # Set up the scripts for CONFIG_FILES section.
  15397. # No need to generate them if there are no CONFIG_FILES.
  15398. # This happens for instance with `./config.status config.h'.
  15399. if test -n "$CONFIG_FILES"; then
  15400. ac_cr=`echo X | tr X '\015'`
  15401. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15402. # But we know of no other shell where ac_cr would be empty at this
  15403. # point, so we can use a bashism as a fallback.
  15404. if test "x$ac_cr" = x; then
  15405. eval ac_cr=\$\'\\r\'
  15406. fi
  15407. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15408. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15409. ac_cs_awk_cr='\\r'
  15410. else
  15411. ac_cs_awk_cr=$ac_cr
  15412. fi
  15413. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15414. _ACEOF
  15415. {
  15416. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15417. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15418. echo "_ACEOF"
  15419. } >conf$$subs.sh ||
  15420. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15421. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15422. ac_delim='%!_!# '
  15423. for ac_last_try in false false false false false :; do
  15424. . ./conf$$subs.sh ||
  15425. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15426. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15427. if test $ac_delim_n = $ac_delim_num; then
  15428. break
  15429. elif $ac_last_try; then
  15430. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15431. else
  15432. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15433. fi
  15434. done
  15435. rm -f conf$$subs.sh
  15436. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15437. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15438. _ACEOF
  15439. sed -n '
  15440. h
  15441. s/^/S["/; s/!.*/"]=/
  15442. p
  15443. g
  15444. s/^[^!]*!//
  15445. :repl
  15446. t repl
  15447. s/'"$ac_delim"'$//
  15448. t delim
  15449. :nl
  15450. h
  15451. s/\(.\{148\}\)..*/\1/
  15452. t more1
  15453. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15454. p
  15455. n
  15456. b repl
  15457. :more1
  15458. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15459. p
  15460. g
  15461. s/.\{148\}//
  15462. t nl
  15463. :delim
  15464. h
  15465. s/\(.\{148\}\)..*/\1/
  15466. t more2
  15467. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15468. p
  15469. b
  15470. :more2
  15471. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15472. p
  15473. g
  15474. s/.\{148\}//
  15475. t delim
  15476. ' <conf$$subs.awk | sed '
  15477. /^[^""]/{
  15478. N
  15479. s/\n//
  15480. }
  15481. ' >>$CONFIG_STATUS || ac_write_fail=1
  15482. rm -f conf$$subs.awk
  15483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15484. _ACAWK
  15485. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15486. for (key in S) S_is_set[key] = 1
  15487. FS = ""
  15488. }
  15489. {
  15490. line = $ 0
  15491. nfields = split(line, field, "@")
  15492. substed = 0
  15493. len = length(field[1])
  15494. for (i = 2; i < nfields; i++) {
  15495. key = field[i]
  15496. keylen = length(key)
  15497. if (S_is_set[key]) {
  15498. value = S[key]
  15499. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15500. len += length(value) + length(field[++i])
  15501. substed = 1
  15502. } else
  15503. len += 1 + keylen
  15504. }
  15505. print line
  15506. }
  15507. _ACAWK
  15508. _ACEOF
  15509. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15510. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15511. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15512. else
  15513. cat
  15514. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15515. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15516. _ACEOF
  15517. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15518. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15519. # trailing colons and then remove the whole line if VPATH becomes empty
  15520. # (actually we leave an empty line to preserve line numbers).
  15521. if test "x$srcdir" = x.; then
  15522. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15523. h
  15524. s///
  15525. s/^/:/
  15526. s/[ ]*$/:/
  15527. s/:\$(srcdir):/:/g
  15528. s/:\${srcdir}:/:/g
  15529. s/:@srcdir@:/:/g
  15530. s/^:*//
  15531. s/:*$//
  15532. x
  15533. s/\(=[ ]*\).*/\1/
  15534. G
  15535. s/\n//
  15536. s/^[^=]*=[ ]*$//
  15537. }'
  15538. fi
  15539. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15540. fi # test -n "$CONFIG_FILES"
  15541. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  15542. shift
  15543. for ac_tag
  15544. do
  15545. case $ac_tag in
  15546. :[FHLC]) ac_mode=$ac_tag; continue;;
  15547. esac
  15548. case $ac_mode$ac_tag in
  15549. :[FHL]*:*);;
  15550. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15551. :[FH]-) ac_tag=-:-;;
  15552. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15553. esac
  15554. ac_save_IFS=$IFS
  15555. IFS=:
  15556. set x $ac_tag
  15557. IFS=$ac_save_IFS
  15558. shift
  15559. ac_file=$1
  15560. shift
  15561. case $ac_mode in
  15562. :L) ac_source=$1;;
  15563. :[FH])
  15564. ac_file_inputs=
  15565. for ac_f
  15566. do
  15567. case $ac_f in
  15568. -) ac_f="$ac_tmp/stdin";;
  15569. *) # Look for the file first in the build tree, then in the source tree
  15570. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15571. # because $ac_f cannot contain `:'.
  15572. test -f "$ac_f" ||
  15573. case $ac_f in
  15574. [\\/$]*) false;;
  15575. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15576. esac ||
  15577. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15578. esac
  15579. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15580. as_fn_append ac_file_inputs " '$ac_f'"
  15581. done
  15582. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15583. # use $as_me), people would be surprised to read:
  15584. # /* config.h. Generated by config.status. */
  15585. configure_input='Generated from '`
  15586. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15587. `' by configure.'
  15588. if test x"$ac_file" != x-; then
  15589. configure_input="$ac_file. $configure_input"
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15591. $as_echo "$as_me: creating $ac_file" >&6;}
  15592. fi
  15593. # Neutralize special characters interpreted by sed in replacement strings.
  15594. case $configure_input in #(
  15595. *\&* | *\|* | *\\* )
  15596. ac_sed_conf_input=`$as_echo "$configure_input" |
  15597. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15598. *) ac_sed_conf_input=$configure_input;;
  15599. esac
  15600. case $ac_tag in
  15601. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15602. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15603. esac
  15604. ;;
  15605. esac
  15606. ac_dir=`$as_dirname -- "$ac_file" ||
  15607. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15608. X"$ac_file" : 'X\(//\)[^/]' \| \
  15609. X"$ac_file" : 'X\(//\)$' \| \
  15610. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15611. $as_echo X"$ac_file" |
  15612. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15613. s//\1/
  15614. q
  15615. }
  15616. /^X\(\/\/\)[^/].*/{
  15617. s//\1/
  15618. q
  15619. }
  15620. /^X\(\/\/\)$/{
  15621. s//\1/
  15622. q
  15623. }
  15624. /^X\(\/\).*/{
  15625. s//\1/
  15626. q
  15627. }
  15628. s/.*/./; q'`
  15629. as_dir="$ac_dir"; as_fn_mkdir_p
  15630. ac_builddir=.
  15631. case "$ac_dir" in
  15632. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15633. *)
  15634. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15635. # A ".." for each directory in $ac_dir_suffix.
  15636. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15637. case $ac_top_builddir_sub in
  15638. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15639. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15640. esac ;;
  15641. esac
  15642. ac_abs_top_builddir=$ac_pwd
  15643. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15644. # for backward compatibility:
  15645. ac_top_builddir=$ac_top_build_prefix
  15646. case $srcdir in
  15647. .) # We are building in place.
  15648. ac_srcdir=.
  15649. ac_top_srcdir=$ac_top_builddir_sub
  15650. ac_abs_top_srcdir=$ac_pwd ;;
  15651. [\\/]* | ?:[\\/]* ) # Absolute name.
  15652. ac_srcdir=$srcdir$ac_dir_suffix;
  15653. ac_top_srcdir=$srcdir
  15654. ac_abs_top_srcdir=$srcdir ;;
  15655. *) # Relative name.
  15656. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15657. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15658. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15659. esac
  15660. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15661. case $ac_mode in
  15662. :F)
  15663. #
  15664. # CONFIG_FILE
  15665. #
  15666. case $INSTALL in
  15667. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15668. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15669. esac
  15670. ac_MKDIR_P=$MKDIR_P
  15671. case $MKDIR_P in
  15672. [\\/$]* | ?:[\\/]* ) ;;
  15673. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15674. esac
  15675. _ACEOF
  15676. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15677. # If the template does not know about datarootdir, expand it.
  15678. # FIXME: This hack should be removed a few years after 2.60.
  15679. ac_datarootdir_hack=; ac_datarootdir_seen=
  15680. ac_sed_dataroot='
  15681. /datarootdir/ {
  15682. p
  15683. q
  15684. }
  15685. /@datadir@/p
  15686. /@docdir@/p
  15687. /@infodir@/p
  15688. /@localedir@/p
  15689. /@mandir@/p'
  15690. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15691. *datarootdir*) ac_datarootdir_seen=yes;;
  15692. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15694. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15695. _ACEOF
  15696. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15697. ac_datarootdir_hack='
  15698. s&@datadir@&$datadir&g
  15699. s&@docdir@&$docdir&g
  15700. s&@infodir@&$infodir&g
  15701. s&@localedir@&$localedir&g
  15702. s&@mandir@&$mandir&g
  15703. s&\\\${datarootdir}&$datarootdir&g' ;;
  15704. esac
  15705. _ACEOF
  15706. # Neutralize VPATH when `$srcdir' = `.'.
  15707. # Shell code in configure.ac might set extrasub.
  15708. # FIXME: do we really want to maintain this feature?
  15709. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15710. ac_sed_extra="$ac_vpsub
  15711. $extrasub
  15712. _ACEOF
  15713. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15714. :t
  15715. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15716. s|@configure_input@|$ac_sed_conf_input|;t t
  15717. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15718. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15719. s&@srcdir@&$ac_srcdir&;t t
  15720. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15721. s&@top_srcdir@&$ac_top_srcdir&;t t
  15722. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15723. s&@builddir@&$ac_builddir&;t t
  15724. s&@abs_builddir@&$ac_abs_builddir&;t t
  15725. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15726. s&@INSTALL@&$ac_INSTALL&;t t
  15727. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15728. $ac_datarootdir_hack
  15729. "
  15730. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15731. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15732. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15733. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15734. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15735. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15737. which seems to be undefined. Please make sure it is defined" >&5
  15738. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15739. which seems to be undefined. Please make sure it is defined" >&2;}
  15740. rm -f "$ac_tmp/stdin"
  15741. case $ac_file in
  15742. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15743. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15744. esac \
  15745. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15746. ;;
  15747. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15748. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15749. ;;
  15750. esac
  15751. case $ac_file$ac_mode in
  15752. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15753. # Older Autoconf quotes --file arguments for eval, but not when files
  15754. # are listed without --file. Let's play safe and only enable the eval
  15755. # if we detect the quoting.
  15756. case $CONFIG_FILES in
  15757. *\'*) eval set x "$CONFIG_FILES" ;;
  15758. *) set x $CONFIG_FILES ;;
  15759. esac
  15760. shift
  15761. for mf
  15762. do
  15763. # Strip MF so we end up with the name of the file.
  15764. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15765. # Check whether this is an Automake generated Makefile or not.
  15766. # We used to match only the files named 'Makefile.in', but
  15767. # some people rename them; so instead we look at the file content.
  15768. # Grep'ing the first line is not enough: some people post-process
  15769. # each Makefile.in and add a new line on top of each file to say so.
  15770. # Grep'ing the whole file is not good either: AIX grep has a line
  15771. # limit of 2048, but all sed's we know have understand at least 4000.
  15772. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15773. dirpart=`$as_dirname -- "$mf" ||
  15774. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15775. X"$mf" : 'X\(//\)[^/]' \| \
  15776. X"$mf" : 'X\(//\)$' \| \
  15777. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15778. $as_echo X"$mf" |
  15779. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15780. s//\1/
  15781. q
  15782. }
  15783. /^X\(\/\/\)[^/].*/{
  15784. s//\1/
  15785. q
  15786. }
  15787. /^X\(\/\/\)$/{
  15788. s//\1/
  15789. q
  15790. }
  15791. /^X\(\/\).*/{
  15792. s//\1/
  15793. q
  15794. }
  15795. s/.*/./; q'`
  15796. else
  15797. continue
  15798. fi
  15799. # Extract the definition of DEPDIR, am__include, and am__quote
  15800. # from the Makefile without running 'make'.
  15801. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15802. test -z "$DEPDIR" && continue
  15803. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15804. test -z "$am__include" && continue
  15805. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15806. # Find all dependency output files, they are included files with
  15807. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15808. # simplest approach to changing $(DEPDIR) to its actual value in the
  15809. # expansion.
  15810. for file in `sed -n "
  15811. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15812. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15813. # Make sure the directory exists.
  15814. test -f "$dirpart/$file" && continue
  15815. fdir=`$as_dirname -- "$file" ||
  15816. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15817. X"$file" : 'X\(//\)[^/]' \| \
  15818. X"$file" : 'X\(//\)$' \| \
  15819. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15820. $as_echo X"$file" |
  15821. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15822. s//\1/
  15823. q
  15824. }
  15825. /^X\(\/\/\)[^/].*/{
  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. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15839. # echo "creating $dirpart/$file"
  15840. echo '# dummy' > "$dirpart/$file"
  15841. done
  15842. done
  15843. }
  15844. ;;
  15845. "libtool":C)
  15846. # See if we are running on zsh, and set the options that allow our
  15847. # commands through without removal of \ escapes.
  15848. if test -n "${ZSH_VERSION+set}"; then
  15849. setopt NO_GLOB_SUBST
  15850. fi
  15851. cfgfile=${ofile}T
  15852. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15853. $RM "$cfgfile"
  15854. cat <<_LT_EOF >> "$cfgfile"
  15855. #! $SHELL
  15856. # Generated automatically by $as_me ($PACKAGE) $VERSION
  15857. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15858. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15859. # Provide generalized library-building support services.
  15860. # Written by Gordon Matzigkeit, 1996
  15861. # Copyright (C) 2014 Free Software Foundation, Inc.
  15862. # This is free software; see the source for copying conditions. There is NO
  15863. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15864. # GNU Libtool is free software; you can redistribute it and/or modify
  15865. # it under the terms of the GNU General Public License as published by
  15866. # the Free Software Foundation; either version 2 of of the License, or
  15867. # (at your option) any later version.
  15868. #
  15869. # As a special exception to the GNU General Public License, if you
  15870. # distribute this file as part of a program or library that is built
  15871. # using GNU Libtool, you may include this file under the same
  15872. # distribution terms that you use for the rest of that program.
  15873. #
  15874. # GNU Libtool is distributed in the hope that it will be useful, but
  15875. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15876. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15877. # GNU General Public License for more details.
  15878. #
  15879. # You should have received a copy of the GNU General Public License
  15880. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15881. # The names of the tagged configurations supported by this script.
  15882. available_tags='CXX '
  15883. # Configured defaults for sys_lib_dlsearch_path munging.
  15884. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  15885. # ### BEGIN LIBTOOL CONFIG
  15886. # Which release of libtool.m4 was used?
  15887. macro_version=$macro_version
  15888. macro_revision=$macro_revision
  15889. # Whether or not to build shared libraries.
  15890. build_libtool_libs=$enable_shared
  15891. # Whether or not to build static libraries.
  15892. build_old_libs=$enable_static
  15893. # What type of objects to build.
  15894. pic_mode=$pic_mode
  15895. # Whether or not to optimize for fast installation.
  15896. fast_install=$enable_fast_install
  15897. # Shared archive member basename,for filename based shared library versioning on AIX.
  15898. shared_archive_member_spec=$shared_archive_member_spec
  15899. # Shell to use when invoking shell scripts.
  15900. SHELL=$lt_SHELL
  15901. # An echo program that protects backslashes.
  15902. ECHO=$lt_ECHO
  15903. # The PATH separator for the build system.
  15904. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15905. # The host system.
  15906. host_alias=$host_alias
  15907. host=$host
  15908. host_os=$host_os
  15909. # The build system.
  15910. build_alias=$build_alias
  15911. build=$build
  15912. build_os=$build_os
  15913. # A sed program that does not truncate output.
  15914. SED=$lt_SED
  15915. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15916. Xsed="\$SED -e 1s/^X//"
  15917. # A grep program that handles long lines.
  15918. GREP=$lt_GREP
  15919. # An ERE matcher.
  15920. EGREP=$lt_EGREP
  15921. # A literal string matcher.
  15922. FGREP=$lt_FGREP
  15923. # A BSD- or MS-compatible name lister.
  15924. NM=$lt_NM
  15925. # Whether we need soft or hard links.
  15926. LN_S=$lt_LN_S
  15927. # What is the maximum length of a command?
  15928. max_cmd_len=$max_cmd_len
  15929. # Object file suffix (normally "o").
  15930. objext=$ac_objext
  15931. # Executable file suffix (normally "").
  15932. exeext=$exeext
  15933. # whether the shell understands "unset".
  15934. lt_unset=$lt_unset
  15935. # turn spaces into newlines.
  15936. SP2NL=$lt_lt_SP2NL
  15937. # turn newlines into spaces.
  15938. NL2SP=$lt_lt_NL2SP
  15939. # convert \$build file names to \$host format.
  15940. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15941. # convert \$build files to toolchain format.
  15942. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15943. # An object symbol dumper.
  15944. OBJDUMP=$lt_OBJDUMP
  15945. # Method to check whether dependent libraries are shared objects.
  15946. deplibs_check_method=$lt_deplibs_check_method
  15947. # Command to use when deplibs_check_method = "file_magic".
  15948. file_magic_cmd=$lt_file_magic_cmd
  15949. # How to find potential files when deplibs_check_method = "file_magic".
  15950. file_magic_glob=$lt_file_magic_glob
  15951. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15952. want_nocaseglob=$lt_want_nocaseglob
  15953. # DLL creation program.
  15954. DLLTOOL=$lt_DLLTOOL
  15955. # Command to associate shared and link libraries.
  15956. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15957. # The archiver.
  15958. AR=$lt_AR
  15959. # Flags to create an archive.
  15960. AR_FLAGS=$lt_AR_FLAGS
  15961. # How to feed a file listing to the archiver.
  15962. archiver_list_spec=$lt_archiver_list_spec
  15963. # A symbol stripping program.
  15964. STRIP=$lt_STRIP
  15965. # Commands used to install an old-style archive.
  15966. RANLIB=$lt_RANLIB
  15967. old_postinstall_cmds=$lt_old_postinstall_cmds
  15968. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15969. # Whether to use a lock for old archive extraction.
  15970. lock_old_archive_extraction=$lock_old_archive_extraction
  15971. # A C compiler.
  15972. LTCC=$lt_CC
  15973. # LTCC compiler flags.
  15974. LTCFLAGS=$lt_CFLAGS
  15975. # Take the output of nm and produce a listing of raw symbols and C names.
  15976. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15977. # Transform the output of nm in a proper C declaration.
  15978. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15979. # Transform the output of nm into a list of symbols to manually relocate.
  15980. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  15981. # Transform the output of nm in a C name address pair.
  15982. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15983. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15984. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15985. # The name lister interface.
  15986. nm_interface=$lt_lt_cv_nm_interface
  15987. # Specify filename containing input files for \$NM.
  15988. nm_file_list_spec=$lt_nm_file_list_spec
  15989. # The root where to search for dependent libraries,and where our libraries should be installed.
  15990. lt_sysroot=$lt_sysroot
  15991. # Command to truncate a binary pipe.
  15992. lt_truncate_bin=$lt_lt_cv_truncate_bin
  15993. # The name of the directory that contains temporary libtool files.
  15994. objdir=$objdir
  15995. # Used to examine libraries when file_magic_cmd begins with "file".
  15996. MAGIC_CMD=$MAGIC_CMD
  15997. # Must we lock files when doing compilation?
  15998. need_locks=$lt_need_locks
  15999. # Manifest tool.
  16000. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16001. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16002. DSYMUTIL=$lt_DSYMUTIL
  16003. # Tool to change global to local symbols on Mac OS X.
  16004. NMEDIT=$lt_NMEDIT
  16005. # Tool to manipulate fat objects and archives on Mac OS X.
  16006. LIPO=$lt_LIPO
  16007. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16008. OTOOL=$lt_OTOOL
  16009. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16010. OTOOL64=$lt_OTOOL64
  16011. # Old archive suffix (normally "a").
  16012. libext=$libext
  16013. # Shared library suffix (normally ".so").
  16014. shrext_cmds=$lt_shrext_cmds
  16015. # The commands to extract the exported symbol list from a shared archive.
  16016. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16017. # Variables whose values should be saved in libtool wrapper scripts and
  16018. # restored at link time.
  16019. variables_saved_for_relink=$lt_variables_saved_for_relink
  16020. # Do we need the "lib" prefix for modules?
  16021. need_lib_prefix=$need_lib_prefix
  16022. # Do we need a version for libraries?
  16023. need_version=$need_version
  16024. # Library versioning type.
  16025. version_type=$version_type
  16026. # Shared library runtime path variable.
  16027. runpath_var=$runpath_var
  16028. # Shared library path variable.
  16029. shlibpath_var=$shlibpath_var
  16030. # Is shlibpath searched before the hard-coded library search path?
  16031. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16032. # Format of library name prefix.
  16033. libname_spec=$lt_libname_spec
  16034. # List of archive names. First name is the real one, the rest are links.
  16035. # The last name is the one that the linker finds with -lNAME
  16036. library_names_spec=$lt_library_names_spec
  16037. # The coded name of the library, if different from the real name.
  16038. soname_spec=$lt_soname_spec
  16039. # Permission mode override for installation of shared libraries.
  16040. install_override_mode=$lt_install_override_mode
  16041. # Command to use after installation of a shared archive.
  16042. postinstall_cmds=$lt_postinstall_cmds
  16043. # Command to use after uninstallation of a shared archive.
  16044. postuninstall_cmds=$lt_postuninstall_cmds
  16045. # Commands used to finish a libtool library installation in a directory.
  16046. finish_cmds=$lt_finish_cmds
  16047. # As "finish_cmds", except a single script fragment to be evaled but
  16048. # not shown.
  16049. finish_eval=$lt_finish_eval
  16050. # Whether we should hardcode library paths into libraries.
  16051. hardcode_into_libs=$hardcode_into_libs
  16052. # Compile-time system search path for libraries.
  16053. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16054. # Detected run-time system search path for libraries.
  16055. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  16056. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  16057. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  16058. # Whether dlopen is supported.
  16059. dlopen_support=$enable_dlopen
  16060. # Whether dlopen of programs is supported.
  16061. dlopen_self=$enable_dlopen_self
  16062. # Whether dlopen of statically linked programs is supported.
  16063. dlopen_self_static=$enable_dlopen_self_static
  16064. # Commands to strip libraries.
  16065. old_striplib=$lt_old_striplib
  16066. striplib=$lt_striplib
  16067. # The linker used to build libraries.
  16068. LD=$lt_LD
  16069. # How to create reloadable object files.
  16070. reload_flag=$lt_reload_flag
  16071. reload_cmds=$lt_reload_cmds
  16072. # Commands used to build an old-style archive.
  16073. old_archive_cmds=$lt_old_archive_cmds
  16074. # A language specific compiler.
  16075. CC=$lt_compiler
  16076. # Is the compiler the GNU compiler?
  16077. with_gcc=$GCC
  16078. # Compiler flag to turn off builtin functions.
  16079. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16080. # Additional compiler flags for building library objects.
  16081. pic_flag=$lt_lt_prog_compiler_pic
  16082. # How to pass a linker flag through the compiler.
  16083. wl=$lt_lt_prog_compiler_wl
  16084. # Compiler flag to prevent dynamic linking.
  16085. link_static_flag=$lt_lt_prog_compiler_static
  16086. # Does compiler simultaneously support -c and -o options?
  16087. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16088. # Whether or not to add -lc for building shared libraries.
  16089. build_libtool_need_lc=$archive_cmds_need_lc
  16090. # Whether or not to disallow shared libs when runtime libs are static.
  16091. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16092. # Compiler flag to allow reflexive dlopens.
  16093. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16094. # Compiler flag to generate shared objects directly from archives.
  16095. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16096. # Whether the compiler copes with passing no objects directly.
  16097. compiler_needs_object=$lt_compiler_needs_object
  16098. # Create an old-style archive from a shared archive.
  16099. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16100. # Create a temporary old-style archive to link instead of a shared archive.
  16101. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16102. # Commands used to build a shared archive.
  16103. archive_cmds=$lt_archive_cmds
  16104. archive_expsym_cmds=$lt_archive_expsym_cmds
  16105. # Commands used to build a loadable module if different from building
  16106. # a shared archive.
  16107. module_cmds=$lt_module_cmds
  16108. module_expsym_cmds=$lt_module_expsym_cmds
  16109. # Whether we are building with GNU ld or not.
  16110. with_gnu_ld=$lt_with_gnu_ld
  16111. # Flag that allows shared libraries with undefined symbols to be built.
  16112. allow_undefined_flag=$lt_allow_undefined_flag
  16113. # Flag that enforces no undefined symbols.
  16114. no_undefined_flag=$lt_no_undefined_flag
  16115. # Flag to hardcode \$libdir into a binary during linking.
  16116. # This must work even if \$libdir does not exist
  16117. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16118. # Whether we need a single "-rpath" flag with a separated argument.
  16119. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16120. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16121. # DIR into the resulting binary.
  16122. hardcode_direct=$hardcode_direct
  16123. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16124. # DIR into the resulting binary and the resulting library dependency is
  16125. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  16126. # library is relocated.
  16127. hardcode_direct_absolute=$hardcode_direct_absolute
  16128. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16129. # into the resulting binary.
  16130. hardcode_minus_L=$hardcode_minus_L
  16131. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16132. # into the resulting binary.
  16133. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16134. # Set to "yes" if building a shared library automatically hardcodes DIR
  16135. # into the library and all subsequent libraries and executables linked
  16136. # against it.
  16137. hardcode_automatic=$hardcode_automatic
  16138. # Set to yes if linker adds runtime paths of dependent libraries
  16139. # to runtime path list.
  16140. inherit_rpath=$inherit_rpath
  16141. # Whether libtool must link a program against all its dependency libraries.
  16142. link_all_deplibs=$link_all_deplibs
  16143. # Set to "yes" if exported symbols are required.
  16144. always_export_symbols=$always_export_symbols
  16145. # The commands to list exported symbols.
  16146. export_symbols_cmds=$lt_export_symbols_cmds
  16147. # Symbols that should not be listed in the preloaded symbols.
  16148. exclude_expsyms=$lt_exclude_expsyms
  16149. # Symbols that must always be exported.
  16150. include_expsyms=$lt_include_expsyms
  16151. # Commands necessary for linking programs (against libraries) with templates.
  16152. prelink_cmds=$lt_prelink_cmds
  16153. # Commands necessary for finishing linking programs.
  16154. postlink_cmds=$lt_postlink_cmds
  16155. # Specify filename containing input files.
  16156. file_list_spec=$lt_file_list_spec
  16157. # How to hardcode a shared library path into an executable.
  16158. hardcode_action=$hardcode_action
  16159. # The directories searched by this compiler when creating a shared library.
  16160. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16161. # Dependencies to place before and after the objects being linked to
  16162. # create a shared library.
  16163. predep_objects=$lt_predep_objects
  16164. postdep_objects=$lt_postdep_objects
  16165. predeps=$lt_predeps
  16166. postdeps=$lt_postdeps
  16167. # The library search path used internally by the compiler when linking
  16168. # a shared library.
  16169. compiler_lib_search_path=$lt_compiler_lib_search_path
  16170. # ### END LIBTOOL CONFIG
  16171. _LT_EOF
  16172. cat <<'_LT_EOF' >> "$cfgfile"
  16173. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  16174. # func_munge_path_list VARIABLE PATH
  16175. # -----------------------------------
  16176. # VARIABLE is name of variable containing _space_ separated list of
  16177. # directories to be munged by the contents of PATH, which is string
  16178. # having a format:
  16179. # "DIR[:DIR]:"
  16180. # string "DIR[ DIR]" will be prepended to VARIABLE
  16181. # ":DIR[:DIR]"
  16182. # string "DIR[ DIR]" will be appended to VARIABLE
  16183. # "DIRP[:DIRP]::[DIRA:]DIRA"
  16184. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  16185. # "DIRA[ DIRA]" will be appended to VARIABLE
  16186. # "DIR[:DIR]"
  16187. # VARIABLE will be replaced by "DIR[ DIR]"
  16188. func_munge_path_list ()
  16189. {
  16190. case x$2 in
  16191. x)
  16192. ;;
  16193. *:)
  16194. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  16195. ;;
  16196. x:*)
  16197. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  16198. ;;
  16199. *::*)
  16200. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  16201. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  16202. ;;
  16203. *)
  16204. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  16205. ;;
  16206. esac
  16207. }
  16208. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  16209. func_cc_basename ()
  16210. {
  16211. for cc_temp in $*""; do
  16212. case $cc_temp in
  16213. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16214. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16215. \-*) ;;
  16216. *) break;;
  16217. esac
  16218. done
  16219. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  16220. }
  16221. # ### END FUNCTIONS SHARED WITH CONFIGURE
  16222. _LT_EOF
  16223. case $host_os in
  16224. aix3*)
  16225. cat <<\_LT_EOF >> "$cfgfile"
  16226. # AIX sometimes has problems with the GCC collect2 program. For some
  16227. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16228. # vanish in a puff of smoke.
  16229. if test set != "${COLLECT_NAMES+set}"; then
  16230. COLLECT_NAMES=
  16231. export COLLECT_NAMES
  16232. fi
  16233. _LT_EOF
  16234. ;;
  16235. esac
  16236. ltmain=$ac_aux_dir/ltmain.sh
  16237. # We use sed instead of cat because bash on DJGPP gets confused if
  16238. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16239. # text mode, it properly converts lines to CR/LF. This bash problem
  16240. # is reportedly fixed, but why not run on old versions too?
  16241. sed '$q' "$ltmain" >> "$cfgfile" \
  16242. || (rm -f "$cfgfile"; exit 1)
  16243. mv -f "$cfgfile" "$ofile" ||
  16244. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16245. chmod +x "$ofile"
  16246. cat <<_LT_EOF >> "$ofile"
  16247. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16248. # The linker used to build libraries.
  16249. LD=$lt_LD_CXX
  16250. # How to create reloadable object files.
  16251. reload_flag=$lt_reload_flag_CXX
  16252. reload_cmds=$lt_reload_cmds_CXX
  16253. # Commands used to build an old-style archive.
  16254. old_archive_cmds=$lt_old_archive_cmds_CXX
  16255. # A language specific compiler.
  16256. CC=$lt_compiler_CXX
  16257. # Is the compiler the GNU compiler?
  16258. with_gcc=$GCC_CXX
  16259. # Compiler flag to turn off builtin functions.
  16260. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16261. # Additional compiler flags for building library objects.
  16262. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16263. # How to pass a linker flag through the compiler.
  16264. wl=$lt_lt_prog_compiler_wl_CXX
  16265. # Compiler flag to prevent dynamic linking.
  16266. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16267. # Does compiler simultaneously support -c and -o options?
  16268. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16269. # Whether or not to add -lc for building shared libraries.
  16270. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16271. # Whether or not to disallow shared libs when runtime libs are static.
  16272. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16273. # Compiler flag to allow reflexive dlopens.
  16274. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16275. # Compiler flag to generate shared objects directly from archives.
  16276. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16277. # Whether the compiler copes with passing no objects directly.
  16278. compiler_needs_object=$lt_compiler_needs_object_CXX
  16279. # Create an old-style archive from a shared archive.
  16280. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16281. # Create a temporary old-style archive to link instead of a shared archive.
  16282. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16283. # Commands used to build a shared archive.
  16284. archive_cmds=$lt_archive_cmds_CXX
  16285. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16286. # Commands used to build a loadable module if different from building
  16287. # a shared archive.
  16288. module_cmds=$lt_module_cmds_CXX
  16289. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16290. # Whether we are building with GNU ld or not.
  16291. with_gnu_ld=$lt_with_gnu_ld_CXX
  16292. # Flag that allows shared libraries with undefined symbols to be built.
  16293. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16294. # Flag that enforces no undefined symbols.
  16295. no_undefined_flag=$lt_no_undefined_flag_CXX
  16296. # Flag to hardcode \$libdir into a binary during linking.
  16297. # This must work even if \$libdir does not exist
  16298. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16299. # Whether we need a single "-rpath" flag with a separated argument.
  16300. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16301. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16302. # DIR into the resulting binary.
  16303. hardcode_direct=$hardcode_direct_CXX
  16304. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16305. # DIR into the resulting binary and the resulting library dependency is
  16306. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  16307. # library is relocated.
  16308. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16309. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16310. # into the resulting binary.
  16311. hardcode_minus_L=$hardcode_minus_L_CXX
  16312. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16313. # into the resulting binary.
  16314. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16315. # Set to "yes" if building a shared library automatically hardcodes DIR
  16316. # into the library and all subsequent libraries and executables linked
  16317. # against it.
  16318. hardcode_automatic=$hardcode_automatic_CXX
  16319. # Set to yes if linker adds runtime paths of dependent libraries
  16320. # to runtime path list.
  16321. inherit_rpath=$inherit_rpath_CXX
  16322. # Whether libtool must link a program against all its dependency libraries.
  16323. link_all_deplibs=$link_all_deplibs_CXX
  16324. # Set to "yes" if exported symbols are required.
  16325. always_export_symbols=$always_export_symbols_CXX
  16326. # The commands to list exported symbols.
  16327. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16328. # Symbols that should not be listed in the preloaded symbols.
  16329. exclude_expsyms=$lt_exclude_expsyms_CXX
  16330. # Symbols that must always be exported.
  16331. include_expsyms=$lt_include_expsyms_CXX
  16332. # Commands necessary for linking programs (against libraries) with templates.
  16333. prelink_cmds=$lt_prelink_cmds_CXX
  16334. # Commands necessary for finishing linking programs.
  16335. postlink_cmds=$lt_postlink_cmds_CXX
  16336. # Specify filename containing input files.
  16337. file_list_spec=$lt_file_list_spec_CXX
  16338. # How to hardcode a shared library path into an executable.
  16339. hardcode_action=$hardcode_action_CXX
  16340. # The directories searched by this compiler when creating a shared library.
  16341. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16342. # Dependencies to place before and after the objects being linked to
  16343. # create a shared library.
  16344. predep_objects=$lt_predep_objects_CXX
  16345. postdep_objects=$lt_postdep_objects_CXX
  16346. predeps=$lt_predeps_CXX
  16347. postdeps=$lt_postdeps_CXX
  16348. # The library search path used internally by the compiler when linking
  16349. # a shared library.
  16350. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16351. # ### END LIBTOOL TAG CONFIG: CXX
  16352. _LT_EOF
  16353. ;;
  16354. esac
  16355. done # for ac_tag
  16356. as_fn_exit 0
  16357. _ACEOF
  16358. ac_clean_files=$ac_clean_files_save
  16359. test $ac_write_fail = 0 ||
  16360. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16361. # configure is writing to config.log, and then calls config.status.
  16362. # config.status does its own redirection, appending to config.log.
  16363. # Unfortunately, on DOS this fails, as config.log is still kept open
  16364. # by configure, so config.status won't be able to write to it; its
  16365. # output is simply discarded. So we exec the FD to /dev/null,
  16366. # effectively closing config.log, so it can be properly (re)opened and
  16367. # appended to by config.status. When coming back to configure, we
  16368. # need to make the FD available again.
  16369. if test "$no_create" != yes; then
  16370. ac_cs_success=:
  16371. ac_config_status_args=
  16372. test "$silent" = yes &&
  16373. ac_config_status_args="$ac_config_status_args --quiet"
  16374. exec 5>/dev/null
  16375. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16376. exec 5>>config.log
  16377. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16378. # would make configure fail if this is the last instruction.
  16379. $ac_cs_success || as_fn_exit 1
  16380. fi
  16381. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16382. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16383. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16384. fi