aclocal.m4 325 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100
  1. # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
  2. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  3. # This file is free software; the Free Software Foundation
  4. # gives unlimited permission to copy and/or distribute it,
  5. # with or without modifications, as long as this notice is preserved.
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. # PARTICULAR PURPOSE.
  10. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
  11. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  12. #
  13. # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
  14. # Written by Gordon Matzigkeit, 1996
  15. #
  16. # This file is free software; the Free Software Foundation gives
  17. # unlimited permission to copy and/or distribute it, with or without
  18. # modifications, as long as this notice is preserved.
  19. m4_define([_LT_COPYING], [dnl
  20. # Copyright (C) 2014 Free Software Foundation, Inc.
  21. # This is free software; see the source for copying conditions. There is NO
  22. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  23. # GNU Libtool is free software; you can redistribute it and/or modify
  24. # it under the terms of the GNU General Public License as published by
  25. # the Free Software Foundation; either version 2 of of the License, or
  26. # (at your option) any later version.
  27. #
  28. # As a special exception to the GNU General Public License, if you
  29. # distribute this file as part of a program or library that is built
  30. # using GNU Libtool, you may include this file under the same
  31. # distribution terms that you use for the rest of that program.
  32. #
  33. # GNU Libtool is distributed in the hope that it will be useful, but
  34. # WITHOUT ANY WARRANTY; without even the implied warranty of
  35. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  36. # GNU General Public License for more details.
  37. #
  38. # You should have received a copy of the GNU General Public License
  39. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  40. ])
  41. # serial 58 LT_INIT
  42. # LT_PREREQ(VERSION)
  43. # ------------------
  44. # Complain and exit if this libtool version is less that VERSION.
  45. m4_defun([LT_PREREQ],
  46. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  47. [m4_default([$3],
  48. [m4_fatal([Libtool version $1 or higher is required],
  49. 63)])],
  50. [$2])])
  51. # _LT_CHECK_BUILDDIR
  52. # ------------------
  53. # Complain if the absolute build directory name contains unusual characters
  54. m4_defun([_LT_CHECK_BUILDDIR],
  55. [case `pwd` in
  56. *\ * | *\ *)
  57. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  58. esac
  59. ])
  60. # LT_INIT([OPTIONS])
  61. # ------------------
  62. AC_DEFUN([LT_INIT],
  63. [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
  64. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  65. AC_BEFORE([$0], [LT_LANG])dnl
  66. AC_BEFORE([$0], [LT_OUTPUT])dnl
  67. AC_BEFORE([$0], [LTDL_INIT])dnl
  68. m4_require([_LT_CHECK_BUILDDIR])dnl
  69. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  70. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  71. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  72. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  73. dnl unless we require an AC_DEFUNed macro:
  74. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  75. AC_REQUIRE([LTSUGAR_VERSION])dnl
  76. AC_REQUIRE([LTVERSION_VERSION])dnl
  77. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  78. m4_require([_LT_PROG_LTMAIN])dnl
  79. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  80. dnl Parse OPTIONS
  81. _LT_SET_OPTIONS([$0], [$1])
  82. # This can be used to rebuild libtool when needed
  83. LIBTOOL_DEPS=$ltmain
  84. # Always use our own libtool.
  85. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  86. AC_SUBST(LIBTOOL)dnl
  87. _LT_SETUP
  88. # Only expand once:
  89. m4_define([LT_INIT])
  90. ])# LT_INIT
  91. # Old names:
  92. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  93. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  94. dnl aclocal-1.4 backwards compatibility:
  95. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  96. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  97. # _LT_PREPARE_CC_BASENAME
  98. # -----------------------
  99. m4_defun([_LT_PREPARE_CC_BASENAME], [
  100. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  101. func_cc_basename ()
  102. {
  103. for cc_temp in @S|@*""; do
  104. case $cc_temp in
  105. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  106. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  107. \-*) ;;
  108. *) break;;
  109. esac
  110. done
  111. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  112. }
  113. ])# _LT_PREPARE_CC_BASENAME
  114. # _LT_CC_BASENAME(CC)
  115. # -------------------
  116. # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
  117. # but that macro is also expanded into generated libtool script, which
  118. # arranges for $SED and $ECHO to be set by different means.
  119. m4_defun([_LT_CC_BASENAME],
  120. [m4_require([_LT_PREPARE_CC_BASENAME])dnl
  121. AC_REQUIRE([_LT_DECL_SED])dnl
  122. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  123. func_cc_basename $1
  124. cc_basename=$func_cc_basename_result
  125. ])
  126. # _LT_FILEUTILS_DEFAULTS
  127. # ----------------------
  128. # It is okay to use these file commands and assume they have been set
  129. # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
  130. m4_defun([_LT_FILEUTILS_DEFAULTS],
  131. [: ${CP="cp -f"}
  132. : ${MV="mv -f"}
  133. : ${RM="rm -f"}
  134. ])# _LT_FILEUTILS_DEFAULTS
  135. # _LT_SETUP
  136. # ---------
  137. m4_defun([_LT_SETUP],
  138. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  139. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  140. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  141. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  142. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  143. dnl
  144. _LT_DECL([], [host_alias], [0], [The host system])dnl
  145. _LT_DECL([], [host], [0])dnl
  146. _LT_DECL([], [host_os], [0])dnl
  147. dnl
  148. _LT_DECL([], [build_alias], [0], [The build system])dnl
  149. _LT_DECL([], [build], [0])dnl
  150. _LT_DECL([], [build_os], [0])dnl
  151. dnl
  152. AC_REQUIRE([AC_PROG_CC])dnl
  153. AC_REQUIRE([LT_PATH_LD])dnl
  154. AC_REQUIRE([LT_PATH_NM])dnl
  155. dnl
  156. AC_REQUIRE([AC_PROG_LN_S])dnl
  157. test -z "$LN_S" && LN_S="ln -s"
  158. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  159. dnl
  160. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  161. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  162. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  163. dnl
  164. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  165. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  166. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  167. m4_require([_LT_CMD_RELOAD])dnl
  168. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  169. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  170. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  171. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  172. m4_require([_LT_WITH_SYSROOT])dnl
  173. m4_require([_LT_CMD_TRUNCATE])dnl
  174. _LT_CONFIG_LIBTOOL_INIT([
  175. # See if we are running on zsh, and set the options that allow our
  176. # commands through without removal of \ escapes INIT.
  177. if test -n "\${ZSH_VERSION+set}"; then
  178. setopt NO_GLOB_SUBST
  179. fi
  180. ])
  181. if test -n "${ZSH_VERSION+set}"; then
  182. setopt NO_GLOB_SUBST
  183. fi
  184. _LT_CHECK_OBJDIR
  185. m4_require([_LT_TAG_COMPILER])dnl
  186. case $host_os in
  187. aix3*)
  188. # AIX sometimes has problems with the GCC collect2 program. For some
  189. # reason, if we set the COLLECT_NAMES environment variable, the problems
  190. # vanish in a puff of smoke.
  191. if test set != "${COLLECT_NAMES+set}"; then
  192. COLLECT_NAMES=
  193. export COLLECT_NAMES
  194. fi
  195. ;;
  196. esac
  197. # Global variables:
  198. ofile=libtool
  199. can_build_shared=yes
  200. # All known linkers require a '.a' archive for static linking (except MSVC,
  201. # which needs '.lib').
  202. libext=a
  203. with_gnu_ld=$lt_cv_prog_gnu_ld
  204. old_CC=$CC
  205. old_CFLAGS=$CFLAGS
  206. # Set sane defaults for various variables
  207. test -z "$CC" && CC=cc
  208. test -z "$LTCC" && LTCC=$CC
  209. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  210. test -z "$LD" && LD=ld
  211. test -z "$ac_objext" && ac_objext=o
  212. _LT_CC_BASENAME([$compiler])
  213. # Only perform the check for file, if the check method requires it
  214. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  215. case $deplibs_check_method in
  216. file_magic*)
  217. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  218. _LT_PATH_MAGIC
  219. fi
  220. ;;
  221. esac
  222. # Use C for the default configuration in the libtool script
  223. LT_SUPPORTED_TAG([CC])
  224. _LT_LANG_C_CONFIG
  225. _LT_LANG_DEFAULT_CONFIG
  226. _LT_CONFIG_COMMANDS
  227. ])# _LT_SETUP
  228. # _LT_PREPARE_SED_QUOTE_VARS
  229. # --------------------------
  230. # Define a few sed substitution that help us do robust quoting.
  231. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  232. [# Backslashify metacharacters that are still active within
  233. # double-quoted strings.
  234. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  235. # Same as above, but do not quote variable references.
  236. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  237. # Sed substitution to delay expansion of an escaped shell variable in a
  238. # double_quote_subst'ed string.
  239. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  240. # Sed substitution to delay expansion of an escaped single quote.
  241. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  242. # Sed substitution to avoid accidental globbing in evaled expressions
  243. no_glob_subst='s/\*/\\\*/g'
  244. ])
  245. # _LT_PROG_LTMAIN
  246. # ---------------
  247. # Note that this code is called both from 'configure', and 'config.status'
  248. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  249. # 'config.status' has no value for ac_aux_dir unless we are using Automake,
  250. # so we pass a copy along to make sure it has a sensible value anyway.
  251. m4_defun([_LT_PROG_LTMAIN],
  252. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  253. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  254. ltmain=$ac_aux_dir/ltmain.sh
  255. ])# _LT_PROG_LTMAIN
  256. # So that we can recreate a full libtool script including additional
  257. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  258. # in macros and then make a single call at the end using the 'libtool'
  259. # label.
  260. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  261. # ----------------------------------------
  262. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  263. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  264. [m4_ifval([$1],
  265. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  266. [$1
  267. ])])])
  268. # Initialize.
  269. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  270. # _LT_CONFIG_LIBTOOL([COMMANDS])
  271. # ------------------------------
  272. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  273. m4_define([_LT_CONFIG_LIBTOOL],
  274. [m4_ifval([$1],
  275. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  276. [$1
  277. ])])])
  278. # Initialize.
  279. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  280. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  281. # -----------------------------------------------------
  282. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  283. [_LT_CONFIG_LIBTOOL([$1])
  284. _LT_CONFIG_LIBTOOL_INIT([$2])
  285. ])
  286. # _LT_FORMAT_COMMENT([COMMENT])
  287. # -----------------------------
  288. # Add leading comment marks to the start of each line, and a trailing
  289. # full-stop to the whole comment if one is not present already.
  290. m4_define([_LT_FORMAT_COMMENT],
  291. [m4_ifval([$1], [
  292. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  293. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  294. )])
  295. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  296. # -------------------------------------------------------------------
  297. # CONFIGNAME is the name given to the value in the libtool script.
  298. # VARNAME is the (base) name used in the configure script.
  299. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  300. # VARNAME. Any other value will be used directly.
  301. m4_define([_LT_DECL],
  302. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  303. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  304. [m4_ifval([$1], [$1], [$2])])
  305. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  306. m4_ifval([$4],
  307. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  308. lt_dict_add_subkey([lt_decl_dict], [$2],
  309. [tagged?], [m4_ifval([$5], [yes], [no])])])
  310. ])
  311. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  312. # --------------------------------------------------------
  313. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  314. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  315. # ------------------------------------------------
  316. m4_define([lt_decl_tag_varnames],
  317. [_lt_decl_filter([tagged?], [yes], $@)])
  318. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  319. # ---------------------------------------------------------
  320. m4_define([_lt_decl_filter],
  321. [m4_case([$#],
  322. [0], [m4_fatal([$0: too few arguments: $#])],
  323. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  324. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  325. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  326. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  327. ])
  328. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  329. # --------------------------------------------------
  330. m4_define([lt_decl_quote_varnames],
  331. [_lt_decl_filter([value], [1], $@)])
  332. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  333. # ---------------------------------------------------
  334. m4_define([lt_decl_dquote_varnames],
  335. [_lt_decl_filter([value], [2], $@)])
  336. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  337. # ---------------------------------------------------
  338. m4_define([lt_decl_varnames_tagged],
  339. [m4_assert([$# <= 2])dnl
  340. _$0(m4_quote(m4_default([$1], [[, ]])),
  341. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  342. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  343. m4_define([_lt_decl_varnames_tagged],
  344. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  345. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  346. # ------------------------------------------------
  347. m4_define([lt_decl_all_varnames],
  348. [_$0(m4_quote(m4_default([$1], [[, ]])),
  349. m4_if([$2], [],
  350. m4_quote(lt_decl_varnames),
  351. m4_quote(m4_shift($@))))[]dnl
  352. ])
  353. m4_define([_lt_decl_all_varnames],
  354. [lt_join($@, lt_decl_varnames_tagged([$1],
  355. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  356. ])
  357. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  358. # ------------------------------------
  359. # Quote a variable value, and forward it to 'config.status' so that its
  360. # declaration there will have the same value as in 'configure'. VARNAME
  361. # must have a single quote delimited value for this to work.
  362. m4_define([_LT_CONFIG_STATUS_DECLARE],
  363. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  364. # _LT_CONFIG_STATUS_DECLARATIONS
  365. # ------------------------------
  366. # We delimit libtool config variables with single quotes, so when
  367. # we write them to config.status, we have to be sure to quote all
  368. # embedded single quotes properly. In configure, this macro expands
  369. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  370. #
  371. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  372. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  373. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  374. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  375. # _LT_LIBTOOL_TAGS
  376. # ----------------
  377. # Output comment and list of tags supported by the script
  378. m4_defun([_LT_LIBTOOL_TAGS],
  379. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  380. available_tags='_LT_TAGS'dnl
  381. ])
  382. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  383. # -----------------------------------
  384. # Extract the dictionary values for VARNAME (optionally with TAG) and
  385. # expand to a commented shell variable setting:
  386. #
  387. # # Some comment about what VAR is for.
  388. # visible_name=$lt_internal_name
  389. m4_define([_LT_LIBTOOL_DECLARE],
  390. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  391. [description])))[]dnl
  392. m4_pushdef([_libtool_name],
  393. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  394. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  395. [0], [_libtool_name=[$]$1],
  396. [1], [_libtool_name=$lt_[]$1],
  397. [2], [_libtool_name=$lt_[]$1],
  398. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  399. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  400. ])
  401. # _LT_LIBTOOL_CONFIG_VARS
  402. # -----------------------
  403. # Produce commented declarations of non-tagged libtool config variables
  404. # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
  405. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  406. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  407. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  408. [m4_foreach([_lt_var],
  409. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  410. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  411. # _LT_LIBTOOL_TAG_VARS(TAG)
  412. # -------------------------
  413. m4_define([_LT_LIBTOOL_TAG_VARS],
  414. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  415. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  416. # _LT_TAGVAR(VARNAME, [TAGNAME])
  417. # ------------------------------
  418. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  419. # _LT_CONFIG_COMMANDS
  420. # -------------------
  421. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  422. # variables for single and double quote escaping we saved from calls
  423. # to _LT_DECL, we can put quote escaped variables declarations
  424. # into 'config.status', and then the shell code to quote escape them in
  425. # for loops in 'config.status'. Finally, any additional code accumulated
  426. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  427. m4_defun([_LT_CONFIG_COMMANDS],
  428. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  429. dnl If the libtool generation code has been placed in $CONFIG_LT,
  430. dnl instead of duplicating it all over again into config.status,
  431. dnl then we will have config.status run $CONFIG_LT later, so it
  432. dnl needs to know what name is stored there:
  433. [AC_CONFIG_COMMANDS([libtool],
  434. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  435. dnl If the libtool generation code is destined for config.status,
  436. dnl expand the accumulated commands and init code now:
  437. [AC_CONFIG_COMMANDS([libtool],
  438. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  439. ])#_LT_CONFIG_COMMANDS
  440. # Initialize.
  441. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  442. [
  443. # The HP-UX ksh and POSIX shell print the target directory to stdout
  444. # if CDPATH is set.
  445. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  446. sed_quote_subst='$sed_quote_subst'
  447. double_quote_subst='$double_quote_subst'
  448. delay_variable_subst='$delay_variable_subst'
  449. _LT_CONFIG_STATUS_DECLARATIONS
  450. LTCC='$LTCC'
  451. LTCFLAGS='$LTCFLAGS'
  452. compiler='$compiler_DEFAULT'
  453. # A function that is used when there is no print builtin or printf.
  454. func_fallback_echo ()
  455. {
  456. eval 'cat <<_LTECHO_EOF
  457. \$[]1
  458. _LTECHO_EOF'
  459. }
  460. # Quote evaled strings.
  461. for var in lt_decl_all_varnames([[ \
  462. ]], lt_decl_quote_varnames); do
  463. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  464. *[[\\\\\\\`\\"\\\$]]*)
  465. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  466. ;;
  467. *)
  468. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  469. ;;
  470. esac
  471. done
  472. # Double-quote double-evaled strings.
  473. for var in lt_decl_all_varnames([[ \
  474. ]], lt_decl_dquote_varnames); do
  475. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  476. *[[\\\\\\\`\\"\\\$]]*)
  477. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  478. ;;
  479. *)
  480. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  481. ;;
  482. esac
  483. done
  484. _LT_OUTPUT_LIBTOOL_INIT
  485. ])
  486. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  487. # ------------------------------------
  488. # Generate a child script FILE with all initialization necessary to
  489. # reuse the environment learned by the parent script, and make the
  490. # file executable. If COMMENT is supplied, it is inserted after the
  491. # '#!' sequence but before initialization text begins. After this
  492. # macro, additional text can be appended to FILE to form the body of
  493. # the child script. The macro ends with non-zero status if the
  494. # file could not be fully written (such as if the disk is full).
  495. m4_ifdef([AS_INIT_GENERATED],
  496. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  497. [m4_defun([_LT_GENERATED_FILE_INIT],
  498. [m4_require([AS_PREPARE])]dnl
  499. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  500. [lt_write_fail=0
  501. cat >$1 <<_ASEOF || lt_write_fail=1
  502. #! $SHELL
  503. # Generated by $as_me.
  504. $2
  505. SHELL=\${CONFIG_SHELL-$SHELL}
  506. export SHELL
  507. _ASEOF
  508. cat >>$1 <<\_ASEOF || lt_write_fail=1
  509. AS_SHELL_SANITIZE
  510. _AS_PREPARE
  511. exec AS_MESSAGE_FD>&1
  512. _ASEOF
  513. test 0 = "$lt_write_fail" && chmod +x $1[]dnl
  514. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  515. # LT_OUTPUT
  516. # ---------
  517. # This macro allows early generation of the libtool script (before
  518. # AC_OUTPUT is called), incase it is used in configure for compilation
  519. # tests.
  520. AC_DEFUN([LT_OUTPUT],
  521. [: ${CONFIG_LT=./config.lt}
  522. AC_MSG_NOTICE([creating $CONFIG_LT])
  523. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  524. [# Run this file to recreate a libtool stub with the current configuration.])
  525. cat >>"$CONFIG_LT" <<\_LTEOF
  526. lt_cl_silent=false
  527. exec AS_MESSAGE_LOG_FD>>config.log
  528. {
  529. echo
  530. AS_BOX([Running $as_me.])
  531. } >&AS_MESSAGE_LOG_FD
  532. lt_cl_help="\
  533. '$as_me' creates a local libtool stub from the current configuration,
  534. for use in further configure time tests before the real libtool is
  535. generated.
  536. Usage: $[0] [[OPTIONS]]
  537. -h, --help print this help, then exit
  538. -V, --version print version number, then exit
  539. -q, --quiet do not print progress messages
  540. -d, --debug don't remove temporary files
  541. Report bugs to <[email protected]>."
  542. lt_cl_version="\
  543. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  544. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  545. configured by $[0], generated by m4_PACKAGE_STRING.
  546. Copyright (C) 2011 Free Software Foundation, Inc.
  547. This config.lt script is free software; the Free Software Foundation
  548. gives unlimited permision to copy, distribute and modify it."
  549. while test 0 != $[#]
  550. do
  551. case $[1] in
  552. --version | --v* | -V )
  553. echo "$lt_cl_version"; exit 0 ;;
  554. --help | --h* | -h )
  555. echo "$lt_cl_help"; exit 0 ;;
  556. --debug | --d* | -d )
  557. debug=: ;;
  558. --quiet | --q* | --silent | --s* | -q )
  559. lt_cl_silent=: ;;
  560. -*) AC_MSG_ERROR([unrecognized option: $[1]
  561. Try '$[0] --help' for more information.]) ;;
  562. *) AC_MSG_ERROR([unrecognized argument: $[1]
  563. Try '$[0] --help' for more information.]) ;;
  564. esac
  565. shift
  566. done
  567. if $lt_cl_silent; then
  568. exec AS_MESSAGE_FD>/dev/null
  569. fi
  570. _LTEOF
  571. cat >>"$CONFIG_LT" <<_LTEOF
  572. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  573. _LTEOF
  574. cat >>"$CONFIG_LT" <<\_LTEOF
  575. AC_MSG_NOTICE([creating $ofile])
  576. _LT_OUTPUT_LIBTOOL_COMMANDS
  577. AS_EXIT(0)
  578. _LTEOF
  579. chmod +x "$CONFIG_LT"
  580. # configure is writing to config.log, but config.lt does its own redirection,
  581. # appending to config.log, which fails on DOS, as config.log is still kept
  582. # open by configure. Here we exec the FD to /dev/null, effectively closing
  583. # config.log, so it can be properly (re)opened and appended to by config.lt.
  584. lt_cl_success=:
  585. test yes = "$silent" &&
  586. lt_config_lt_args="$lt_config_lt_args --quiet"
  587. exec AS_MESSAGE_LOG_FD>/dev/null
  588. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  589. exec AS_MESSAGE_LOG_FD>>config.log
  590. $lt_cl_success || AS_EXIT(1)
  591. ])# LT_OUTPUT
  592. # _LT_CONFIG(TAG)
  593. # ---------------
  594. # If TAG is the built-in tag, create an initial libtool script with a
  595. # default configuration from the untagged config vars. Otherwise add code
  596. # to config.status for appending the configuration named by TAG from the
  597. # matching tagged config vars.
  598. m4_defun([_LT_CONFIG],
  599. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  600. _LT_CONFIG_SAVE_COMMANDS([
  601. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  602. m4_if(_LT_TAG, [C], [
  603. # See if we are running on zsh, and set the options that allow our
  604. # commands through without removal of \ escapes.
  605. if test -n "${ZSH_VERSION+set}"; then
  606. setopt NO_GLOB_SUBST
  607. fi
  608. cfgfile=${ofile}T
  609. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  610. $RM "$cfgfile"
  611. cat <<_LT_EOF >> "$cfgfile"
  612. #! $SHELL
  613. # Generated automatically by $as_me ($PACKAGE) $VERSION
  614. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  615. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  616. # Provide generalized library-building support services.
  617. # Written by Gordon Matzigkeit, 1996
  618. _LT_COPYING
  619. _LT_LIBTOOL_TAGS
  620. # Configured defaults for sys_lib_dlsearch_path munging.
  621. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  622. # ### BEGIN LIBTOOL CONFIG
  623. _LT_LIBTOOL_CONFIG_VARS
  624. _LT_LIBTOOL_TAG_VARS
  625. # ### END LIBTOOL CONFIG
  626. _LT_EOF
  627. cat <<'_LT_EOF' >> "$cfgfile"
  628. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  629. _LT_PREPARE_MUNGE_PATH_LIST
  630. _LT_PREPARE_CC_BASENAME
  631. # ### END FUNCTIONS SHARED WITH CONFIGURE
  632. _LT_EOF
  633. case $host_os in
  634. aix3*)
  635. cat <<\_LT_EOF >> "$cfgfile"
  636. # AIX sometimes has problems with the GCC collect2 program. For some
  637. # reason, if we set the COLLECT_NAMES environment variable, the problems
  638. # vanish in a puff of smoke.
  639. if test set != "${COLLECT_NAMES+set}"; then
  640. COLLECT_NAMES=
  641. export COLLECT_NAMES
  642. fi
  643. _LT_EOF
  644. ;;
  645. esac
  646. _LT_PROG_LTMAIN
  647. # We use sed instead of cat because bash on DJGPP gets confused if
  648. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  649. # text mode, it properly converts lines to CR/LF. This bash problem
  650. # is reportedly fixed, but why not run on old versions too?
  651. sed '$q' "$ltmain" >> "$cfgfile" \
  652. || (rm -f "$cfgfile"; exit 1)
  653. mv -f "$cfgfile" "$ofile" ||
  654. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  655. chmod +x "$ofile"
  656. ],
  657. [cat <<_LT_EOF >> "$ofile"
  658. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  659. dnl in a comment (ie after a #).
  660. # ### BEGIN LIBTOOL TAG CONFIG: $1
  661. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  662. # ### END LIBTOOL TAG CONFIG: $1
  663. _LT_EOF
  664. ])dnl /m4_if
  665. ],
  666. [m4_if([$1], [], [
  667. PACKAGE='$PACKAGE'
  668. VERSION='$VERSION'
  669. RM='$RM'
  670. ofile='$ofile'], [])
  671. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  672. ])# _LT_CONFIG
  673. # LT_SUPPORTED_TAG(TAG)
  674. # ---------------------
  675. # Trace this macro to discover what tags are supported by the libtool
  676. # --tag option, using:
  677. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  678. AC_DEFUN([LT_SUPPORTED_TAG], [])
  679. # C support is built-in for now
  680. m4_define([_LT_LANG_C_enabled], [])
  681. m4_define([_LT_TAGS], [])
  682. # LT_LANG(LANG)
  683. # -------------
  684. # Enable libtool support for the given language if not already enabled.
  685. AC_DEFUN([LT_LANG],
  686. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  687. m4_case([$1],
  688. [C], [_LT_LANG(C)],
  689. [C++], [_LT_LANG(CXX)],
  690. [Go], [_LT_LANG(GO)],
  691. [Java], [_LT_LANG(GCJ)],
  692. [Fortran 77], [_LT_LANG(F77)],
  693. [Fortran], [_LT_LANG(FC)],
  694. [Windows Resource], [_LT_LANG(RC)],
  695. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  696. [_LT_LANG($1)],
  697. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  698. ])# LT_LANG
  699. # _LT_LANG(LANGNAME)
  700. # ------------------
  701. m4_defun([_LT_LANG],
  702. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  703. [LT_SUPPORTED_TAG([$1])dnl
  704. m4_append([_LT_TAGS], [$1 ])dnl
  705. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  706. _LT_LANG_$1_CONFIG($1)])dnl
  707. ])# _LT_LANG
  708. m4_ifndef([AC_PROG_GO], [
  709. # NOTE: This macro has been submitted for inclusion into #
  710. # GNU Autoconf as AC_PROG_GO. When it is available in #
  711. # a released version of Autoconf we should remove this #
  712. # macro and use it instead. #
  713. m4_defun([AC_PROG_GO],
  714. [AC_LANG_PUSH(Go)dnl
  715. AC_ARG_VAR([GOC], [Go compiler command])dnl
  716. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  717. _AC_ARG_VAR_LDFLAGS()dnl
  718. AC_CHECK_TOOL(GOC, gccgo)
  719. if test -z "$GOC"; then
  720. if test -n "$ac_tool_prefix"; then
  721. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  722. fi
  723. fi
  724. if test -z "$GOC"; then
  725. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  726. fi
  727. ])#m4_defun
  728. ])#m4_ifndef
  729. # _LT_LANG_DEFAULT_CONFIG
  730. # -----------------------
  731. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  732. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  733. [LT_LANG(CXX)],
  734. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  735. AC_PROVIDE_IFELSE([AC_PROG_F77],
  736. [LT_LANG(F77)],
  737. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  738. AC_PROVIDE_IFELSE([AC_PROG_FC],
  739. [LT_LANG(FC)],
  740. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  741. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  742. dnl pulling things in needlessly.
  743. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  744. [LT_LANG(GCJ)],
  745. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  746. [LT_LANG(GCJ)],
  747. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  748. [LT_LANG(GCJ)],
  749. [m4_ifdef([AC_PROG_GCJ],
  750. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  751. m4_ifdef([A][M_PROG_GCJ],
  752. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  753. m4_ifdef([LT_PROG_GCJ],
  754. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  755. AC_PROVIDE_IFELSE([AC_PROG_GO],
  756. [LT_LANG(GO)],
  757. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  758. AC_PROVIDE_IFELSE([LT_PROG_RC],
  759. [LT_LANG(RC)],
  760. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  761. ])# _LT_LANG_DEFAULT_CONFIG
  762. # Obsolete macros:
  763. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  764. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  765. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  766. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  767. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  768. dnl aclocal-1.4 backwards compatibility:
  769. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  770. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  771. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  772. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  773. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  774. # _LT_TAG_COMPILER
  775. # ----------------
  776. m4_defun([_LT_TAG_COMPILER],
  777. [AC_REQUIRE([AC_PROG_CC])dnl
  778. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  779. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  780. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  781. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  782. # If no C compiler was specified, use CC.
  783. LTCC=${LTCC-"$CC"}
  784. # If no C compiler flags were specified, use CFLAGS.
  785. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  786. # Allow CC to be a program name with arguments.
  787. compiler=$CC
  788. ])# _LT_TAG_COMPILER
  789. # _LT_COMPILER_BOILERPLATE
  790. # ------------------------
  791. # Check for compiler boilerplate output or warnings with
  792. # the simple compiler test code.
  793. m4_defun([_LT_COMPILER_BOILERPLATE],
  794. [m4_require([_LT_DECL_SED])dnl
  795. ac_outfile=conftest.$ac_objext
  796. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  797. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  798. _lt_compiler_boilerplate=`cat conftest.err`
  799. $RM conftest*
  800. ])# _LT_COMPILER_BOILERPLATE
  801. # _LT_LINKER_BOILERPLATE
  802. # ----------------------
  803. # Check for linker boilerplate output or warnings with
  804. # the simple link test code.
  805. m4_defun([_LT_LINKER_BOILERPLATE],
  806. [m4_require([_LT_DECL_SED])dnl
  807. ac_outfile=conftest.$ac_objext
  808. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  809. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  810. _lt_linker_boilerplate=`cat conftest.err`
  811. $RM -r conftest*
  812. ])# _LT_LINKER_BOILERPLATE
  813. # _LT_REQUIRED_DARWIN_CHECKS
  814. # -------------------------
  815. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  816. case $host_os in
  817. rhapsody* | darwin*)
  818. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  819. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  820. AC_CHECK_TOOL([LIPO], [lipo], [:])
  821. AC_CHECK_TOOL([OTOOL], [otool], [:])
  822. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  823. _LT_DECL([], [DSYMUTIL], [1],
  824. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  825. _LT_DECL([], [NMEDIT], [1],
  826. [Tool to change global to local symbols on Mac OS X])
  827. _LT_DECL([], [LIPO], [1],
  828. [Tool to manipulate fat objects and archives on Mac OS X])
  829. _LT_DECL([], [OTOOL], [1],
  830. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  831. _LT_DECL([], [OTOOL64], [1],
  832. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  833. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  834. [lt_cv_apple_cc_single_mod=no
  835. if test -z "$LT_MULTI_MODULE"; then
  836. # By default we will add the -single_module flag. You can override
  837. # by either setting the environment variable LT_MULTI_MODULE
  838. # non-empty at configure time, or by adding -multi_module to the
  839. # link flags.
  840. rm -rf libconftest.dylib*
  841. echo "int foo(void){return 1;}" > conftest.c
  842. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  843. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  844. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  845. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  846. _lt_result=$?
  847. # If there is a non-empty error log, and "single_module"
  848. # appears in it, assume the flag caused a linker warning
  849. if test -s conftest.err && $GREP single_module conftest.err; then
  850. cat conftest.err >&AS_MESSAGE_LOG_FD
  851. # Otherwise, if the output was created with a 0 exit code from
  852. # the compiler, it worked.
  853. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  854. lt_cv_apple_cc_single_mod=yes
  855. else
  856. cat conftest.err >&AS_MESSAGE_LOG_FD
  857. fi
  858. rm -rf libconftest.dylib*
  859. rm -f conftest.*
  860. fi])
  861. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  862. [lt_cv_ld_exported_symbols_list],
  863. [lt_cv_ld_exported_symbols_list=no
  864. save_LDFLAGS=$LDFLAGS
  865. echo "_main" > conftest.sym
  866. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  867. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  868. [lt_cv_ld_exported_symbols_list=yes],
  869. [lt_cv_ld_exported_symbols_list=no])
  870. LDFLAGS=$save_LDFLAGS
  871. ])
  872. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  873. [lt_cv_ld_force_load=no
  874. cat > conftest.c << _LT_EOF
  875. int forced_loaded() { return 2;}
  876. _LT_EOF
  877. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  878. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  879. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  880. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  881. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  882. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  883. cat > conftest.c << _LT_EOF
  884. int main() { return 0;}
  885. _LT_EOF
  886. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  887. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  888. _lt_result=$?
  889. if test -s conftest.err && $GREP force_load conftest.err; then
  890. cat conftest.err >&AS_MESSAGE_LOG_FD
  891. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  892. lt_cv_ld_force_load=yes
  893. else
  894. cat conftest.err >&AS_MESSAGE_LOG_FD
  895. fi
  896. rm -f conftest.err libconftest.a conftest conftest.c
  897. rm -rf conftest.dSYM
  898. ])
  899. case $host_os in
  900. rhapsody* | darwin1.[[012]])
  901. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  902. darwin1.*)
  903. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  904. darwin*) # darwin 5.x on
  905. # if running on 10.5 or later, the deployment target defaults
  906. # to the OS version, if on x86, and 10.4, the deployment
  907. # target defaults to 10.4. Don't you love it?
  908. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  909. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  910. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  911. 10.[[012]][[,.]]*)
  912. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  913. 10.*)
  914. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  915. esac
  916. ;;
  917. esac
  918. if test yes = "$lt_cv_apple_cc_single_mod"; then
  919. _lt_dar_single_mod='$single_module'
  920. fi
  921. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  922. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  923. else
  924. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  925. fi
  926. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  927. _lt_dsymutil='~$DSYMUTIL $lib || :'
  928. else
  929. _lt_dsymutil=
  930. fi
  931. ;;
  932. esac
  933. ])
  934. # _LT_DARWIN_LINKER_FEATURES([TAG])
  935. # ---------------------------------
  936. # Checks for linker and compiler features on darwin
  937. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  938. [
  939. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  940. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  941. _LT_TAGVAR(hardcode_direct, $1)=no
  942. _LT_TAGVAR(hardcode_automatic, $1)=yes
  943. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  944. if test yes = "$lt_cv_ld_force_load"; then
  945. _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  946. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  947. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  948. else
  949. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  950. fi
  951. _LT_TAGVAR(link_all_deplibs, $1)=yes
  952. _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
  953. case $cc_basename in
  954. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  955. *) _lt_dar_can_shared=$GCC ;;
  956. esac
  957. if test yes = "$_lt_dar_can_shared"; then
  958. output_verbose_link_cmd=func_echo_all
  959. _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  960. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  961. _LT_TAGVAR(archive_expsym_cmds, $1)="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"
  962. _LT_TAGVAR(module_expsym_cmds, $1)="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"
  963. m4_if([$1], [CXX],
  964. [ if test yes != "$lt_cv_apple_cc_single_mod"; then
  965. _LT_TAGVAR(archive_cmds, $1)="\$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"
  966. _LT_TAGVAR(archive_expsym_cmds, $1)="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"
  967. fi
  968. ],[])
  969. else
  970. _LT_TAGVAR(ld_shlibs, $1)=no
  971. fi
  972. ])
  973. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  974. # ----------------------------------
  975. # Links a minimal program and checks the executable
  976. # for the system default hardcoded library path. In most cases,
  977. # this is /usr/lib:/lib, but when the MPI compilers are used
  978. # the location of the communication and MPI libs are included too.
  979. # If we don't find anything, use the default library path according
  980. # to the aix ld manual.
  981. # Store the results from the different compilers for each TAGNAME.
  982. # Allow to override them for all tags through lt_cv_aix_libpath.
  983. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  984. [m4_require([_LT_DECL_SED])dnl
  985. if test set = "${lt_cv_aix_libpath+set}"; then
  986. aix_libpath=$lt_cv_aix_libpath
  987. else
  988. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  989. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  990. lt_aix_libpath_sed='[
  991. /Import File Strings/,/^$/ {
  992. /^0/ {
  993. s/^0 *\([^ ]*\) *$/\1/
  994. p
  995. }
  996. }]'
  997. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  998. # Check for a 64-bit object if we didn't find anything.
  999. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1000. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1001. fi],[])
  1002. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1003. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
  1004. fi
  1005. ])
  1006. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1007. fi
  1008. ])# _LT_SYS_MODULE_PATH_AIX
  1009. # _LT_SHELL_INIT(ARG)
  1010. # -------------------
  1011. m4_define([_LT_SHELL_INIT],
  1012. [m4_divert_text([M4SH-INIT], [$1
  1013. ])])# _LT_SHELL_INIT
  1014. # _LT_PROG_ECHO_BACKSLASH
  1015. # -----------------------
  1016. # Find how we can fake an echo command that does not interpret backslash.
  1017. # In particular, with Autoconf 2.60 or later we add some code to the start
  1018. # of the generated configure script that will find a shell with a builtin
  1019. # printf (that we can use as an echo command).
  1020. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1021. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1022. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1023. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1024. AC_MSG_CHECKING([how to print strings])
  1025. # Test print first, because it will be a builtin if present.
  1026. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1027. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1028. ECHO='print -r --'
  1029. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1030. ECHO='printf %s\n'
  1031. else
  1032. # Use this function as a fallback that always works.
  1033. func_fallback_echo ()
  1034. {
  1035. eval 'cat <<_LTECHO_EOF
  1036. $[]1
  1037. _LTECHO_EOF'
  1038. }
  1039. ECHO='func_fallback_echo'
  1040. fi
  1041. # func_echo_all arg...
  1042. # Invoke $ECHO with all args, space-separated.
  1043. func_echo_all ()
  1044. {
  1045. $ECHO "$*"
  1046. }
  1047. case $ECHO in
  1048. printf*) AC_MSG_RESULT([printf]) ;;
  1049. print*) AC_MSG_RESULT([print -r]) ;;
  1050. *) AC_MSG_RESULT([cat]) ;;
  1051. esac
  1052. m4_ifdef([_AS_DETECT_SUGGESTED],
  1053. [_AS_DETECT_SUGGESTED([
  1054. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1055. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1056. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1057. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1058. PATH=/empty FPATH=/empty; export PATH FPATH
  1059. test "X`printf %s $ECHO`" = "X$ECHO" \
  1060. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1061. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1062. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1063. ])# _LT_PROG_ECHO_BACKSLASH
  1064. # _LT_WITH_SYSROOT
  1065. # ----------------
  1066. AC_DEFUN([_LT_WITH_SYSROOT],
  1067. [AC_MSG_CHECKING([for sysroot])
  1068. AC_ARG_WITH([sysroot],
  1069. [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
  1070. [Search for dependent libraries within DIR (or the compiler's sysroot
  1071. if not specified).])],
  1072. [], [with_sysroot=no])
  1073. dnl lt_sysroot will always be passed unquoted. We quote it here
  1074. dnl in case the user passed a directory name.
  1075. lt_sysroot=
  1076. case $with_sysroot in #(
  1077. yes)
  1078. if test yes = "$GCC"; then
  1079. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1080. fi
  1081. ;; #(
  1082. /*)
  1083. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1084. ;; #(
  1085. no|'')
  1086. ;; #(
  1087. *)
  1088. AC_MSG_RESULT([$with_sysroot])
  1089. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1090. ;;
  1091. esac
  1092. AC_MSG_RESULT([${lt_sysroot:-no}])
  1093. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1094. [dependent libraries, and where our libraries should be installed.])])
  1095. # _LT_ENABLE_LOCK
  1096. # ---------------
  1097. m4_defun([_LT_ENABLE_LOCK],
  1098. [AC_ARG_ENABLE([libtool-lock],
  1099. [AS_HELP_STRING([--disable-libtool-lock],
  1100. [avoid locking (might break parallel builds)])])
  1101. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  1102. # Some flags need to be propagated to the compiler or linker for good
  1103. # libtool support.
  1104. case $host in
  1105. ia64-*-hpux*)
  1106. # Find out what ABI is being produced by ac_compile, and set mode
  1107. # options accordingly.
  1108. echo 'int i;' > conftest.$ac_ext
  1109. if AC_TRY_EVAL(ac_compile); then
  1110. case `/usr/bin/file conftest.$ac_objext` in
  1111. *ELF-32*)
  1112. HPUX_IA64_MODE=32
  1113. ;;
  1114. *ELF-64*)
  1115. HPUX_IA64_MODE=64
  1116. ;;
  1117. esac
  1118. fi
  1119. rm -rf conftest*
  1120. ;;
  1121. *-*-irix6*)
  1122. # Find out what ABI is being produced by ac_compile, and set linker
  1123. # options accordingly.
  1124. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1125. if AC_TRY_EVAL(ac_compile); then
  1126. if test yes = "$lt_cv_prog_gnu_ld"; then
  1127. case `/usr/bin/file conftest.$ac_objext` in
  1128. *32-bit*)
  1129. LD="${LD-ld} -melf32bsmip"
  1130. ;;
  1131. *N32*)
  1132. LD="${LD-ld} -melf32bmipn32"
  1133. ;;
  1134. *64-bit*)
  1135. LD="${LD-ld} -melf64bmip"
  1136. ;;
  1137. esac
  1138. else
  1139. case `/usr/bin/file conftest.$ac_objext` in
  1140. *32-bit*)
  1141. LD="${LD-ld} -32"
  1142. ;;
  1143. *N32*)
  1144. LD="${LD-ld} -n32"
  1145. ;;
  1146. *64-bit*)
  1147. LD="${LD-ld} -64"
  1148. ;;
  1149. esac
  1150. fi
  1151. fi
  1152. rm -rf conftest*
  1153. ;;
  1154. mips64*-*linux*)
  1155. # Find out what ABI is being produced by ac_compile, and set linker
  1156. # options accordingly.
  1157. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1158. if AC_TRY_EVAL(ac_compile); then
  1159. emul=elf
  1160. case `/usr/bin/file conftest.$ac_objext` in
  1161. *32-bit*)
  1162. emul="${emul}32"
  1163. ;;
  1164. *64-bit*)
  1165. emul="${emul}64"
  1166. ;;
  1167. esac
  1168. case `/usr/bin/file conftest.$ac_objext` in
  1169. *MSB*)
  1170. emul="${emul}btsmip"
  1171. ;;
  1172. *LSB*)
  1173. emul="${emul}ltsmip"
  1174. ;;
  1175. esac
  1176. case `/usr/bin/file conftest.$ac_objext` in
  1177. *N32*)
  1178. emul="${emul}n32"
  1179. ;;
  1180. esac
  1181. LD="${LD-ld} -m $emul"
  1182. fi
  1183. rm -rf conftest*
  1184. ;;
  1185. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  1186. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1187. # Find out what ABI is being produced by ac_compile, and set linker
  1188. # options accordingly. Note that the listed cases only cover the
  1189. # situations where additional linker options are needed (such as when
  1190. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  1191. # vice versa); the common cases where no linker options are needed do
  1192. # not appear in the list.
  1193. echo 'int i;' > conftest.$ac_ext
  1194. if AC_TRY_EVAL(ac_compile); then
  1195. case `/usr/bin/file conftest.o` in
  1196. *32-bit*)
  1197. case $host in
  1198. x86_64-*kfreebsd*-gnu)
  1199. LD="${LD-ld} -m elf_i386_fbsd"
  1200. ;;
  1201. x86_64-*linux*)
  1202. case `/usr/bin/file conftest.o` in
  1203. *x86-64*)
  1204. LD="${LD-ld} -m elf32_x86_64"
  1205. ;;
  1206. *)
  1207. LD="${LD-ld} -m elf_i386"
  1208. ;;
  1209. esac
  1210. ;;
  1211. powerpc64le-*linux*)
  1212. LD="${LD-ld} -m elf32lppclinux"
  1213. ;;
  1214. powerpc64-*linux*)
  1215. LD="${LD-ld} -m elf32ppclinux"
  1216. ;;
  1217. s390x-*linux*)
  1218. LD="${LD-ld} -m elf_s390"
  1219. ;;
  1220. sparc64-*linux*)
  1221. LD="${LD-ld} -m elf32_sparc"
  1222. ;;
  1223. esac
  1224. ;;
  1225. *64-bit*)
  1226. case $host in
  1227. x86_64-*kfreebsd*-gnu)
  1228. LD="${LD-ld} -m elf_x86_64_fbsd"
  1229. ;;
  1230. x86_64-*linux*)
  1231. LD="${LD-ld} -m elf_x86_64"
  1232. ;;
  1233. powerpcle-*linux*)
  1234. LD="${LD-ld} -m elf64lppc"
  1235. ;;
  1236. powerpc-*linux*)
  1237. LD="${LD-ld} -m elf64ppc"
  1238. ;;
  1239. s390*-*linux*|s390*-*tpf*)
  1240. LD="${LD-ld} -m elf64_s390"
  1241. ;;
  1242. sparc*-*linux*)
  1243. LD="${LD-ld} -m elf64_sparc"
  1244. ;;
  1245. esac
  1246. ;;
  1247. esac
  1248. fi
  1249. rm -rf conftest*
  1250. ;;
  1251. *-*-sco3.2v5*)
  1252. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1253. SAVE_CFLAGS=$CFLAGS
  1254. CFLAGS="$CFLAGS -belf"
  1255. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1256. [AC_LANG_PUSH(C)
  1257. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1258. AC_LANG_POP])
  1259. if test yes != "$lt_cv_cc_needs_belf"; then
  1260. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1261. CFLAGS=$SAVE_CFLAGS
  1262. fi
  1263. ;;
  1264. *-*solaris*)
  1265. # Find out what ABI is being produced by ac_compile, and set linker
  1266. # options accordingly.
  1267. echo 'int i;' > conftest.$ac_ext
  1268. if AC_TRY_EVAL(ac_compile); then
  1269. case `/usr/bin/file conftest.o` in
  1270. *64-bit*)
  1271. case $lt_cv_prog_gnu_ld in
  1272. yes*)
  1273. case $host in
  1274. i?86-*-solaris*|x86_64-*-solaris*)
  1275. LD="${LD-ld} -m elf_x86_64"
  1276. ;;
  1277. sparc*-*-solaris*)
  1278. LD="${LD-ld} -m elf64_sparc"
  1279. ;;
  1280. esac
  1281. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1282. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1283. LD=${LD-ld}_sol2
  1284. fi
  1285. ;;
  1286. *)
  1287. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1288. LD="${LD-ld} -64"
  1289. fi
  1290. ;;
  1291. esac
  1292. ;;
  1293. esac
  1294. fi
  1295. rm -rf conftest*
  1296. ;;
  1297. esac
  1298. need_locks=$enable_libtool_lock
  1299. ])# _LT_ENABLE_LOCK
  1300. # _LT_PROG_AR
  1301. # -----------
  1302. m4_defun([_LT_PROG_AR],
  1303. [AC_CHECK_TOOLS(AR, [ar], false)
  1304. : ${AR=ar}
  1305. : ${AR_FLAGS=cru}
  1306. _LT_DECL([], [AR], [1], [The archiver])
  1307. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1308. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1309. [lt_cv_ar_at_file=no
  1310. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1311. [echo conftest.$ac_objext > conftest.lst
  1312. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1313. AC_TRY_EVAL([lt_ar_try])
  1314. if test 0 -eq "$ac_status"; then
  1315. # Ensure the archiver fails upon bogus file names.
  1316. rm -f conftest.$ac_objext libconftest.a
  1317. AC_TRY_EVAL([lt_ar_try])
  1318. if test 0 -ne "$ac_status"; then
  1319. lt_cv_ar_at_file=@
  1320. fi
  1321. fi
  1322. rm -f conftest.* libconftest.a
  1323. ])
  1324. ])
  1325. if test no = "$lt_cv_ar_at_file"; then
  1326. archiver_list_spec=
  1327. else
  1328. archiver_list_spec=$lt_cv_ar_at_file
  1329. fi
  1330. _LT_DECL([], [archiver_list_spec], [1],
  1331. [How to feed a file listing to the archiver])
  1332. ])# _LT_PROG_AR
  1333. # _LT_CMD_OLD_ARCHIVE
  1334. # -------------------
  1335. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1336. [_LT_PROG_AR
  1337. AC_CHECK_TOOL(STRIP, strip, :)
  1338. test -z "$STRIP" && STRIP=:
  1339. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1340. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1341. test -z "$RANLIB" && RANLIB=:
  1342. _LT_DECL([], [RANLIB], [1],
  1343. [Commands used to install an old-style archive])
  1344. # Determine commands to create old-style static archives.
  1345. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1346. old_postinstall_cmds='chmod 644 $oldlib'
  1347. old_postuninstall_cmds=
  1348. if test -n "$RANLIB"; then
  1349. case $host_os in
  1350. bitrig* | openbsd*)
  1351. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1352. ;;
  1353. *)
  1354. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1355. ;;
  1356. esac
  1357. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1358. fi
  1359. case $host_os in
  1360. darwin*)
  1361. lock_old_archive_extraction=yes ;;
  1362. *)
  1363. lock_old_archive_extraction=no ;;
  1364. esac
  1365. _LT_DECL([], [old_postinstall_cmds], [2])
  1366. _LT_DECL([], [old_postuninstall_cmds], [2])
  1367. _LT_TAGDECL([], [old_archive_cmds], [2],
  1368. [Commands used to build an old-style archive])
  1369. _LT_DECL([], [lock_old_archive_extraction], [0],
  1370. [Whether to use a lock for old archive extraction])
  1371. ])# _LT_CMD_OLD_ARCHIVE
  1372. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1373. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1374. # ----------------------------------------------------------------
  1375. # Check whether the given compiler option works
  1376. AC_DEFUN([_LT_COMPILER_OPTION],
  1377. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1378. m4_require([_LT_DECL_SED])dnl
  1379. AC_CACHE_CHECK([$1], [$2],
  1380. [$2=no
  1381. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1382. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1383. lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
  1384. # Insert the option either (1) after the last *FLAGS variable, or
  1385. # (2) before a word containing "conftest.", or (3) at the end.
  1386. # Note that $ac_compile itself does not contain backslashes and begins
  1387. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1388. # The option is referenced via a variable to avoid confusing sed.
  1389. lt_compile=`echo "$ac_compile" | $SED \
  1390. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1391. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1392. -e 's:$: $lt_compiler_flag:'`
  1393. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1394. (eval "$lt_compile" 2>conftest.err)
  1395. ac_status=$?
  1396. cat conftest.err >&AS_MESSAGE_LOG_FD
  1397. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1398. if (exit $ac_status) && test -s "$ac_outfile"; then
  1399. # The compiler can only warn and ignore the option if not recognized
  1400. # So say no if there are warnings other than the usual output.
  1401. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1402. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1403. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1404. $2=yes
  1405. fi
  1406. fi
  1407. $RM conftest*
  1408. ])
  1409. if test yes = "[$]$2"; then
  1410. m4_if([$5], , :, [$5])
  1411. else
  1412. m4_if([$6], , :, [$6])
  1413. fi
  1414. ])# _LT_COMPILER_OPTION
  1415. # Old name:
  1416. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1417. dnl aclocal-1.4 backwards compatibility:
  1418. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1419. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1420. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1421. # ----------------------------------------------------
  1422. # Check whether the given linker option works
  1423. AC_DEFUN([_LT_LINKER_OPTION],
  1424. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1425. m4_require([_LT_DECL_SED])dnl
  1426. AC_CACHE_CHECK([$1], [$2],
  1427. [$2=no
  1428. save_LDFLAGS=$LDFLAGS
  1429. LDFLAGS="$LDFLAGS $3"
  1430. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1431. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1432. # The linker can only warn and ignore the option if not recognized
  1433. # So say no if there are warnings
  1434. if test -s conftest.err; then
  1435. # Append any errors to the config.log.
  1436. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1437. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1438. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1439. if diff conftest.exp conftest.er2 >/dev/null; then
  1440. $2=yes
  1441. fi
  1442. else
  1443. $2=yes
  1444. fi
  1445. fi
  1446. $RM -r conftest*
  1447. LDFLAGS=$save_LDFLAGS
  1448. ])
  1449. if test yes = "[$]$2"; then
  1450. m4_if([$4], , :, [$4])
  1451. else
  1452. m4_if([$5], , :, [$5])
  1453. fi
  1454. ])# _LT_LINKER_OPTION
  1455. # Old name:
  1456. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1457. dnl aclocal-1.4 backwards compatibility:
  1458. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1459. # LT_CMD_MAX_LEN
  1460. #---------------
  1461. AC_DEFUN([LT_CMD_MAX_LEN],
  1462. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1463. # find the maximum length of command line arguments
  1464. AC_MSG_CHECKING([the maximum length of command line arguments])
  1465. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1466. i=0
  1467. teststring=ABCD
  1468. case $build_os in
  1469. msdosdjgpp*)
  1470. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1471. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1472. # during glob expansion). Even if it were fixed, the result of this
  1473. # check would be larger than it should be.
  1474. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1475. ;;
  1476. gnu*)
  1477. # Under GNU Hurd, this test is not required because there is
  1478. # no limit to the length of command line arguments.
  1479. # Libtool will interpret -1 as no limit whatsoever
  1480. lt_cv_sys_max_cmd_len=-1;
  1481. ;;
  1482. cygwin* | mingw* | cegcc*)
  1483. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1484. # about 5 minutes as the teststring grows exponentially.
  1485. # Worse, since 9x/ME are not pre-emptively multitasking,
  1486. # you end up with a "frozen" computer, even though with patience
  1487. # the test eventually succeeds (with a max line length of 256k).
  1488. # Instead, let's just punt: use the minimum linelength reported by
  1489. # all of the supported platforms: 8192 (on NT/2K/XP).
  1490. lt_cv_sys_max_cmd_len=8192;
  1491. ;;
  1492. mint*)
  1493. # On MiNT this can take a long time and run out of memory.
  1494. lt_cv_sys_max_cmd_len=8192;
  1495. ;;
  1496. amigaos*)
  1497. # On AmigaOS with pdksh, this test takes hours, literally.
  1498. # So we just punt and use a minimum line length of 8192.
  1499. lt_cv_sys_max_cmd_len=8192;
  1500. ;;
  1501. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  1502. # This has been around since 386BSD, at least. Likely further.
  1503. if test -x /sbin/sysctl; then
  1504. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1505. elif test -x /usr/sbin/sysctl; then
  1506. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1507. else
  1508. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1509. fi
  1510. # And add a safety zone
  1511. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1512. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1513. ;;
  1514. interix*)
  1515. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1516. lt_cv_sys_max_cmd_len=196608
  1517. ;;
  1518. os2*)
  1519. # The test takes a long time on OS/2.
  1520. lt_cv_sys_max_cmd_len=8192
  1521. ;;
  1522. osf*)
  1523. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1524. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1525. # nice to cause kernel panics so lets avoid the loop below.
  1526. # First set a reasonable default.
  1527. lt_cv_sys_max_cmd_len=16384
  1528. #
  1529. if test -x /sbin/sysconfig; then
  1530. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1531. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1532. esac
  1533. fi
  1534. ;;
  1535. sco3.2v5*)
  1536. lt_cv_sys_max_cmd_len=102400
  1537. ;;
  1538. sysv5* | sco5v6* | sysv4.2uw2*)
  1539. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1540. if test -n "$kargmax"; then
  1541. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1542. else
  1543. lt_cv_sys_max_cmd_len=32768
  1544. fi
  1545. ;;
  1546. *)
  1547. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1548. if test -n "$lt_cv_sys_max_cmd_len" && \
  1549. test undefined != "$lt_cv_sys_max_cmd_len"; then
  1550. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1551. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1552. else
  1553. # Make teststring a little bigger before we do anything with it.
  1554. # a 1K string should be a reasonable start.
  1555. for i in 1 2 3 4 5 6 7 8; do
  1556. teststring=$teststring$teststring
  1557. done
  1558. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1559. # If test is not a shell built-in, we'll probably end up computing a
  1560. # maximum length that is only half of the actual maximum length, but
  1561. # we can't tell.
  1562. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  1563. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1564. test 17 != "$i" # 1/2 MB should be enough
  1565. do
  1566. i=`expr $i + 1`
  1567. teststring=$teststring$teststring
  1568. done
  1569. # Only check the string length outside the loop.
  1570. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1571. teststring=
  1572. # Add a significant safety factor because C++ compilers can tack on
  1573. # massive amounts of additional arguments before passing them to the
  1574. # linker. It appears as though 1/2 is a usable value.
  1575. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1576. fi
  1577. ;;
  1578. esac
  1579. ])
  1580. if test -n "$lt_cv_sys_max_cmd_len"; then
  1581. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1582. else
  1583. AC_MSG_RESULT(none)
  1584. fi
  1585. max_cmd_len=$lt_cv_sys_max_cmd_len
  1586. _LT_DECL([], [max_cmd_len], [0],
  1587. [What is the maximum length of a command?])
  1588. ])# LT_CMD_MAX_LEN
  1589. # Old name:
  1590. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1591. dnl aclocal-1.4 backwards compatibility:
  1592. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1593. # _LT_HEADER_DLFCN
  1594. # ----------------
  1595. m4_defun([_LT_HEADER_DLFCN],
  1596. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1597. ])# _LT_HEADER_DLFCN
  1598. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1599. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1600. # ----------------------------------------------------------------
  1601. m4_defun([_LT_TRY_DLOPEN_SELF],
  1602. [m4_require([_LT_HEADER_DLFCN])dnl
  1603. if test yes = "$cross_compiling"; then :
  1604. [$4]
  1605. else
  1606. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1607. lt_status=$lt_dlunknown
  1608. cat > conftest.$ac_ext <<_LT_EOF
  1609. [#line $LINENO "configure"
  1610. #include "confdefs.h"
  1611. #if HAVE_DLFCN_H
  1612. #include <dlfcn.h>
  1613. #endif
  1614. #include <stdio.h>
  1615. #ifdef RTLD_GLOBAL
  1616. # define LT_DLGLOBAL RTLD_GLOBAL
  1617. #else
  1618. # ifdef DL_GLOBAL
  1619. # define LT_DLGLOBAL DL_GLOBAL
  1620. # else
  1621. # define LT_DLGLOBAL 0
  1622. # endif
  1623. #endif
  1624. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1625. find out it does not work in some platform. */
  1626. #ifndef LT_DLLAZY_OR_NOW
  1627. # ifdef RTLD_LAZY
  1628. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1629. # else
  1630. # ifdef DL_LAZY
  1631. # define LT_DLLAZY_OR_NOW DL_LAZY
  1632. # else
  1633. # ifdef RTLD_NOW
  1634. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1635. # else
  1636. # ifdef DL_NOW
  1637. # define LT_DLLAZY_OR_NOW DL_NOW
  1638. # else
  1639. # define LT_DLLAZY_OR_NOW 0
  1640. # endif
  1641. # endif
  1642. # endif
  1643. # endif
  1644. #endif
  1645. /* When -fvisibility=hidden is used, assume the code has been annotated
  1646. correspondingly for the symbols needed. */
  1647. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1648. int fnord () __attribute__((visibility("default")));
  1649. #endif
  1650. int fnord () { return 42; }
  1651. int main ()
  1652. {
  1653. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1654. int status = $lt_dlunknown;
  1655. if (self)
  1656. {
  1657. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1658. else
  1659. {
  1660. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1661. else puts (dlerror ());
  1662. }
  1663. /* dlclose (self); */
  1664. }
  1665. else
  1666. puts (dlerror ());
  1667. return status;
  1668. }]
  1669. _LT_EOF
  1670. if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
  1671. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1672. lt_status=$?
  1673. case x$lt_status in
  1674. x$lt_dlno_uscore) $1 ;;
  1675. x$lt_dlneed_uscore) $2 ;;
  1676. x$lt_dlunknown|x*) $3 ;;
  1677. esac
  1678. else :
  1679. # compilation failed
  1680. $3
  1681. fi
  1682. fi
  1683. rm -fr conftest*
  1684. ])# _LT_TRY_DLOPEN_SELF
  1685. # LT_SYS_DLOPEN_SELF
  1686. # ------------------
  1687. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1688. [m4_require([_LT_HEADER_DLFCN])dnl
  1689. if test yes != "$enable_dlopen"; then
  1690. enable_dlopen=unknown
  1691. enable_dlopen_self=unknown
  1692. enable_dlopen_self_static=unknown
  1693. else
  1694. lt_cv_dlopen=no
  1695. lt_cv_dlopen_libs=
  1696. case $host_os in
  1697. beos*)
  1698. lt_cv_dlopen=load_add_on
  1699. lt_cv_dlopen_libs=
  1700. lt_cv_dlopen_self=yes
  1701. ;;
  1702. mingw* | pw32* | cegcc*)
  1703. lt_cv_dlopen=LoadLibrary
  1704. lt_cv_dlopen_libs=
  1705. ;;
  1706. cygwin*)
  1707. lt_cv_dlopen=dlopen
  1708. lt_cv_dlopen_libs=
  1709. ;;
  1710. darwin*)
  1711. # if libdl is installed we need to link against it
  1712. AC_CHECK_LIB([dl], [dlopen],
  1713. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
  1714. lt_cv_dlopen=dyld
  1715. lt_cv_dlopen_libs=
  1716. lt_cv_dlopen_self=yes
  1717. ])
  1718. ;;
  1719. tpf*)
  1720. # Don't try to run any link tests for TPF. We know it's impossible
  1721. # because TPF is a cross-compiler, and we know how we open DSOs.
  1722. lt_cv_dlopen=dlopen
  1723. lt_cv_dlopen_libs=
  1724. lt_cv_dlopen_self=no
  1725. ;;
  1726. *)
  1727. AC_CHECK_FUNC([shl_load],
  1728. [lt_cv_dlopen=shl_load],
  1729. [AC_CHECK_LIB([dld], [shl_load],
  1730. [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
  1731. [AC_CHECK_FUNC([dlopen],
  1732. [lt_cv_dlopen=dlopen],
  1733. [AC_CHECK_LIB([dl], [dlopen],
  1734. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
  1735. [AC_CHECK_LIB([svld], [dlopen],
  1736. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
  1737. [AC_CHECK_LIB([dld], [dld_link],
  1738. [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
  1739. ])
  1740. ])
  1741. ])
  1742. ])
  1743. ])
  1744. ;;
  1745. esac
  1746. if test no = "$lt_cv_dlopen"; then
  1747. enable_dlopen=no
  1748. else
  1749. enable_dlopen=yes
  1750. fi
  1751. case $lt_cv_dlopen in
  1752. dlopen)
  1753. save_CPPFLAGS=$CPPFLAGS
  1754. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1755. save_LDFLAGS=$LDFLAGS
  1756. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1757. save_LIBS=$LIBS
  1758. LIBS="$lt_cv_dlopen_libs $LIBS"
  1759. AC_CACHE_CHECK([whether a program can dlopen itself],
  1760. lt_cv_dlopen_self, [dnl
  1761. _LT_TRY_DLOPEN_SELF(
  1762. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1763. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1764. ])
  1765. if test yes = "$lt_cv_dlopen_self"; then
  1766. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1767. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1768. lt_cv_dlopen_self_static, [dnl
  1769. _LT_TRY_DLOPEN_SELF(
  1770. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1771. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1772. ])
  1773. fi
  1774. CPPFLAGS=$save_CPPFLAGS
  1775. LDFLAGS=$save_LDFLAGS
  1776. LIBS=$save_LIBS
  1777. ;;
  1778. esac
  1779. case $lt_cv_dlopen_self in
  1780. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1781. *) enable_dlopen_self=unknown ;;
  1782. esac
  1783. case $lt_cv_dlopen_self_static in
  1784. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1785. *) enable_dlopen_self_static=unknown ;;
  1786. esac
  1787. fi
  1788. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1789. [Whether dlopen is supported])
  1790. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1791. [Whether dlopen of programs is supported])
  1792. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1793. [Whether dlopen of statically linked programs is supported])
  1794. ])# LT_SYS_DLOPEN_SELF
  1795. # Old name:
  1796. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1797. dnl aclocal-1.4 backwards compatibility:
  1798. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1799. # _LT_COMPILER_C_O([TAGNAME])
  1800. # ---------------------------
  1801. # Check to see if options -c and -o are simultaneously supported by compiler.
  1802. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1803. m4_defun([_LT_COMPILER_C_O],
  1804. [m4_require([_LT_DECL_SED])dnl
  1805. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1806. m4_require([_LT_TAG_COMPILER])dnl
  1807. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1808. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1809. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1810. $RM -r conftest 2>/dev/null
  1811. mkdir conftest
  1812. cd conftest
  1813. mkdir out
  1814. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1815. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1816. # Insert the option either (1) after the last *FLAGS variable, or
  1817. # (2) before a word containing "conftest.", or (3) at the end.
  1818. # Note that $ac_compile itself does not contain backslashes and begins
  1819. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1820. lt_compile=`echo "$ac_compile" | $SED \
  1821. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1822. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1823. -e 's:$: $lt_compiler_flag:'`
  1824. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1825. (eval "$lt_compile" 2>out/conftest.err)
  1826. ac_status=$?
  1827. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1828. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1829. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1830. then
  1831. # The compiler can only warn and ignore the option if not recognized
  1832. # So say no if there are warnings
  1833. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1834. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1835. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1836. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1837. fi
  1838. fi
  1839. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1840. $RM conftest*
  1841. # SGI C++ compiler will create directory out/ii_files/ for
  1842. # template instantiation
  1843. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1844. $RM out/* && rmdir out
  1845. cd ..
  1846. $RM -r conftest
  1847. $RM conftest*
  1848. ])
  1849. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1850. [Does compiler simultaneously support -c and -o options?])
  1851. ])# _LT_COMPILER_C_O
  1852. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1853. # ----------------------------------
  1854. # Check to see if we can do hard links to lock some files if needed
  1855. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1856. [m4_require([_LT_ENABLE_LOCK])dnl
  1857. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1858. _LT_COMPILER_C_O([$1])
  1859. hard_links=nottested
  1860. if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
  1861. # do not overwrite the value of need_locks provided by the user
  1862. AC_MSG_CHECKING([if we can lock with hard links])
  1863. hard_links=yes
  1864. $RM conftest*
  1865. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1866. touch conftest.a
  1867. ln conftest.a conftest.b 2>&5 || hard_links=no
  1868. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1869. AC_MSG_RESULT([$hard_links])
  1870. if test no = "$hard_links"; then
  1871. AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
  1872. need_locks=warn
  1873. fi
  1874. else
  1875. need_locks=no
  1876. fi
  1877. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1878. ])# _LT_COMPILER_FILE_LOCKS
  1879. # _LT_CHECK_OBJDIR
  1880. # ----------------
  1881. m4_defun([_LT_CHECK_OBJDIR],
  1882. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1883. [rm -f .libs 2>/dev/null
  1884. mkdir .libs 2>/dev/null
  1885. if test -d .libs; then
  1886. lt_cv_objdir=.libs
  1887. else
  1888. # MS-DOS does not allow filenames that begin with a dot.
  1889. lt_cv_objdir=_libs
  1890. fi
  1891. rmdir .libs 2>/dev/null])
  1892. objdir=$lt_cv_objdir
  1893. _LT_DECL([], [objdir], [0],
  1894. [The name of the directory that contains temporary libtool files])dnl
  1895. m4_pattern_allow([LT_OBJDIR])dnl
  1896. AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
  1897. [Define to the sub-directory where libtool stores uninstalled libraries.])
  1898. ])# _LT_CHECK_OBJDIR
  1899. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1900. # --------------------------------------
  1901. # Check hardcoding attributes.
  1902. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1903. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1904. _LT_TAGVAR(hardcode_action, $1)=
  1905. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1906. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1907. test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
  1908. # We can hardcode non-existent directories.
  1909. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
  1910. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1911. # have to relink, otherwise we might link with an installed library
  1912. # when we should be linking with a yet-to-be-installed one
  1913. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
  1914. test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
  1915. # Linking always hardcodes the temporary library directory.
  1916. _LT_TAGVAR(hardcode_action, $1)=relink
  1917. else
  1918. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1919. _LT_TAGVAR(hardcode_action, $1)=immediate
  1920. fi
  1921. else
  1922. # We cannot hardcode anything, or else we can only hardcode existing
  1923. # directories.
  1924. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1925. fi
  1926. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1927. if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
  1928. test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
  1929. # Fast installation is not supported
  1930. enable_fast_install=no
  1931. elif test yes = "$shlibpath_overrides_runpath" ||
  1932. test no = "$enable_shared"; then
  1933. # Fast installation is not necessary
  1934. enable_fast_install=needless
  1935. fi
  1936. _LT_TAGDECL([], [hardcode_action], [0],
  1937. [How to hardcode a shared library path into an executable])
  1938. ])# _LT_LINKER_HARDCODE_LIBPATH
  1939. # _LT_CMD_STRIPLIB
  1940. # ----------------
  1941. m4_defun([_LT_CMD_STRIPLIB],
  1942. [m4_require([_LT_DECL_EGREP])
  1943. striplib=
  1944. old_striplib=
  1945. AC_MSG_CHECKING([whether stripping libraries is possible])
  1946. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1947. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1948. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1949. AC_MSG_RESULT([yes])
  1950. else
  1951. # FIXME - insert some real tests, host_os isn't really good enough
  1952. case $host_os in
  1953. darwin*)
  1954. if test -n "$STRIP"; then
  1955. striplib="$STRIP -x"
  1956. old_striplib="$STRIP -S"
  1957. AC_MSG_RESULT([yes])
  1958. else
  1959. AC_MSG_RESULT([no])
  1960. fi
  1961. ;;
  1962. *)
  1963. AC_MSG_RESULT([no])
  1964. ;;
  1965. esac
  1966. fi
  1967. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1968. _LT_DECL([], [striplib], [1])
  1969. ])# _LT_CMD_STRIPLIB
  1970. # _LT_PREPARE_MUNGE_PATH_LIST
  1971. # ---------------------------
  1972. # Make sure func_munge_path_list() is defined correctly.
  1973. m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
  1974. [[# func_munge_path_list VARIABLE PATH
  1975. # -----------------------------------
  1976. # VARIABLE is name of variable containing _space_ separated list of
  1977. # directories to be munged by the contents of PATH, which is string
  1978. # having a format:
  1979. # "DIR[:DIR]:"
  1980. # string "DIR[ DIR]" will be prepended to VARIABLE
  1981. # ":DIR[:DIR]"
  1982. # string "DIR[ DIR]" will be appended to VARIABLE
  1983. # "DIRP[:DIRP]::[DIRA:]DIRA"
  1984. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  1985. # "DIRA[ DIRA]" will be appended to VARIABLE
  1986. # "DIR[:DIR]"
  1987. # VARIABLE will be replaced by "DIR[ DIR]"
  1988. func_munge_path_list ()
  1989. {
  1990. case x@S|@2 in
  1991. x)
  1992. ;;
  1993. *:)
  1994. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
  1995. ;;
  1996. x:*)
  1997. eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
  1998. ;;
  1999. *::*)
  2000. eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  2001. eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
  2002. ;;
  2003. *)
  2004. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
  2005. ;;
  2006. esac
  2007. }
  2008. ]])# _LT_PREPARE_PATH_LIST
  2009. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2010. # -----------------------------
  2011. # PORTME Fill in your ld.so characteristics
  2012. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2013. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2014. m4_require([_LT_DECL_EGREP])dnl
  2015. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2016. m4_require([_LT_DECL_OBJDUMP])dnl
  2017. m4_require([_LT_DECL_SED])dnl
  2018. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  2019. m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
  2020. AC_MSG_CHECKING([dynamic linker characteristics])
  2021. m4_if([$1],
  2022. [], [
  2023. if test yes = "$GCC"; then
  2024. case $host_os in
  2025. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  2026. *) lt_awk_arg='/^libraries:/' ;;
  2027. esac
  2028. case $host_os in
  2029. mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
  2030. *) lt_sed_strip_eq='s|=/|/|g' ;;
  2031. esac
  2032. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  2033. case $lt_search_path_spec in
  2034. *\;*)
  2035. # if the path contains ";" then we assume it to be the separator
  2036. # otherwise default to the standard path separator (i.e. ":") - it is
  2037. # assumed that no part of a normal pathname contains ";" but that should
  2038. # okay in the real world where ";" in dirpaths is itself problematic.
  2039. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  2040. ;;
  2041. *)
  2042. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  2043. ;;
  2044. esac
  2045. # Ok, now we have the path, separated by spaces, we can step through it
  2046. # and add multilib dir if necessary...
  2047. lt_tmp_lt_search_path_spec=
  2048. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2049. # ...but if some path component already ends with the multilib dir we assume
  2050. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  2051. case "$lt_multi_os_dir; $lt_search_path_spec " in
  2052. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  2053. lt_multi_os_dir=
  2054. ;;
  2055. esac
  2056. for lt_sys_path in $lt_search_path_spec; do
  2057. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  2058. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  2059. elif test -n "$lt_multi_os_dir"; then
  2060. test -d "$lt_sys_path" && \
  2061. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2062. fi
  2063. done
  2064. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  2065. BEGIN {RS = " "; FS = "/|\n";} {
  2066. lt_foo = "";
  2067. lt_count = 0;
  2068. for (lt_i = NF; lt_i > 0; lt_i--) {
  2069. if ($lt_i != "" && $lt_i != ".") {
  2070. if ($lt_i == "..") {
  2071. lt_count++;
  2072. } else {
  2073. if (lt_count == 0) {
  2074. lt_foo = "/" $lt_i lt_foo;
  2075. } else {
  2076. lt_count--;
  2077. }
  2078. }
  2079. }
  2080. }
  2081. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2082. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2083. }'`
  2084. # AWK program above erroneously prepends '/' to C:/dos/paths
  2085. # for these hosts.
  2086. case $host_os in
  2087. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  2088. $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
  2089. esac
  2090. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  2091. else
  2092. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2093. fi])
  2094. library_names_spec=
  2095. libname_spec='lib$name'
  2096. soname_spec=
  2097. shrext_cmds=.so
  2098. postinstall_cmds=
  2099. postuninstall_cmds=
  2100. finish_cmds=
  2101. finish_eval=
  2102. shlibpath_var=
  2103. shlibpath_overrides_runpath=unknown
  2104. version_type=none
  2105. dynamic_linker="$host_os ld.so"
  2106. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2107. need_lib_prefix=unknown
  2108. hardcode_into_libs=no
  2109. # when you set need_version to no, make sure it does not cause -set_version
  2110. # flags to be left without arguments
  2111. need_version=unknown
  2112. AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
  2113. [User-defined run-time library search path.])
  2114. case $host_os in
  2115. aix3*)
  2116. version_type=linux # correct to gnu/linux during the next big refactor
  2117. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  2118. shlibpath_var=LIBPATH
  2119. # AIX 3 has no versioning support, so we append a major version to the name.
  2120. soname_spec='$libname$release$shared_ext$major'
  2121. ;;
  2122. aix[[4-9]]*)
  2123. version_type=linux # correct to gnu/linux during the next big refactor
  2124. need_lib_prefix=no
  2125. need_version=no
  2126. hardcode_into_libs=yes
  2127. if test ia64 = "$host_cpu"; then
  2128. # AIX 5 supports IA64
  2129. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  2130. shlibpath_var=LD_LIBRARY_PATH
  2131. else
  2132. # With GCC up to 2.95.x, collect2 would create an import file
  2133. # for dependence libraries. The import file would start with
  2134. # the line '#! .'. This would cause the generated library to
  2135. # depend on '.', always an invalid library. This was fixed in
  2136. # development snapshots of GCC prior to 3.0.
  2137. case $host_os in
  2138. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2139. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2140. echo ' yes '
  2141. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  2142. :
  2143. else
  2144. can_build_shared=no
  2145. fi
  2146. ;;
  2147. esac
  2148. # Using Import Files as archive members, it is possible to support
  2149. # filename-based versioning of shared library archives on AIX. While
  2150. # this would work for both with and without runtime linking, it will
  2151. # prevent static linking of such archives. So we do filename-based
  2152. # shared library versioning with .so extension only, which is used
  2153. # when both runtime linking and shared linking is enabled.
  2154. # Unfortunately, runtime linking may impact performance, so we do
  2155. # not want this to be the default eventually. Also, we use the
  2156. # versioned .so libs for executables only if there is the -brtl
  2157. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  2158. # To allow for filename-based versioning support, we need to create
  2159. # libNAME.so.V as an archive file, containing:
  2160. # *) an Import File, referring to the versioned filename of the
  2161. # archive as well as the shared archive member, telling the
  2162. # bitwidth (32 or 64) of that shared object, and providing the
  2163. # list of exported symbols of that shared object, eventually
  2164. # decorated with the 'weak' keyword
  2165. # *) the shared object with the F_LOADONLY flag set, to really avoid
  2166. # it being seen by the linker.
  2167. # At run time we better use the real file rather than another symlink,
  2168. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  2169. case $with_aix_soname,$aix_use_runtimelinking in
  2170. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  2171. # soname into executable. Probably we can add versioning support to
  2172. # collect2, so additional links can be useful in future.
  2173. aix,yes) # traditional libtool
  2174. dynamic_linker='AIX unversionable lib.so'
  2175. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2176. # instead of lib<name>.a to let people know that these are not
  2177. # typical AIX shared libraries.
  2178. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2179. ;;
  2180. aix,no) # traditional AIX only
  2181. dynamic_linker='AIX lib.a[(]lib.so.V[)]'
  2182. # We preserve .a as extension for shared libraries through AIX4.2
  2183. # and later when we are not doing run time linking.
  2184. library_names_spec='$libname$release.a $libname.a'
  2185. soname_spec='$libname$release$shared_ext$major'
  2186. ;;
  2187. svr4,*) # full svr4 only
  2188. dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
  2189. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  2190. # We do not specify a path in Import Files, so LIBPATH fires.
  2191. shlibpath_overrides_runpath=yes
  2192. ;;
  2193. *,yes) # both, prefer svr4
  2194. dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
  2195. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  2196. # unpreferred sharedlib libNAME.a needs extra handling
  2197. 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"'
  2198. 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"'
  2199. # We do not specify a path in Import Files, so LIBPATH fires.
  2200. shlibpath_overrides_runpath=yes
  2201. ;;
  2202. *,no) # both, prefer aix
  2203. dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
  2204. library_names_spec='$libname$release.a $libname.a'
  2205. soname_spec='$libname$release$shared_ext$major'
  2206. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  2207. 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)'
  2208. 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"'
  2209. ;;
  2210. esac
  2211. shlibpath_var=LIBPATH
  2212. fi
  2213. ;;
  2214. amigaos*)
  2215. case $host_cpu in
  2216. powerpc)
  2217. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2218. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2219. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2220. ;;
  2221. m68k)
  2222. library_names_spec='$libname.ixlibrary $libname.a'
  2223. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2224. 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'
  2225. ;;
  2226. esac
  2227. ;;
  2228. beos*)
  2229. library_names_spec='$libname$shared_ext'
  2230. dynamic_linker="$host_os ld.so"
  2231. shlibpath_var=LIBRARY_PATH
  2232. ;;
  2233. bsdi[[45]]*)
  2234. version_type=linux # correct to gnu/linux during the next big refactor
  2235. need_version=no
  2236. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2237. soname_spec='$libname$release$shared_ext$major'
  2238. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2239. shlibpath_var=LD_LIBRARY_PATH
  2240. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2241. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2242. # the default ld.so.conf also contains /usr/contrib/lib and
  2243. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2244. # libtool to hard-code these into programs
  2245. ;;
  2246. cygwin* | mingw* | pw32* | cegcc*)
  2247. version_type=windows
  2248. shrext_cmds=.dll
  2249. need_version=no
  2250. need_lib_prefix=no
  2251. case $GCC,$cc_basename in
  2252. yes,*)
  2253. # gcc
  2254. library_names_spec='$libname.dll.a'
  2255. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2256. postinstall_cmds='base_file=`basename \$file`~
  2257. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  2258. dldir=$destdir/`dirname \$dlpath`~
  2259. test -d \$dldir || mkdir -p \$dldir~
  2260. $install_prog $dir/$dlname \$dldir/$dlname~
  2261. chmod a+x \$dldir/$dlname~
  2262. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2263. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2264. fi'
  2265. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2266. dlpath=$dir/\$dldll~
  2267. $RM \$dlpath'
  2268. shlibpath_overrides_runpath=yes
  2269. case $host_os in
  2270. cygwin*)
  2271. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2272. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2273. m4_if([$1], [],[
  2274. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2275. ;;
  2276. mingw* | cegcc*)
  2277. # MinGW DLLs use traditional 'lib' prefix
  2278. soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2279. ;;
  2280. pw32*)
  2281. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2282. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2283. ;;
  2284. esac
  2285. dynamic_linker='Win32 ld.exe'
  2286. ;;
  2287. *,cl*)
  2288. # Native MSVC
  2289. libname_spec='$name'
  2290. soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2291. library_names_spec='$libname.dll.lib'
  2292. case $build_os in
  2293. mingw*)
  2294. sys_lib_search_path_spec=
  2295. lt_save_ifs=$IFS
  2296. IFS=';'
  2297. for lt_path in $LIB
  2298. do
  2299. IFS=$lt_save_ifs
  2300. # Let DOS variable expansion print the short 8.3 style file name.
  2301. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2302. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2303. done
  2304. IFS=$lt_save_ifs
  2305. # Convert to MSYS style.
  2306. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2307. ;;
  2308. cygwin*)
  2309. # Convert to unix form, then to dos form, then back to unix form
  2310. # but this time dos style (no spaces!) so that the unix form looks
  2311. # like /cygdrive/c/PROGRA~1:/cygdr...
  2312. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2313. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2314. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2315. ;;
  2316. *)
  2317. sys_lib_search_path_spec=$LIB
  2318. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2319. # It is most probably a Windows format PATH.
  2320. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2321. else
  2322. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2323. fi
  2324. # FIXME: find the short name or the path components, as spaces are
  2325. # common. (e.g. "Program Files" -> "PROGRA~1")
  2326. ;;
  2327. esac
  2328. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2329. postinstall_cmds='base_file=`basename \$file`~
  2330. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  2331. dldir=$destdir/`dirname \$dlpath`~
  2332. test -d \$dldir || mkdir -p \$dldir~
  2333. $install_prog $dir/$dlname \$dldir/$dlname'
  2334. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2335. dlpath=$dir/\$dldll~
  2336. $RM \$dlpath'
  2337. shlibpath_overrides_runpath=yes
  2338. dynamic_linker='Win32 link.exe'
  2339. ;;
  2340. *)
  2341. # Assume MSVC wrapper
  2342. library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
  2343. dynamic_linker='Win32 ld.exe'
  2344. ;;
  2345. esac
  2346. # FIXME: first we should search . and the directory the executable is in
  2347. shlibpath_var=PATH
  2348. ;;
  2349. darwin* | rhapsody*)
  2350. dynamic_linker="$host_os dyld"
  2351. version_type=darwin
  2352. need_lib_prefix=no
  2353. need_version=no
  2354. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  2355. soname_spec='$libname$release$major$shared_ext'
  2356. shlibpath_overrides_runpath=yes
  2357. shlibpath_var=DYLD_LIBRARY_PATH
  2358. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2359. m4_if([$1], [],[
  2360. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2361. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2362. ;;
  2363. dgux*)
  2364. version_type=linux # correct to gnu/linux during the next big refactor
  2365. need_lib_prefix=no
  2366. need_version=no
  2367. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2368. soname_spec='$libname$release$shared_ext$major'
  2369. shlibpath_var=LD_LIBRARY_PATH
  2370. ;;
  2371. freebsd* | dragonfly*)
  2372. # DragonFly does not have aout. When/if they implement a new
  2373. # versioning mechanism, adjust this.
  2374. if test -x /usr/bin/objformat; then
  2375. objformat=`/usr/bin/objformat`
  2376. else
  2377. case $host_os in
  2378. freebsd[[23]].*) objformat=aout ;;
  2379. *) objformat=elf ;;
  2380. esac
  2381. fi
  2382. version_type=freebsd-$objformat
  2383. case $version_type in
  2384. freebsd-elf*)
  2385. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2386. soname_spec='$libname$release$shared_ext$major'
  2387. need_version=no
  2388. need_lib_prefix=no
  2389. ;;
  2390. freebsd-*)
  2391. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2392. need_version=yes
  2393. ;;
  2394. esac
  2395. shlibpath_var=LD_LIBRARY_PATH
  2396. case $host_os in
  2397. freebsd2.*)
  2398. shlibpath_overrides_runpath=yes
  2399. ;;
  2400. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2401. shlibpath_overrides_runpath=yes
  2402. hardcode_into_libs=yes
  2403. ;;
  2404. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2405. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2406. shlibpath_overrides_runpath=no
  2407. hardcode_into_libs=yes
  2408. ;;
  2409. *) # from 4.6 on, and DragonFly
  2410. shlibpath_overrides_runpath=yes
  2411. hardcode_into_libs=yes
  2412. ;;
  2413. esac
  2414. ;;
  2415. haiku*)
  2416. version_type=linux # correct to gnu/linux during the next big refactor
  2417. need_lib_prefix=no
  2418. need_version=no
  2419. dynamic_linker="$host_os runtime_loader"
  2420. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2421. soname_spec='$libname$release$shared_ext$major'
  2422. shlibpath_var=LIBRARY_PATH
  2423. shlibpath_overrides_runpath=no
  2424. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2425. hardcode_into_libs=yes
  2426. ;;
  2427. hpux9* | hpux10* | hpux11*)
  2428. # Give a soname corresponding to the major version so that dld.sl refuses to
  2429. # link against other versions.
  2430. version_type=sunos
  2431. need_lib_prefix=no
  2432. need_version=no
  2433. case $host_cpu in
  2434. ia64*)
  2435. shrext_cmds='.so'
  2436. hardcode_into_libs=yes
  2437. dynamic_linker="$host_os dld.so"
  2438. shlibpath_var=LD_LIBRARY_PATH
  2439. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2440. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2441. soname_spec='$libname$release$shared_ext$major'
  2442. if test 32 = "$HPUX_IA64_MODE"; then
  2443. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2444. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  2445. else
  2446. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2447. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  2448. fi
  2449. ;;
  2450. hppa*64*)
  2451. shrext_cmds='.sl'
  2452. hardcode_into_libs=yes
  2453. dynamic_linker="$host_os dld.sl"
  2454. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2455. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2456. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2457. soname_spec='$libname$release$shared_ext$major'
  2458. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2459. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2460. ;;
  2461. *)
  2462. shrext_cmds='.sl'
  2463. dynamic_linker="$host_os dld.sl"
  2464. shlibpath_var=SHLIB_PATH
  2465. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2466. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2467. soname_spec='$libname$release$shared_ext$major'
  2468. ;;
  2469. esac
  2470. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2471. postinstall_cmds='chmod 555 $lib'
  2472. # or fails outright, so override atomically:
  2473. install_override_mode=555
  2474. ;;
  2475. interix[[3-9]]*)
  2476. version_type=linux # correct to gnu/linux during the next big refactor
  2477. need_lib_prefix=no
  2478. need_version=no
  2479. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2480. soname_spec='$libname$release$shared_ext$major'
  2481. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2482. shlibpath_var=LD_LIBRARY_PATH
  2483. shlibpath_overrides_runpath=no
  2484. hardcode_into_libs=yes
  2485. ;;
  2486. irix5* | irix6* | nonstopux*)
  2487. case $host_os in
  2488. nonstopux*) version_type=nonstopux ;;
  2489. *)
  2490. if test yes = "$lt_cv_prog_gnu_ld"; then
  2491. version_type=linux # correct to gnu/linux during the next big refactor
  2492. else
  2493. version_type=irix
  2494. fi ;;
  2495. esac
  2496. need_lib_prefix=no
  2497. need_version=no
  2498. soname_spec='$libname$release$shared_ext$major'
  2499. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  2500. case $host_os in
  2501. irix5* | nonstopux*)
  2502. libsuff= shlibsuff=
  2503. ;;
  2504. *)
  2505. case $LD in # libtool.m4 will add one of these switches to LD
  2506. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2507. libsuff= shlibsuff= libmagic=32-bit;;
  2508. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2509. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2510. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2511. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2512. *) libsuff= shlibsuff= libmagic=never-match;;
  2513. esac
  2514. ;;
  2515. esac
  2516. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2517. shlibpath_overrides_runpath=no
  2518. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  2519. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  2520. hardcode_into_libs=yes
  2521. ;;
  2522. # No shared lib support for Linux oldld, aout, or coff.
  2523. linux*oldld* | linux*aout* | linux*coff*)
  2524. dynamic_linker=no
  2525. ;;
  2526. linux*android*)
  2527. version_type=none # Android doesn't support versioned libraries.
  2528. need_lib_prefix=no
  2529. need_version=no
  2530. library_names_spec='$libname$release$shared_ext'
  2531. soname_spec='$libname$release$shared_ext'
  2532. finish_cmds=
  2533. shlibpath_var=LD_LIBRARY_PATH
  2534. shlibpath_overrides_runpath=yes
  2535. # This implies no fast_install, which is unacceptable.
  2536. # Some rework will be needed to allow for fast_install
  2537. # before this can be enabled.
  2538. hardcode_into_libs=yes
  2539. dynamic_linker='Android linker'
  2540. # Don't embed -rpath directories since the linker doesn't support them.
  2541. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2542. ;;
  2543. # This must be glibc/ELF.
  2544. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  2545. version_type=linux # correct to gnu/linux during the next big refactor
  2546. need_lib_prefix=no
  2547. need_version=no
  2548. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2549. soname_spec='$libname$release$shared_ext$major'
  2550. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2551. shlibpath_var=LD_LIBRARY_PATH
  2552. shlibpath_overrides_runpath=no
  2553. # Some binutils ld are patched to set DT_RUNPATH
  2554. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2555. [lt_cv_shlibpath_overrides_runpath=no
  2556. save_LDFLAGS=$LDFLAGS
  2557. save_libdir=$libdir
  2558. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2559. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2560. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2561. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2562. [lt_cv_shlibpath_overrides_runpath=yes])])
  2563. LDFLAGS=$save_LDFLAGS
  2564. libdir=$save_libdir
  2565. ])
  2566. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2567. # This implies no fast_install, which is unacceptable.
  2568. # Some rework will be needed to allow for fast_install
  2569. # before this can be enabled.
  2570. hardcode_into_libs=yes
  2571. # Add ABI-specific directories to the system library path.
  2572. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  2573. # Ideally, we could use ldconfig to report *all* directores which are
  2574. # searched for libraries, however this is still not possible. Aside from not
  2575. # being certain /sbin/ldconfig is available, command
  2576. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  2577. # even though it is searched at run-time. Try to do the best guess by
  2578. # appending ld.so.conf contents (and includes) to the search path.
  2579. if test -f /etc/ld.so.conf; then
  2580. 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' ' '`
  2581. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  2582. fi
  2583. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2584. # powerpc, because MkLinux only supported shared libraries with the
  2585. # GNU dynamic linker. Since this was broken with cross compilers,
  2586. # most powerpc-linux boxes support dynamic linking these days and
  2587. # people can always --disable-shared, the test was removed, and we
  2588. # assume the GNU/Linux dynamic linker is in use.
  2589. dynamic_linker='GNU/Linux ld.so'
  2590. ;;
  2591. netbsd*)
  2592. version_type=sunos
  2593. need_lib_prefix=no
  2594. need_version=no
  2595. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2596. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2597. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2598. dynamic_linker='NetBSD (a.out) ld.so'
  2599. else
  2600. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2601. soname_spec='$libname$release$shared_ext$major'
  2602. dynamic_linker='NetBSD ld.elf_so'
  2603. fi
  2604. shlibpath_var=LD_LIBRARY_PATH
  2605. shlibpath_overrides_runpath=yes
  2606. hardcode_into_libs=yes
  2607. ;;
  2608. newsos6)
  2609. version_type=linux # correct to gnu/linux during the next big refactor
  2610. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2611. shlibpath_var=LD_LIBRARY_PATH
  2612. shlibpath_overrides_runpath=yes
  2613. ;;
  2614. *nto* | *qnx*)
  2615. version_type=qnx
  2616. need_lib_prefix=no
  2617. need_version=no
  2618. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2619. soname_spec='$libname$release$shared_ext$major'
  2620. shlibpath_var=LD_LIBRARY_PATH
  2621. shlibpath_overrides_runpath=no
  2622. hardcode_into_libs=yes
  2623. dynamic_linker='ldqnx.so'
  2624. ;;
  2625. openbsd* | bitrig*)
  2626. version_type=sunos
  2627. sys_lib_dlsearch_path_spec=/usr/lib
  2628. need_lib_prefix=no
  2629. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  2630. need_version=no
  2631. else
  2632. need_version=yes
  2633. fi
  2634. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2635. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2636. shlibpath_var=LD_LIBRARY_PATH
  2637. shlibpath_overrides_runpath=yes
  2638. ;;
  2639. os2*)
  2640. libname_spec='$name'
  2641. version_type=windows
  2642. shrext_cmds=.dll
  2643. need_version=no
  2644. need_lib_prefix=no
  2645. # OS/2 can only load a DLL with a base name of 8 characters or less.
  2646. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  2647. v=$($ECHO $release$versuffix | tr -d .-);
  2648. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  2649. $ECHO $n$v`$shared_ext'
  2650. library_names_spec='${libname}_dll.$libext'
  2651. dynamic_linker='OS/2 ld.exe'
  2652. shlibpath_var=BEGINLIBPATH
  2653. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2654. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2655. postinstall_cmds='base_file=`basename \$file`~
  2656. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  2657. dldir=$destdir/`dirname \$dlpath`~
  2658. test -d \$dldir || mkdir -p \$dldir~
  2659. $install_prog $dir/$dlname \$dldir/$dlname~
  2660. chmod a+x \$dldir/$dlname~
  2661. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2662. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2663. fi'
  2664. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  2665. dlpath=$dir/\$dldll~
  2666. $RM \$dlpath'
  2667. ;;
  2668. osf3* | osf4* | osf5*)
  2669. version_type=osf
  2670. need_lib_prefix=no
  2671. need_version=no
  2672. soname_spec='$libname$release$shared_ext$major'
  2673. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2674. shlibpath_var=LD_LIBRARY_PATH
  2675. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2676. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2677. ;;
  2678. rdos*)
  2679. dynamic_linker=no
  2680. ;;
  2681. solaris*)
  2682. version_type=linux # correct to gnu/linux during the next big refactor
  2683. need_lib_prefix=no
  2684. need_version=no
  2685. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2686. soname_spec='$libname$release$shared_ext$major'
  2687. shlibpath_var=LD_LIBRARY_PATH
  2688. shlibpath_overrides_runpath=yes
  2689. hardcode_into_libs=yes
  2690. # ldd complains unless libraries are executable
  2691. postinstall_cmds='chmod +x $lib'
  2692. ;;
  2693. sunos4*)
  2694. version_type=sunos
  2695. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2696. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2697. shlibpath_var=LD_LIBRARY_PATH
  2698. shlibpath_overrides_runpath=yes
  2699. if test yes = "$with_gnu_ld"; then
  2700. need_lib_prefix=no
  2701. fi
  2702. need_version=yes
  2703. ;;
  2704. sysv4 | sysv4.3*)
  2705. version_type=linux # correct to gnu/linux during the next big refactor
  2706. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2707. soname_spec='$libname$release$shared_ext$major'
  2708. shlibpath_var=LD_LIBRARY_PATH
  2709. case $host_vendor in
  2710. sni)
  2711. shlibpath_overrides_runpath=no
  2712. need_lib_prefix=no
  2713. runpath_var=LD_RUN_PATH
  2714. ;;
  2715. siemens)
  2716. need_lib_prefix=no
  2717. ;;
  2718. motorola)
  2719. need_lib_prefix=no
  2720. need_version=no
  2721. shlibpath_overrides_runpath=no
  2722. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2723. ;;
  2724. esac
  2725. ;;
  2726. sysv4*MP*)
  2727. if test -d /usr/nec; then
  2728. version_type=linux # correct to gnu/linux during the next big refactor
  2729. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  2730. soname_spec='$libname$shared_ext.$major'
  2731. shlibpath_var=LD_LIBRARY_PATH
  2732. fi
  2733. ;;
  2734. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2735. version_type=sco
  2736. need_lib_prefix=no
  2737. need_version=no
  2738. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  2739. soname_spec='$libname$release$shared_ext$major'
  2740. shlibpath_var=LD_LIBRARY_PATH
  2741. shlibpath_overrides_runpath=yes
  2742. hardcode_into_libs=yes
  2743. if test yes = "$with_gnu_ld"; then
  2744. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2745. else
  2746. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2747. case $host_os in
  2748. sco3.2v5*)
  2749. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2750. ;;
  2751. esac
  2752. fi
  2753. sys_lib_dlsearch_path_spec='/usr/lib'
  2754. ;;
  2755. tpf*)
  2756. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2757. version_type=linux # correct to gnu/linux during the next big refactor
  2758. need_lib_prefix=no
  2759. need_version=no
  2760. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2761. shlibpath_var=LD_LIBRARY_PATH
  2762. shlibpath_overrides_runpath=no
  2763. hardcode_into_libs=yes
  2764. ;;
  2765. uts4*)
  2766. version_type=linux # correct to gnu/linux during the next big refactor
  2767. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2768. soname_spec='$libname$release$shared_ext$major'
  2769. shlibpath_var=LD_LIBRARY_PATH
  2770. ;;
  2771. *)
  2772. dynamic_linker=no
  2773. ;;
  2774. esac
  2775. AC_MSG_RESULT([$dynamic_linker])
  2776. test no = "$dynamic_linker" && can_build_shared=no
  2777. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2778. if test yes = "$GCC"; then
  2779. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2780. fi
  2781. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  2782. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  2783. fi
  2784. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  2785. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  2786. fi
  2787. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  2788. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  2789. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  2790. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  2791. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  2792. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  2793. _LT_DECL([], [variables_saved_for_relink], [1],
  2794. [Variables whose values should be saved in libtool wrapper scripts and
  2795. restored at link time])
  2796. _LT_DECL([], [need_lib_prefix], [0],
  2797. [Do we need the "lib" prefix for modules?])
  2798. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2799. _LT_DECL([], [version_type], [0], [Library versioning type])
  2800. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2801. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2802. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2803. [Is shlibpath searched before the hard-coded library search path?])
  2804. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2805. _LT_DECL([], [library_names_spec], [1],
  2806. [[List of archive names. First name is the real one, the rest are links.
  2807. The last name is the one that the linker finds with -lNAME]])
  2808. _LT_DECL([], [soname_spec], [1],
  2809. [[The coded name of the library, if different from the real name]])
  2810. _LT_DECL([], [install_override_mode], [1],
  2811. [Permission mode override for installation of shared libraries])
  2812. _LT_DECL([], [postinstall_cmds], [2],
  2813. [Command to use after installation of a shared archive])
  2814. _LT_DECL([], [postuninstall_cmds], [2],
  2815. [Command to use after uninstallation of a shared archive])
  2816. _LT_DECL([], [finish_cmds], [2],
  2817. [Commands used to finish a libtool library installation in a directory])
  2818. _LT_DECL([], [finish_eval], [1],
  2819. [[As "finish_cmds", except a single script fragment to be evaled but
  2820. not shown]])
  2821. _LT_DECL([], [hardcode_into_libs], [0],
  2822. [Whether we should hardcode library paths into libraries])
  2823. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2824. [Compile-time system search path for libraries])
  2825. _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
  2826. [Detected run-time system search path for libraries])
  2827. _LT_DECL([], [configure_time_lt_sys_library_path], [2],
  2828. [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
  2829. ])# _LT_SYS_DYNAMIC_LINKER
  2830. # _LT_PATH_TOOL_PREFIX(TOOL)
  2831. # --------------------------
  2832. # find a file program that can recognize shared library
  2833. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2834. [m4_require([_LT_DECL_EGREP])dnl
  2835. AC_MSG_CHECKING([for $1])
  2836. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2837. [case $MAGIC_CMD in
  2838. [[\\/*] | ?:[\\/]*])
  2839. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  2840. ;;
  2841. *)
  2842. lt_save_MAGIC_CMD=$MAGIC_CMD
  2843. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  2844. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2845. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2846. dnl not every word. This closes a longstanding sh security hole.
  2847. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2848. for ac_dir in $ac_dummy; do
  2849. IFS=$lt_save_ifs
  2850. test -z "$ac_dir" && ac_dir=.
  2851. if test -f "$ac_dir/$1"; then
  2852. lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
  2853. if test -n "$file_magic_test_file"; then
  2854. case $deplibs_check_method in
  2855. "file_magic "*)
  2856. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2857. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  2858. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2859. $EGREP "$file_magic_regex" > /dev/null; then
  2860. :
  2861. else
  2862. cat <<_LT_EOF 1>&2
  2863. *** Warning: the command libtool uses to detect shared libraries,
  2864. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2865. *** The result is that libtool may fail to recognize shared libraries
  2866. *** as such. This will affect the creation of libtool libraries that
  2867. *** depend on shared libraries, but programs linked with such libtool
  2868. *** libraries will work regardless of this problem. Nevertheless, you
  2869. *** may want to report the problem to your system manager and/or to
  2870. *** [email protected]
  2871. _LT_EOF
  2872. fi ;;
  2873. esac
  2874. fi
  2875. break
  2876. fi
  2877. done
  2878. IFS=$lt_save_ifs
  2879. MAGIC_CMD=$lt_save_MAGIC_CMD
  2880. ;;
  2881. esac])
  2882. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  2883. if test -n "$MAGIC_CMD"; then
  2884. AC_MSG_RESULT($MAGIC_CMD)
  2885. else
  2886. AC_MSG_RESULT(no)
  2887. fi
  2888. _LT_DECL([], [MAGIC_CMD], [0],
  2889. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2890. ])# _LT_PATH_TOOL_PREFIX
  2891. # Old name:
  2892. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2893. dnl aclocal-1.4 backwards compatibility:
  2894. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2895. # _LT_PATH_MAGIC
  2896. # --------------
  2897. # find a file program that can recognize a shared library
  2898. m4_defun([_LT_PATH_MAGIC],
  2899. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2900. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2901. if test -n "$ac_tool_prefix"; then
  2902. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2903. else
  2904. MAGIC_CMD=:
  2905. fi
  2906. fi
  2907. ])# _LT_PATH_MAGIC
  2908. # LT_PATH_LD
  2909. # ----------
  2910. # find the pathname to the GNU or non-GNU linker
  2911. AC_DEFUN([LT_PATH_LD],
  2912. [AC_REQUIRE([AC_PROG_CC])dnl
  2913. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2914. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2915. m4_require([_LT_DECL_SED])dnl
  2916. m4_require([_LT_DECL_EGREP])dnl
  2917. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2918. AC_ARG_WITH([gnu-ld],
  2919. [AS_HELP_STRING([--with-gnu-ld],
  2920. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2921. [test no = "$withval" || with_gnu_ld=yes],
  2922. [with_gnu_ld=no])dnl
  2923. ac_prog=ld
  2924. if test yes = "$GCC"; then
  2925. # Check if gcc -print-prog-name=ld gives a path.
  2926. AC_MSG_CHECKING([for ld used by $CC])
  2927. case $host in
  2928. *-*-mingw*)
  2929. # gcc leaves a trailing carriage return, which upsets mingw
  2930. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2931. *)
  2932. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2933. esac
  2934. case $ac_prog in
  2935. # Accept absolute paths.
  2936. [[\\/]]* | ?:[[\\/]]*)
  2937. re_direlt='/[[^/]][[^/]]*/\.\./'
  2938. # Canonicalize the pathname of ld
  2939. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2940. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2941. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2942. done
  2943. test -z "$LD" && LD=$ac_prog
  2944. ;;
  2945. "")
  2946. # If it fails, then pretend we aren't using GCC.
  2947. ac_prog=ld
  2948. ;;
  2949. *)
  2950. # If it is relative, then search for the first ld in PATH.
  2951. with_gnu_ld=unknown
  2952. ;;
  2953. esac
  2954. elif test yes = "$with_gnu_ld"; then
  2955. AC_MSG_CHECKING([for GNU ld])
  2956. else
  2957. AC_MSG_CHECKING([for non-GNU ld])
  2958. fi
  2959. AC_CACHE_VAL(lt_cv_path_LD,
  2960. [if test -z "$LD"; then
  2961. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  2962. for ac_dir in $PATH; do
  2963. IFS=$lt_save_ifs
  2964. test -z "$ac_dir" && ac_dir=.
  2965. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2966. lt_cv_path_LD=$ac_dir/$ac_prog
  2967. # Check to see if the program is GNU ld. I'd rather use --version,
  2968. # but apparently some variants of GNU ld only accept -v.
  2969. # Break only if it was the GNU/non-GNU ld that we prefer.
  2970. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2971. *GNU* | *'with BFD'*)
  2972. test no != "$with_gnu_ld" && break
  2973. ;;
  2974. *)
  2975. test yes != "$with_gnu_ld" && break
  2976. ;;
  2977. esac
  2978. fi
  2979. done
  2980. IFS=$lt_save_ifs
  2981. else
  2982. lt_cv_path_LD=$LD # Let the user override the test with a path.
  2983. fi])
  2984. LD=$lt_cv_path_LD
  2985. if test -n "$LD"; then
  2986. AC_MSG_RESULT($LD)
  2987. else
  2988. AC_MSG_RESULT(no)
  2989. fi
  2990. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2991. _LT_PATH_LD_GNU
  2992. AC_SUBST([LD])
  2993. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2994. ])# LT_PATH_LD
  2995. # Old names:
  2996. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2997. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2998. dnl aclocal-1.4 backwards compatibility:
  2999. dnl AC_DEFUN([AM_PROG_LD], [])
  3000. dnl AC_DEFUN([AC_PROG_LD], [])
  3001. # _LT_PATH_LD_GNU
  3002. #- --------------
  3003. m4_defun([_LT_PATH_LD_GNU],
  3004. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3005. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3006. case `$LD -v 2>&1 </dev/null` in
  3007. *GNU* | *'with BFD'*)
  3008. lt_cv_prog_gnu_ld=yes
  3009. ;;
  3010. *)
  3011. lt_cv_prog_gnu_ld=no
  3012. ;;
  3013. esac])
  3014. with_gnu_ld=$lt_cv_prog_gnu_ld
  3015. ])# _LT_PATH_LD_GNU
  3016. # _LT_CMD_RELOAD
  3017. # --------------
  3018. # find reload flag for linker
  3019. # -- PORTME Some linkers may need a different reload flag.
  3020. m4_defun([_LT_CMD_RELOAD],
  3021. [AC_CACHE_CHECK([for $LD option to reload object files],
  3022. lt_cv_ld_reload_flag,
  3023. [lt_cv_ld_reload_flag='-r'])
  3024. reload_flag=$lt_cv_ld_reload_flag
  3025. case $reload_flag in
  3026. "" | " "*) ;;
  3027. *) reload_flag=" $reload_flag" ;;
  3028. esac
  3029. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3030. case $host_os in
  3031. cygwin* | mingw* | pw32* | cegcc*)
  3032. if test yes != "$GCC"; then
  3033. reload_cmds=false
  3034. fi
  3035. ;;
  3036. darwin*)
  3037. if test yes = "$GCC"; then
  3038. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  3039. else
  3040. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3041. fi
  3042. ;;
  3043. esac
  3044. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3045. _LT_TAGDECL([], [reload_cmds], [2])dnl
  3046. ])# _LT_CMD_RELOAD
  3047. # _LT_PATH_DD
  3048. # -----------
  3049. # find a working dd
  3050. m4_defun([_LT_PATH_DD],
  3051. [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
  3052. [printf 0123456789abcdef0123456789abcdef >conftest.i
  3053. cat conftest.i conftest.i >conftest2.i
  3054. : ${lt_DD:=$DD}
  3055. AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
  3056. [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  3057. cmp -s conftest.i conftest.out \
  3058. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  3059. fi])
  3060. rm -f conftest.i conftest2.i conftest.out])
  3061. ])# _LT_PATH_DD
  3062. # _LT_CMD_TRUNCATE
  3063. # ----------------
  3064. # find command to truncate a binary pipe
  3065. m4_defun([_LT_CMD_TRUNCATE],
  3066. [m4_require([_LT_PATH_DD])
  3067. AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
  3068. [printf 0123456789abcdef0123456789abcdef >conftest.i
  3069. cat conftest.i conftest.i >conftest2.i
  3070. lt_cv_truncate_bin=
  3071. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  3072. cmp -s conftest.i conftest.out \
  3073. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  3074. fi
  3075. rm -f conftest.i conftest2.i conftest.out
  3076. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
  3077. _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
  3078. [Command to truncate a binary pipe])
  3079. ])# _LT_CMD_TRUNCATE
  3080. # _LT_CHECK_MAGIC_METHOD
  3081. # ----------------------
  3082. # how to check for library dependencies
  3083. # -- PORTME fill in with the dynamic library characteristics
  3084. m4_defun([_LT_CHECK_MAGIC_METHOD],
  3085. [m4_require([_LT_DECL_EGREP])
  3086. m4_require([_LT_DECL_OBJDUMP])
  3087. AC_CACHE_CHECK([how to recognize dependent libraries],
  3088. lt_cv_deplibs_check_method,
  3089. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3090. lt_cv_file_magic_test_file=
  3091. lt_cv_deplibs_check_method='unknown'
  3092. # Need to set the preceding variable on all platforms that support
  3093. # interlibrary dependencies.
  3094. # 'none' -- dependencies not supported.
  3095. # 'unknown' -- same as none, but documents that we really don't know.
  3096. # 'pass_all' -- all dependencies passed with no checks.
  3097. # 'test_compile' -- check by making test program.
  3098. # 'file_magic [[regex]]' -- check by looking for files in library path
  3099. # that responds to the $file_magic_cmd with a given extended regex.
  3100. # If you have 'file' or equivalent on your system and you're not sure
  3101. # whether 'pass_all' will *always* work, you probably want this one.
  3102. case $host_os in
  3103. aix[[4-9]]*)
  3104. lt_cv_deplibs_check_method=pass_all
  3105. ;;
  3106. beos*)
  3107. lt_cv_deplibs_check_method=pass_all
  3108. ;;
  3109. bsdi[[45]]*)
  3110. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3111. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3112. lt_cv_file_magic_test_file=/shlib/libc.so
  3113. ;;
  3114. cygwin*)
  3115. # func_win32_libid is a shell function defined in ltmain.sh
  3116. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3117. lt_cv_file_magic_cmd='func_win32_libid'
  3118. ;;
  3119. mingw* | pw32*)
  3120. # Base MSYS/MinGW do not provide the 'file' command needed by
  3121. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3122. # unless we find 'file', for example because we are cross-compiling.
  3123. if ( file / ) >/dev/null 2>&1; then
  3124. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3125. lt_cv_file_magic_cmd='func_win32_libid'
  3126. else
  3127. # Keep this pattern in sync with the one in func_win32_libid.
  3128. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  3129. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3130. fi
  3131. ;;
  3132. cegcc*)
  3133. # use the weaker test based on 'objdump'. See mingw*.
  3134. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3135. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3136. ;;
  3137. darwin* | rhapsody*)
  3138. lt_cv_deplibs_check_method=pass_all
  3139. ;;
  3140. freebsd* | dragonfly*)
  3141. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3142. case $host_cpu in
  3143. i*86 )
  3144. # Not sure whether the presence of OpenBSD here was a mistake.
  3145. # Let's accept both of them until this is cleared up.
  3146. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3147. lt_cv_file_magic_cmd=/usr/bin/file
  3148. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3149. ;;
  3150. esac
  3151. else
  3152. lt_cv_deplibs_check_method=pass_all
  3153. fi
  3154. ;;
  3155. haiku*)
  3156. lt_cv_deplibs_check_method=pass_all
  3157. ;;
  3158. hpux10.20* | hpux11*)
  3159. lt_cv_file_magic_cmd=/usr/bin/file
  3160. case $host_cpu in
  3161. ia64*)
  3162. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3163. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3164. ;;
  3165. hppa*64*)
  3166. [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]']
  3167. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3168. ;;
  3169. *)
  3170. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  3171. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3172. ;;
  3173. esac
  3174. ;;
  3175. interix[[3-9]]*)
  3176. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3177. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3178. ;;
  3179. irix5* | irix6* | nonstopux*)
  3180. case $LD in
  3181. *-32|*"-32 ") libmagic=32-bit;;
  3182. *-n32|*"-n32 ") libmagic=N32;;
  3183. *-64|*"-64 ") libmagic=64-bit;;
  3184. *) libmagic=never-match;;
  3185. esac
  3186. lt_cv_deplibs_check_method=pass_all
  3187. ;;
  3188. # This must be glibc/ELF.
  3189. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3190. lt_cv_deplibs_check_method=pass_all
  3191. ;;
  3192. netbsd*)
  3193. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3194. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3195. else
  3196. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3197. fi
  3198. ;;
  3199. newos6*)
  3200. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3201. lt_cv_file_magic_cmd=/usr/bin/file
  3202. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3203. ;;
  3204. *nto* | *qnx*)
  3205. lt_cv_deplibs_check_method=pass_all
  3206. ;;
  3207. openbsd* | bitrig*)
  3208. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  3209. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3210. else
  3211. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3212. fi
  3213. ;;
  3214. osf3* | osf4* | osf5*)
  3215. lt_cv_deplibs_check_method=pass_all
  3216. ;;
  3217. rdos*)
  3218. lt_cv_deplibs_check_method=pass_all
  3219. ;;
  3220. solaris*)
  3221. lt_cv_deplibs_check_method=pass_all
  3222. ;;
  3223. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3224. lt_cv_deplibs_check_method=pass_all
  3225. ;;
  3226. sysv4 | sysv4.3*)
  3227. case $host_vendor in
  3228. motorola)
  3229. 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]]'
  3230. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3231. ;;
  3232. ncr)
  3233. lt_cv_deplibs_check_method=pass_all
  3234. ;;
  3235. sequent)
  3236. lt_cv_file_magic_cmd='/bin/file'
  3237. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3238. ;;
  3239. sni)
  3240. lt_cv_file_magic_cmd='/bin/file'
  3241. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3242. lt_cv_file_magic_test_file=/lib/libc.so
  3243. ;;
  3244. siemens)
  3245. lt_cv_deplibs_check_method=pass_all
  3246. ;;
  3247. pc)
  3248. lt_cv_deplibs_check_method=pass_all
  3249. ;;
  3250. esac
  3251. ;;
  3252. tpf*)
  3253. lt_cv_deplibs_check_method=pass_all
  3254. ;;
  3255. os2*)
  3256. lt_cv_deplibs_check_method=pass_all
  3257. ;;
  3258. esac
  3259. ])
  3260. file_magic_glob=
  3261. want_nocaseglob=no
  3262. if test "$build" = "$host"; then
  3263. case $host_os in
  3264. mingw* | pw32*)
  3265. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3266. want_nocaseglob=yes
  3267. else
  3268. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3269. fi
  3270. ;;
  3271. esac
  3272. fi
  3273. file_magic_cmd=$lt_cv_file_magic_cmd
  3274. deplibs_check_method=$lt_cv_deplibs_check_method
  3275. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3276. _LT_DECL([], [deplibs_check_method], [1],
  3277. [Method to check whether dependent libraries are shared objects])
  3278. _LT_DECL([], [file_magic_cmd], [1],
  3279. [Command to use when deplibs_check_method = "file_magic"])
  3280. _LT_DECL([], [file_magic_glob], [1],
  3281. [How to find potential files when deplibs_check_method = "file_magic"])
  3282. _LT_DECL([], [want_nocaseglob], [1],
  3283. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3284. ])# _LT_CHECK_MAGIC_METHOD
  3285. # LT_PATH_NM
  3286. # ----------
  3287. # find the pathname to a BSD- or MS-compatible name lister
  3288. AC_DEFUN([LT_PATH_NM],
  3289. [AC_REQUIRE([AC_PROG_CC])dnl
  3290. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3291. [if test -n "$NM"; then
  3292. # Let the user override the test.
  3293. lt_cv_path_NM=$NM
  3294. else
  3295. lt_nm_to_check=${ac_tool_prefix}nm
  3296. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3297. lt_nm_to_check="$lt_nm_to_check nm"
  3298. fi
  3299. for lt_tmp_nm in $lt_nm_to_check; do
  3300. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3301. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3302. IFS=$lt_save_ifs
  3303. test -z "$ac_dir" && ac_dir=.
  3304. tmp_nm=$ac_dir/$lt_tmp_nm
  3305. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3306. # Check to see if the nm accepts a BSD-compat flag.
  3307. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3308. # nm: unknown option "B" ignored
  3309. # Tru64's nm complains that /dev/null is an invalid object file
  3310. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3311. case $build_os in
  3312. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3313. *) lt_bad_file=/dev/null ;;
  3314. esac
  3315. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3316. *$lt_bad_file* | *'Invalid file or object type'*)
  3317. lt_cv_path_NM="$tmp_nm -B"
  3318. break 2
  3319. ;;
  3320. *)
  3321. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3322. */dev/null*)
  3323. lt_cv_path_NM="$tmp_nm -p"
  3324. break 2
  3325. ;;
  3326. *)
  3327. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3328. continue # so that we can try to find one that supports BSD flags
  3329. ;;
  3330. esac
  3331. ;;
  3332. esac
  3333. fi
  3334. done
  3335. IFS=$lt_save_ifs
  3336. done
  3337. : ${lt_cv_path_NM=no}
  3338. fi])
  3339. if test no != "$lt_cv_path_NM"; then
  3340. NM=$lt_cv_path_NM
  3341. else
  3342. # Didn't find any BSD compatible name lister, look for dumpbin.
  3343. if test -n "$DUMPBIN"; then :
  3344. # Let the user override the test.
  3345. else
  3346. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3347. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  3348. *COFF*)
  3349. DUMPBIN="$DUMPBIN -symbols -headers"
  3350. ;;
  3351. *)
  3352. DUMPBIN=:
  3353. ;;
  3354. esac
  3355. fi
  3356. AC_SUBST([DUMPBIN])
  3357. if test : != "$DUMPBIN"; then
  3358. NM=$DUMPBIN
  3359. fi
  3360. fi
  3361. test -z "$NM" && NM=nm
  3362. AC_SUBST([NM])
  3363. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3364. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3365. [lt_cv_nm_interface="BSD nm"
  3366. echo "int some_variable = 0;" > conftest.$ac_ext
  3367. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3368. (eval "$ac_compile" 2>conftest.err)
  3369. cat conftest.err >&AS_MESSAGE_LOG_FD
  3370. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3371. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3372. cat conftest.err >&AS_MESSAGE_LOG_FD
  3373. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3374. cat conftest.out >&AS_MESSAGE_LOG_FD
  3375. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3376. lt_cv_nm_interface="MS dumpbin"
  3377. fi
  3378. rm -f conftest*])
  3379. ])# LT_PATH_NM
  3380. # Old names:
  3381. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3382. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3383. dnl aclocal-1.4 backwards compatibility:
  3384. dnl AC_DEFUN([AM_PROG_NM], [])
  3385. dnl AC_DEFUN([AC_PROG_NM], [])
  3386. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3387. # --------------------------------
  3388. # how to determine the name of the shared library
  3389. # associated with a specific link library.
  3390. # -- PORTME fill in with the dynamic library characteristics
  3391. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3392. [m4_require([_LT_DECL_EGREP])
  3393. m4_require([_LT_DECL_OBJDUMP])
  3394. m4_require([_LT_DECL_DLLTOOL])
  3395. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3396. lt_cv_sharedlib_from_linklib_cmd,
  3397. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3398. case $host_os in
  3399. cygwin* | mingw* | pw32* | cegcc*)
  3400. # two different shell functions defined in ltmain.sh;
  3401. # decide which one to use based on capabilities of $DLLTOOL
  3402. case `$DLLTOOL --help 2>&1` in
  3403. *--identify-strict*)
  3404. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3405. ;;
  3406. *)
  3407. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3408. ;;
  3409. esac
  3410. ;;
  3411. *)
  3412. # fallback: assume linklib IS sharedlib
  3413. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  3414. ;;
  3415. esac
  3416. ])
  3417. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3418. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3419. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3420. [Command to associate shared and link libraries])
  3421. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3422. # _LT_PATH_MANIFEST_TOOL
  3423. # ----------------------
  3424. # locate the manifest tool
  3425. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3426. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3427. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3428. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3429. [lt_cv_path_mainfest_tool=no
  3430. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3431. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3432. cat conftest.err >&AS_MESSAGE_LOG_FD
  3433. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3434. lt_cv_path_mainfest_tool=yes
  3435. fi
  3436. rm -f conftest*])
  3437. if test yes != "$lt_cv_path_mainfest_tool"; then
  3438. MANIFEST_TOOL=:
  3439. fi
  3440. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3441. ])# _LT_PATH_MANIFEST_TOOL
  3442. # _LT_DLL_DEF_P([FILE])
  3443. # ---------------------
  3444. # True iff FILE is a Windows DLL '.def' file.
  3445. # Keep in sync with func_dll_def_p in the libtool script
  3446. AC_DEFUN([_LT_DLL_DEF_P],
  3447. [dnl
  3448. test DEF = "`$SED -n dnl
  3449. -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
  3450. -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
  3451. -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
  3452. -e q dnl Only consider the first "real" line
  3453. $1`" dnl
  3454. ])# _LT_DLL_DEF_P
  3455. # LT_LIB_M
  3456. # --------
  3457. # check for math library
  3458. AC_DEFUN([LT_LIB_M],
  3459. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3460. LIBM=
  3461. case $host in
  3462. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3463. # These system don't have libm, or don't need it
  3464. ;;
  3465. *-ncr-sysv4.3*)
  3466. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
  3467. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3468. ;;
  3469. *)
  3470. AC_CHECK_LIB(m, cos, LIBM=-lm)
  3471. ;;
  3472. esac
  3473. AC_SUBST([LIBM])
  3474. ])# LT_LIB_M
  3475. # Old name:
  3476. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3477. dnl aclocal-1.4 backwards compatibility:
  3478. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3479. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3480. # -------------------------------
  3481. m4_defun([_LT_COMPILER_NO_RTTI],
  3482. [m4_require([_LT_TAG_COMPILER])dnl
  3483. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3484. if test yes = "$GCC"; then
  3485. case $cc_basename in
  3486. nvcc*)
  3487. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3488. *)
  3489. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3490. esac
  3491. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3492. lt_cv_prog_compiler_rtti_exceptions,
  3493. [-fno-rtti -fno-exceptions], [],
  3494. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3495. fi
  3496. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3497. [Compiler flag to turn off builtin functions])
  3498. ])# _LT_COMPILER_NO_RTTI
  3499. # _LT_CMD_GLOBAL_SYMBOLS
  3500. # ----------------------
  3501. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3502. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3503. AC_REQUIRE([AC_PROG_CC])dnl
  3504. AC_REQUIRE([AC_PROG_AWK])dnl
  3505. AC_REQUIRE([LT_PATH_NM])dnl
  3506. AC_REQUIRE([LT_PATH_LD])dnl
  3507. m4_require([_LT_DECL_SED])dnl
  3508. m4_require([_LT_DECL_EGREP])dnl
  3509. m4_require([_LT_TAG_COMPILER])dnl
  3510. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3511. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3512. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3513. [
  3514. # These are sane defaults that work on at least a few old systems.
  3515. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3516. # Character class describing NM global symbol codes.
  3517. symcode='[[BCDEGRST]]'
  3518. # Regexp to match symbols that can be accessed directly from C.
  3519. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3520. # Define system-specific variables.
  3521. case $host_os in
  3522. aix*)
  3523. symcode='[[BCDT]]'
  3524. ;;
  3525. cygwin* | mingw* | pw32* | cegcc*)
  3526. symcode='[[ABCDGISTW]]'
  3527. ;;
  3528. hpux*)
  3529. if test ia64 = "$host_cpu"; then
  3530. symcode='[[ABCDEGRST]]'
  3531. fi
  3532. ;;
  3533. irix* | nonstopux*)
  3534. symcode='[[BCDEGRST]]'
  3535. ;;
  3536. osf*)
  3537. symcode='[[BCDEGQRST]]'
  3538. ;;
  3539. solaris*)
  3540. symcode='[[BDRT]]'
  3541. ;;
  3542. sco3.2v5*)
  3543. symcode='[[DT]]'
  3544. ;;
  3545. sysv4.2uw2*)
  3546. symcode='[[DT]]'
  3547. ;;
  3548. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3549. symcode='[[ABDT]]'
  3550. ;;
  3551. sysv4)
  3552. symcode='[[DFNSTU]]'
  3553. ;;
  3554. esac
  3555. # If we're using GNU nm, then use its standard symbol codes.
  3556. case `$NM -V 2>&1` in
  3557. *GNU* | *'with BFD'*)
  3558. symcode='[[ABCDGIRSTW]]' ;;
  3559. esac
  3560. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3561. # Gets list of data symbols to import.
  3562. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  3563. # Adjust the below global symbol transforms to fixup imported variables.
  3564. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  3565. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  3566. lt_c_name_lib_hook="\
  3567. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  3568. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  3569. else
  3570. # Disable hooks by default.
  3571. lt_cv_sys_global_symbol_to_import=
  3572. lt_cdecl_hook=
  3573. lt_c_name_hook=
  3574. lt_c_name_lib_hook=
  3575. fi
  3576. # Transform an extracted symbol line into a proper C declaration.
  3577. # Some systems (esp. on ia64) link data and code symbols differently,
  3578. # so use this general approach.
  3579. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  3580. $lt_cdecl_hook\
  3581. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  3582. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  3583. # Transform an extracted symbol line into symbol name and symbol address
  3584. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  3585. $lt_c_name_hook\
  3586. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  3587. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  3588. # Transform an extracted symbol line into symbol name with lib prefix and
  3589. # symbol address.
  3590. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  3591. $lt_c_name_lib_hook\
  3592. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  3593. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  3594. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  3595. # Handle CRLF in mingw tool chain
  3596. opt_cr=
  3597. case $build_os in
  3598. mingw*)
  3599. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3600. ;;
  3601. esac
  3602. # Try without a prefix underscore, then with it.
  3603. for ac_symprfx in "" "_"; do
  3604. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3605. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3606. # Write the raw and C identifiers.
  3607. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3608. # Fake it for dumpbin and say T for any non-static function,
  3609. # D for any global variable and I for any imported variable.
  3610. # Also find C++ and __fastcall symbols from MSVC++,
  3611. # which start with @ or ?.
  3612. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3613. " {last_section=section; section=\$ 3};"\
  3614. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3615. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3616. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  3617. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  3618. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  3619. " \$ 0!~/External *\|/{next};"\
  3620. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3621. " {if(hide[section]) next};"\
  3622. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  3623. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  3624. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  3625. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  3626. " ' prfx=^$ac_symprfx]"
  3627. else
  3628. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3629. fi
  3630. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3631. # Check to see that the pipe works correctly.
  3632. pipe_works=no
  3633. rm -f conftest*
  3634. cat > conftest.$ac_ext <<_LT_EOF
  3635. #ifdef __cplusplus
  3636. extern "C" {
  3637. #endif
  3638. char nm_test_var;
  3639. void nm_test_func(void);
  3640. void nm_test_func(void){}
  3641. #ifdef __cplusplus
  3642. }
  3643. #endif
  3644. int main(){nm_test_var='a';nm_test_func();return(0);}
  3645. _LT_EOF
  3646. if AC_TRY_EVAL(ac_compile); then
  3647. # Now try to grab the symbols.
  3648. nlist=conftest.nm
  3649. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3650. # Try sorting and uniquifying the output.
  3651. if sort "$nlist" | uniq > "$nlist"T; then
  3652. mv -f "$nlist"T "$nlist"
  3653. else
  3654. rm -f "$nlist"T
  3655. fi
  3656. # Make sure that we snagged all the symbols we need.
  3657. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3658. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3659. cat <<_LT_EOF > conftest.$ac_ext
  3660. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3661. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  3662. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  3663. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3664. # define LT@&t@_DLSYM_CONST
  3665. #elif defined __osf__
  3666. /* This system does not cope well with relocations in const data. */
  3667. # define LT@&t@_DLSYM_CONST
  3668. #else
  3669. # define LT@&t@_DLSYM_CONST const
  3670. #endif
  3671. #ifdef __cplusplus
  3672. extern "C" {
  3673. #endif
  3674. _LT_EOF
  3675. # Now generate the symbol file.
  3676. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3677. cat <<_LT_EOF >> conftest.$ac_ext
  3678. /* The mapping between symbol names and symbols. */
  3679. LT@&t@_DLSYM_CONST struct {
  3680. const char *name;
  3681. void *address;
  3682. }
  3683. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3684. {
  3685. { "@PROGRAM@", (void *) 0 },
  3686. _LT_EOF
  3687. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3688. cat <<\_LT_EOF >> conftest.$ac_ext
  3689. {0, (void *) 0}
  3690. };
  3691. /* This works around a problem in FreeBSD linker */
  3692. #ifdef FREEBSD_WORKAROUND
  3693. static const void *lt_preloaded_setup() {
  3694. return lt__PROGRAM__LTX_preloaded_symbols;
  3695. }
  3696. #endif
  3697. #ifdef __cplusplus
  3698. }
  3699. #endif
  3700. _LT_EOF
  3701. # Now try linking the two files.
  3702. mv conftest.$ac_objext conftstm.$ac_objext
  3703. lt_globsym_save_LIBS=$LIBS
  3704. lt_globsym_save_CFLAGS=$CFLAGS
  3705. LIBS=conftstm.$ac_objext
  3706. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3707. if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  3708. pipe_works=yes
  3709. fi
  3710. LIBS=$lt_globsym_save_LIBS
  3711. CFLAGS=$lt_globsym_save_CFLAGS
  3712. else
  3713. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3714. fi
  3715. else
  3716. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3717. fi
  3718. else
  3719. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3720. fi
  3721. else
  3722. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3723. cat conftest.$ac_ext >&5
  3724. fi
  3725. rm -rf conftest* conftst*
  3726. # Do not use the global_symbol_pipe unless it works.
  3727. if test yes = "$pipe_works"; then
  3728. break
  3729. else
  3730. lt_cv_sys_global_symbol_pipe=
  3731. fi
  3732. done
  3733. ])
  3734. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3735. lt_cv_sys_global_symbol_to_cdecl=
  3736. fi
  3737. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3738. AC_MSG_RESULT(failed)
  3739. else
  3740. AC_MSG_RESULT(ok)
  3741. fi
  3742. # Response file support.
  3743. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3744. nm_file_list_spec='@'
  3745. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3746. nm_file_list_spec='@'
  3747. fi
  3748. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3749. [Take the output of nm and produce a listing of raw symbols and C names])
  3750. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3751. [Transform the output of nm in a proper C declaration])
  3752. _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
  3753. [Transform the output of nm into a list of symbols to manually relocate])
  3754. _LT_DECL([global_symbol_to_c_name_address],
  3755. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3756. [Transform the output of nm in a C name address pair])
  3757. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3758. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3759. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3760. _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
  3761. [The name lister interface])
  3762. _LT_DECL([], [nm_file_list_spec], [1],
  3763. [Specify filename containing input files for $NM])
  3764. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3765. # _LT_COMPILER_PIC([TAGNAME])
  3766. # ---------------------------
  3767. m4_defun([_LT_COMPILER_PIC],
  3768. [m4_require([_LT_TAG_COMPILER])dnl
  3769. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3770. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3771. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3772. m4_if([$1], [CXX], [
  3773. # C++ specific cases for pic, static, wl, etc.
  3774. if test yes = "$GXX"; then
  3775. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3776. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3777. case $host_os in
  3778. aix*)
  3779. # All AIX code is PIC.
  3780. if test ia64 = "$host_cpu"; then
  3781. # AIX 5 now supports IA64 processor
  3782. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3783. fi
  3784. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3785. ;;
  3786. amigaos*)
  3787. case $host_cpu in
  3788. powerpc)
  3789. # see comment about AmigaOS4 .so support
  3790. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3791. ;;
  3792. m68k)
  3793. # FIXME: we need at least 68020 code to build shared libraries, but
  3794. # adding the '-m68020' flag to GCC prevents building anything better,
  3795. # like '-m68040'.
  3796. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3797. ;;
  3798. esac
  3799. ;;
  3800. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3801. # PIC is the default for these OSes.
  3802. ;;
  3803. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3804. # This hack is so that the source file can tell whether it is being
  3805. # built for inclusion in a dll (and should export symbols for example).
  3806. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3807. # (--disable-auto-import) libraries
  3808. m4_if([$1], [GCJ], [],
  3809. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3810. case $host_os in
  3811. os2*)
  3812. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
  3813. ;;
  3814. esac
  3815. ;;
  3816. darwin* | rhapsody*)
  3817. # PIC is the default on this platform
  3818. # Common symbols not allowed in MH_DYLIB files
  3819. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3820. ;;
  3821. *djgpp*)
  3822. # DJGPP does not support shared libraries at all
  3823. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3824. ;;
  3825. haiku*)
  3826. # PIC is the default for Haiku.
  3827. # The "-static" flag exists, but is broken.
  3828. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3829. ;;
  3830. interix[[3-9]]*)
  3831. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3832. # Instead, we relocate shared libraries at runtime.
  3833. ;;
  3834. sysv4*MP*)
  3835. if test -d /usr/nec; then
  3836. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3837. fi
  3838. ;;
  3839. hpux*)
  3840. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3841. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3842. # sets the default TLS model and affects inlining.
  3843. case $host_cpu in
  3844. hppa*64*)
  3845. ;;
  3846. *)
  3847. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3848. ;;
  3849. esac
  3850. ;;
  3851. *qnx* | *nto*)
  3852. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3853. # it will coredump.
  3854. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3855. ;;
  3856. *)
  3857. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3858. ;;
  3859. esac
  3860. else
  3861. case $host_os in
  3862. aix[[4-9]]*)
  3863. # All AIX code is PIC.
  3864. if test ia64 = "$host_cpu"; then
  3865. # AIX 5 now supports IA64 processor
  3866. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3867. else
  3868. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3869. fi
  3870. ;;
  3871. chorus*)
  3872. case $cc_basename in
  3873. cxch68*)
  3874. # Green Hills C++ Compiler
  3875. # _LT_TAGVAR(lt_prog_compiler_static, $1)="--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"
  3876. ;;
  3877. esac
  3878. ;;
  3879. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3880. # This hack is so that the source file can tell whether it is being
  3881. # built for inclusion in a dll (and should export symbols for example).
  3882. m4_if([$1], [GCJ], [],
  3883. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3884. ;;
  3885. dgux*)
  3886. case $cc_basename in
  3887. ec++*)
  3888. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3889. ;;
  3890. ghcx*)
  3891. # Green Hills C++ Compiler
  3892. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3893. ;;
  3894. *)
  3895. ;;
  3896. esac
  3897. ;;
  3898. freebsd* | dragonfly*)
  3899. # FreeBSD uses GNU C++
  3900. ;;
  3901. hpux9* | hpux10* | hpux11*)
  3902. case $cc_basename in
  3903. CC*)
  3904. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3905. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  3906. if test ia64 != "$host_cpu"; then
  3907. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3908. fi
  3909. ;;
  3910. aCC*)
  3911. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3912. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  3913. case $host_cpu in
  3914. hppa*64*|ia64*)
  3915. # +Z the default
  3916. ;;
  3917. *)
  3918. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3919. ;;
  3920. esac
  3921. ;;
  3922. *)
  3923. ;;
  3924. esac
  3925. ;;
  3926. interix*)
  3927. # This is c89, which is MS Visual C++ (no shared libs)
  3928. # Anyone wants to do a port?
  3929. ;;
  3930. irix5* | irix6* | nonstopux*)
  3931. case $cc_basename in
  3932. CC*)
  3933. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3934. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3935. # CC pic flag -KPIC is the default.
  3936. ;;
  3937. *)
  3938. ;;
  3939. esac
  3940. ;;
  3941. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3942. case $cc_basename in
  3943. KCC*)
  3944. # KAI C++ Compiler
  3945. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3946. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3947. ;;
  3948. ecpc* )
  3949. # old Intel C++ for x86_64, which still supported -KPIC.
  3950. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3951. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3952. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3953. ;;
  3954. icpc* )
  3955. # Intel C++, used to be incompatible with GCC.
  3956. # ICC 10 doesn't accept -KPIC any more.
  3957. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3958. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3959. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3960. ;;
  3961. pgCC* | pgcpp*)
  3962. # Portland Group C++ compiler
  3963. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3964. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3965. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3966. ;;
  3967. cxx*)
  3968. # Compaq C++
  3969. # Make sure the PIC flag is empty. It appears that all Alpha
  3970. # Linux and Compaq Tru64 Unix objects are PIC.
  3971. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3972. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3973. ;;
  3974. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3975. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3976. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3977. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3978. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3979. ;;
  3980. *)
  3981. case `$CC -V 2>&1 | sed 5q` in
  3982. *Sun\ C*)
  3983. # Sun C++ 5.9
  3984. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3985. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3986. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3987. ;;
  3988. esac
  3989. ;;
  3990. esac
  3991. ;;
  3992. lynxos*)
  3993. ;;
  3994. m88k*)
  3995. ;;
  3996. mvs*)
  3997. case $cc_basename in
  3998. cxx*)
  3999. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4000. ;;
  4001. *)
  4002. ;;
  4003. esac
  4004. ;;
  4005. netbsd*)
  4006. ;;
  4007. *qnx* | *nto*)
  4008. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4009. # it will coredump.
  4010. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4011. ;;
  4012. osf3* | osf4* | osf5*)
  4013. case $cc_basename in
  4014. KCC*)
  4015. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4016. ;;
  4017. RCC*)
  4018. # Rational C++ 2.4.1
  4019. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4020. ;;
  4021. cxx*)
  4022. # Digital/Compaq C++
  4023. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4024. # Make sure the PIC flag is empty. It appears that all Alpha
  4025. # Linux and Compaq Tru64 Unix objects are PIC.
  4026. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4027. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4028. ;;
  4029. *)
  4030. ;;
  4031. esac
  4032. ;;
  4033. psos*)
  4034. ;;
  4035. solaris*)
  4036. case $cc_basename in
  4037. CC* | sunCC*)
  4038. # Sun C++ 4.2, 5.x and Centerline C++
  4039. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4040. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4041. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4042. ;;
  4043. gcx*)
  4044. # Green Hills C++ Compiler
  4045. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4046. ;;
  4047. *)
  4048. ;;
  4049. esac
  4050. ;;
  4051. sunos4*)
  4052. case $cc_basename in
  4053. CC*)
  4054. # Sun C++ 4.x
  4055. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4056. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4057. ;;
  4058. lcc*)
  4059. # Lucid
  4060. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4061. ;;
  4062. *)
  4063. ;;
  4064. esac
  4065. ;;
  4066. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4067. case $cc_basename in
  4068. CC*)
  4069. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4070. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4071. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4072. ;;
  4073. esac
  4074. ;;
  4075. tandem*)
  4076. case $cc_basename in
  4077. NCC*)
  4078. # NonStop-UX NCC 3.20
  4079. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4080. ;;
  4081. *)
  4082. ;;
  4083. esac
  4084. ;;
  4085. vxworks*)
  4086. ;;
  4087. *)
  4088. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4089. ;;
  4090. esac
  4091. fi
  4092. ],
  4093. [
  4094. if test yes = "$GCC"; then
  4095. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4096. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4097. case $host_os in
  4098. aix*)
  4099. # All AIX code is PIC.
  4100. if test ia64 = "$host_cpu"; then
  4101. # AIX 5 now supports IA64 processor
  4102. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4103. fi
  4104. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4105. ;;
  4106. amigaos*)
  4107. case $host_cpu in
  4108. powerpc)
  4109. # see comment about AmigaOS4 .so support
  4110. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4111. ;;
  4112. m68k)
  4113. # FIXME: we need at least 68020 code to build shared libraries, but
  4114. # adding the '-m68020' flag to GCC prevents building anything better,
  4115. # like '-m68040'.
  4116. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4117. ;;
  4118. esac
  4119. ;;
  4120. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4121. # PIC is the default for these OSes.
  4122. ;;
  4123. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4124. # This hack is so that the source file can tell whether it is being
  4125. # built for inclusion in a dll (and should export symbols for example).
  4126. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4127. # (--disable-auto-import) libraries
  4128. m4_if([$1], [GCJ], [],
  4129. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4130. case $host_os in
  4131. os2*)
  4132. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
  4133. ;;
  4134. esac
  4135. ;;
  4136. darwin* | rhapsody*)
  4137. # PIC is the default on this platform
  4138. # Common symbols not allowed in MH_DYLIB files
  4139. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4140. ;;
  4141. haiku*)
  4142. # PIC is the default for Haiku.
  4143. # The "-static" flag exists, but is broken.
  4144. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  4145. ;;
  4146. hpux*)
  4147. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4148. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4149. # sets the default TLS model and affects inlining.
  4150. case $host_cpu in
  4151. hppa*64*)
  4152. # +Z the default
  4153. ;;
  4154. *)
  4155. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4156. ;;
  4157. esac
  4158. ;;
  4159. interix[[3-9]]*)
  4160. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4161. # Instead, we relocate shared libraries at runtime.
  4162. ;;
  4163. msdosdjgpp*)
  4164. # Just because we use GCC doesn't mean we suddenly get shared libraries
  4165. # on systems that don't support them.
  4166. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4167. enable_shared=no
  4168. ;;
  4169. *nto* | *qnx*)
  4170. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4171. # it will coredump.
  4172. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4173. ;;
  4174. sysv4*MP*)
  4175. if test -d /usr/nec; then
  4176. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4177. fi
  4178. ;;
  4179. *)
  4180. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4181. ;;
  4182. esac
  4183. case $cc_basename in
  4184. nvcc*) # Cuda Compiler Driver 2.2
  4185. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  4186. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4187. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  4188. fi
  4189. ;;
  4190. esac
  4191. else
  4192. # PORTME Check for flag to pass linker flags through the system compiler.
  4193. case $host_os in
  4194. aix*)
  4195. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4196. if test ia64 = "$host_cpu"; then
  4197. # AIX 5 now supports IA64 processor
  4198. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4199. else
  4200. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4201. fi
  4202. ;;
  4203. darwin* | rhapsody*)
  4204. # PIC is the default on this platform
  4205. # Common symbols not allowed in MH_DYLIB files
  4206. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4207. case $cc_basename in
  4208. nagfor*)
  4209. # NAG Fortran compiler
  4210. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4211. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4212. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4213. ;;
  4214. esac
  4215. ;;
  4216. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4217. # This hack is so that the source file can tell whether it is being
  4218. # built for inclusion in a dll (and should export symbols for example).
  4219. m4_if([$1], [GCJ], [],
  4220. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4221. case $host_os in
  4222. os2*)
  4223. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
  4224. ;;
  4225. esac
  4226. ;;
  4227. hpux9* | hpux10* | hpux11*)
  4228. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4229. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4230. # not for PA HP-UX.
  4231. case $host_cpu in
  4232. hppa*64*|ia64*)
  4233. # +Z the default
  4234. ;;
  4235. *)
  4236. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4237. ;;
  4238. esac
  4239. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4240. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  4241. ;;
  4242. irix5* | irix6* | nonstopux*)
  4243. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4244. # PIC (with -KPIC) is the default.
  4245. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4246. ;;
  4247. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4248. case $cc_basename in
  4249. # old Intel for x86_64, which still supported -KPIC.
  4250. ecc*)
  4251. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4252. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4253. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4254. ;;
  4255. # icc used to be incompatible with GCC.
  4256. # ICC 10 doesn't accept -KPIC any more.
  4257. icc* | ifort*)
  4258. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4259. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4260. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4261. ;;
  4262. # Lahey Fortran 8.1.
  4263. lf95*)
  4264. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4265. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  4266. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  4267. ;;
  4268. nagfor*)
  4269. # NAG Fortran compiler
  4270. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4271. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4272. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4273. ;;
  4274. tcc*)
  4275. # Fabrice Bellard et al's Tiny C Compiler
  4276. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4277. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4278. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4279. ;;
  4280. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  4281. # Portland Group compilers (*not* the Pentium gcc compiler,
  4282. # which looks to be a dead project)
  4283. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4284. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4285. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4286. ;;
  4287. ccc*)
  4288. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4289. # All Alpha code is PIC.
  4290. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4291. ;;
  4292. xl* | bgxl* | bgf* | mpixl*)
  4293. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  4294. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4295. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4296. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4297. ;;
  4298. *)
  4299. case `$CC -V 2>&1 | sed 5q` in
  4300. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  4301. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4302. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4303. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4304. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4305. ;;
  4306. *Sun\ F* | *Sun*Fortran*)
  4307. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4308. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4309. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4310. ;;
  4311. *Sun\ C*)
  4312. # Sun C 5.9
  4313. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4314. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4315. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4316. ;;
  4317. *Intel*\ [[CF]]*Compiler*)
  4318. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4319. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4320. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4321. ;;
  4322. *Portland\ Group*)
  4323. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4324. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4325. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4326. ;;
  4327. esac
  4328. ;;
  4329. esac
  4330. ;;
  4331. newsos6)
  4332. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4333. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4334. ;;
  4335. *nto* | *qnx*)
  4336. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4337. # it will coredump.
  4338. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4339. ;;
  4340. osf3* | osf4* | osf5*)
  4341. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4342. # All OSF/1 code is PIC.
  4343. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4344. ;;
  4345. rdos*)
  4346. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4347. ;;
  4348. solaris*)
  4349. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4350. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4351. case $cc_basename in
  4352. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4353. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4354. *)
  4355. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4356. esac
  4357. ;;
  4358. sunos4*)
  4359. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4360. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4361. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4362. ;;
  4363. sysv4 | sysv4.2uw2* | sysv4.3*)
  4364. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4365. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4366. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4367. ;;
  4368. sysv4*MP*)
  4369. if test -d /usr/nec; then
  4370. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4371. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4372. fi
  4373. ;;
  4374. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4375. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4376. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4377. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4378. ;;
  4379. unicos*)
  4380. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4381. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4382. ;;
  4383. uts4*)
  4384. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4385. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4386. ;;
  4387. *)
  4388. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4389. ;;
  4390. esac
  4391. fi
  4392. ])
  4393. case $host_os in
  4394. # For platforms that do not support PIC, -DPIC is meaningless:
  4395. *djgpp*)
  4396. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4397. ;;
  4398. *)
  4399. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4400. ;;
  4401. esac
  4402. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4403. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4404. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4405. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4406. #
  4407. # Check to make sure the PIC flag actually works.
  4408. #
  4409. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4410. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4411. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4412. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4413. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4414. "" | " "*) ;;
  4415. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4416. esac],
  4417. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4418. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4419. fi
  4420. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4421. [Additional compiler flags for building library objects])
  4422. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4423. [How to pass a linker flag through the compiler])
  4424. #
  4425. # Check to make sure the static flag actually works.
  4426. #
  4427. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4428. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4429. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4430. $lt_tmp_static_flag,
  4431. [],
  4432. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4433. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4434. [Compiler flag to prevent dynamic linking])
  4435. ])# _LT_COMPILER_PIC
  4436. # _LT_LINKER_SHLIBS([TAGNAME])
  4437. # ----------------------------
  4438. # See if the linker supports building shared libraries.
  4439. m4_defun([_LT_LINKER_SHLIBS],
  4440. [AC_REQUIRE([LT_PATH_LD])dnl
  4441. AC_REQUIRE([LT_PATH_NM])dnl
  4442. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4443. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4444. m4_require([_LT_DECL_EGREP])dnl
  4445. m4_require([_LT_DECL_SED])dnl
  4446. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4447. m4_require([_LT_TAG_COMPILER])dnl
  4448. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4449. m4_if([$1], [CXX], [
  4450. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4451. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4452. case $host_os in
  4453. aix[[4-9]]*)
  4454. # If we're using GNU nm, then we don't want the "-C" option.
  4455. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  4456. # Without the "-l" option, or with the "-B" option, AIX nm treats
  4457. # weak defined symbols like other global defined symbols, whereas
  4458. # GNU nm marks them as "W".
  4459. # While the 'weak' keyword is ignored in the Export File, we need
  4460. # it in the Import File for the 'aix-soname' feature, so we have
  4461. # to replace the "-B" option with "-P" for AIX nm.
  4462. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4463. _LT_TAGVAR(export_symbols_cmds, $1)='$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'
  4464. else
  4465. _LT_TAGVAR(export_symbols_cmds, $1)='`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'
  4466. fi
  4467. ;;
  4468. pw32*)
  4469. _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
  4470. ;;
  4471. cygwin* | mingw* | cegcc*)
  4472. case $cc_basename in
  4473. cl*)
  4474. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4475. ;;
  4476. *)
  4477. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4478. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4479. ;;
  4480. esac
  4481. ;;
  4482. *)
  4483. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4484. ;;
  4485. esac
  4486. ], [
  4487. runpath_var=
  4488. _LT_TAGVAR(allow_undefined_flag, $1)=
  4489. _LT_TAGVAR(always_export_symbols, $1)=no
  4490. _LT_TAGVAR(archive_cmds, $1)=
  4491. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4492. _LT_TAGVAR(compiler_needs_object, $1)=no
  4493. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4494. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4495. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4496. _LT_TAGVAR(hardcode_automatic, $1)=no
  4497. _LT_TAGVAR(hardcode_direct, $1)=no
  4498. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4499. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4500. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4501. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4502. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4503. _LT_TAGVAR(inherit_rpath, $1)=no
  4504. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4505. _LT_TAGVAR(module_cmds, $1)=
  4506. _LT_TAGVAR(module_expsym_cmds, $1)=
  4507. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4508. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4509. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4510. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4511. # include_expsyms should be a list of space-separated symbols to be *always*
  4512. # included in the symbol list
  4513. _LT_TAGVAR(include_expsyms, $1)=
  4514. # exclude_expsyms can be an extended regexp of symbols to exclude
  4515. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  4516. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  4517. # as well as any symbol that contains 'd'.
  4518. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4519. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4520. # platforms (ab)use it in PIC code, but their linkers get confused if
  4521. # the symbol is explicitly referenced. Since portable code cannot
  4522. # rely on this symbol name, it's probably fine to never include it in
  4523. # preloaded symbol tables.
  4524. # Exclude shared library initialization/finalization symbols.
  4525. dnl Note also adjust exclude_expsyms for C++ above.
  4526. extract_expsyms_cmds=
  4527. case $host_os in
  4528. cygwin* | mingw* | pw32* | cegcc*)
  4529. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4530. # When not using gcc, we currently assume that we are using
  4531. # Microsoft Visual C++.
  4532. if test yes != "$GCC"; then
  4533. with_gnu_ld=no
  4534. fi
  4535. ;;
  4536. interix*)
  4537. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4538. with_gnu_ld=yes
  4539. ;;
  4540. openbsd* | bitrig*)
  4541. with_gnu_ld=no
  4542. ;;
  4543. esac
  4544. _LT_TAGVAR(ld_shlibs, $1)=yes
  4545. # On some targets, GNU ld is compatible enough with the native linker
  4546. # that we're better off using the native interface for both.
  4547. lt_use_gnu_ld_interface=no
  4548. if test yes = "$with_gnu_ld"; then
  4549. case $host_os in
  4550. aix*)
  4551. # The AIX port of GNU ld has always aspired to compatibility
  4552. # with the native linker. However, as the warning in the GNU ld
  4553. # block says, versions before 2.19.5* couldn't really create working
  4554. # shared libraries, regardless of the interface used.
  4555. case `$LD -v 2>&1` in
  4556. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4557. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4558. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4559. *)
  4560. lt_use_gnu_ld_interface=yes
  4561. ;;
  4562. esac
  4563. ;;
  4564. *)
  4565. lt_use_gnu_ld_interface=yes
  4566. ;;
  4567. esac
  4568. fi
  4569. if test yes = "$lt_use_gnu_ld_interface"; then
  4570. # If archive_cmds runs LD, not CC, wlarc should be empty
  4571. wlarc='$wl'
  4572. # Set some defaults for GNU ld with shared library support. These
  4573. # are reset later if shared libraries are not supported. Putting them
  4574. # here allows them to be overridden if necessary.
  4575. runpath_var=LD_RUN_PATH
  4576. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4577. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  4578. # ancient GNU ld didn't support --whole-archive et. al.
  4579. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4580. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  4581. else
  4582. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4583. fi
  4584. supports_anon_versioning=no
  4585. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  4586. *GNU\ gold*) supports_anon_versioning=yes ;;
  4587. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4588. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4589. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4590. *\ 2.11.*) ;; # other 2.11 versions
  4591. *) supports_anon_versioning=yes ;;
  4592. esac
  4593. # See if GNU ld supports shared libraries.
  4594. case $host_os in
  4595. aix[[3-9]]*)
  4596. # On AIX/PPC, the GNU linker is very broken
  4597. if test ia64 != "$host_cpu"; then
  4598. _LT_TAGVAR(ld_shlibs, $1)=no
  4599. cat <<_LT_EOF 1>&2
  4600. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4601. *** to be unable to reliably create shared libraries on AIX.
  4602. *** Therefore, libtool is disabling shared libraries support. If you
  4603. *** really care for shared libraries, you may want to install binutils
  4604. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4605. *** You will then need to restart the configuration process.
  4606. _LT_EOF
  4607. fi
  4608. ;;
  4609. amigaos*)
  4610. case $host_cpu in
  4611. powerpc)
  4612. # see comment about AmigaOS4 .so support
  4613. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4614. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4615. ;;
  4616. m68k)
  4617. _LT_TAGVAR(archive_cmds, $1)='$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)'
  4618. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4619. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4620. ;;
  4621. esac
  4622. ;;
  4623. beos*)
  4624. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4625. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4626. # Joseph Beckenbach <[email protected]> says some releases of gcc
  4627. # support --undefined. This deserves some investigation. FIXME
  4628. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4629. else
  4630. _LT_TAGVAR(ld_shlibs, $1)=no
  4631. fi
  4632. ;;
  4633. cygwin* | mingw* | pw32* | cegcc*)
  4634. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4635. # as there is no search path for DLLs.
  4636. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4637. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
  4638. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4639. _LT_TAGVAR(always_export_symbols, $1)=no
  4640. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4641. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4642. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4643. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4644. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4645. # If the export-symbols file already is a .def file, use it as
  4646. # is; otherwise, prepend EXPORTS...
  4647. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  4648. cp $export_symbols $output_objdir/$soname.def;
  4649. else
  4650. echo EXPORTS > $output_objdir/$soname.def;
  4651. cat $export_symbols >> $output_objdir/$soname.def;
  4652. fi~
  4653. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4654. else
  4655. _LT_TAGVAR(ld_shlibs, $1)=no
  4656. fi
  4657. ;;
  4658. haiku*)
  4659. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4660. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4661. ;;
  4662. os2*)
  4663. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4664. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4665. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4666. shrext_cmds=.dll
  4667. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  4668. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  4669. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  4670. $ECHO EXPORTS >> $output_objdir/$libname.def~
  4671. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  4672. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  4673. emximp -o $lib $output_objdir/$libname.def'
  4674. _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  4675. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  4676. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  4677. $ECHO EXPORTS >> $output_objdir/$libname.def~
  4678. prefix_cmds="$SED"~
  4679. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  4680. prefix_cmds="$prefix_cmds -e 1d";
  4681. fi~
  4682. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  4683. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  4684. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  4685. emximp -o $lib $output_objdir/$libname.def'
  4686. _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  4687. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4688. ;;
  4689. interix[[3-9]]*)
  4690. _LT_TAGVAR(hardcode_direct, $1)=no
  4691. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4692. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  4693. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  4694. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4695. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4696. # default) and relocated if they conflict, which is a slow very memory
  4697. # consuming and fragmenting process. To avoid this, we pick a random,
  4698. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4699. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4700. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4701. _LT_TAGVAR(archive_expsym_cmds, $1)='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'
  4702. ;;
  4703. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4704. tmp_diet=no
  4705. if test linux-dietlibc = "$host_os"; then
  4706. case $cc_basename in
  4707. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4708. esac
  4709. fi
  4710. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4711. && test no = "$tmp_diet"
  4712. then
  4713. tmp_addflag=' $pic_flag'
  4714. tmp_sharedflag='-shared'
  4715. case $cc_basename,$host_cpu in
  4716. pgcc*) # Portland Group C compiler
  4717. _LT_TAGVAR(whole_archive_flag_spec, $1)='$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'
  4718. tmp_addflag=' $pic_flag'
  4719. ;;
  4720. pgf77* | pgf90* | pgf95* | pgfortran*)
  4721. # Portland Group f77 and f90 compilers
  4722. _LT_TAGVAR(whole_archive_flag_spec, $1)='$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'
  4723. tmp_addflag=' $pic_flag -Mnomain' ;;
  4724. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4725. tmp_addflag=' -i_dynamic' ;;
  4726. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4727. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4728. ifc* | ifort*) # Intel Fortran compiler
  4729. tmp_addflag=' -nofor_main' ;;
  4730. lf95*) # Lahey Fortran 8.1
  4731. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4732. tmp_sharedflag='--shared' ;;
  4733. nagfor*) # NAGFOR 5.3
  4734. tmp_sharedflag='-Wl,-shared' ;;
  4735. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4736. tmp_sharedflag='-qmkshrobj'
  4737. tmp_addflag= ;;
  4738. nvcc*) # Cuda Compiler Driver 2.2
  4739. _LT_TAGVAR(whole_archive_flag_spec, $1)='$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'
  4740. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4741. ;;
  4742. esac
  4743. case `$CC -V 2>&1 | sed 5q` in
  4744. *Sun\ C*) # Sun C 5.9
  4745. _LT_TAGVAR(whole_archive_flag_spec, $1)='$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'
  4746. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4747. tmp_sharedflag='-G' ;;
  4748. *Sun\ F*) # Sun Fortran 8.3
  4749. tmp_sharedflag='-G' ;;
  4750. esac
  4751. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4752. if test yes = "$supports_anon_versioning"; then
  4753. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4754. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4755. echo "local: *; };" >> $output_objdir/$libname.ver~
  4756. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  4757. fi
  4758. case $cc_basename in
  4759. tcc*)
  4760. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
  4761. ;;
  4762. xlf* | bgf* | bgxlf* | mpixlf*)
  4763. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4764. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4765. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4766. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4767. if test yes = "$supports_anon_versioning"; then
  4768. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4769. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4770. echo "local: *; };" >> $output_objdir/$libname.ver~
  4771. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4772. fi
  4773. ;;
  4774. esac
  4775. else
  4776. _LT_TAGVAR(ld_shlibs, $1)=no
  4777. fi
  4778. ;;
  4779. netbsd*)
  4780. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4781. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4782. wlarc=
  4783. else
  4784. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4785. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  4786. fi
  4787. ;;
  4788. solaris*)
  4789. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4790. _LT_TAGVAR(ld_shlibs, $1)=no
  4791. cat <<_LT_EOF 1>&2
  4792. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4793. *** create shared libraries on Solaris systems. Therefore, libtool
  4794. *** is disabling shared libraries support. We urge you to upgrade GNU
  4795. *** binutils to release 2.9.1 or newer. Another option is to modify
  4796. *** your PATH or compiler configuration so that the native linker is
  4797. *** used, and then restart.
  4798. _LT_EOF
  4799. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4800. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4801. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  4802. else
  4803. _LT_TAGVAR(ld_shlibs, $1)=no
  4804. fi
  4805. ;;
  4806. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4807. case `$LD -v 2>&1` in
  4808. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4809. _LT_TAGVAR(ld_shlibs, $1)=no
  4810. cat <<_LT_EOF 1>&2
  4811. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  4812. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4813. *** is disabling shared libraries support. We urge you to upgrade GNU
  4814. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4815. *** your PATH or compiler configuration so that the native linker is
  4816. *** used, and then restart.
  4817. _LT_EOF
  4818. ;;
  4819. *)
  4820. # For security reasons, it is highly recommended that you always
  4821. # use absolute paths for naming shared libraries, and exclude the
  4822. # DT_RUNPATH tag from executables and libraries. But doing so
  4823. # requires that you compile everything twice, which is a pain.
  4824. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4825. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4826. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4827. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  4828. else
  4829. _LT_TAGVAR(ld_shlibs, $1)=no
  4830. fi
  4831. ;;
  4832. esac
  4833. ;;
  4834. sunos4*)
  4835. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4836. wlarc=
  4837. _LT_TAGVAR(hardcode_direct, $1)=yes
  4838. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4839. ;;
  4840. *)
  4841. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4842. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4843. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  4844. else
  4845. _LT_TAGVAR(ld_shlibs, $1)=no
  4846. fi
  4847. ;;
  4848. esac
  4849. if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
  4850. runpath_var=
  4851. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4852. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4853. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4854. fi
  4855. else
  4856. # PORTME fill in a description of your system's linker (not GNU ld)
  4857. case $host_os in
  4858. aix3*)
  4859. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4860. _LT_TAGVAR(always_export_symbols, $1)=yes
  4861. _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  4862. # Note: this linker hardcodes the directories in LIBPATH if there
  4863. # are no directories specified by -L.
  4864. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4865. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  4866. # Neither direct hardcoding nor static linking is supported with a
  4867. # broken collect2.
  4868. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4869. fi
  4870. ;;
  4871. aix[[4-9]]*)
  4872. if test ia64 = "$host_cpu"; then
  4873. # On IA64, the linker does run time linking by default, so we don't
  4874. # have to do anything special.
  4875. aix_use_runtimelinking=no
  4876. exp_sym_flag='-Bexport'
  4877. no_entry_flag=
  4878. else
  4879. # If we're using GNU nm, then we don't want the "-C" option.
  4880. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  4881. # Without the "-l" option, or with the "-B" option, AIX nm treats
  4882. # weak defined symbols like other global defined symbols, whereas
  4883. # GNU nm marks them as "W".
  4884. # While the 'weak' keyword is ignored in the Export File, we need
  4885. # it in the Import File for the 'aix-soname' feature, so we have
  4886. # to replace the "-B" option with "-P" for AIX nm.
  4887. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4888. _LT_TAGVAR(export_symbols_cmds, $1)='$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'
  4889. else
  4890. _LT_TAGVAR(export_symbols_cmds, $1)='`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'
  4891. fi
  4892. aix_use_runtimelinking=no
  4893. # Test if we are trying to use run time linking or normal
  4894. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4895. # have runtime linking enabled, and use it for executables.
  4896. # For shared libraries, we enable/disable runtime linking
  4897. # depending on the kind of the shared library created -
  4898. # when "with_aix_soname,aix_use_runtimelinking" is:
  4899. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  4900. # "aix,yes" lib.so shared, rtl:yes, for executables
  4901. # lib.a static archive
  4902. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  4903. # lib.a(lib.so.V) shared, rtl:no, for executables
  4904. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  4905. # lib.a(lib.so.V) shared, rtl:no
  4906. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  4907. # lib.a static archive
  4908. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4909. for ld_flag in $LDFLAGS; do
  4910. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  4911. aix_use_runtimelinking=yes
  4912. break
  4913. fi
  4914. done
  4915. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  4916. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  4917. # so we don't have lib.a shared libs to link our executables.
  4918. # We have to force runtime linking in this case.
  4919. aix_use_runtimelinking=yes
  4920. LDFLAGS="$LDFLAGS -Wl,-brtl"
  4921. fi
  4922. ;;
  4923. esac
  4924. exp_sym_flag='-bexport'
  4925. no_entry_flag='-bnoentry'
  4926. fi
  4927. # When large executables or shared objects are built, AIX ld can
  4928. # have problems creating the table of contents. If linking a library
  4929. # or program results in "error TOC overflow" add -mminimal-toc to
  4930. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4931. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4932. _LT_TAGVAR(archive_cmds, $1)=''
  4933. _LT_TAGVAR(hardcode_direct, $1)=yes
  4934. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4935. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4936. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4937. _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
  4938. case $with_aix_soname,$aix_use_runtimelinking in
  4939. aix,*) ;; # traditional, no import file
  4940. svr4,* | *,yes) # use import file
  4941. # The Import File defines what to hardcode.
  4942. _LT_TAGVAR(hardcode_direct, $1)=no
  4943. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4944. ;;
  4945. esac
  4946. if test yes = "$GCC"; then
  4947. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4948. # We only want to do this on AIX 4.2 and lower, the check
  4949. # below for broken collect2 doesn't work under 4.3+
  4950. collect2name=`$CC -print-prog-name=collect2`
  4951. if test -f "$collect2name" &&
  4952. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4953. then
  4954. # We have reworked collect2
  4955. :
  4956. else
  4957. # We have old collect2
  4958. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4959. # It fails to find uninstalled libraries when the uninstalled
  4960. # path is not listed in the libpath. Setting hardcode_minus_L
  4961. # to unsupported forces relinking
  4962. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4963. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4964. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4965. fi
  4966. ;;
  4967. esac
  4968. shared_flag='-shared'
  4969. if test yes = "$aix_use_runtimelinking"; then
  4970. shared_flag="$shared_flag "'$wl-G'
  4971. fi
  4972. # Need to ensure runtime linking is disabled for the traditional
  4973. # shared library, or the linker may eventually find shared libraries
  4974. # /with/ Import File - we do not want to mix them.
  4975. shared_flag_aix='-shared'
  4976. shared_flag_svr4='-shared $wl-G'
  4977. else
  4978. # not using gcc
  4979. if test ia64 = "$host_cpu"; then
  4980. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4981. # chokes on -Wl,-G. The following line is correct:
  4982. shared_flag='-G'
  4983. else
  4984. if test yes = "$aix_use_runtimelinking"; then
  4985. shared_flag='$wl-G'
  4986. else
  4987. shared_flag='$wl-bM:SRE'
  4988. fi
  4989. shared_flag_aix='$wl-bM:SRE'
  4990. shared_flag_svr4='$wl-G'
  4991. fi
  4992. fi
  4993. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
  4994. # It seems that -bexpall does not export symbols beginning with
  4995. # underscore (_), so it is better to generate a list of symbols to export.
  4996. _LT_TAGVAR(always_export_symbols, $1)=yes
  4997. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  4998. # Warning - without using the other runtime loading flags (-brtl),
  4999. # -berok will link without error, but may produce a broken library.
  5000. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5001. # Determine the default libpath from the value encoded in an
  5002. # empty executable.
  5003. _LT_SYS_MODULE_PATH_AIX([$1])
  5004. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5005. _LT_TAGVAR(archive_expsym_cmds, $1)='$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
  5006. else
  5007. if test ia64 = "$host_cpu"; then
  5008. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
  5009. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5010. _LT_TAGVAR(archive_expsym_cmds, $1)="\$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"
  5011. else
  5012. # Determine the default libpath from the value encoded in an
  5013. # empty executable.
  5014. _LT_SYS_MODULE_PATH_AIX([$1])
  5015. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5016. # Warning - without using the other run time loading flags,
  5017. # -berok will link without error, but may produce a broken library.
  5018. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
  5019. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
  5020. if test yes = "$with_gnu_ld"; then
  5021. # We only use this code for GNU lds that support --whole-archive.
  5022. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  5023. else
  5024. # Exported symbols can be pulled into shared objects from archives
  5025. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5026. fi
  5027. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5028. _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  5029. # -brtl affects multiple linker settings, -berok does not and is overridden later
  5030. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
  5031. if test svr4 != "$with_aix_soname"; then
  5032. # This is similar to how AIX traditionally builds its shared libraries.
  5033. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$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'
  5034. fi
  5035. if test aix != "$with_aix_soname"; then
  5036. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$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'
  5037. else
  5038. # used by -dlpreopen to get the symbols
  5039. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  5040. fi
  5041. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
  5042. fi
  5043. fi
  5044. ;;
  5045. amigaos*)
  5046. case $host_cpu in
  5047. powerpc)
  5048. # see comment about AmigaOS4 .so support
  5049. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5050. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5051. ;;
  5052. m68k)
  5053. _LT_TAGVAR(archive_cmds, $1)='$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)'
  5054. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5055. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5056. ;;
  5057. esac
  5058. ;;
  5059. bsdi[[45]]*)
  5060. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5061. ;;
  5062. cygwin* | mingw* | pw32* | cegcc*)
  5063. # When not using gcc, we currently assume that we are using
  5064. # Microsoft Visual C++.
  5065. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5066. # no search path for DLLs.
  5067. case $cc_basename in
  5068. cl*)
  5069. # Native MSVC
  5070. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5071. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5072. _LT_TAGVAR(always_export_symbols, $1)=yes
  5073. _LT_TAGVAR(file_list_spec, $1)='@'
  5074. # Tell ltmain to make .lib files, not .a files.
  5075. libext=lib
  5076. # Tell ltmain to make .dll files, not .so files.
  5077. shrext_cmds=.dll
  5078. # FIXME: Setting linknames here is a bad hack.
  5079. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  5080. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  5081. cp "$export_symbols" "$output_objdir/$soname.def";
  5082. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  5083. else
  5084. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  5085. fi~
  5086. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5087. linknames='
  5088. # The linker will not automatically build a static lib if we build a DLL.
  5089. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5090. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5091. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  5092. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  5093. # Don't use ranlib
  5094. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5095. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5096. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5097. case $lt_outputfile in
  5098. *.exe|*.EXE) ;;
  5099. *)
  5100. lt_outputfile=$lt_outputfile.exe
  5101. lt_tool_outputfile=$lt_tool_outputfile.exe
  5102. ;;
  5103. esac~
  5104. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  5105. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5106. $RM "$lt_outputfile.manifest";
  5107. fi'
  5108. ;;
  5109. *)
  5110. # Assume MSVC wrapper
  5111. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5112. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5113. # Tell ltmain to make .lib files, not .a files.
  5114. libext=lib
  5115. # Tell ltmain to make .dll files, not .so files.
  5116. shrext_cmds=.dll
  5117. # FIXME: Setting linknames here is a bad hack.
  5118. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  5119. # The linker will automatically build a .lib file if we build a DLL.
  5120. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5121. # FIXME: Should let the user specify the lib program.
  5122. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  5123. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5124. ;;
  5125. esac
  5126. ;;
  5127. darwin* | rhapsody*)
  5128. _LT_DARWIN_LINKER_FEATURES($1)
  5129. ;;
  5130. dgux*)
  5131. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5132. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5133. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5134. ;;
  5135. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5136. # support. Future versions do this automatically, but an explicit c++rt0.o
  5137. # does not break anything, and helps significantly (at the cost of a little
  5138. # extra space).
  5139. freebsd2.2*)
  5140. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5141. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5142. _LT_TAGVAR(hardcode_direct, $1)=yes
  5143. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5144. ;;
  5145. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5146. freebsd2.*)
  5147. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5148. _LT_TAGVAR(hardcode_direct, $1)=yes
  5149. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5150. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5151. ;;
  5152. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5153. freebsd* | dragonfly*)
  5154. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5155. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5156. _LT_TAGVAR(hardcode_direct, $1)=yes
  5157. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5158. ;;
  5159. hpux9*)
  5160. if test yes = "$GCC"; then
  5161. _LT_TAGVAR(archive_cmds, $1)='$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'
  5162. else
  5163. _LT_TAGVAR(archive_cmds, $1)='$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'
  5164. fi
  5165. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5166. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5167. _LT_TAGVAR(hardcode_direct, $1)=yes
  5168. # hardcode_minus_L: Not really in the search PATH,
  5169. # but as the default location of the library.
  5170. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5171. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5172. ;;
  5173. hpux10*)
  5174. if test yes,no = "$GCC,$with_gnu_ld"; then
  5175. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5176. else
  5177. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5178. fi
  5179. if test no = "$with_gnu_ld"; then
  5180. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5181. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5182. _LT_TAGVAR(hardcode_direct, $1)=yes
  5183. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5184. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5185. # hardcode_minus_L: Not really in the search PATH,
  5186. # but as the default location of the library.
  5187. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5188. fi
  5189. ;;
  5190. hpux11*)
  5191. if test yes,no = "$GCC,$with_gnu_ld"; then
  5192. case $host_cpu in
  5193. hppa*64*)
  5194. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5195. ;;
  5196. ia64*)
  5197. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5198. ;;
  5199. *)
  5200. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5201. ;;
  5202. esac
  5203. else
  5204. case $host_cpu in
  5205. hppa*64*)
  5206. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5207. ;;
  5208. ia64*)
  5209. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5210. ;;
  5211. *)
  5212. m4_if($1, [], [
  5213. # Older versions of the 11.00 compiler do not understand -b yet
  5214. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  5215. _LT_LINKER_OPTION([if $CC understands -b],
  5216. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  5217. [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  5218. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  5219. [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  5220. ;;
  5221. esac
  5222. fi
  5223. if test no = "$with_gnu_ld"; then
  5224. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5225. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5226. case $host_cpu in
  5227. hppa*64*|ia64*)
  5228. _LT_TAGVAR(hardcode_direct, $1)=no
  5229. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5230. ;;
  5231. *)
  5232. _LT_TAGVAR(hardcode_direct, $1)=yes
  5233. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5234. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5235. # hardcode_minus_L: Not really in the search PATH,
  5236. # but as the default location of the library.
  5237. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5238. ;;
  5239. esac
  5240. fi
  5241. ;;
  5242. irix5* | irix6* | nonstopux*)
  5243. if test yes = "$GCC"; then
  5244. _LT_TAGVAR(archive_cmds, $1)='$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'
  5245. # Try to use the -exported_symbol ld option, if it does not
  5246. # work, assume that -exports_file does not work either and
  5247. # implicitly export all symbols.
  5248. # This should be the same for all languages, so no per-tag cache variable.
  5249. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  5250. [lt_cv_irix_exported_symbol],
  5251. [save_LDFLAGS=$LDFLAGS
  5252. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  5253. AC_LINK_IFELSE(
  5254. [AC_LANG_SOURCE(
  5255. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  5256. [C++], [[int foo (void) { return 0; }]],
  5257. [Fortran 77], [[
  5258. subroutine foo
  5259. end]],
  5260. [Fortran], [[
  5261. subroutine foo
  5262. end]])])],
  5263. [lt_cv_irix_exported_symbol=yes],
  5264. [lt_cv_irix_exported_symbol=no])
  5265. LDFLAGS=$save_LDFLAGS])
  5266. if test yes = "$lt_cv_irix_exported_symbol"; then
  5267. _LT_TAGVAR(archive_expsym_cmds, $1)='$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'
  5268. fi
  5269. else
  5270. _LT_TAGVAR(archive_cmds, $1)='$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'
  5271. _LT_TAGVAR(archive_expsym_cmds, $1)='$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'
  5272. fi
  5273. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5274. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5275. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5276. _LT_TAGVAR(inherit_rpath, $1)=yes
  5277. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5278. ;;
  5279. linux*)
  5280. case $cc_basename in
  5281. tcc*)
  5282. # Fabrice Bellard et al's Tiny C Compiler
  5283. _LT_TAGVAR(ld_shlibs, $1)=yes
  5284. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5285. ;;
  5286. esac
  5287. ;;
  5288. netbsd*)
  5289. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5290. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5291. else
  5292. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5293. fi
  5294. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5295. _LT_TAGVAR(hardcode_direct, $1)=yes
  5296. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5297. ;;
  5298. newsos6)
  5299. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5300. _LT_TAGVAR(hardcode_direct, $1)=yes
  5301. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5302. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5303. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5304. ;;
  5305. *nto* | *qnx*)
  5306. ;;
  5307. openbsd* | bitrig*)
  5308. if test -f /usr/libexec/ld.so; then
  5309. _LT_TAGVAR(hardcode_direct, $1)=yes
  5310. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5311. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5312. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5313. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5314. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  5315. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5316. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5317. else
  5318. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5319. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5320. fi
  5321. else
  5322. _LT_TAGVAR(ld_shlibs, $1)=no
  5323. fi
  5324. ;;
  5325. os2*)
  5326. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5327. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5328. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5329. shrext_cmds=.dll
  5330. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  5331. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  5332. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  5333. $ECHO EXPORTS >> $output_objdir/$libname.def~
  5334. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  5335. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  5336. emximp -o $lib $output_objdir/$libname.def'
  5337. _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  5338. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  5339. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  5340. $ECHO EXPORTS >> $output_objdir/$libname.def~
  5341. prefix_cmds="$SED"~
  5342. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  5343. prefix_cmds="$prefix_cmds -e 1d";
  5344. fi~
  5345. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  5346. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  5347. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  5348. emximp -o $lib $output_objdir/$libname.def'
  5349. _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  5350. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5351. ;;
  5352. osf3*)
  5353. if test yes = "$GCC"; then
  5354. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  5355. _LT_TAGVAR(archive_cmds, $1)='$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'
  5356. else
  5357. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5358. _LT_TAGVAR(archive_cmds, $1)='$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'
  5359. fi
  5360. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5361. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5362. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5363. ;;
  5364. osf4* | osf5*) # as osf3* with the addition of -msym flag
  5365. if test yes = "$GCC"; then
  5366. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  5367. _LT_TAGVAR(archive_cmds, $1)='$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'
  5368. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5369. else
  5370. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5371. _LT_TAGVAR(archive_cmds, $1)='$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'
  5372. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  5373. $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'
  5374. # Both c and cxx compiler support -rpath directly
  5375. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5376. fi
  5377. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5378. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5379. ;;
  5380. solaris*)
  5381. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  5382. if test yes = "$GCC"; then
  5383. wlarc='$wl'
  5384. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5385. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5386. $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'
  5387. else
  5388. case `$CC -V 2>&1` in
  5389. *"Compilers 5.0"*)
  5390. wlarc=''
  5391. _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5392. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5393. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  5394. ;;
  5395. *)
  5396. wlarc='$wl'
  5397. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5398. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5399. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5400. ;;
  5401. esac
  5402. fi
  5403. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5404. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5405. case $host_os in
  5406. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5407. *)
  5408. # The compiler driver will combine and reorder linker options,
  5409. # but understands '-z linker_flag'. GCC discards it without '$wl',
  5410. # but is careful enough not to reorder.
  5411. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5412. if test yes = "$GCC"; then
  5413. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  5414. else
  5415. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5416. fi
  5417. ;;
  5418. esac
  5419. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5420. ;;
  5421. sunos4*)
  5422. if test sequent = "$host_vendor"; then
  5423. # Use $CC to link under sequent, because it throws in some extra .o
  5424. # files that make .init and .fini sections work.
  5425. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5426. else
  5427. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5428. fi
  5429. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5430. _LT_TAGVAR(hardcode_direct, $1)=yes
  5431. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5432. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5433. ;;
  5434. sysv4)
  5435. case $host_vendor in
  5436. sni)
  5437. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5438. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5439. ;;
  5440. siemens)
  5441. ## LD is ld it makes a PLAMLIB
  5442. ## CC just makes a GrossModule.
  5443. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5444. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5445. _LT_TAGVAR(hardcode_direct, $1)=no
  5446. ;;
  5447. motorola)
  5448. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5449. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5450. ;;
  5451. esac
  5452. runpath_var='LD_RUN_PATH'
  5453. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5454. ;;
  5455. sysv4.3*)
  5456. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5457. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5458. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5459. ;;
  5460. sysv4*MP*)
  5461. if test -d /usr/nec; then
  5462. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5463. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5464. runpath_var=LD_RUN_PATH
  5465. hardcode_runpath_var=yes
  5466. _LT_TAGVAR(ld_shlibs, $1)=yes
  5467. fi
  5468. ;;
  5469. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5470. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  5471. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5472. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5473. runpath_var='LD_RUN_PATH'
  5474. if test yes = "$GCC"; then
  5475. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5476. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5477. else
  5478. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5479. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5480. fi
  5481. ;;
  5482. sysv5* | sco3.2v5* | sco5v6*)
  5483. # Note: We CANNOT use -z defs as we might desire, because we do not
  5484. # link with -lc, and that would cause any symbols used from libc to
  5485. # always be unresolved, which means just about no library would
  5486. # ever link correctly. If we're not using GNU ld we use -z text
  5487. # though, which does catch some bad symbols but isn't as heavy-handed
  5488. # as -z defs.
  5489. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  5490. _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
  5491. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5492. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5493. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
  5494. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5495. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5496. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
  5497. runpath_var='LD_RUN_PATH'
  5498. if test yes = "$GCC"; then
  5499. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5500. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5501. else
  5502. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5503. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5504. fi
  5505. ;;
  5506. uts4*)
  5507. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5508. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5509. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5510. ;;
  5511. *)
  5512. _LT_TAGVAR(ld_shlibs, $1)=no
  5513. ;;
  5514. esac
  5515. if test sni = "$host_vendor"; then
  5516. case $host in
  5517. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5518. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
  5519. ;;
  5520. esac
  5521. fi
  5522. fi
  5523. ])
  5524. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5525. test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
  5526. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5527. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5528. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5529. _LT_DECL([], [extract_expsyms_cmds], [2],
  5530. [The commands to extract the exported symbol list from a shared archive])
  5531. #
  5532. # Do we need to explicitly link libc?
  5533. #
  5534. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5535. x|xyes)
  5536. # Assume -lc should be added
  5537. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5538. if test yes,yes = "$GCC,$enable_shared"; then
  5539. case $_LT_TAGVAR(archive_cmds, $1) in
  5540. *'~'*)
  5541. # FIXME: we may have to deal with multi-command sequences.
  5542. ;;
  5543. '$CC '*)
  5544. # Test whether the compiler implicitly links with -lc since on some
  5545. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5546. # to ld, don't add -lc before -lgcc.
  5547. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5548. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5549. [$RM conftest*
  5550. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5551. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5552. soname=conftest
  5553. lib=conftest
  5554. libobjs=conftest.$ac_objext
  5555. deplibs=
  5556. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5557. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5558. compiler_flags=-v
  5559. linker_flags=-v
  5560. verstring=
  5561. output_objdir=.
  5562. libname=conftest
  5563. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5564. _LT_TAGVAR(allow_undefined_flag, $1)=
  5565. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5566. then
  5567. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5568. else
  5569. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5570. fi
  5571. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5572. else
  5573. cat conftest.err 1>&5
  5574. fi
  5575. $RM conftest*
  5576. ])
  5577. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5578. ;;
  5579. esac
  5580. fi
  5581. ;;
  5582. esac
  5583. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5584. [Whether or not to add -lc for building shared libraries])
  5585. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5586. [enable_shared_with_static_runtimes], [0],
  5587. [Whether or not to disallow shared libs when runtime libs are static])
  5588. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5589. [Compiler flag to allow reflexive dlopens])
  5590. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5591. [Compiler flag to generate shared objects directly from archives])
  5592. _LT_TAGDECL([], [compiler_needs_object], [1],
  5593. [Whether the compiler copes with passing no objects directly])
  5594. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5595. [Create an old-style archive from a shared archive])
  5596. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5597. [Create a temporary old-style archive to link instead of a shared archive])
  5598. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5599. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5600. _LT_TAGDECL([], [module_cmds], [2],
  5601. [Commands used to build a loadable module if different from building
  5602. a shared archive.])
  5603. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5604. _LT_TAGDECL([], [with_gnu_ld], [1],
  5605. [Whether we are building with GNU ld or not])
  5606. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5607. [Flag that allows shared libraries with undefined symbols to be built])
  5608. _LT_TAGDECL([], [no_undefined_flag], [1],
  5609. [Flag that enforces no undefined symbols])
  5610. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5611. [Flag to hardcode $libdir into a binary during linking.
  5612. This must work even if $libdir does not exist])
  5613. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5614. [Whether we need a single "-rpath" flag with a separated argument])
  5615. _LT_TAGDECL([], [hardcode_direct], [0],
  5616. [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
  5617. DIR into the resulting binary])
  5618. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5619. [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
  5620. DIR into the resulting binary and the resulting library dependency is
  5621. "absolute", i.e impossible to change by setting $shlibpath_var if the
  5622. library is relocated])
  5623. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5624. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5625. into the resulting binary])
  5626. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5627. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5628. into the resulting binary])
  5629. _LT_TAGDECL([], [hardcode_automatic], [0],
  5630. [Set to "yes" if building a shared library automatically hardcodes DIR
  5631. into the library and all subsequent libraries and executables linked
  5632. against it])
  5633. _LT_TAGDECL([], [inherit_rpath], [0],
  5634. [Set to yes if linker adds runtime paths of dependent libraries
  5635. to runtime path list])
  5636. _LT_TAGDECL([], [link_all_deplibs], [0],
  5637. [Whether libtool must link a program against all its dependency libraries])
  5638. _LT_TAGDECL([], [always_export_symbols], [0],
  5639. [Set to "yes" if exported symbols are required])
  5640. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5641. [The commands to list exported symbols])
  5642. _LT_TAGDECL([], [exclude_expsyms], [1],
  5643. [Symbols that should not be listed in the preloaded symbols])
  5644. _LT_TAGDECL([], [include_expsyms], [1],
  5645. [Symbols that must always be exported])
  5646. _LT_TAGDECL([], [prelink_cmds], [2],
  5647. [Commands necessary for linking programs (against libraries) with templates])
  5648. _LT_TAGDECL([], [postlink_cmds], [2],
  5649. [Commands necessary for finishing linking programs])
  5650. _LT_TAGDECL([], [file_list_spec], [1],
  5651. [Specify filename containing input files])
  5652. dnl FIXME: Not yet implemented
  5653. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5654. dnl [Compiler flag to generate thread safe objects])
  5655. ])# _LT_LINKER_SHLIBS
  5656. # _LT_LANG_C_CONFIG([TAG])
  5657. # ------------------------
  5658. # Ensure that the configuration variables for a C compiler are suitably
  5659. # defined. These variables are subsequently used by _LT_CONFIG to write
  5660. # the compiler configuration to 'libtool'.
  5661. m4_defun([_LT_LANG_C_CONFIG],
  5662. [m4_require([_LT_DECL_EGREP])dnl
  5663. lt_save_CC=$CC
  5664. AC_LANG_PUSH(C)
  5665. # Source file extension for C test sources.
  5666. ac_ext=c
  5667. # Object file extension for compiled C test sources.
  5668. objext=o
  5669. _LT_TAGVAR(objext, $1)=$objext
  5670. # Code to be used in simple compile tests
  5671. lt_simple_compile_test_code="int some_variable = 0;"
  5672. # Code to be used in simple link tests
  5673. lt_simple_link_test_code='int main(){return(0);}'
  5674. _LT_TAG_COMPILER
  5675. # Save the default compiler, since it gets overwritten when the other
  5676. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5677. compiler_DEFAULT=$CC
  5678. # save warnings/boilerplate of simple test code
  5679. _LT_COMPILER_BOILERPLATE
  5680. _LT_LINKER_BOILERPLATE
  5681. if test -n "$compiler"; then
  5682. _LT_COMPILER_NO_RTTI($1)
  5683. _LT_COMPILER_PIC($1)
  5684. _LT_COMPILER_C_O($1)
  5685. _LT_COMPILER_FILE_LOCKS($1)
  5686. _LT_LINKER_SHLIBS($1)
  5687. _LT_SYS_DYNAMIC_LINKER($1)
  5688. _LT_LINKER_HARDCODE_LIBPATH($1)
  5689. LT_SYS_DLOPEN_SELF
  5690. _LT_CMD_STRIPLIB
  5691. # Report what library types will actually be built
  5692. AC_MSG_CHECKING([if libtool supports shared libraries])
  5693. AC_MSG_RESULT([$can_build_shared])
  5694. AC_MSG_CHECKING([whether to build shared libraries])
  5695. test no = "$can_build_shared" && enable_shared=no
  5696. # On AIX, shared libraries and static libraries use the same namespace, and
  5697. # are all built from PIC.
  5698. case $host_os in
  5699. aix3*)
  5700. test yes = "$enable_shared" && enable_static=no
  5701. if test -n "$RANLIB"; then
  5702. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5703. postinstall_cmds='$RANLIB $lib'
  5704. fi
  5705. ;;
  5706. aix[[4-9]]*)
  5707. if test ia64 != "$host_cpu"; then
  5708. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  5709. yes,aix,yes) ;; # shared object as lib.so file only
  5710. yes,svr4,*) ;; # shared object as lib.so archive member only
  5711. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  5712. esac
  5713. fi
  5714. ;;
  5715. esac
  5716. AC_MSG_RESULT([$enable_shared])
  5717. AC_MSG_CHECKING([whether to build static libraries])
  5718. # Make sure either enable_shared or enable_static is yes.
  5719. test yes = "$enable_shared" || enable_static=yes
  5720. AC_MSG_RESULT([$enable_static])
  5721. _LT_CONFIG($1)
  5722. fi
  5723. AC_LANG_POP
  5724. CC=$lt_save_CC
  5725. ])# _LT_LANG_C_CONFIG
  5726. # _LT_LANG_CXX_CONFIG([TAG])
  5727. # --------------------------
  5728. # Ensure that the configuration variables for a C++ compiler are suitably
  5729. # defined. These variables are subsequently used by _LT_CONFIG to write
  5730. # the compiler configuration to 'libtool'.
  5731. m4_defun([_LT_LANG_CXX_CONFIG],
  5732. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5733. m4_require([_LT_DECL_EGREP])dnl
  5734. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5735. if test -n "$CXX" && ( test no != "$CXX" &&
  5736. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  5737. (test g++ != "$CXX"))); then
  5738. AC_PROG_CXXCPP
  5739. else
  5740. _lt_caught_CXX_error=yes
  5741. fi
  5742. AC_LANG_PUSH(C++)
  5743. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5744. _LT_TAGVAR(allow_undefined_flag, $1)=
  5745. _LT_TAGVAR(always_export_symbols, $1)=no
  5746. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5747. _LT_TAGVAR(compiler_needs_object, $1)=no
  5748. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5749. _LT_TAGVAR(hardcode_direct, $1)=no
  5750. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5751. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5752. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5753. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5754. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5755. _LT_TAGVAR(hardcode_automatic, $1)=no
  5756. _LT_TAGVAR(inherit_rpath, $1)=no
  5757. _LT_TAGVAR(module_cmds, $1)=
  5758. _LT_TAGVAR(module_expsym_cmds, $1)=
  5759. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5760. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5761. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5762. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5763. _LT_TAGVAR(no_undefined_flag, $1)=
  5764. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5765. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5766. # Source file extension for C++ test sources.
  5767. ac_ext=cpp
  5768. # Object file extension for compiled C++ test sources.
  5769. objext=o
  5770. _LT_TAGVAR(objext, $1)=$objext
  5771. # No sense in running all these tests if we already determined that
  5772. # the CXX compiler isn't working. Some variables (like enable_shared)
  5773. # are currently assumed to apply to all compilers on this platform,
  5774. # and will be corrupted by setting them based on a non-working compiler.
  5775. if test yes != "$_lt_caught_CXX_error"; then
  5776. # Code to be used in simple compile tests
  5777. lt_simple_compile_test_code="int some_variable = 0;"
  5778. # Code to be used in simple link tests
  5779. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5780. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5781. _LT_TAG_COMPILER
  5782. # save warnings/boilerplate of simple test code
  5783. _LT_COMPILER_BOILERPLATE
  5784. _LT_LINKER_BOILERPLATE
  5785. # Allow CC to be a program name with arguments.
  5786. lt_save_CC=$CC
  5787. lt_save_CFLAGS=$CFLAGS
  5788. lt_save_LD=$LD
  5789. lt_save_GCC=$GCC
  5790. GCC=$GXX
  5791. lt_save_with_gnu_ld=$with_gnu_ld
  5792. lt_save_path_LD=$lt_cv_path_LD
  5793. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5794. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5795. else
  5796. $as_unset lt_cv_prog_gnu_ld
  5797. fi
  5798. if test -n "${lt_cv_path_LDCXX+set}"; then
  5799. lt_cv_path_LD=$lt_cv_path_LDCXX
  5800. else
  5801. $as_unset lt_cv_path_LD
  5802. fi
  5803. test -z "${LDCXX+set}" || LD=$LDCXX
  5804. CC=${CXX-"c++"}
  5805. CFLAGS=$CXXFLAGS
  5806. compiler=$CC
  5807. _LT_TAGVAR(compiler, $1)=$CC
  5808. _LT_CC_BASENAME([$compiler])
  5809. if test -n "$compiler"; then
  5810. # We don't want -fno-exception when compiling C++ code, so set the
  5811. # no_builtin_flag separately
  5812. if test yes = "$GXX"; then
  5813. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5814. else
  5815. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5816. fi
  5817. if test yes = "$GXX"; then
  5818. # Set up default GNU C++ configuration
  5819. LT_PATH_LD
  5820. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5821. # archiving commands below assume that GNU ld is being used.
  5822. if test yes = "$with_gnu_ld"; then
  5823. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  5824. _LT_TAGVAR(archive_expsym_cmds, $1)='$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'
  5825. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5826. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  5827. # If archive_cmds runs LD, not CC, wlarc should be empty
  5828. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5829. # investigate it a little bit more. (MM)
  5830. wlarc='$wl'
  5831. # ancient GNU ld didn't support --whole-archive et. al.
  5832. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5833. $GREP 'no-whole-archive' > /dev/null; then
  5834. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  5835. else
  5836. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5837. fi
  5838. else
  5839. with_gnu_ld=no
  5840. wlarc=
  5841. # A generic and very simple default shared library creation
  5842. # command for GNU C++ for the case where it uses the native
  5843. # linker, instead of GNU ld. If possible, this setting should
  5844. # overridden to take advantage of the native linker features on
  5845. # the platform it is being used on.
  5846. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5847. fi
  5848. # Commands to make compiler produce verbose output that lists
  5849. # what "hidden" libraries, object files and flags are used when
  5850. # linking a shared library.
  5851. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5852. else
  5853. GXX=no
  5854. with_gnu_ld=no
  5855. wlarc=
  5856. fi
  5857. # PORTME: fill in a description of your system's C++ link characteristics
  5858. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5859. _LT_TAGVAR(ld_shlibs, $1)=yes
  5860. case $host_os in
  5861. aix3*)
  5862. # FIXME: insert proper C++ library support
  5863. _LT_TAGVAR(ld_shlibs, $1)=no
  5864. ;;
  5865. aix[[4-9]]*)
  5866. if test ia64 = "$host_cpu"; then
  5867. # On IA64, the linker does run time linking by default, so we don't
  5868. # have to do anything special.
  5869. aix_use_runtimelinking=no
  5870. exp_sym_flag='-Bexport'
  5871. no_entry_flag=
  5872. else
  5873. aix_use_runtimelinking=no
  5874. # Test if we are trying to use run time linking or normal
  5875. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5876. # have runtime linking enabled, and use it for executables.
  5877. # For shared libraries, we enable/disable runtime linking
  5878. # depending on the kind of the shared library created -
  5879. # when "with_aix_soname,aix_use_runtimelinking" is:
  5880. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  5881. # "aix,yes" lib.so shared, rtl:yes, for executables
  5882. # lib.a static archive
  5883. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  5884. # lib.a(lib.so.V) shared, rtl:no, for executables
  5885. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  5886. # lib.a(lib.so.V) shared, rtl:no
  5887. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  5888. # lib.a static archive
  5889. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5890. for ld_flag in $LDFLAGS; do
  5891. case $ld_flag in
  5892. *-brtl*)
  5893. aix_use_runtimelinking=yes
  5894. break
  5895. ;;
  5896. esac
  5897. done
  5898. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  5899. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  5900. # so we don't have lib.a shared libs to link our executables.
  5901. # We have to force runtime linking in this case.
  5902. aix_use_runtimelinking=yes
  5903. LDFLAGS="$LDFLAGS -Wl,-brtl"
  5904. fi
  5905. ;;
  5906. esac
  5907. exp_sym_flag='-bexport'
  5908. no_entry_flag='-bnoentry'
  5909. fi
  5910. # When large executables or shared objects are built, AIX ld can
  5911. # have problems creating the table of contents. If linking a library
  5912. # or program results in "error TOC overflow" add -mminimal-toc to
  5913. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5914. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5915. _LT_TAGVAR(archive_cmds, $1)=''
  5916. _LT_TAGVAR(hardcode_direct, $1)=yes
  5917. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5918. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5919. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5920. _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
  5921. case $with_aix_soname,$aix_use_runtimelinking in
  5922. aix,*) ;; # no import file
  5923. svr4,* | *,yes) # use import file
  5924. # The Import File defines what to hardcode.
  5925. _LT_TAGVAR(hardcode_direct, $1)=no
  5926. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5927. ;;
  5928. esac
  5929. if test yes = "$GXX"; then
  5930. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5931. # We only want to do this on AIX 4.2 and lower, the check
  5932. # below for broken collect2 doesn't work under 4.3+
  5933. collect2name=`$CC -print-prog-name=collect2`
  5934. if test -f "$collect2name" &&
  5935. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5936. then
  5937. # We have reworked collect2
  5938. :
  5939. else
  5940. # We have old collect2
  5941. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5942. # It fails to find uninstalled libraries when the uninstalled
  5943. # path is not listed in the libpath. Setting hardcode_minus_L
  5944. # to unsupported forces relinking
  5945. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5946. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5947. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5948. fi
  5949. esac
  5950. shared_flag='-shared'
  5951. if test yes = "$aix_use_runtimelinking"; then
  5952. shared_flag=$shared_flag' $wl-G'
  5953. fi
  5954. # Need to ensure runtime linking is disabled for the traditional
  5955. # shared library, or the linker may eventually find shared libraries
  5956. # /with/ Import File - we do not want to mix them.
  5957. shared_flag_aix='-shared'
  5958. shared_flag_svr4='-shared $wl-G'
  5959. else
  5960. # not using gcc
  5961. if test ia64 = "$host_cpu"; then
  5962. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5963. # chokes on -Wl,-G. The following line is correct:
  5964. shared_flag='-G'
  5965. else
  5966. if test yes = "$aix_use_runtimelinking"; then
  5967. shared_flag='$wl-G'
  5968. else
  5969. shared_flag='$wl-bM:SRE'
  5970. fi
  5971. shared_flag_aix='$wl-bM:SRE'
  5972. shared_flag_svr4='$wl-G'
  5973. fi
  5974. fi
  5975. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
  5976. # It seems that -bexpall does not export symbols beginning with
  5977. # underscore (_), so it is better to generate a list of symbols to
  5978. # export.
  5979. _LT_TAGVAR(always_export_symbols, $1)=yes
  5980. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  5981. # Warning - without using the other runtime loading flags (-brtl),
  5982. # -berok will link without error, but may produce a broken library.
  5983. # The "-G" linker flag allows undefined symbols.
  5984. _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
  5985. # Determine the default libpath from the value encoded in an empty
  5986. # executable.
  5987. _LT_SYS_MODULE_PATH_AIX([$1])
  5988. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5989. _LT_TAGVAR(archive_expsym_cmds, $1)='$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
  5990. else
  5991. if test ia64 = "$host_cpu"; then
  5992. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
  5993. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5994. _LT_TAGVAR(archive_expsym_cmds, $1)="\$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"
  5995. else
  5996. # Determine the default libpath from the value encoded in an
  5997. # empty executable.
  5998. _LT_SYS_MODULE_PATH_AIX([$1])
  5999. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  6000. # Warning - without using the other run time loading flags,
  6001. # -berok will link without error, but may produce a broken library.
  6002. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
  6003. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
  6004. if test yes = "$with_gnu_ld"; then
  6005. # We only use this code for GNU lds that support --whole-archive.
  6006. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  6007. else
  6008. # Exported symbols can be pulled into shared objects from archives
  6009. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6010. fi
  6011. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6012. _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  6013. # -brtl affects multiple linker settings, -berok does not and is overridden later
  6014. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
  6015. if test svr4 != "$with_aix_soname"; then
  6016. # This is similar to how AIX traditionally builds its shared
  6017. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  6018. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$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'
  6019. fi
  6020. if test aix != "$with_aix_soname"; then
  6021. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$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'
  6022. else
  6023. # used by -dlpreopen to get the symbols
  6024. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  6025. fi
  6026. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
  6027. fi
  6028. fi
  6029. ;;
  6030. beos*)
  6031. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6032. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6033. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6034. # support --undefined. This deserves some investigation. FIXME
  6035. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6036. else
  6037. _LT_TAGVAR(ld_shlibs, $1)=no
  6038. fi
  6039. ;;
  6040. chorus*)
  6041. case $cc_basename in
  6042. *)
  6043. # FIXME: insert proper C++ library support
  6044. _LT_TAGVAR(ld_shlibs, $1)=no
  6045. ;;
  6046. esac
  6047. ;;
  6048. cygwin* | mingw* | pw32* | cegcc*)
  6049. case $GXX,$cc_basename in
  6050. ,cl* | no,cl*)
  6051. # Native MSVC
  6052. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6053. # no search path for DLLs.
  6054. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6055. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6056. _LT_TAGVAR(always_export_symbols, $1)=yes
  6057. _LT_TAGVAR(file_list_spec, $1)='@'
  6058. # Tell ltmain to make .lib files, not .a files.
  6059. libext=lib
  6060. # Tell ltmain to make .dll files, not .so files.
  6061. shrext_cmds=.dll
  6062. # FIXME: Setting linknames here is a bad hack.
  6063. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  6064. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  6065. cp "$export_symbols" "$output_objdir/$soname.def";
  6066. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  6067. else
  6068. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  6069. fi~
  6070. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  6071. linknames='
  6072. # The linker will not automatically build a static lib if we build a DLL.
  6073. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6074. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6075. # Don't use ranlib
  6076. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  6077. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  6078. lt_tool_outputfile="@TOOL_OUTPUT@"~
  6079. case $lt_outputfile in
  6080. *.exe|*.EXE) ;;
  6081. *)
  6082. lt_outputfile=$lt_outputfile.exe
  6083. lt_tool_outputfile=$lt_tool_outputfile.exe
  6084. ;;
  6085. esac~
  6086. func_to_tool_file "$lt_outputfile"~
  6087. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  6088. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  6089. $RM "$lt_outputfile.manifest";
  6090. fi'
  6091. ;;
  6092. *)
  6093. # g++
  6094. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6095. # as there is no search path for DLLs.
  6096. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6097. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
  6098. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6099. _LT_TAGVAR(always_export_symbols, $1)=no
  6100. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6101. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6102. _LT_TAGVAR(archive_cmds, $1)='$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'
  6103. # If the export-symbols file already is a .def file, use it as
  6104. # is; otherwise, prepend EXPORTS...
  6105. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  6106. cp $export_symbols $output_objdir/$soname.def;
  6107. else
  6108. echo EXPORTS > $output_objdir/$soname.def;
  6109. cat $export_symbols >> $output_objdir/$soname.def;
  6110. fi~
  6111. $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'
  6112. else
  6113. _LT_TAGVAR(ld_shlibs, $1)=no
  6114. fi
  6115. ;;
  6116. esac
  6117. ;;
  6118. darwin* | rhapsody*)
  6119. _LT_DARWIN_LINKER_FEATURES($1)
  6120. ;;
  6121. os2*)
  6122. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6123. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6124. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6125. shrext_cmds=.dll
  6126. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  6127. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  6128. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  6129. $ECHO EXPORTS >> $output_objdir/$libname.def~
  6130. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  6131. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  6132. emximp -o $lib $output_objdir/$libname.def'
  6133. _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  6134. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  6135. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  6136. $ECHO EXPORTS >> $output_objdir/$libname.def~
  6137. prefix_cmds="$SED"~
  6138. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  6139. prefix_cmds="$prefix_cmds -e 1d";
  6140. fi~
  6141. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  6142. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  6143. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  6144. emximp -o $lib $output_objdir/$libname.def'
  6145. _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  6146. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6147. ;;
  6148. dgux*)
  6149. case $cc_basename in
  6150. ec++*)
  6151. # FIXME: insert proper C++ library support
  6152. _LT_TAGVAR(ld_shlibs, $1)=no
  6153. ;;
  6154. ghcx*)
  6155. # Green Hills C++ Compiler
  6156. # FIXME: insert proper C++ library support
  6157. _LT_TAGVAR(ld_shlibs, $1)=no
  6158. ;;
  6159. *)
  6160. # FIXME: insert proper C++ library support
  6161. _LT_TAGVAR(ld_shlibs, $1)=no
  6162. ;;
  6163. esac
  6164. ;;
  6165. freebsd2.*)
  6166. # C++ shared libraries reported to be fairly broken before
  6167. # switch to ELF
  6168. _LT_TAGVAR(ld_shlibs, $1)=no
  6169. ;;
  6170. freebsd-elf*)
  6171. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6172. ;;
  6173. freebsd* | dragonfly*)
  6174. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  6175. # conventions
  6176. _LT_TAGVAR(ld_shlibs, $1)=yes
  6177. ;;
  6178. haiku*)
  6179. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6180. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6181. ;;
  6182. hpux9*)
  6183. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  6184. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6185. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6186. _LT_TAGVAR(hardcode_direct, $1)=yes
  6187. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6188. # but as the default
  6189. # location of the library.
  6190. case $cc_basename in
  6191. CC*)
  6192. # FIXME: insert proper C++ library support
  6193. _LT_TAGVAR(ld_shlibs, $1)=no
  6194. ;;
  6195. aCC*)
  6196. _LT_TAGVAR(archive_cmds, $1)='$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'
  6197. # Commands to make compiler produce verbose output that lists
  6198. # what "hidden" libraries, object files and flags are used when
  6199. # linking a shared library.
  6200. #
  6201. # There doesn't appear to be a way to prevent this compiler from
  6202. # explicitly linking system object files so we need to strip them
  6203. # from the output so that they don't get included in the library
  6204. # dependencies.
  6205. 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"'
  6206. ;;
  6207. *)
  6208. if test yes = "$GXX"; then
  6209. _LT_TAGVAR(archive_cmds, $1)='$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'
  6210. else
  6211. # FIXME: insert proper C++ library support
  6212. _LT_TAGVAR(ld_shlibs, $1)=no
  6213. fi
  6214. ;;
  6215. esac
  6216. ;;
  6217. hpux10*|hpux11*)
  6218. if test no = "$with_gnu_ld"; then
  6219. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  6220. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6221. case $host_cpu in
  6222. hppa*64*|ia64*)
  6223. ;;
  6224. *)
  6225. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6226. ;;
  6227. esac
  6228. fi
  6229. case $host_cpu in
  6230. hppa*64*|ia64*)
  6231. _LT_TAGVAR(hardcode_direct, $1)=no
  6232. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6233. ;;
  6234. *)
  6235. _LT_TAGVAR(hardcode_direct, $1)=yes
  6236. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6237. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6238. # but as the default
  6239. # location of the library.
  6240. ;;
  6241. esac
  6242. case $cc_basename in
  6243. CC*)
  6244. # FIXME: insert proper C++ library support
  6245. _LT_TAGVAR(ld_shlibs, $1)=no
  6246. ;;
  6247. aCC*)
  6248. case $host_cpu in
  6249. hppa*64*)
  6250. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6251. ;;
  6252. ia64*)
  6253. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6254. ;;
  6255. *)
  6256. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6257. ;;
  6258. esac
  6259. # Commands to make compiler produce verbose output that lists
  6260. # what "hidden" libraries, object files and flags are used when
  6261. # linking a shared library.
  6262. #
  6263. # There doesn't appear to be a way to prevent this compiler from
  6264. # explicitly linking system object files so we need to strip them
  6265. # from the output so that they don't get included in the library
  6266. # dependencies.
  6267. 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"'
  6268. ;;
  6269. *)
  6270. if test yes = "$GXX"; then
  6271. if test no = "$with_gnu_ld"; then
  6272. case $host_cpu in
  6273. hppa*64*)
  6274. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6275. ;;
  6276. ia64*)
  6277. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6278. ;;
  6279. *)
  6280. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6281. ;;
  6282. esac
  6283. fi
  6284. else
  6285. # FIXME: insert proper C++ library support
  6286. _LT_TAGVAR(ld_shlibs, $1)=no
  6287. fi
  6288. ;;
  6289. esac
  6290. ;;
  6291. interix[[3-9]]*)
  6292. _LT_TAGVAR(hardcode_direct, $1)=no
  6293. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6294. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6295. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6296. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6297. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6298. # default) and relocated if they conflict, which is a slow very memory
  6299. # consuming and fragmenting process. To avoid this, we pick a random,
  6300. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6301. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6302. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6303. _LT_TAGVAR(archive_expsym_cmds, $1)='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'
  6304. ;;
  6305. irix5* | irix6*)
  6306. case $cc_basename in
  6307. CC*)
  6308. # SGI C++
  6309. _LT_TAGVAR(archive_cmds, $1)='$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'
  6310. # Archives containing C++ object files must be created using
  6311. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  6312. # necessary to make sure instantiated templates are included
  6313. # in the archive.
  6314. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  6315. ;;
  6316. *)
  6317. if test yes = "$GXX"; then
  6318. if test no = "$with_gnu_ld"; then
  6319. _LT_TAGVAR(archive_cmds, $1)='$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'
  6320. else
  6321. _LT_TAGVAR(archive_cmds, $1)='$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'
  6322. fi
  6323. fi
  6324. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6325. ;;
  6326. esac
  6327. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6328. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6329. _LT_TAGVAR(inherit_rpath, $1)=yes
  6330. ;;
  6331. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6332. case $cc_basename in
  6333. KCC*)
  6334. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6335. # KCC will only create a shared library if the output file
  6336. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6337. # to its proper name (with version) after linking.
  6338. _LT_TAGVAR(archive_cmds, $1)='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'
  6339. _LT_TAGVAR(archive_expsym_cmds, $1)='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'
  6340. # Commands to make compiler produce verbose output that lists
  6341. # what "hidden" libraries, object files and flags are used when
  6342. # linking a shared library.
  6343. #
  6344. # There doesn't appear to be a way to prevent this compiler from
  6345. # explicitly linking system object files so we need to strip them
  6346. # from the output so that they don't get included in the library
  6347. # dependencies.
  6348. 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"'
  6349. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6350. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6351. # Archives containing C++ object files must be created using
  6352. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  6353. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  6354. ;;
  6355. icpc* | ecpc* )
  6356. # Intel C++
  6357. with_gnu_ld=yes
  6358. # version 8.0 and above of icpc choke on multiply defined symbols
  6359. # if we add $predep_objects and $postdep_objects, however 7.1 and
  6360. # earlier do not add the objects themselves.
  6361. case `$CC -V 2>&1` in
  6362. *"Version 7."*)
  6363. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6364. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  6365. ;;
  6366. *) # Version 8.0 or newer
  6367. tmp_idyn=
  6368. case $host_cpu in
  6369. ia64*) tmp_idyn=' -i_dynamic';;
  6370. esac
  6371. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6372. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  6373. ;;
  6374. esac
  6375. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6376. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6377. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6378. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  6379. ;;
  6380. pgCC* | pgcpp*)
  6381. # Portland Group C++ compiler
  6382. case `$CC -V` in
  6383. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  6384. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  6385. rm -rf $tpldir~
  6386. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  6387. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  6388. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  6389. rm -rf $tpldir~
  6390. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  6391. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  6392. $RANLIB $oldlib'
  6393. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  6394. rm -rf $tpldir~
  6395. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6396. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6397. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  6398. rm -rf $tpldir~
  6399. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6400. $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'
  6401. ;;
  6402. *) # Version 6 and above use weak symbols
  6403. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6404. _LT_TAGVAR(archive_expsym_cmds, $1)='$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'
  6405. ;;
  6406. esac
  6407. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
  6408. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6409. _LT_TAGVAR(whole_archive_flag_spec, $1)='$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'
  6410. ;;
  6411. cxx*)
  6412. # Compaq C++
  6413. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6414. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  6415. runpath_var=LD_RUN_PATH
  6416. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6417. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6418. # Commands to make compiler produce verbose output that lists
  6419. # what "hidden" libraries, object files and flags are used when
  6420. # linking a shared library.
  6421. #
  6422. # There doesn't appear to be a way to prevent this compiler from
  6423. # explicitly linking system object files so we need to strip them
  6424. # from the output so that they don't get included in the library
  6425. # dependencies.
  6426. 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'
  6427. ;;
  6428. xl* | mpixl* | bgxl*)
  6429. # IBM XL 8.0 on PPC, with GNU ld
  6430. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6431. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6432. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6433. if test yes = "$supports_anon_versioning"; then
  6434. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6435. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6436. echo "local: *; };" >> $output_objdir/$libname.ver~
  6437. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  6438. fi
  6439. ;;
  6440. *)
  6441. case `$CC -V 2>&1 | sed 5q` in
  6442. *Sun\ C*)
  6443. # Sun C++ 5.9
  6444. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6445. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6446. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  6447. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6448. _LT_TAGVAR(whole_archive_flag_spec, $1)='$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'
  6449. _LT_TAGVAR(compiler_needs_object, $1)=yes
  6450. # Not sure whether something based on
  6451. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  6452. # would be better.
  6453. output_verbose_link_cmd='func_echo_all'
  6454. # Archives containing C++ object files must be created using
  6455. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6456. # necessary to make sure instantiated templates are included
  6457. # in the archive.
  6458. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6459. ;;
  6460. esac
  6461. ;;
  6462. esac
  6463. ;;
  6464. lynxos*)
  6465. # FIXME: insert proper C++ library support
  6466. _LT_TAGVAR(ld_shlibs, $1)=no
  6467. ;;
  6468. m88k*)
  6469. # FIXME: insert proper C++ library support
  6470. _LT_TAGVAR(ld_shlibs, $1)=no
  6471. ;;
  6472. mvs*)
  6473. case $cc_basename in
  6474. cxx*)
  6475. # FIXME: insert proper C++ library support
  6476. _LT_TAGVAR(ld_shlibs, $1)=no
  6477. ;;
  6478. *)
  6479. # FIXME: insert proper C++ library support
  6480. _LT_TAGVAR(ld_shlibs, $1)=no
  6481. ;;
  6482. esac
  6483. ;;
  6484. netbsd*)
  6485. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6486. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6487. wlarc=
  6488. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6489. _LT_TAGVAR(hardcode_direct, $1)=yes
  6490. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6491. fi
  6492. # Workaround some broken pre-1.5 toolchains
  6493. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6494. ;;
  6495. *nto* | *qnx*)
  6496. _LT_TAGVAR(ld_shlibs, $1)=yes
  6497. ;;
  6498. openbsd* | bitrig*)
  6499. if test -f /usr/libexec/ld.so; then
  6500. _LT_TAGVAR(hardcode_direct, $1)=yes
  6501. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6502. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6503. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6504. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6505. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  6506. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  6507. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6508. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  6509. fi
  6510. output_verbose_link_cmd=func_echo_all
  6511. else
  6512. _LT_TAGVAR(ld_shlibs, $1)=no
  6513. fi
  6514. ;;
  6515. osf3* | osf4* | osf5*)
  6516. case $cc_basename in
  6517. KCC*)
  6518. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6519. # KCC will only create a shared library if the output file
  6520. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6521. # to its proper name (with version) after linking.
  6522. _LT_TAGVAR(archive_cmds, $1)='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'
  6523. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6524. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6525. # Archives containing C++ object files must be created using
  6526. # the KAI C++ compiler.
  6527. case $host in
  6528. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6529. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6530. esac
  6531. ;;
  6532. RCC*)
  6533. # Rational C++ 2.4.1
  6534. # FIXME: insert proper C++ library support
  6535. _LT_TAGVAR(ld_shlibs, $1)=no
  6536. ;;
  6537. cxx*)
  6538. case $host in
  6539. osf3*)
  6540. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  6541. _LT_TAGVAR(archive_cmds, $1)='$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'
  6542. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6543. ;;
  6544. *)
  6545. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6546. _LT_TAGVAR(archive_cmds, $1)='$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'
  6547. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6548. echo "-hidden">> $lib.exp~
  6549. $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~
  6550. $RM $lib.exp'
  6551. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6552. ;;
  6553. esac
  6554. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6555. # Commands to make compiler produce verbose output that lists
  6556. # what "hidden" libraries, object files and flags are used when
  6557. # linking a shared library.
  6558. #
  6559. # There doesn't appear to be a way to prevent this compiler from
  6560. # explicitly linking system object files so we need to strip them
  6561. # from the output so that they don't get included in the library
  6562. # dependencies.
  6563. 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"'
  6564. ;;
  6565. *)
  6566. if test yes,no = "$GXX,$with_gnu_ld"; then
  6567. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  6568. case $host in
  6569. osf3*)
  6570. _LT_TAGVAR(archive_cmds, $1)='$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'
  6571. ;;
  6572. *)
  6573. _LT_TAGVAR(archive_cmds, $1)='$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'
  6574. ;;
  6575. esac
  6576. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6577. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6578. # Commands to make compiler produce verbose output that lists
  6579. # what "hidden" libraries, object files and flags are used when
  6580. # linking a shared library.
  6581. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6582. else
  6583. # FIXME: insert proper C++ library support
  6584. _LT_TAGVAR(ld_shlibs, $1)=no
  6585. fi
  6586. ;;
  6587. esac
  6588. ;;
  6589. psos*)
  6590. # FIXME: insert proper C++ library support
  6591. _LT_TAGVAR(ld_shlibs, $1)=no
  6592. ;;
  6593. sunos4*)
  6594. case $cc_basename in
  6595. CC*)
  6596. # Sun C++ 4.x
  6597. # FIXME: insert proper C++ library support
  6598. _LT_TAGVAR(ld_shlibs, $1)=no
  6599. ;;
  6600. lcc*)
  6601. # Lucid
  6602. # FIXME: insert proper C++ library support
  6603. _LT_TAGVAR(ld_shlibs, $1)=no
  6604. ;;
  6605. *)
  6606. # FIXME: insert proper C++ library support
  6607. _LT_TAGVAR(ld_shlibs, $1)=no
  6608. ;;
  6609. esac
  6610. ;;
  6611. solaris*)
  6612. case $cc_basename in
  6613. CC* | sunCC*)
  6614. # Sun C++ 4.2, 5.x and Centerline C++
  6615. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6616. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6617. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6618. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6619. $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'
  6620. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6621. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6622. case $host_os in
  6623. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6624. *)
  6625. # The compiler driver will combine and reorder linker options,
  6626. # but understands '-z linker_flag'.
  6627. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6628. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6629. ;;
  6630. esac
  6631. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6632. output_verbose_link_cmd='func_echo_all'
  6633. # Archives containing C++ object files must be created using
  6634. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6635. # necessary to make sure instantiated templates are included
  6636. # in the archive.
  6637. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6638. ;;
  6639. gcx*)
  6640. # Green Hills C++ Compiler
  6641. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6642. # The C++ compiler must be used to create the archive.
  6643. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6644. ;;
  6645. *)
  6646. # GNU C++ compiler with Solaris linker
  6647. if test yes,no = "$GXX,$with_gnu_ld"; then
  6648. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
  6649. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6650. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6651. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6652. $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'
  6653. # Commands to make compiler produce verbose output that lists
  6654. # what "hidden" libraries, object files and flags are used when
  6655. # linking a shared library.
  6656. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6657. else
  6658. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  6659. # platform.
  6660. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6661. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6662. $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'
  6663. # Commands to make compiler produce verbose output that lists
  6664. # what "hidden" libraries, object files and flags are used when
  6665. # linking a shared library.
  6666. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6667. fi
  6668. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
  6669. case $host_os in
  6670. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6671. *)
  6672. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  6673. ;;
  6674. esac
  6675. fi
  6676. ;;
  6677. esac
  6678. ;;
  6679. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6680. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  6681. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6682. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6683. runpath_var='LD_RUN_PATH'
  6684. case $cc_basename in
  6685. CC*)
  6686. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6687. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6688. ;;
  6689. *)
  6690. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6691. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6692. ;;
  6693. esac
  6694. ;;
  6695. sysv5* | sco3.2v5* | sco5v6*)
  6696. # Note: We CANNOT use -z defs as we might desire, because we do not
  6697. # link with -lc, and that would cause any symbols used from libc to
  6698. # always be unresolved, which means just about no library would
  6699. # ever link correctly. If we're not using GNU ld we use -z text
  6700. # though, which does catch some bad symbols but isn't as heavy-handed
  6701. # as -z defs.
  6702. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  6703. _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
  6704. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6705. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6706. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
  6707. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6708. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6709. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
  6710. runpath_var='LD_RUN_PATH'
  6711. case $cc_basename in
  6712. CC*)
  6713. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6714. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6715. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6716. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6717. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6718. '"$_LT_TAGVAR(reload_cmds, $1)"
  6719. ;;
  6720. *)
  6721. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6722. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6723. ;;
  6724. esac
  6725. ;;
  6726. tandem*)
  6727. case $cc_basename in
  6728. NCC*)
  6729. # NonStop-UX NCC 3.20
  6730. # FIXME: insert proper C++ library support
  6731. _LT_TAGVAR(ld_shlibs, $1)=no
  6732. ;;
  6733. *)
  6734. # FIXME: insert proper C++ library support
  6735. _LT_TAGVAR(ld_shlibs, $1)=no
  6736. ;;
  6737. esac
  6738. ;;
  6739. vxworks*)
  6740. # FIXME: insert proper C++ library support
  6741. _LT_TAGVAR(ld_shlibs, $1)=no
  6742. ;;
  6743. *)
  6744. # FIXME: insert proper C++ library support
  6745. _LT_TAGVAR(ld_shlibs, $1)=no
  6746. ;;
  6747. esac
  6748. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6749. test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
  6750. _LT_TAGVAR(GCC, $1)=$GXX
  6751. _LT_TAGVAR(LD, $1)=$LD
  6752. ## CAVEAT EMPTOR:
  6753. ## There is no encapsulation within the following macros, do not change
  6754. ## the running order or otherwise move them around unless you know exactly
  6755. ## what you are doing...
  6756. _LT_SYS_HIDDEN_LIBDEPS($1)
  6757. _LT_COMPILER_PIC($1)
  6758. _LT_COMPILER_C_O($1)
  6759. _LT_COMPILER_FILE_LOCKS($1)
  6760. _LT_LINKER_SHLIBS($1)
  6761. _LT_SYS_DYNAMIC_LINKER($1)
  6762. _LT_LINKER_HARDCODE_LIBPATH($1)
  6763. _LT_CONFIG($1)
  6764. fi # test -n "$compiler"
  6765. CC=$lt_save_CC
  6766. CFLAGS=$lt_save_CFLAGS
  6767. LDCXX=$LD
  6768. LD=$lt_save_LD
  6769. GCC=$lt_save_GCC
  6770. with_gnu_ld=$lt_save_with_gnu_ld
  6771. lt_cv_path_LDCXX=$lt_cv_path_LD
  6772. lt_cv_path_LD=$lt_save_path_LD
  6773. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6774. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6775. fi # test yes != "$_lt_caught_CXX_error"
  6776. AC_LANG_POP
  6777. ])# _LT_LANG_CXX_CONFIG
  6778. # _LT_FUNC_STRIPNAME_CNF
  6779. # ----------------------
  6780. # func_stripname_cnf prefix suffix name
  6781. # strip PREFIX and SUFFIX off of NAME.
  6782. # PREFIX and SUFFIX must not contain globbing or regex special
  6783. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6784. # dot (in which case that matches only a dot).
  6785. #
  6786. # This function is identical to the (non-XSI) version of func_stripname,
  6787. # except this one can be used by m4 code that may be executed by configure,
  6788. # rather than the libtool script.
  6789. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6790. AC_REQUIRE([_LT_DECL_SED])
  6791. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6792. func_stripname_cnf ()
  6793. {
  6794. case @S|@2 in
  6795. .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
  6796. *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
  6797. esac
  6798. } # func_stripname_cnf
  6799. ])# _LT_FUNC_STRIPNAME_CNF
  6800. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6801. # ---------------------------------
  6802. # Figure out "hidden" library dependencies from verbose
  6803. # compiler output when linking a shared library.
  6804. # Parse the compiler output and extract the necessary
  6805. # objects, libraries and library flags.
  6806. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6807. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6808. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6809. # Dependencies to place before and after the object being linked:
  6810. _LT_TAGVAR(predep_objects, $1)=
  6811. _LT_TAGVAR(postdep_objects, $1)=
  6812. _LT_TAGVAR(predeps, $1)=
  6813. _LT_TAGVAR(postdeps, $1)=
  6814. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6815. dnl we can't use the lt_simple_compile_test_code here,
  6816. dnl because it contains code intended for an executable,
  6817. dnl not a library. It's possible we should let each
  6818. dnl tag define a new lt_????_link_test_code variable,
  6819. dnl but it's only used here...
  6820. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6821. int a;
  6822. void foo (void) { a = 0; }
  6823. _LT_EOF
  6824. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6825. class Foo
  6826. {
  6827. public:
  6828. Foo (void) { a = 0; }
  6829. private:
  6830. int a;
  6831. };
  6832. _LT_EOF
  6833. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6834. subroutine foo
  6835. implicit none
  6836. integer*4 a
  6837. a=0
  6838. return
  6839. end
  6840. _LT_EOF
  6841. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6842. subroutine foo
  6843. implicit none
  6844. integer a
  6845. a=0
  6846. return
  6847. end
  6848. _LT_EOF
  6849. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6850. public class foo {
  6851. private int a;
  6852. public void bar (void) {
  6853. a = 0;
  6854. }
  6855. };
  6856. _LT_EOF
  6857. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6858. package foo
  6859. func foo() {
  6860. }
  6861. _LT_EOF
  6862. ])
  6863. _lt_libdeps_save_CFLAGS=$CFLAGS
  6864. case "$CC $CFLAGS " in #(
  6865. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6866. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6867. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6868. esac
  6869. dnl Parse the compiler output and extract the necessary
  6870. dnl objects, libraries and library flags.
  6871. if AC_TRY_EVAL(ac_compile); then
  6872. # Parse the compiler output and extract the necessary
  6873. # objects, libraries and library flags.
  6874. # Sentinel used to keep track of whether or not we are before
  6875. # the conftest object file.
  6876. pre_test_object_deps_done=no
  6877. for p in `eval "$output_verbose_link_cmd"`; do
  6878. case $prev$p in
  6879. -L* | -R* | -l*)
  6880. # Some compilers place space between "-{L,R}" and the path.
  6881. # Remove the space.
  6882. if test x-L = "$p" ||
  6883. test x-R = "$p"; then
  6884. prev=$p
  6885. continue
  6886. fi
  6887. # Expand the sysroot to ease extracting the directories later.
  6888. if test -z "$prev"; then
  6889. case $p in
  6890. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6891. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6892. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6893. esac
  6894. fi
  6895. case $p in
  6896. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6897. esac
  6898. if test no = "$pre_test_object_deps_done"; then
  6899. case $prev in
  6900. -L | -R)
  6901. # Internal compiler library paths should come after those
  6902. # provided the user. The postdeps already come after the
  6903. # user supplied libs so there is no need to process them.
  6904. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6905. _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
  6906. else
  6907. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
  6908. fi
  6909. ;;
  6910. # The "-l" case would never come before the object being
  6911. # linked, so don't bother handling this case.
  6912. esac
  6913. else
  6914. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6915. _LT_TAGVAR(postdeps, $1)=$prev$p
  6916. else
  6917. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
  6918. fi
  6919. fi
  6920. prev=
  6921. ;;
  6922. *.lto.$objext) ;; # Ignore GCC LTO objects
  6923. *.$objext)
  6924. # This assumes that the test object file only shows up
  6925. # once in the compiler output.
  6926. if test "$p" = "conftest.$objext"; then
  6927. pre_test_object_deps_done=yes
  6928. continue
  6929. fi
  6930. if test no = "$pre_test_object_deps_done"; then
  6931. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6932. _LT_TAGVAR(predep_objects, $1)=$p
  6933. else
  6934. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6935. fi
  6936. else
  6937. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6938. _LT_TAGVAR(postdep_objects, $1)=$p
  6939. else
  6940. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6941. fi
  6942. fi
  6943. ;;
  6944. *) ;; # Ignore the rest.
  6945. esac
  6946. done
  6947. # Clean up.
  6948. rm -f a.out a.exe
  6949. else
  6950. echo "libtool.m4: error: problem compiling $1 test program"
  6951. fi
  6952. $RM -f confest.$objext
  6953. CFLAGS=$_lt_libdeps_save_CFLAGS
  6954. # PORTME: override above test on systems where it is broken
  6955. m4_if([$1], [CXX],
  6956. [case $host_os in
  6957. interix[[3-9]]*)
  6958. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6959. # hack all around it, let's just trust "g++" to DTRT.
  6960. _LT_TAGVAR(predep_objects,$1)=
  6961. _LT_TAGVAR(postdep_objects,$1)=
  6962. _LT_TAGVAR(postdeps,$1)=
  6963. ;;
  6964. esac
  6965. ])
  6966. case " $_LT_TAGVAR(postdeps, $1) " in
  6967. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6968. esac
  6969. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6970. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6971. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  6972. fi
  6973. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6974. [The directories searched by this compiler when creating a shared library])
  6975. _LT_TAGDECL([], [predep_objects], [1],
  6976. [Dependencies to place before and after the objects being linked to
  6977. create a shared library])
  6978. _LT_TAGDECL([], [postdep_objects], [1])
  6979. _LT_TAGDECL([], [predeps], [1])
  6980. _LT_TAGDECL([], [postdeps], [1])
  6981. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6982. [The library search path used internally by the compiler when linking
  6983. a shared library])
  6984. ])# _LT_SYS_HIDDEN_LIBDEPS
  6985. # _LT_LANG_F77_CONFIG([TAG])
  6986. # --------------------------
  6987. # Ensure that the configuration variables for a Fortran 77 compiler are
  6988. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6989. # to write the compiler configuration to 'libtool'.
  6990. m4_defun([_LT_LANG_F77_CONFIG],
  6991. [AC_LANG_PUSH(Fortran 77)
  6992. if test -z "$F77" || test no = "$F77"; then
  6993. _lt_disable_F77=yes
  6994. fi
  6995. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6996. _LT_TAGVAR(allow_undefined_flag, $1)=
  6997. _LT_TAGVAR(always_export_symbols, $1)=no
  6998. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6999. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7000. _LT_TAGVAR(hardcode_direct, $1)=no
  7001. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7002. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7003. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7004. _LT_TAGVAR(hardcode_minus_L, $1)=no
  7005. _LT_TAGVAR(hardcode_automatic, $1)=no
  7006. _LT_TAGVAR(inherit_rpath, $1)=no
  7007. _LT_TAGVAR(module_cmds, $1)=
  7008. _LT_TAGVAR(module_expsym_cmds, $1)=
  7009. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7010. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7011. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7012. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7013. _LT_TAGVAR(no_undefined_flag, $1)=
  7014. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7015. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7016. # Source file extension for f77 test sources.
  7017. ac_ext=f
  7018. # Object file extension for compiled f77 test sources.
  7019. objext=o
  7020. _LT_TAGVAR(objext, $1)=$objext
  7021. # No sense in running all these tests if we already determined that
  7022. # the F77 compiler isn't working. Some variables (like enable_shared)
  7023. # are currently assumed to apply to all compilers on this platform,
  7024. # and will be corrupted by setting them based on a non-working compiler.
  7025. if test yes != "$_lt_disable_F77"; then
  7026. # Code to be used in simple compile tests
  7027. lt_simple_compile_test_code="\
  7028. subroutine t
  7029. return
  7030. end
  7031. "
  7032. # Code to be used in simple link tests
  7033. lt_simple_link_test_code="\
  7034. program t
  7035. end
  7036. "
  7037. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7038. _LT_TAG_COMPILER
  7039. # save warnings/boilerplate of simple test code
  7040. _LT_COMPILER_BOILERPLATE
  7041. _LT_LINKER_BOILERPLATE
  7042. # Allow CC to be a program name with arguments.
  7043. lt_save_CC=$CC
  7044. lt_save_GCC=$GCC
  7045. lt_save_CFLAGS=$CFLAGS
  7046. CC=${F77-"f77"}
  7047. CFLAGS=$FFLAGS
  7048. compiler=$CC
  7049. _LT_TAGVAR(compiler, $1)=$CC
  7050. _LT_CC_BASENAME([$compiler])
  7051. GCC=$G77
  7052. if test -n "$compiler"; then
  7053. AC_MSG_CHECKING([if libtool supports shared libraries])
  7054. AC_MSG_RESULT([$can_build_shared])
  7055. AC_MSG_CHECKING([whether to build shared libraries])
  7056. test no = "$can_build_shared" && enable_shared=no
  7057. # On AIX, shared libraries and static libraries use the same namespace, and
  7058. # are all built from PIC.
  7059. case $host_os in
  7060. aix3*)
  7061. test yes = "$enable_shared" && enable_static=no
  7062. if test -n "$RANLIB"; then
  7063. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7064. postinstall_cmds='$RANLIB $lib'
  7065. fi
  7066. ;;
  7067. aix[[4-9]]*)
  7068. if test ia64 != "$host_cpu"; then
  7069. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  7070. yes,aix,yes) ;; # shared object as lib.so file only
  7071. yes,svr4,*) ;; # shared object as lib.so archive member only
  7072. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  7073. esac
  7074. fi
  7075. ;;
  7076. esac
  7077. AC_MSG_RESULT([$enable_shared])
  7078. AC_MSG_CHECKING([whether to build static libraries])
  7079. # Make sure either enable_shared or enable_static is yes.
  7080. test yes = "$enable_shared" || enable_static=yes
  7081. AC_MSG_RESULT([$enable_static])
  7082. _LT_TAGVAR(GCC, $1)=$G77
  7083. _LT_TAGVAR(LD, $1)=$LD
  7084. ## CAVEAT EMPTOR:
  7085. ## There is no encapsulation within the following macros, do not change
  7086. ## the running order or otherwise move them around unless you know exactly
  7087. ## what you are doing...
  7088. _LT_COMPILER_PIC($1)
  7089. _LT_COMPILER_C_O($1)
  7090. _LT_COMPILER_FILE_LOCKS($1)
  7091. _LT_LINKER_SHLIBS($1)
  7092. _LT_SYS_DYNAMIC_LINKER($1)
  7093. _LT_LINKER_HARDCODE_LIBPATH($1)
  7094. _LT_CONFIG($1)
  7095. fi # test -n "$compiler"
  7096. GCC=$lt_save_GCC
  7097. CC=$lt_save_CC
  7098. CFLAGS=$lt_save_CFLAGS
  7099. fi # test yes != "$_lt_disable_F77"
  7100. AC_LANG_POP
  7101. ])# _LT_LANG_F77_CONFIG
  7102. # _LT_LANG_FC_CONFIG([TAG])
  7103. # -------------------------
  7104. # Ensure that the configuration variables for a Fortran compiler are
  7105. # suitably defined. These variables are subsequently used by _LT_CONFIG
  7106. # to write the compiler configuration to 'libtool'.
  7107. m4_defun([_LT_LANG_FC_CONFIG],
  7108. [AC_LANG_PUSH(Fortran)
  7109. if test -z "$FC" || test no = "$FC"; then
  7110. _lt_disable_FC=yes
  7111. fi
  7112. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7113. _LT_TAGVAR(allow_undefined_flag, $1)=
  7114. _LT_TAGVAR(always_export_symbols, $1)=no
  7115. _LT_TAGVAR(archive_expsym_cmds, $1)=
  7116. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7117. _LT_TAGVAR(hardcode_direct, $1)=no
  7118. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7119. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7120. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7121. _LT_TAGVAR(hardcode_minus_L, $1)=no
  7122. _LT_TAGVAR(hardcode_automatic, $1)=no
  7123. _LT_TAGVAR(inherit_rpath, $1)=no
  7124. _LT_TAGVAR(module_cmds, $1)=
  7125. _LT_TAGVAR(module_expsym_cmds, $1)=
  7126. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7127. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7128. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7129. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7130. _LT_TAGVAR(no_undefined_flag, $1)=
  7131. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7132. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7133. # Source file extension for fc test sources.
  7134. ac_ext=${ac_fc_srcext-f}
  7135. # Object file extension for compiled fc test sources.
  7136. objext=o
  7137. _LT_TAGVAR(objext, $1)=$objext
  7138. # No sense in running all these tests if we already determined that
  7139. # the FC compiler isn't working. Some variables (like enable_shared)
  7140. # are currently assumed to apply to all compilers on this platform,
  7141. # and will be corrupted by setting them based on a non-working compiler.
  7142. if test yes != "$_lt_disable_FC"; then
  7143. # Code to be used in simple compile tests
  7144. lt_simple_compile_test_code="\
  7145. subroutine t
  7146. return
  7147. end
  7148. "
  7149. # Code to be used in simple link tests
  7150. lt_simple_link_test_code="\
  7151. program t
  7152. end
  7153. "
  7154. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7155. _LT_TAG_COMPILER
  7156. # save warnings/boilerplate of simple test code
  7157. _LT_COMPILER_BOILERPLATE
  7158. _LT_LINKER_BOILERPLATE
  7159. # Allow CC to be a program name with arguments.
  7160. lt_save_CC=$CC
  7161. lt_save_GCC=$GCC
  7162. lt_save_CFLAGS=$CFLAGS
  7163. CC=${FC-"f95"}
  7164. CFLAGS=$FCFLAGS
  7165. compiler=$CC
  7166. GCC=$ac_cv_fc_compiler_gnu
  7167. _LT_TAGVAR(compiler, $1)=$CC
  7168. _LT_CC_BASENAME([$compiler])
  7169. if test -n "$compiler"; then
  7170. AC_MSG_CHECKING([if libtool supports shared libraries])
  7171. AC_MSG_RESULT([$can_build_shared])
  7172. AC_MSG_CHECKING([whether to build shared libraries])
  7173. test no = "$can_build_shared" && enable_shared=no
  7174. # On AIX, shared libraries and static libraries use the same namespace, and
  7175. # are all built from PIC.
  7176. case $host_os in
  7177. aix3*)
  7178. test yes = "$enable_shared" && enable_static=no
  7179. if test -n "$RANLIB"; then
  7180. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7181. postinstall_cmds='$RANLIB $lib'
  7182. fi
  7183. ;;
  7184. aix[[4-9]]*)
  7185. if test ia64 != "$host_cpu"; then
  7186. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  7187. yes,aix,yes) ;; # shared object as lib.so file only
  7188. yes,svr4,*) ;; # shared object as lib.so archive member only
  7189. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  7190. esac
  7191. fi
  7192. ;;
  7193. esac
  7194. AC_MSG_RESULT([$enable_shared])
  7195. AC_MSG_CHECKING([whether to build static libraries])
  7196. # Make sure either enable_shared or enable_static is yes.
  7197. test yes = "$enable_shared" || enable_static=yes
  7198. AC_MSG_RESULT([$enable_static])
  7199. _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
  7200. _LT_TAGVAR(LD, $1)=$LD
  7201. ## CAVEAT EMPTOR:
  7202. ## There is no encapsulation within the following macros, do not change
  7203. ## the running order or otherwise move them around unless you know exactly
  7204. ## what you are doing...
  7205. _LT_SYS_HIDDEN_LIBDEPS($1)
  7206. _LT_COMPILER_PIC($1)
  7207. _LT_COMPILER_C_O($1)
  7208. _LT_COMPILER_FILE_LOCKS($1)
  7209. _LT_LINKER_SHLIBS($1)
  7210. _LT_SYS_DYNAMIC_LINKER($1)
  7211. _LT_LINKER_HARDCODE_LIBPATH($1)
  7212. _LT_CONFIG($1)
  7213. fi # test -n "$compiler"
  7214. GCC=$lt_save_GCC
  7215. CC=$lt_save_CC
  7216. CFLAGS=$lt_save_CFLAGS
  7217. fi # test yes != "$_lt_disable_FC"
  7218. AC_LANG_POP
  7219. ])# _LT_LANG_FC_CONFIG
  7220. # _LT_LANG_GCJ_CONFIG([TAG])
  7221. # --------------------------
  7222. # Ensure that the configuration variables for the GNU Java Compiler compiler
  7223. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7224. # to write the compiler configuration to 'libtool'.
  7225. m4_defun([_LT_LANG_GCJ_CONFIG],
  7226. [AC_REQUIRE([LT_PROG_GCJ])dnl
  7227. AC_LANG_SAVE
  7228. # Source file extension for Java test sources.
  7229. ac_ext=java
  7230. # Object file extension for compiled Java test sources.
  7231. objext=o
  7232. _LT_TAGVAR(objext, $1)=$objext
  7233. # Code to be used in simple compile tests
  7234. lt_simple_compile_test_code="class foo {}"
  7235. # Code to be used in simple link tests
  7236. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  7237. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7238. _LT_TAG_COMPILER
  7239. # save warnings/boilerplate of simple test code
  7240. _LT_COMPILER_BOILERPLATE
  7241. _LT_LINKER_BOILERPLATE
  7242. # Allow CC to be a program name with arguments.
  7243. lt_save_CC=$CC
  7244. lt_save_CFLAGS=$CFLAGS
  7245. lt_save_GCC=$GCC
  7246. GCC=yes
  7247. CC=${GCJ-"gcj"}
  7248. CFLAGS=$GCJFLAGS
  7249. compiler=$CC
  7250. _LT_TAGVAR(compiler, $1)=$CC
  7251. _LT_TAGVAR(LD, $1)=$LD
  7252. _LT_CC_BASENAME([$compiler])
  7253. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  7254. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7255. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7256. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7257. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7258. if test -n "$compiler"; then
  7259. _LT_COMPILER_NO_RTTI($1)
  7260. _LT_COMPILER_PIC($1)
  7261. _LT_COMPILER_C_O($1)
  7262. _LT_COMPILER_FILE_LOCKS($1)
  7263. _LT_LINKER_SHLIBS($1)
  7264. _LT_LINKER_HARDCODE_LIBPATH($1)
  7265. _LT_CONFIG($1)
  7266. fi
  7267. AC_LANG_RESTORE
  7268. GCC=$lt_save_GCC
  7269. CC=$lt_save_CC
  7270. CFLAGS=$lt_save_CFLAGS
  7271. ])# _LT_LANG_GCJ_CONFIG
  7272. # _LT_LANG_GO_CONFIG([TAG])
  7273. # --------------------------
  7274. # Ensure that the configuration variables for the GNU Go compiler
  7275. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7276. # to write the compiler configuration to 'libtool'.
  7277. m4_defun([_LT_LANG_GO_CONFIG],
  7278. [AC_REQUIRE([LT_PROG_GO])dnl
  7279. AC_LANG_SAVE
  7280. # Source file extension for Go test sources.
  7281. ac_ext=go
  7282. # Object file extension for compiled Go test sources.
  7283. objext=o
  7284. _LT_TAGVAR(objext, $1)=$objext
  7285. # Code to be used in simple compile tests
  7286. lt_simple_compile_test_code="package main; func main() { }"
  7287. # Code to be used in simple link tests
  7288. lt_simple_link_test_code='package main; func main() { }'
  7289. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7290. _LT_TAG_COMPILER
  7291. # save warnings/boilerplate of simple test code
  7292. _LT_COMPILER_BOILERPLATE
  7293. _LT_LINKER_BOILERPLATE
  7294. # Allow CC to be a program name with arguments.
  7295. lt_save_CC=$CC
  7296. lt_save_CFLAGS=$CFLAGS
  7297. lt_save_GCC=$GCC
  7298. GCC=yes
  7299. CC=${GOC-"gccgo"}
  7300. CFLAGS=$GOFLAGS
  7301. compiler=$CC
  7302. _LT_TAGVAR(compiler, $1)=$CC
  7303. _LT_TAGVAR(LD, $1)=$LD
  7304. _LT_CC_BASENAME([$compiler])
  7305. # Go did not exist at the time GCC didn't implicitly link libc in.
  7306. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7307. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7308. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7309. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7310. if test -n "$compiler"; then
  7311. _LT_COMPILER_NO_RTTI($1)
  7312. _LT_COMPILER_PIC($1)
  7313. _LT_COMPILER_C_O($1)
  7314. _LT_COMPILER_FILE_LOCKS($1)
  7315. _LT_LINKER_SHLIBS($1)
  7316. _LT_LINKER_HARDCODE_LIBPATH($1)
  7317. _LT_CONFIG($1)
  7318. fi
  7319. AC_LANG_RESTORE
  7320. GCC=$lt_save_GCC
  7321. CC=$lt_save_CC
  7322. CFLAGS=$lt_save_CFLAGS
  7323. ])# _LT_LANG_GO_CONFIG
  7324. # _LT_LANG_RC_CONFIG([TAG])
  7325. # -------------------------
  7326. # Ensure that the configuration variables for the Windows resource compiler
  7327. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7328. # to write the compiler configuration to 'libtool'.
  7329. m4_defun([_LT_LANG_RC_CONFIG],
  7330. [AC_REQUIRE([LT_PROG_RC])dnl
  7331. AC_LANG_SAVE
  7332. # Source file extension for RC test sources.
  7333. ac_ext=rc
  7334. # Object file extension for compiled RC test sources.
  7335. objext=o
  7336. _LT_TAGVAR(objext, $1)=$objext
  7337. # Code to be used in simple compile tests
  7338. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  7339. # Code to be used in simple link tests
  7340. lt_simple_link_test_code=$lt_simple_compile_test_code
  7341. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7342. _LT_TAG_COMPILER
  7343. # save warnings/boilerplate of simple test code
  7344. _LT_COMPILER_BOILERPLATE
  7345. _LT_LINKER_BOILERPLATE
  7346. # Allow CC to be a program name with arguments.
  7347. lt_save_CC=$CC
  7348. lt_save_CFLAGS=$CFLAGS
  7349. lt_save_GCC=$GCC
  7350. GCC=
  7351. CC=${RC-"windres"}
  7352. CFLAGS=
  7353. compiler=$CC
  7354. _LT_TAGVAR(compiler, $1)=$CC
  7355. _LT_CC_BASENAME([$compiler])
  7356. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  7357. if test -n "$compiler"; then
  7358. :
  7359. _LT_CONFIG($1)
  7360. fi
  7361. GCC=$lt_save_GCC
  7362. AC_LANG_RESTORE
  7363. CC=$lt_save_CC
  7364. CFLAGS=$lt_save_CFLAGS
  7365. ])# _LT_LANG_RC_CONFIG
  7366. # LT_PROG_GCJ
  7367. # -----------
  7368. AC_DEFUN([LT_PROG_GCJ],
  7369. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  7370. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  7371. [AC_CHECK_TOOL(GCJ, gcj,)
  7372. test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
  7373. AC_SUBST(GCJFLAGS)])])[]dnl
  7374. ])
  7375. # Old name:
  7376. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  7377. dnl aclocal-1.4 backwards compatibility:
  7378. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  7379. # LT_PROG_GO
  7380. # ----------
  7381. AC_DEFUN([LT_PROG_GO],
  7382. [AC_CHECK_TOOL(GOC, gccgo,)
  7383. ])
  7384. # LT_PROG_RC
  7385. # ----------
  7386. AC_DEFUN([LT_PROG_RC],
  7387. [AC_CHECK_TOOL(RC, windres,)
  7388. ])
  7389. # Old name:
  7390. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  7391. dnl aclocal-1.4 backwards compatibility:
  7392. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  7393. # _LT_DECL_EGREP
  7394. # --------------
  7395. # If we don't have a new enough Autoconf to choose the best grep
  7396. # available, choose the one first in the user's PATH.
  7397. m4_defun([_LT_DECL_EGREP],
  7398. [AC_REQUIRE([AC_PROG_EGREP])dnl
  7399. AC_REQUIRE([AC_PROG_FGREP])dnl
  7400. test -z "$GREP" && GREP=grep
  7401. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  7402. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  7403. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  7404. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  7405. AC_SUBST([GREP])
  7406. ])
  7407. # _LT_DECL_OBJDUMP
  7408. # --------------
  7409. # If we don't have a new enough Autoconf to choose the best objdump
  7410. # available, choose the one first in the user's PATH.
  7411. m4_defun([_LT_DECL_OBJDUMP],
  7412. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7413. test -z "$OBJDUMP" && OBJDUMP=objdump
  7414. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  7415. AC_SUBST([OBJDUMP])
  7416. ])
  7417. # _LT_DECL_DLLTOOL
  7418. # ----------------
  7419. # Ensure DLLTOOL variable is set.
  7420. m4_defun([_LT_DECL_DLLTOOL],
  7421. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7422. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7423. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  7424. AC_SUBST([DLLTOOL])
  7425. ])
  7426. # _LT_DECL_SED
  7427. # ------------
  7428. # Check for a fully-functional sed program, that truncates
  7429. # as few characters as possible. Prefer GNU sed if found.
  7430. m4_defun([_LT_DECL_SED],
  7431. [AC_PROG_SED
  7432. test -z "$SED" && SED=sed
  7433. Xsed="$SED -e 1s/^X//"
  7434. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  7435. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  7436. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  7437. ])# _LT_DECL_SED
  7438. m4_ifndef([AC_PROG_SED], [
  7439. # NOTE: This macro has been submitted for inclusion into #
  7440. # GNU Autoconf as AC_PROG_SED. When it is available in #
  7441. # a released version of Autoconf we should remove this #
  7442. # macro and use it instead. #
  7443. m4_defun([AC_PROG_SED],
  7444. [AC_MSG_CHECKING([for a sed that does not truncate output])
  7445. AC_CACHE_VAL(lt_cv_path_SED,
  7446. [# Loop through the user's path and test for sed and gsed.
  7447. # Then use that list of sed's as ones to test for truncation.
  7448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7449. for as_dir in $PATH
  7450. do
  7451. IFS=$as_save_IFS
  7452. test -z "$as_dir" && as_dir=.
  7453. for lt_ac_prog in sed gsed; do
  7454. for ac_exec_ext in '' $ac_executable_extensions; do
  7455. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7456. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7457. fi
  7458. done
  7459. done
  7460. done
  7461. IFS=$as_save_IFS
  7462. lt_ac_max=0
  7463. lt_ac_count=0
  7464. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7465. # along with /bin/sed that truncates output.
  7466. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7467. test ! -f "$lt_ac_sed" && continue
  7468. cat /dev/null > conftest.in
  7469. lt_ac_count=0
  7470. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7471. # Check for GNU sed and select it if it is found.
  7472. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7473. lt_cv_path_SED=$lt_ac_sed
  7474. break
  7475. fi
  7476. while true; do
  7477. cat conftest.in conftest.in >conftest.tmp
  7478. mv conftest.tmp conftest.in
  7479. cp conftest.in conftest.nl
  7480. echo >>conftest.nl
  7481. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7482. cmp -s conftest.out conftest.nl || break
  7483. # 10000 chars as input seems more than enough
  7484. test 10 -lt "$lt_ac_count" && break
  7485. lt_ac_count=`expr $lt_ac_count + 1`
  7486. if test "$lt_ac_count" -gt "$lt_ac_max"; then
  7487. lt_ac_max=$lt_ac_count
  7488. lt_cv_path_SED=$lt_ac_sed
  7489. fi
  7490. done
  7491. done
  7492. ])
  7493. SED=$lt_cv_path_SED
  7494. AC_SUBST([SED])
  7495. AC_MSG_RESULT([$SED])
  7496. ])#AC_PROG_SED
  7497. ])#m4_ifndef
  7498. # Old name:
  7499. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7500. dnl aclocal-1.4 backwards compatibility:
  7501. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7502. # _LT_CHECK_SHELL_FEATURES
  7503. # ------------------------
  7504. # Find out whether the shell is Bourne or XSI compatible,
  7505. # or has some other useful features.
  7506. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7507. [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7508. lt_unset=unset
  7509. else
  7510. lt_unset=false
  7511. fi
  7512. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7513. # test EBCDIC or ASCII
  7514. case `echo X|tr X '\101'` in
  7515. A) # ASCII based system
  7516. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7517. lt_SP2NL='tr \040 \012'
  7518. lt_NL2SP='tr \015\012 \040\040'
  7519. ;;
  7520. *) # EBCDIC based system
  7521. lt_SP2NL='tr \100 \n'
  7522. lt_NL2SP='tr \r\n \100\100'
  7523. ;;
  7524. esac
  7525. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7526. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7527. ])# _LT_CHECK_SHELL_FEATURES
  7528. # _LT_PATH_CONVERSION_FUNCTIONS
  7529. # -----------------------------
  7530. # Determine what file name conversion functions should be used by
  7531. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7532. # for certain cross-compile configurations and native mingw.
  7533. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7534. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7535. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7536. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7537. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7538. [case $host in
  7539. *-*-mingw* )
  7540. case $build in
  7541. *-*-mingw* ) # actually msys
  7542. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7543. ;;
  7544. *-*-cygwin* )
  7545. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7546. ;;
  7547. * ) # otherwise, assume *nix
  7548. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7549. ;;
  7550. esac
  7551. ;;
  7552. *-*-cygwin* )
  7553. case $build in
  7554. *-*-mingw* ) # actually msys
  7555. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7556. ;;
  7557. *-*-cygwin* )
  7558. lt_cv_to_host_file_cmd=func_convert_file_noop
  7559. ;;
  7560. * ) # otherwise, assume *nix
  7561. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7562. ;;
  7563. esac
  7564. ;;
  7565. * ) # unhandled hosts (and "normal" native builds)
  7566. lt_cv_to_host_file_cmd=func_convert_file_noop
  7567. ;;
  7568. esac
  7569. ])
  7570. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7571. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7572. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7573. [0], [convert $build file names to $host format])dnl
  7574. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7575. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7576. [#assume ordinary cross tools, or native build.
  7577. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7578. case $host in
  7579. *-*-mingw* )
  7580. case $build in
  7581. *-*-mingw* ) # actually msys
  7582. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7583. ;;
  7584. esac
  7585. ;;
  7586. esac
  7587. ])
  7588. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7589. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7590. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7591. [0], [convert $build files to toolchain format])dnl
  7592. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7593. # Helper functions for option handling. -*- Autoconf -*-
  7594. #
  7595. # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
  7596. # Foundation, Inc.
  7597. # Written by Gary V. Vaughan, 2004
  7598. #
  7599. # This file is free software; the Free Software Foundation gives
  7600. # unlimited permission to copy and/or distribute it, with or without
  7601. # modifications, as long as this notice is preserved.
  7602. # serial 8 ltoptions.m4
  7603. # This is to help aclocal find these macros, as it can't see m4_define.
  7604. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7605. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7606. # ------------------------------------------
  7607. m4_define([_LT_MANGLE_OPTION],
  7608. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7609. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7610. # ---------------------------------------
  7611. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7612. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7613. # saved as a flag.
  7614. m4_define([_LT_SET_OPTION],
  7615. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7616. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7617. _LT_MANGLE_DEFUN([$1], [$2]),
  7618. [m4_warning([Unknown $1 option '$2'])])[]dnl
  7619. ])
  7620. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7621. # ------------------------------------------------------------
  7622. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7623. m4_define([_LT_IF_OPTION],
  7624. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7625. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7626. # -------------------------------------------------------
  7627. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7628. # are set.
  7629. m4_define([_LT_UNLESS_OPTIONS],
  7630. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7631. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7632. [m4_define([$0_found])])])[]dnl
  7633. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7634. ])[]dnl
  7635. ])
  7636. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7637. # ----------------------------------------
  7638. # OPTION-LIST is a space-separated list of Libtool options associated
  7639. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7640. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7641. # the unknown option and exit.
  7642. m4_defun([_LT_SET_OPTIONS],
  7643. [# Set options
  7644. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7645. [_LT_SET_OPTION([$1], _LT_Option)])
  7646. m4_if([$1],[LT_INIT],[
  7647. dnl
  7648. dnl Simply set some default values (i.e off) if boolean options were not
  7649. dnl specified:
  7650. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7651. ])
  7652. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7653. ])
  7654. dnl
  7655. dnl If no reference was made to various pairs of opposing options, then
  7656. dnl we run the default mode handler for the pair. For example, if neither
  7657. dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
  7658. dnl archives by default:
  7659. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7660. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7661. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7662. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7663. [_LT_ENABLE_FAST_INSTALL])
  7664. _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
  7665. [_LT_WITH_AIX_SONAME([aix])])
  7666. ])
  7667. ])# _LT_SET_OPTIONS
  7668. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7669. # -----------------------------------------
  7670. m4_define([_LT_MANGLE_DEFUN],
  7671. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7672. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7673. # -----------------------------------------------
  7674. m4_define([LT_OPTION_DEFINE],
  7675. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7676. ])# LT_OPTION_DEFINE
  7677. # dlopen
  7678. # ------
  7679. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7680. ])
  7681. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7682. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7683. AC_DIAGNOSE([obsolete],
  7684. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7685. put the 'dlopen' option into LT_INIT's first parameter.])
  7686. ])
  7687. dnl aclocal-1.4 backwards compatibility:
  7688. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7689. # win32-dll
  7690. # ---------
  7691. # Declare package support for building win32 dll's.
  7692. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7693. [enable_win32_dll=yes
  7694. case $host in
  7695. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7696. AC_CHECK_TOOL(AS, as, false)
  7697. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7698. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7699. ;;
  7700. esac
  7701. test -z "$AS" && AS=as
  7702. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7703. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7704. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7705. test -z "$OBJDUMP" && OBJDUMP=objdump
  7706. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7707. ])# win32-dll
  7708. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7709. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7710. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7711. AC_DIAGNOSE([obsolete],
  7712. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7713. put the 'win32-dll' option into LT_INIT's first parameter.])
  7714. ])
  7715. dnl aclocal-1.4 backwards compatibility:
  7716. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7717. # _LT_ENABLE_SHARED([DEFAULT])
  7718. # ----------------------------
  7719. # implement the --enable-shared flag, and supports the 'shared' and
  7720. # 'disable-shared' LT_INIT options.
  7721. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  7722. m4_define([_LT_ENABLE_SHARED],
  7723. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7724. AC_ARG_ENABLE([shared],
  7725. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7726. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7727. [p=${PACKAGE-default}
  7728. case $enableval in
  7729. yes) enable_shared=yes ;;
  7730. no) enable_shared=no ;;
  7731. *)
  7732. enable_shared=no
  7733. # Look at the argument we got. We use all the common list separators.
  7734. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7735. for pkg in $enableval; do
  7736. IFS=$lt_save_ifs
  7737. if test "X$pkg" = "X$p"; then
  7738. enable_shared=yes
  7739. fi
  7740. done
  7741. IFS=$lt_save_ifs
  7742. ;;
  7743. esac],
  7744. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7745. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7746. [Whether or not to build shared libraries])
  7747. ])# _LT_ENABLE_SHARED
  7748. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7749. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7750. # Old names:
  7751. AC_DEFUN([AC_ENABLE_SHARED],
  7752. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7753. ])
  7754. AC_DEFUN([AC_DISABLE_SHARED],
  7755. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7756. ])
  7757. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7758. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7759. dnl aclocal-1.4 backwards compatibility:
  7760. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7761. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7762. # _LT_ENABLE_STATIC([DEFAULT])
  7763. # ----------------------------
  7764. # implement the --enable-static flag, and support the 'static' and
  7765. # 'disable-static' LT_INIT options.
  7766. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  7767. m4_define([_LT_ENABLE_STATIC],
  7768. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7769. AC_ARG_ENABLE([static],
  7770. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7771. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7772. [p=${PACKAGE-default}
  7773. case $enableval in
  7774. yes) enable_static=yes ;;
  7775. no) enable_static=no ;;
  7776. *)
  7777. enable_static=no
  7778. # Look at the argument we got. We use all the common list separators.
  7779. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7780. for pkg in $enableval; do
  7781. IFS=$lt_save_ifs
  7782. if test "X$pkg" = "X$p"; then
  7783. enable_static=yes
  7784. fi
  7785. done
  7786. IFS=$lt_save_ifs
  7787. ;;
  7788. esac],
  7789. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7790. _LT_DECL([build_old_libs], [enable_static], [0],
  7791. [Whether or not to build static libraries])
  7792. ])# _LT_ENABLE_STATIC
  7793. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7794. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7795. # Old names:
  7796. AC_DEFUN([AC_ENABLE_STATIC],
  7797. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7798. ])
  7799. AC_DEFUN([AC_DISABLE_STATIC],
  7800. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7801. ])
  7802. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7803. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7804. dnl aclocal-1.4 backwards compatibility:
  7805. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7806. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7807. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7808. # ----------------------------------
  7809. # implement the --enable-fast-install flag, and support the 'fast-install'
  7810. # and 'disable-fast-install' LT_INIT options.
  7811. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  7812. m4_define([_LT_ENABLE_FAST_INSTALL],
  7813. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7814. AC_ARG_ENABLE([fast-install],
  7815. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7816. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7817. [p=${PACKAGE-default}
  7818. case $enableval in
  7819. yes) enable_fast_install=yes ;;
  7820. no) enable_fast_install=no ;;
  7821. *)
  7822. enable_fast_install=no
  7823. # Look at the argument we got. We use all the common list separators.
  7824. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7825. for pkg in $enableval; do
  7826. IFS=$lt_save_ifs
  7827. if test "X$pkg" = "X$p"; then
  7828. enable_fast_install=yes
  7829. fi
  7830. done
  7831. IFS=$lt_save_ifs
  7832. ;;
  7833. esac],
  7834. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7835. _LT_DECL([fast_install], [enable_fast_install], [0],
  7836. [Whether or not to optimize for fast installation])dnl
  7837. ])# _LT_ENABLE_FAST_INSTALL
  7838. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7839. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7840. # Old names:
  7841. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7842. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7843. AC_DIAGNOSE([obsolete],
  7844. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7845. the 'fast-install' option into LT_INIT's first parameter.])
  7846. ])
  7847. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7848. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7849. AC_DIAGNOSE([obsolete],
  7850. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7851. the 'disable-fast-install' option into LT_INIT's first parameter.])
  7852. ])
  7853. dnl aclocal-1.4 backwards compatibility:
  7854. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7855. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7856. # _LT_WITH_AIX_SONAME([DEFAULT])
  7857. # ----------------------------------
  7858. # implement the --with-aix-soname flag, and support the `aix-soname=aix'
  7859. # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
  7860. # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
  7861. m4_define([_LT_WITH_AIX_SONAME],
  7862. [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
  7863. shared_archive_member_spec=
  7864. case $host,$enable_shared in
  7865. power*-*-aix[[5-9]]*,yes)
  7866. AC_MSG_CHECKING([which variant of shared library versioning to provide])
  7867. AC_ARG_WITH([aix-soname],
  7868. [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
  7869. [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
  7870. [case $withval in
  7871. aix|svr4|both)
  7872. ;;
  7873. *)
  7874. AC_MSG_ERROR([Unknown argument to --with-aix-soname])
  7875. ;;
  7876. esac
  7877. lt_cv_with_aix_soname=$with_aix_soname],
  7878. [AC_CACHE_VAL([lt_cv_with_aix_soname],
  7879. [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
  7880. with_aix_soname=$lt_cv_with_aix_soname])
  7881. AC_MSG_RESULT([$with_aix_soname])
  7882. if test aix != "$with_aix_soname"; then
  7883. # For the AIX way of multilib, we name the shared archive member
  7884. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7885. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7886. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7887. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7888. if test 64 = "${OBJECT_MODE-32}"; then
  7889. shared_archive_member_spec=shr_64
  7890. else
  7891. shared_archive_member_spec=shr
  7892. fi
  7893. fi
  7894. ;;
  7895. *)
  7896. with_aix_soname=aix
  7897. ;;
  7898. esac
  7899. _LT_DECL([], [shared_archive_member_spec], [0],
  7900. [Shared archive member basename, for filename based shared library versioning on AIX])dnl
  7901. ])# _LT_WITH_AIX_SONAME
  7902. LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
  7903. LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
  7904. LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
  7905. # _LT_WITH_PIC([MODE])
  7906. # --------------------
  7907. # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
  7908. # LT_INIT options.
  7909. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
  7910. m4_define([_LT_WITH_PIC],
  7911. [AC_ARG_WITH([pic],
  7912. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7913. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7914. [lt_p=${PACKAGE-default}
  7915. case $withval in
  7916. yes|no) pic_mode=$withval ;;
  7917. *)
  7918. pic_mode=default
  7919. # Look at the argument we got. We use all the common list separators.
  7920. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7921. for lt_pkg in $withval; do
  7922. IFS=$lt_save_ifs
  7923. if test "X$lt_pkg" = "X$lt_p"; then
  7924. pic_mode=yes
  7925. fi
  7926. done
  7927. IFS=$lt_save_ifs
  7928. ;;
  7929. esac],
  7930. [pic_mode=m4_default([$1], [default])])
  7931. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7932. ])# _LT_WITH_PIC
  7933. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7934. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7935. # Old name:
  7936. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7937. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7938. AC_DIAGNOSE([obsolete],
  7939. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7940. put the 'pic-only' option into LT_INIT's first parameter.])
  7941. ])
  7942. dnl aclocal-1.4 backwards compatibility:
  7943. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7944. m4_define([_LTDL_MODE], [])
  7945. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7946. [m4_define([_LTDL_MODE], [nonrecursive])])
  7947. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7948. [m4_define([_LTDL_MODE], [recursive])])
  7949. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7950. [m4_define([_LTDL_MODE], [subproject])])
  7951. m4_define([_LTDL_TYPE], [])
  7952. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7953. [m4_define([_LTDL_TYPE], [installable])])
  7954. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7955. [m4_define([_LTDL_TYPE], [convenience])])
  7956. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7957. #
  7958. # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
  7959. # Foundation, Inc.
  7960. # Written by Gary V. Vaughan, 2004
  7961. #
  7962. # This file is free software; the Free Software Foundation gives
  7963. # unlimited permission to copy and/or distribute it, with or without
  7964. # modifications, as long as this notice is preserved.
  7965. # serial 6 ltsugar.m4
  7966. # This is to help aclocal find these macros, as it can't see m4_define.
  7967. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7968. # lt_join(SEP, ARG1, [ARG2...])
  7969. # -----------------------------
  7970. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7971. # associated separator.
  7972. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7973. # versions in m4sugar had bugs.
  7974. m4_define([lt_join],
  7975. [m4_if([$#], [1], [],
  7976. [$#], [2], [[$2]],
  7977. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7978. m4_define([_lt_join],
  7979. [m4_if([$#$2], [2], [],
  7980. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7981. # lt_car(LIST)
  7982. # lt_cdr(LIST)
  7983. # ------------
  7984. # Manipulate m4 lists.
  7985. # These macros are necessary as long as will still need to support
  7986. # Autoconf-2.59, which quotes differently.
  7987. m4_define([lt_car], [[$1]])
  7988. m4_define([lt_cdr],
  7989. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7990. [$#], 1, [],
  7991. [m4_dquote(m4_shift($@))])])
  7992. m4_define([lt_unquote], $1)
  7993. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7994. # ------------------------------------------
  7995. # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
  7996. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7997. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7998. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7999. # than defined and empty).
  8000. #
  8001. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  8002. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  8003. m4_define([lt_append],
  8004. [m4_define([$1],
  8005. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  8006. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  8007. # ----------------------------------------------------------
  8008. # Produce a SEP delimited list of all paired combinations of elements of
  8009. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  8010. # has the form PREFIXmINFIXSUFFIXn.
  8011. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  8012. m4_define([lt_combine],
  8013. [m4_if(m4_eval([$# > 3]), [1],
  8014. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  8015. [[m4_foreach([_Lt_prefix], [$2],
  8016. [m4_foreach([_Lt_suffix],
  8017. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  8018. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  8019. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  8020. # -----------------------------------------------------------------------
  8021. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  8022. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  8023. m4_define([lt_if_append_uniq],
  8024. [m4_ifdef([$1],
  8025. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  8026. [lt_append([$1], [$2], [$3])$4],
  8027. [$5])],
  8028. [lt_append([$1], [$2], [$3])$4])])
  8029. # lt_dict_add(DICT, KEY, VALUE)
  8030. # -----------------------------
  8031. m4_define([lt_dict_add],
  8032. [m4_define([$1($2)], [$3])])
  8033. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  8034. # --------------------------------------------
  8035. m4_define([lt_dict_add_subkey],
  8036. [m4_define([$1($2:$3)], [$4])])
  8037. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  8038. # ----------------------------------
  8039. m4_define([lt_dict_fetch],
  8040. [m4_ifval([$3],
  8041. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  8042. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  8043. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  8044. # -----------------------------------------------------------------
  8045. m4_define([lt_if_dict_fetch],
  8046. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  8047. [$5],
  8048. [$6])])
  8049. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  8050. # --------------------------------------------------------------
  8051. m4_define([lt_dict_filter],
  8052. [m4_if([$5], [], [],
  8053. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  8054. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  8055. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  8056. ])
  8057. # ltversion.m4 -- version numbers -*- Autoconf -*-
  8058. #
  8059. # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
  8060. # Written by Scott James Remnant, 2004
  8061. #
  8062. # This file is free software; the Free Software Foundation gives
  8063. # unlimited permission to copy and/or distribute it, with or without
  8064. # modifications, as long as this notice is preserved.
  8065. # @configure_input@
  8066. # serial 4179 ltversion.m4
  8067. # This file is part of GNU Libtool
  8068. m4_define([LT_PACKAGE_VERSION], [2.4.6])
  8069. m4_define([LT_PACKAGE_REVISION], [2.4.6])
  8070. AC_DEFUN([LTVERSION_VERSION],
  8071. [macro_version='2.4.6'
  8072. macro_revision='2.4.6'
  8073. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  8074. _LT_DECL(, macro_revision, 0)
  8075. ])
  8076. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  8077. #
  8078. # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
  8079. # Foundation, Inc.
  8080. # Written by Scott James Remnant, 2004.
  8081. #
  8082. # This file is free software; the Free Software Foundation gives
  8083. # unlimited permission to copy and/or distribute it, with or without
  8084. # modifications, as long as this notice is preserved.
  8085. # serial 5 lt~obsolete.m4
  8086. # These exist entirely to fool aclocal when bootstrapping libtool.
  8087. #
  8088. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
  8089. # which have later been changed to m4_define as they aren't part of the
  8090. # exported API, or moved to Autoconf or Automake where they belong.
  8091. #
  8092. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  8093. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  8094. # using a macro with the same name in our local m4/libtool.m4 it'll
  8095. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  8096. # and doesn't know about Autoconf macros at all.)
  8097. #
  8098. # So we provide this file, which has a silly filename so it's always
  8099. # included after everything else. This provides aclocal with the
  8100. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  8101. # because those macros already exist, or will be overwritten later.
  8102. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  8103. #
  8104. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  8105. # Yes, that means every name once taken will need to remain here until
  8106. # we give up compatibility with versions before 1.7, at which point
  8107. # we need to keep only those names which we still refer to.
  8108. # This is to help aclocal find these macros, as it can't see m4_define.
  8109. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  8110. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  8111. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  8112. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  8113. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  8114. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  8115. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  8116. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  8117. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  8118. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  8119. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  8120. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  8121. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  8122. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  8123. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  8124. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  8125. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  8126. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  8127. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  8128. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  8129. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  8130. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  8131. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  8132. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  8133. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  8134. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  8135. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  8136. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  8137. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  8138. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  8139. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  8140. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  8141. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  8142. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  8143. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  8144. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  8145. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  8146. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  8147. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  8148. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  8149. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  8150. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  8151. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  8152. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  8153. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  8154. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  8155. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  8156. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  8157. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  8158. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  8159. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  8160. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  8161. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  8162. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  8163. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  8164. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  8165. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  8166. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  8167. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  8168. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  8169. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  8170. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  8171. # AM_CONDITIONAL -*- Autoconf -*-
  8172. # Copyright (C) 1997-2018 Free Software Foundation, Inc.
  8173. #
  8174. # This file is free software; the Free Software Foundation
  8175. # gives unlimited permission to copy and/or distribute it,
  8176. # with or without modifications, as long as this notice is preserved.
  8177. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  8178. # -------------------------------------
  8179. # Define a conditional.
  8180. AC_DEFUN([AM_CONDITIONAL],
  8181. [AC_PREREQ([2.52])dnl
  8182. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  8183. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  8184. AC_SUBST([$1_TRUE])dnl
  8185. AC_SUBST([$1_FALSE])dnl
  8186. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  8187. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  8188. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  8189. if $2; then
  8190. $1_TRUE=
  8191. $1_FALSE='#'
  8192. else
  8193. $1_TRUE='#'
  8194. $1_FALSE=
  8195. fi
  8196. AC_CONFIG_COMMANDS_PRE(
  8197. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  8198. AC_MSG_ERROR([[conditional "$1" was never defined.
  8199. Usually this means the macro was only invoked conditionally.]])
  8200. fi])])
  8201. # Copyright (C) 2006-2018 Free Software Foundation, Inc.
  8202. #
  8203. # This file is free software; the Free Software Foundation
  8204. # gives unlimited permission to copy and/or distribute it,
  8205. # with or without modifications, as long as this notice is preserved.
  8206. # _AM_SUBST_NOTMAKE(VARIABLE)
  8207. # ---------------------------
  8208. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8209. # This macro is traced by Automake.
  8210. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8211. # AM_SUBST_NOTMAKE(VARIABLE)
  8212. # --------------------------
  8213. # Public sister of _AM_SUBST_NOTMAKE.
  8214. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8215. m4_include([macros/ld-version-script.m4])
  8216. m4_include([macros/neon-test.m4])
  8217. m4_include([macros/neon-xml-parser.m4])
  8218. m4_include([macros/neon.m4])