aclocal.m4 337 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595
  1. # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
  14. [m4_warning([this file was generated for autoconf 2.68.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  18. # codeset.m4 serial 4 (gettext-0.18)
  19. dnl Copyright (C) 2000-2002, 2006, 2008-2010 Free Software Foundation, Inc.
  20. dnl This file is free software; the Free Software Foundation
  21. dnl gives unlimited permission to copy and/or distribute it,
  22. dnl with or without modifications, as long as this notice is preserved.
  23. dnl From Bruno Haible.
  24. AC_DEFUN([AM_LANGINFO_CODESET],
  25. [
  26. AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
  27. [AC_TRY_LINK([#include <langinfo.h>],
  28. [char* cs = nl_langinfo(CODESET); return !cs;],
  29. [am_cv_langinfo_codeset=yes],
  30. [am_cv_langinfo_codeset=no])
  31. ])
  32. if test $am_cv_langinfo_codeset = yes; then
  33. AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
  34. [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
  35. fi
  36. ])
  37. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  38. #
  39. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  40. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  41. # Foundation, Inc.
  42. # Written by Gordon Matzigkeit, 1996
  43. #
  44. # This file is free software; the Free Software Foundation gives
  45. # unlimited permission to copy and/or distribute it, with or without
  46. # modifications, as long as this notice is preserved.
  47. m4_define([_LT_COPYING], [dnl
  48. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  49. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  50. # Foundation, Inc.
  51. # Written by Gordon Matzigkeit, 1996
  52. #
  53. # This file is part of GNU Libtool.
  54. #
  55. # GNU Libtool is free software; you can redistribute it and/or
  56. # modify it under the terms of the GNU General Public License as
  57. # published by the Free Software Foundation; either version 2 of
  58. # the License, or (at your option) any later version.
  59. #
  60. # As a special exception to the GNU General Public License,
  61. # if you distribute this file as part of a program or library that
  62. # is built using GNU Libtool, you may include this file under the
  63. # same distribution terms that you use for the rest of that program.
  64. #
  65. # GNU Libtool is distributed in the hope that it will be useful,
  66. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  67. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  68. # GNU General Public License for more details.
  69. #
  70. # You should have received a copy of the GNU General Public License
  71. # along with GNU Libtool; see the file COPYING. If not, a copy
  72. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  73. # obtained by writing to the Free Software Foundation, Inc.,
  74. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  75. ])
  76. # serial 57 LT_INIT
  77. # LT_PREREQ(VERSION)
  78. # ------------------
  79. # Complain and exit if this libtool version is less that VERSION.
  80. m4_defun([LT_PREREQ],
  81. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  82. [m4_default([$3],
  83. [m4_fatal([Libtool version $1 or higher is required],
  84. 63)])],
  85. [$2])])
  86. # _LT_CHECK_BUILDDIR
  87. # ------------------
  88. # Complain if the absolute build directory name contains unusual characters
  89. m4_defun([_LT_CHECK_BUILDDIR],
  90. [case `pwd` in
  91. *\ * | *\ *)
  92. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  93. esac
  94. ])
  95. # LT_INIT([OPTIONS])
  96. # ------------------
  97. AC_DEFUN([LT_INIT],
  98. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  99. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  100. AC_BEFORE([$0], [LT_LANG])dnl
  101. AC_BEFORE([$0], [LT_OUTPUT])dnl
  102. AC_BEFORE([$0], [LTDL_INIT])dnl
  103. m4_require([_LT_CHECK_BUILDDIR])dnl
  104. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  105. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  106. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  107. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  108. dnl unless we require an AC_DEFUNed macro:
  109. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  110. AC_REQUIRE([LTSUGAR_VERSION])dnl
  111. AC_REQUIRE([LTVERSION_VERSION])dnl
  112. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  113. m4_require([_LT_PROG_LTMAIN])dnl
  114. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  115. dnl Parse OPTIONS
  116. _LT_SET_OPTIONS([$0], [$1])
  117. # This can be used to rebuild libtool when needed
  118. LIBTOOL_DEPS="$ltmain"
  119. # Always use our own libtool.
  120. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  121. AC_SUBST(LIBTOOL)dnl
  122. _LT_SETUP
  123. # Only expand once:
  124. m4_define([LT_INIT])
  125. ])# LT_INIT
  126. # Old names:
  127. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  128. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  129. dnl aclocal-1.4 backwards compatibility:
  130. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  131. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  132. # _LT_CC_BASENAME(CC)
  133. # -------------------
  134. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  135. m4_defun([_LT_CC_BASENAME],
  136. [for cc_temp in $1""; do
  137. case $cc_temp in
  138. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  139. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  140. \-*) ;;
  141. *) break;;
  142. esac
  143. done
  144. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  145. ])
  146. # _LT_FILEUTILS_DEFAULTS
  147. # ----------------------
  148. # It is okay to use these file commands and assume they have been set
  149. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  150. m4_defun([_LT_FILEUTILS_DEFAULTS],
  151. [: ${CP="cp -f"}
  152. : ${MV="mv -f"}
  153. : ${RM="rm -f"}
  154. ])# _LT_FILEUTILS_DEFAULTS
  155. # _LT_SETUP
  156. # ---------
  157. m4_defun([_LT_SETUP],
  158. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  159. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  160. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  161. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  162. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  163. dnl
  164. _LT_DECL([], [host_alias], [0], [The host system])dnl
  165. _LT_DECL([], [host], [0])dnl
  166. _LT_DECL([], [host_os], [0])dnl
  167. dnl
  168. _LT_DECL([], [build_alias], [0], [The build system])dnl
  169. _LT_DECL([], [build], [0])dnl
  170. _LT_DECL([], [build_os], [0])dnl
  171. dnl
  172. AC_REQUIRE([AC_PROG_CC])dnl
  173. AC_REQUIRE([LT_PATH_LD])dnl
  174. AC_REQUIRE([LT_PATH_NM])dnl
  175. dnl
  176. AC_REQUIRE([AC_PROG_LN_S])dnl
  177. test -z "$LN_S" && LN_S="ln -s"
  178. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  179. dnl
  180. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  181. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  182. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  183. dnl
  184. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  185. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  186. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  187. m4_require([_LT_CMD_RELOAD])dnl
  188. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  189. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  190. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  191. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  192. m4_require([_LT_WITH_SYSROOT])dnl
  193. _LT_CONFIG_LIBTOOL_INIT([
  194. # See if we are running on zsh, and set the options which allow our
  195. # commands through without removal of \ escapes INIT.
  196. if test -n "\${ZSH_VERSION+set}" ; then
  197. setopt NO_GLOB_SUBST
  198. fi
  199. ])
  200. if test -n "${ZSH_VERSION+set}" ; then
  201. setopt NO_GLOB_SUBST
  202. fi
  203. _LT_CHECK_OBJDIR
  204. m4_require([_LT_TAG_COMPILER])dnl
  205. case $host_os in
  206. aix3*)
  207. # AIX sometimes has problems with the GCC collect2 program. For some
  208. # reason, if we set the COLLECT_NAMES environment variable, the problems
  209. # vanish in a puff of smoke.
  210. if test "X${COLLECT_NAMES+set}" != Xset; then
  211. COLLECT_NAMES=
  212. export COLLECT_NAMES
  213. fi
  214. ;;
  215. esac
  216. # Global variables:
  217. ofile=libtool
  218. can_build_shared=yes
  219. # All known linkers require a `.a' archive for static linking (except MSVC,
  220. # which needs '.lib').
  221. libext=a
  222. with_gnu_ld="$lt_cv_prog_gnu_ld"
  223. old_CC="$CC"
  224. old_CFLAGS="$CFLAGS"
  225. # Set sane defaults for various variables
  226. test -z "$CC" && CC=cc
  227. test -z "$LTCC" && LTCC=$CC
  228. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  229. test -z "$LD" && LD=ld
  230. test -z "$ac_objext" && ac_objext=o
  231. _LT_CC_BASENAME([$compiler])
  232. # Only perform the check for file, if the check method requires it
  233. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  234. case $deplibs_check_method in
  235. file_magic*)
  236. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  237. _LT_PATH_MAGIC
  238. fi
  239. ;;
  240. esac
  241. # Use C for the default configuration in the libtool script
  242. LT_SUPPORTED_TAG([CC])
  243. _LT_LANG_C_CONFIG
  244. _LT_LANG_DEFAULT_CONFIG
  245. _LT_CONFIG_COMMANDS
  246. ])# _LT_SETUP
  247. # _LT_PREPARE_SED_QUOTE_VARS
  248. # --------------------------
  249. # Define a few sed substitution that help us do robust quoting.
  250. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  251. [# Backslashify metacharacters that are still active within
  252. # double-quoted strings.
  253. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  254. # Same as above, but do not quote variable references.
  255. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  256. # Sed substitution to delay expansion of an escaped shell variable in a
  257. # double_quote_subst'ed string.
  258. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  259. # Sed substitution to delay expansion of an escaped single quote.
  260. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  261. # Sed substitution to avoid accidental globbing in evaled expressions
  262. no_glob_subst='s/\*/\\\*/g'
  263. ])
  264. # _LT_PROG_LTMAIN
  265. # ---------------
  266. # Note that this code is called both from `configure', and `config.status'
  267. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  268. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  269. # so we pass a copy along to make sure it has a sensible value anyway.
  270. m4_defun([_LT_PROG_LTMAIN],
  271. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  272. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  273. ltmain="$ac_aux_dir/ltmain.sh"
  274. ])# _LT_PROG_LTMAIN
  275. # So that we can recreate a full libtool script including additional
  276. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  277. # in macros and then make a single call at the end using the `libtool'
  278. # label.
  279. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  280. # ----------------------------------------
  281. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  282. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  283. [m4_ifval([$1],
  284. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  285. [$1
  286. ])])])
  287. # Initialize.
  288. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  289. # _LT_CONFIG_LIBTOOL([COMMANDS])
  290. # ------------------------------
  291. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  292. m4_define([_LT_CONFIG_LIBTOOL],
  293. [m4_ifval([$1],
  294. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  295. [$1
  296. ])])])
  297. # Initialize.
  298. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  299. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  300. # -----------------------------------------------------
  301. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  302. [_LT_CONFIG_LIBTOOL([$1])
  303. _LT_CONFIG_LIBTOOL_INIT([$2])
  304. ])
  305. # _LT_FORMAT_COMMENT([COMMENT])
  306. # -----------------------------
  307. # Add leading comment marks to the start of each line, and a trailing
  308. # full-stop to the whole comment if one is not present already.
  309. m4_define([_LT_FORMAT_COMMENT],
  310. [m4_ifval([$1], [
  311. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  312. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  313. )])
  314. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  315. # -------------------------------------------------------------------
  316. # CONFIGNAME is the name given to the value in the libtool script.
  317. # VARNAME is the (base) name used in the configure script.
  318. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  319. # VARNAME. Any other value will be used directly.
  320. m4_define([_LT_DECL],
  321. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  322. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  323. [m4_ifval([$1], [$1], [$2])])
  324. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  325. m4_ifval([$4],
  326. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  327. lt_dict_add_subkey([lt_decl_dict], [$2],
  328. [tagged?], [m4_ifval([$5], [yes], [no])])])
  329. ])
  330. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  331. # --------------------------------------------------------
  332. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  333. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  334. # ------------------------------------------------
  335. m4_define([lt_decl_tag_varnames],
  336. [_lt_decl_filter([tagged?], [yes], $@)])
  337. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  338. # ---------------------------------------------------------
  339. m4_define([_lt_decl_filter],
  340. [m4_case([$#],
  341. [0], [m4_fatal([$0: too few arguments: $#])],
  342. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  343. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  344. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  345. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  346. ])
  347. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  348. # --------------------------------------------------
  349. m4_define([lt_decl_quote_varnames],
  350. [_lt_decl_filter([value], [1], $@)])
  351. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  352. # ---------------------------------------------------
  353. m4_define([lt_decl_dquote_varnames],
  354. [_lt_decl_filter([value], [2], $@)])
  355. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  356. # ---------------------------------------------------
  357. m4_define([lt_decl_varnames_tagged],
  358. [m4_assert([$# <= 2])dnl
  359. _$0(m4_quote(m4_default([$1], [[, ]])),
  360. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  361. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  362. m4_define([_lt_decl_varnames_tagged],
  363. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  364. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  365. # ------------------------------------------------
  366. m4_define([lt_decl_all_varnames],
  367. [_$0(m4_quote(m4_default([$1], [[, ]])),
  368. m4_if([$2], [],
  369. m4_quote(lt_decl_varnames),
  370. m4_quote(m4_shift($@))))[]dnl
  371. ])
  372. m4_define([_lt_decl_all_varnames],
  373. [lt_join($@, lt_decl_varnames_tagged([$1],
  374. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  375. ])
  376. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  377. # ------------------------------------
  378. # Quote a variable value, and forward it to `config.status' so that its
  379. # declaration there will have the same value as in `configure'. VARNAME
  380. # must have a single quote delimited value for this to work.
  381. m4_define([_LT_CONFIG_STATUS_DECLARE],
  382. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  383. # _LT_CONFIG_STATUS_DECLARATIONS
  384. # ------------------------------
  385. # We delimit libtool config variables with single quotes, so when
  386. # we write them to config.status, we have to be sure to quote all
  387. # embedded single quotes properly. In configure, this macro expands
  388. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  389. #
  390. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  391. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  392. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  393. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  394. # _LT_LIBTOOL_TAGS
  395. # ----------------
  396. # Output comment and list of tags supported by the script
  397. m4_defun([_LT_LIBTOOL_TAGS],
  398. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  399. available_tags="_LT_TAGS"dnl
  400. ])
  401. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  402. # -----------------------------------
  403. # Extract the dictionary values for VARNAME (optionally with TAG) and
  404. # expand to a commented shell variable setting:
  405. #
  406. # # Some comment about what VAR is for.
  407. # visible_name=$lt_internal_name
  408. m4_define([_LT_LIBTOOL_DECLARE],
  409. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  410. [description])))[]dnl
  411. m4_pushdef([_libtool_name],
  412. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  413. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  414. [0], [_libtool_name=[$]$1],
  415. [1], [_libtool_name=$lt_[]$1],
  416. [2], [_libtool_name=$lt_[]$1],
  417. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  418. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  419. ])
  420. # _LT_LIBTOOL_CONFIG_VARS
  421. # -----------------------
  422. # Produce commented declarations of non-tagged libtool config variables
  423. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  424. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  425. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  426. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  427. [m4_foreach([_lt_var],
  428. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  429. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  430. # _LT_LIBTOOL_TAG_VARS(TAG)
  431. # -------------------------
  432. m4_define([_LT_LIBTOOL_TAG_VARS],
  433. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  434. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  435. # _LT_TAGVAR(VARNAME, [TAGNAME])
  436. # ------------------------------
  437. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  438. # _LT_CONFIG_COMMANDS
  439. # -------------------
  440. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  441. # variables for single and double quote escaping we saved from calls
  442. # to _LT_DECL, we can put quote escaped variables declarations
  443. # into `config.status', and then the shell code to quote escape them in
  444. # for loops in `config.status'. Finally, any additional code accumulated
  445. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  446. m4_defun([_LT_CONFIG_COMMANDS],
  447. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  448. dnl If the libtool generation code has been placed in $CONFIG_LT,
  449. dnl instead of duplicating it all over again into config.status,
  450. dnl then we will have config.status run $CONFIG_LT later, so it
  451. dnl needs to know what name is stored there:
  452. [AC_CONFIG_COMMANDS([libtool],
  453. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  454. dnl If the libtool generation code is destined for config.status,
  455. dnl expand the accumulated commands and init code now:
  456. [AC_CONFIG_COMMANDS([libtool],
  457. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  458. ])#_LT_CONFIG_COMMANDS
  459. # Initialize.
  460. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  461. [
  462. # The HP-UX ksh and POSIX shell print the target directory to stdout
  463. # if CDPATH is set.
  464. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  465. sed_quote_subst='$sed_quote_subst'
  466. double_quote_subst='$double_quote_subst'
  467. delay_variable_subst='$delay_variable_subst'
  468. _LT_CONFIG_STATUS_DECLARATIONS
  469. LTCC='$LTCC'
  470. LTCFLAGS='$LTCFLAGS'
  471. compiler='$compiler_DEFAULT'
  472. # A function that is used when there is no print builtin or printf.
  473. func_fallback_echo ()
  474. {
  475. eval 'cat <<_LTECHO_EOF
  476. \$[]1
  477. _LTECHO_EOF'
  478. }
  479. # Quote evaled strings.
  480. for var in lt_decl_all_varnames([[ \
  481. ]], lt_decl_quote_varnames); do
  482. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  483. *[[\\\\\\\`\\"\\\$]]*)
  484. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  485. ;;
  486. *)
  487. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  488. ;;
  489. esac
  490. done
  491. # Double-quote double-evaled strings.
  492. for var in lt_decl_all_varnames([[ \
  493. ]], lt_decl_dquote_varnames); do
  494. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  495. *[[\\\\\\\`\\"\\\$]]*)
  496. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  497. ;;
  498. *)
  499. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  500. ;;
  501. esac
  502. done
  503. _LT_OUTPUT_LIBTOOL_INIT
  504. ])
  505. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  506. # ------------------------------------
  507. # Generate a child script FILE with all initialization necessary to
  508. # reuse the environment learned by the parent script, and make the
  509. # file executable. If COMMENT is supplied, it is inserted after the
  510. # `#!' sequence but before initialization text begins. After this
  511. # macro, additional text can be appended to FILE to form the body of
  512. # the child script. The macro ends with non-zero status if the
  513. # file could not be fully written (such as if the disk is full).
  514. m4_ifdef([AS_INIT_GENERATED],
  515. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  516. [m4_defun([_LT_GENERATED_FILE_INIT],
  517. [m4_require([AS_PREPARE])]dnl
  518. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  519. [lt_write_fail=0
  520. cat >$1 <<_ASEOF || lt_write_fail=1
  521. #! $SHELL
  522. # Generated by $as_me.
  523. $2
  524. SHELL=\${CONFIG_SHELL-$SHELL}
  525. export SHELL
  526. _ASEOF
  527. cat >>$1 <<\_ASEOF || lt_write_fail=1
  528. AS_SHELL_SANITIZE
  529. _AS_PREPARE
  530. exec AS_MESSAGE_FD>&1
  531. _ASEOF
  532. test $lt_write_fail = 0 && chmod +x $1[]dnl
  533. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  534. # LT_OUTPUT
  535. # ---------
  536. # This macro allows early generation of the libtool script (before
  537. # AC_OUTPUT is called), incase it is used in configure for compilation
  538. # tests.
  539. AC_DEFUN([LT_OUTPUT],
  540. [: ${CONFIG_LT=./config.lt}
  541. AC_MSG_NOTICE([creating $CONFIG_LT])
  542. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  543. [# Run this file to recreate a libtool stub with the current configuration.])
  544. cat >>"$CONFIG_LT" <<\_LTEOF
  545. lt_cl_silent=false
  546. exec AS_MESSAGE_LOG_FD>>config.log
  547. {
  548. echo
  549. AS_BOX([Running $as_me.])
  550. } >&AS_MESSAGE_LOG_FD
  551. lt_cl_help="\
  552. \`$as_me' creates a local libtool stub from the current configuration,
  553. for use in further configure time tests before the real libtool is
  554. generated.
  555. Usage: $[0] [[OPTIONS]]
  556. -h, --help print this help, then exit
  557. -V, --version print version number, then exit
  558. -q, --quiet do not print progress messages
  559. -d, --debug don't remove temporary files
  560. Report bugs to <bug-libtool@gnu.org>."
  561. lt_cl_version="\
  562. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  563. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  564. configured by $[0], generated by m4_PACKAGE_STRING.
  565. Copyright (C) 2011 Free Software Foundation, Inc.
  566. This config.lt script is free software; the Free Software Foundation
  567. gives unlimited permision to copy, distribute and modify it."
  568. while test $[#] != 0
  569. do
  570. case $[1] in
  571. --version | --v* | -V )
  572. echo "$lt_cl_version"; exit 0 ;;
  573. --help | --h* | -h )
  574. echo "$lt_cl_help"; exit 0 ;;
  575. --debug | --d* | -d )
  576. debug=: ;;
  577. --quiet | --q* | --silent | --s* | -q )
  578. lt_cl_silent=: ;;
  579. -*) AC_MSG_ERROR([unrecognized option: $[1]
  580. Try \`$[0] --help' for more information.]) ;;
  581. *) AC_MSG_ERROR([unrecognized argument: $[1]
  582. Try \`$[0] --help' for more information.]) ;;
  583. esac
  584. shift
  585. done
  586. if $lt_cl_silent; then
  587. exec AS_MESSAGE_FD>/dev/null
  588. fi
  589. _LTEOF
  590. cat >>"$CONFIG_LT" <<_LTEOF
  591. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  592. _LTEOF
  593. cat >>"$CONFIG_LT" <<\_LTEOF
  594. AC_MSG_NOTICE([creating $ofile])
  595. _LT_OUTPUT_LIBTOOL_COMMANDS
  596. AS_EXIT(0)
  597. _LTEOF
  598. chmod +x "$CONFIG_LT"
  599. # configure is writing to config.log, but config.lt does its own redirection,
  600. # appending to config.log, which fails on DOS, as config.log is still kept
  601. # open by configure. Here we exec the FD to /dev/null, effectively closing
  602. # config.log, so it can be properly (re)opened and appended to by config.lt.
  603. lt_cl_success=:
  604. test "$silent" = yes &&
  605. lt_config_lt_args="$lt_config_lt_args --quiet"
  606. exec AS_MESSAGE_LOG_FD>/dev/null
  607. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  608. exec AS_MESSAGE_LOG_FD>>config.log
  609. $lt_cl_success || AS_EXIT(1)
  610. ])# LT_OUTPUT
  611. # _LT_CONFIG(TAG)
  612. # ---------------
  613. # If TAG is the built-in tag, create an initial libtool script with a
  614. # default configuration from the untagged config vars. Otherwise add code
  615. # to config.status for appending the configuration named by TAG from the
  616. # matching tagged config vars.
  617. m4_defun([_LT_CONFIG],
  618. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  619. _LT_CONFIG_SAVE_COMMANDS([
  620. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  621. m4_if(_LT_TAG, [C], [
  622. # See if we are running on zsh, and set the options which allow our
  623. # commands through without removal of \ escapes.
  624. if test -n "${ZSH_VERSION+set}" ; then
  625. setopt NO_GLOB_SUBST
  626. fi
  627. cfgfile="${ofile}T"
  628. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  629. $RM "$cfgfile"
  630. cat <<_LT_EOF >> "$cfgfile"
  631. #! $SHELL
  632. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  633. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  634. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  635. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  636. #
  637. _LT_COPYING
  638. _LT_LIBTOOL_TAGS
  639. # ### BEGIN LIBTOOL CONFIG
  640. _LT_LIBTOOL_CONFIG_VARS
  641. _LT_LIBTOOL_TAG_VARS
  642. # ### END LIBTOOL CONFIG
  643. _LT_EOF
  644. case $host_os in
  645. aix3*)
  646. cat <<\_LT_EOF >> "$cfgfile"
  647. # AIX sometimes has problems with the GCC collect2 program. For some
  648. # reason, if we set the COLLECT_NAMES environment variable, the problems
  649. # vanish in a puff of smoke.
  650. if test "X${COLLECT_NAMES+set}" != Xset; then
  651. COLLECT_NAMES=
  652. export COLLECT_NAMES
  653. fi
  654. _LT_EOF
  655. ;;
  656. esac
  657. _LT_PROG_LTMAIN
  658. # We use sed instead of cat because bash on DJGPP gets confused if
  659. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  660. # text mode, it properly converts lines to CR/LF. This bash problem
  661. # is reportedly fixed, but why not run on old versions too?
  662. sed '$q' "$ltmain" >> "$cfgfile" \
  663. || (rm -f "$cfgfile"; exit 1)
  664. _LT_PROG_REPLACE_SHELLFNS
  665. mv -f "$cfgfile" "$ofile" ||
  666. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  667. chmod +x "$ofile"
  668. ],
  669. [cat <<_LT_EOF >> "$ofile"
  670. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  671. dnl in a comment (ie after a #).
  672. # ### BEGIN LIBTOOL TAG CONFIG: $1
  673. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  674. # ### END LIBTOOL TAG CONFIG: $1
  675. _LT_EOF
  676. ])dnl /m4_if
  677. ],
  678. [m4_if([$1], [], [
  679. PACKAGE='$PACKAGE'
  680. VERSION='$VERSION'
  681. TIMESTAMP='$TIMESTAMP'
  682. RM='$RM'
  683. ofile='$ofile'], [])
  684. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  685. ])# _LT_CONFIG
  686. # LT_SUPPORTED_TAG(TAG)
  687. # ---------------------
  688. # Trace this macro to discover what tags are supported by the libtool
  689. # --tag option, using:
  690. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  691. AC_DEFUN([LT_SUPPORTED_TAG], [])
  692. # C support is built-in for now
  693. m4_define([_LT_LANG_C_enabled], [])
  694. m4_define([_LT_TAGS], [])
  695. # LT_LANG(LANG)
  696. # -------------
  697. # Enable libtool support for the given language if not already enabled.
  698. AC_DEFUN([LT_LANG],
  699. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  700. m4_case([$1],
  701. [C], [_LT_LANG(C)],
  702. [C++], [_LT_LANG(CXX)],
  703. [Go], [_LT_LANG(GO)],
  704. [Java], [_LT_LANG(GCJ)],
  705. [Fortran 77], [_LT_LANG(F77)],
  706. [Fortran], [_LT_LANG(FC)],
  707. [Windows Resource], [_LT_LANG(RC)],
  708. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  709. [_LT_LANG($1)],
  710. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  711. ])# LT_LANG
  712. # _LT_LANG(LANGNAME)
  713. # ------------------
  714. m4_defun([_LT_LANG],
  715. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  716. [LT_SUPPORTED_TAG([$1])dnl
  717. m4_append([_LT_TAGS], [$1 ])dnl
  718. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  719. _LT_LANG_$1_CONFIG($1)])dnl
  720. ])# _LT_LANG
  721. m4_ifndef([AC_PROG_GO], [
  722. # NOTE: This macro has been submitted for inclusion into #
  723. # GNU Autoconf as AC_PROG_GO. When it is available in #
  724. # a released version of Autoconf we should remove this #
  725. # macro and use it instead. #
  726. m4_defun([AC_PROG_GO],
  727. [AC_LANG_PUSH(Go)dnl
  728. AC_ARG_VAR([GOC], [Go compiler command])dnl
  729. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  730. _AC_ARG_VAR_LDFLAGS()dnl
  731. AC_CHECK_TOOL(GOC, gccgo)
  732. if test -z "$GOC"; then
  733. if test -n "$ac_tool_prefix"; then
  734. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  735. fi
  736. fi
  737. if test -z "$GOC"; then
  738. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  739. fi
  740. ])#m4_defun
  741. ])#m4_ifndef
  742. # _LT_LANG_DEFAULT_CONFIG
  743. # -----------------------
  744. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  745. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  746. [LT_LANG(CXX)],
  747. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  748. AC_PROVIDE_IFELSE([AC_PROG_F77],
  749. [LT_LANG(F77)],
  750. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  751. AC_PROVIDE_IFELSE([AC_PROG_FC],
  752. [LT_LANG(FC)],
  753. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  754. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  755. dnl pulling things in needlessly.
  756. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  757. [LT_LANG(GCJ)],
  758. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  759. [LT_LANG(GCJ)],
  760. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  761. [LT_LANG(GCJ)],
  762. [m4_ifdef([AC_PROG_GCJ],
  763. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  764. m4_ifdef([A][M_PROG_GCJ],
  765. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  766. m4_ifdef([LT_PROG_GCJ],
  767. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  768. AC_PROVIDE_IFELSE([AC_PROG_GO],
  769. [LT_LANG(GO)],
  770. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  771. AC_PROVIDE_IFELSE([LT_PROG_RC],
  772. [LT_LANG(RC)],
  773. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  774. ])# _LT_LANG_DEFAULT_CONFIG
  775. # Obsolete macros:
  776. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  777. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  778. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  779. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  780. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  781. dnl aclocal-1.4 backwards compatibility:
  782. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  783. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  784. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  785. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  786. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  787. # _LT_TAG_COMPILER
  788. # ----------------
  789. m4_defun([_LT_TAG_COMPILER],
  790. [AC_REQUIRE([AC_PROG_CC])dnl
  791. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  792. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  793. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  794. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  795. # If no C compiler was specified, use CC.
  796. LTCC=${LTCC-"$CC"}
  797. # If no C compiler flags were specified, use CFLAGS.
  798. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  799. # Allow CC to be a program name with arguments.
  800. compiler=$CC
  801. ])# _LT_TAG_COMPILER
  802. # _LT_COMPILER_BOILERPLATE
  803. # ------------------------
  804. # Check for compiler boilerplate output or warnings with
  805. # the simple compiler test code.
  806. m4_defun([_LT_COMPILER_BOILERPLATE],
  807. [m4_require([_LT_DECL_SED])dnl
  808. ac_outfile=conftest.$ac_objext
  809. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  810. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  811. _lt_compiler_boilerplate=`cat conftest.err`
  812. $RM conftest*
  813. ])# _LT_COMPILER_BOILERPLATE
  814. # _LT_LINKER_BOILERPLATE
  815. # ----------------------
  816. # Check for linker boilerplate output or warnings with
  817. # the simple link test code.
  818. m4_defun([_LT_LINKER_BOILERPLATE],
  819. [m4_require([_LT_DECL_SED])dnl
  820. ac_outfile=conftest.$ac_objext
  821. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  822. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  823. _lt_linker_boilerplate=`cat conftest.err`
  824. $RM -r conftest*
  825. ])# _LT_LINKER_BOILERPLATE
  826. # _LT_REQUIRED_DARWIN_CHECKS
  827. # -------------------------
  828. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  829. case $host_os in
  830. rhapsody* | darwin*)
  831. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  832. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  833. AC_CHECK_TOOL([LIPO], [lipo], [:])
  834. AC_CHECK_TOOL([OTOOL], [otool], [:])
  835. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  836. _LT_DECL([], [DSYMUTIL], [1],
  837. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  838. _LT_DECL([], [NMEDIT], [1],
  839. [Tool to change global to local symbols on Mac OS X])
  840. _LT_DECL([], [LIPO], [1],
  841. [Tool to manipulate fat objects and archives on Mac OS X])
  842. _LT_DECL([], [OTOOL], [1],
  843. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  844. _LT_DECL([], [OTOOL64], [1],
  845. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  846. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  847. [lt_cv_apple_cc_single_mod=no
  848. if test -z "${LT_MULTI_MODULE}"; then
  849. # By default we will add the -single_module flag. You can override
  850. # by either setting the environment variable LT_MULTI_MODULE
  851. # non-empty at configure time, or by adding -multi_module to the
  852. # link flags.
  853. rm -rf libconftest.dylib*
  854. echo "int foo(void){return 1;}" > conftest.c
  855. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  856. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  857. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  858. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  859. _lt_result=$?
  860. # If there is a non-empty error log, and "single_module"
  861. # appears in it, assume the flag caused a linker warning
  862. if test -s conftest.err && $GREP single_module conftest.err; then
  863. cat conftest.err >&AS_MESSAGE_LOG_FD
  864. # Otherwise, if the output was created with a 0 exit code from
  865. # the compiler, it worked.
  866. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  867. lt_cv_apple_cc_single_mod=yes
  868. else
  869. cat conftest.err >&AS_MESSAGE_LOG_FD
  870. fi
  871. rm -rf libconftest.dylib*
  872. rm -f conftest.*
  873. fi])
  874. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  875. [lt_cv_ld_exported_symbols_list],
  876. [lt_cv_ld_exported_symbols_list=no
  877. save_LDFLAGS=$LDFLAGS
  878. echo "_main" > conftest.sym
  879. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  880. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  881. [lt_cv_ld_exported_symbols_list=yes],
  882. [lt_cv_ld_exported_symbols_list=no])
  883. LDFLAGS="$save_LDFLAGS"
  884. ])
  885. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  886. [lt_cv_ld_force_load=no
  887. cat > conftest.c << _LT_EOF
  888. int forced_loaded() { return 2;}
  889. _LT_EOF
  890. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  891. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  892. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  893. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  894. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  895. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  896. cat > conftest.c << _LT_EOF
  897. int main() { return 0;}
  898. _LT_EOF
  899. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  900. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  901. _lt_result=$?
  902. if test -s conftest.err && $GREP force_load conftest.err; then
  903. cat conftest.err >&AS_MESSAGE_LOG_FD
  904. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  905. lt_cv_ld_force_load=yes
  906. else
  907. cat conftest.err >&AS_MESSAGE_LOG_FD
  908. fi
  909. rm -f conftest.err libconftest.a conftest conftest.c
  910. rm -rf conftest.dSYM
  911. ])
  912. case $host_os in
  913. rhapsody* | darwin1.[[012]])
  914. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  915. darwin1.*)
  916. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  917. darwin*) # darwin 5.x on
  918. # if running on 10.5 or later, the deployment target defaults
  919. # to the OS version, if on x86, and 10.4, the deployment
  920. # target defaults to 10.4. Don't you love it?
  921. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  922. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  923. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  924. 10.[[012]]*)
  925. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  926. 10.*)
  927. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  928. esac
  929. ;;
  930. esac
  931. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  932. _lt_dar_single_mod='$single_module'
  933. fi
  934. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  935. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  936. else
  937. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  938. fi
  939. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  940. _lt_dsymutil='~$DSYMUTIL $lib || :'
  941. else
  942. _lt_dsymutil=
  943. fi
  944. ;;
  945. esac
  946. ])
  947. # _LT_DARWIN_LINKER_FEATURES([TAG])
  948. # ---------------------------------
  949. # Checks for linker and compiler features on darwin
  950. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  951. [
  952. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  953. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  954. _LT_TAGVAR(hardcode_direct, $1)=no
  955. _LT_TAGVAR(hardcode_automatic, $1)=yes
  956. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  957. if test "$lt_cv_ld_force_load" = "yes"; then
  958. _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\"`'
  959. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  960. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  961. else
  962. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  963. fi
  964. _LT_TAGVAR(link_all_deplibs, $1)=yes
  965. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  966. case $cc_basename in
  967. ifort*) _lt_dar_can_shared=yes ;;
  968. *) _lt_dar_can_shared=$GCC ;;
  969. esac
  970. if test "$_lt_dar_can_shared" = "yes"; then
  971. output_verbose_link_cmd=func_echo_all
  972. _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}"
  973. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  974. _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}"
  975. _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}"
  976. m4_if([$1], [CXX],
  977. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  978. _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}"
  979. _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}"
  980. fi
  981. ],[])
  982. else
  983. _LT_TAGVAR(ld_shlibs, $1)=no
  984. fi
  985. ])
  986. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  987. # ----------------------------------
  988. # Links a minimal program and checks the executable
  989. # for the system default hardcoded library path. In most cases,
  990. # this is /usr/lib:/lib, but when the MPI compilers are used
  991. # the location of the communication and MPI libs are included too.
  992. # If we don't find anything, use the default library path according
  993. # to the aix ld manual.
  994. # Store the results from the different compilers for each TAGNAME.
  995. # Allow to override them for all tags through lt_cv_aix_libpath.
  996. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  997. [m4_require([_LT_DECL_SED])dnl
  998. if test "${lt_cv_aix_libpath+set}" = set; then
  999. aix_libpath=$lt_cv_aix_libpath
  1000. else
  1001. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  1002. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  1003. lt_aix_libpath_sed='[
  1004. /Import File Strings/,/^$/ {
  1005. /^0/ {
  1006. s/^0 *\([^ ]*\) *$/\1/
  1007. p
  1008. }
  1009. }]'
  1010. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1011. # Check for a 64-bit object if we didn't find anything.
  1012. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1013. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1014. fi],[])
  1015. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1016. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  1017. fi
  1018. ])
  1019. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1020. fi
  1021. ])# _LT_SYS_MODULE_PATH_AIX
  1022. # _LT_SHELL_INIT(ARG)
  1023. # -------------------
  1024. m4_define([_LT_SHELL_INIT],
  1025. [m4_divert_text([M4SH-INIT], [$1
  1026. ])])# _LT_SHELL_INIT
  1027. # _LT_PROG_ECHO_BACKSLASH
  1028. # -----------------------
  1029. # Find how we can fake an echo command that does not interpret backslash.
  1030. # In particular, with Autoconf 2.60 or later we add some code to the start
  1031. # of the generated configure script which will find a shell with a builtin
  1032. # printf (which we can use as an echo command).
  1033. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1034. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1035. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1036. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1037. AC_MSG_CHECKING([how to print strings])
  1038. # Test print first, because it will be a builtin if present.
  1039. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1040. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1041. ECHO='print -r --'
  1042. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1043. ECHO='printf %s\n'
  1044. else
  1045. # Use this function as a fallback that always works.
  1046. func_fallback_echo ()
  1047. {
  1048. eval 'cat <<_LTECHO_EOF
  1049. $[]1
  1050. _LTECHO_EOF'
  1051. }
  1052. ECHO='func_fallback_echo'
  1053. fi
  1054. # func_echo_all arg...
  1055. # Invoke $ECHO with all args, space-separated.
  1056. func_echo_all ()
  1057. {
  1058. $ECHO "$*"
  1059. }
  1060. case "$ECHO" in
  1061. printf*) AC_MSG_RESULT([printf]) ;;
  1062. print*) AC_MSG_RESULT([print -r]) ;;
  1063. *) AC_MSG_RESULT([cat]) ;;
  1064. esac
  1065. m4_ifdef([_AS_DETECT_SUGGESTED],
  1066. [_AS_DETECT_SUGGESTED([
  1067. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1068. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1069. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1070. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1071. PATH=/empty FPATH=/empty; export PATH FPATH
  1072. test "X`printf %s $ECHO`" = "X$ECHO" \
  1073. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1074. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1075. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1076. ])# _LT_PROG_ECHO_BACKSLASH
  1077. # _LT_WITH_SYSROOT
  1078. # ----------------
  1079. AC_DEFUN([_LT_WITH_SYSROOT],
  1080. [AC_MSG_CHECKING([for sysroot])
  1081. AC_ARG_WITH([sysroot],
  1082. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1083. (or the compiler's sysroot if not specified).],
  1084. [], [with_sysroot=no])
  1085. dnl lt_sysroot will always be passed unquoted. We quote it here
  1086. dnl in case the user passed a directory name.
  1087. lt_sysroot=
  1088. case ${with_sysroot} in #(
  1089. yes)
  1090. if test "$GCC" = yes; then
  1091. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1092. fi
  1093. ;; #(
  1094. /*)
  1095. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1096. ;; #(
  1097. no|'')
  1098. ;; #(
  1099. *)
  1100. AC_MSG_RESULT([${with_sysroot}])
  1101. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1102. ;;
  1103. esac
  1104. AC_MSG_RESULT([${lt_sysroot:-no}])
  1105. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1106. [dependent libraries, and in which our libraries should be installed.])])
  1107. # _LT_ENABLE_LOCK
  1108. # ---------------
  1109. m4_defun([_LT_ENABLE_LOCK],
  1110. [AC_ARG_ENABLE([libtool-lock],
  1111. [AS_HELP_STRING([--disable-libtool-lock],
  1112. [avoid locking (might break parallel builds)])])
  1113. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1114. # Some flags need to be propagated to the compiler or linker for good
  1115. # libtool support.
  1116. case $host in
  1117. ia64-*-hpux*)
  1118. # Find out which ABI we are using.
  1119. echo 'int i;' > conftest.$ac_ext
  1120. if AC_TRY_EVAL(ac_compile); then
  1121. case `/usr/bin/file conftest.$ac_objext` in
  1122. *ELF-32*)
  1123. HPUX_IA64_MODE="32"
  1124. ;;
  1125. *ELF-64*)
  1126. HPUX_IA64_MODE="64"
  1127. ;;
  1128. esac
  1129. fi
  1130. rm -rf conftest*
  1131. ;;
  1132. *-*-irix6*)
  1133. # Find out which ABI we are using.
  1134. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1135. if AC_TRY_EVAL(ac_compile); then
  1136. if test "$lt_cv_prog_gnu_ld" = yes; then
  1137. case `/usr/bin/file conftest.$ac_objext` in
  1138. *32-bit*)
  1139. LD="${LD-ld} -melf32bsmip"
  1140. ;;
  1141. *N32*)
  1142. LD="${LD-ld} -melf32bmipn32"
  1143. ;;
  1144. *64-bit*)
  1145. LD="${LD-ld} -melf64bmip"
  1146. ;;
  1147. esac
  1148. else
  1149. case `/usr/bin/file conftest.$ac_objext` in
  1150. *32-bit*)
  1151. LD="${LD-ld} -32"
  1152. ;;
  1153. *N32*)
  1154. LD="${LD-ld} -n32"
  1155. ;;
  1156. *64-bit*)
  1157. LD="${LD-ld} -64"
  1158. ;;
  1159. esac
  1160. fi
  1161. fi
  1162. rm -rf conftest*
  1163. ;;
  1164. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1165. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1166. # Find out which ABI we are using.
  1167. echo 'int i;' > conftest.$ac_ext
  1168. if AC_TRY_EVAL(ac_compile); then
  1169. case `/usr/bin/file conftest.o` in
  1170. *32-bit*)
  1171. case $host in
  1172. x86_64-*kfreebsd*-gnu)
  1173. LD="${LD-ld} -m elf_i386_fbsd"
  1174. ;;
  1175. x86_64-*linux*)
  1176. LD="${LD-ld} -m elf_i386"
  1177. ;;
  1178. ppc64-*linux*|powerpc64-*linux*)
  1179. LD="${LD-ld} -m elf32ppclinux"
  1180. ;;
  1181. s390x-*linux*)
  1182. LD="${LD-ld} -m elf_s390"
  1183. ;;
  1184. sparc64-*linux*)
  1185. LD="${LD-ld} -m elf32_sparc"
  1186. ;;
  1187. esac
  1188. ;;
  1189. *64-bit*)
  1190. case $host in
  1191. x86_64-*kfreebsd*-gnu)
  1192. LD="${LD-ld} -m elf_x86_64_fbsd"
  1193. ;;
  1194. x86_64-*linux*)
  1195. LD="${LD-ld} -m elf_x86_64"
  1196. ;;
  1197. ppc*-*linux*|powerpc*-*linux*)
  1198. LD="${LD-ld} -m elf64ppc"
  1199. ;;
  1200. s390*-*linux*|s390*-*tpf*)
  1201. LD="${LD-ld} -m elf64_s390"
  1202. ;;
  1203. sparc*-*linux*)
  1204. LD="${LD-ld} -m elf64_sparc"
  1205. ;;
  1206. esac
  1207. ;;
  1208. esac
  1209. fi
  1210. rm -rf conftest*
  1211. ;;
  1212. *-*-sco3.2v5*)
  1213. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1214. SAVE_CFLAGS="$CFLAGS"
  1215. CFLAGS="$CFLAGS -belf"
  1216. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1217. [AC_LANG_PUSH(C)
  1218. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1219. AC_LANG_POP])
  1220. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1221. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1222. CFLAGS="$SAVE_CFLAGS"
  1223. fi
  1224. ;;
  1225. *-*solaris*)
  1226. # Find out which ABI we are using.
  1227. echo 'int i;' > conftest.$ac_ext
  1228. if AC_TRY_EVAL(ac_compile); then
  1229. case `/usr/bin/file conftest.o` in
  1230. *64-bit*)
  1231. case $lt_cv_prog_gnu_ld in
  1232. yes*)
  1233. case $host in
  1234. i?86-*-solaris*)
  1235. LD="${LD-ld} -m elf_x86_64"
  1236. ;;
  1237. sparc*-*-solaris*)
  1238. LD="${LD-ld} -m elf64_sparc"
  1239. ;;
  1240. esac
  1241. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1242. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1243. LD="${LD-ld}_sol2"
  1244. fi
  1245. ;;
  1246. *)
  1247. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1248. LD="${LD-ld} -64"
  1249. fi
  1250. ;;
  1251. esac
  1252. ;;
  1253. esac
  1254. fi
  1255. rm -rf conftest*
  1256. ;;
  1257. esac
  1258. need_locks="$enable_libtool_lock"
  1259. ])# _LT_ENABLE_LOCK
  1260. # _LT_PROG_AR
  1261. # -----------
  1262. m4_defun([_LT_PROG_AR],
  1263. [AC_CHECK_TOOLS(AR, [ar], false)
  1264. : ${AR=ar}
  1265. : ${AR_FLAGS=cru}
  1266. _LT_DECL([], [AR], [1], [The archiver])
  1267. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1268. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1269. [lt_cv_ar_at_file=no
  1270. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1271. [echo conftest.$ac_objext > conftest.lst
  1272. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1273. AC_TRY_EVAL([lt_ar_try])
  1274. if test "$ac_status" -eq 0; then
  1275. # Ensure the archiver fails upon bogus file names.
  1276. rm -f conftest.$ac_objext libconftest.a
  1277. AC_TRY_EVAL([lt_ar_try])
  1278. if test "$ac_status" -ne 0; then
  1279. lt_cv_ar_at_file=@
  1280. fi
  1281. fi
  1282. rm -f conftest.* libconftest.a
  1283. ])
  1284. ])
  1285. if test "x$lt_cv_ar_at_file" = xno; then
  1286. archiver_list_spec=
  1287. else
  1288. archiver_list_spec=$lt_cv_ar_at_file
  1289. fi
  1290. _LT_DECL([], [archiver_list_spec], [1],
  1291. [How to feed a file listing to the archiver])
  1292. ])# _LT_PROG_AR
  1293. # _LT_CMD_OLD_ARCHIVE
  1294. # -------------------
  1295. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1296. [_LT_PROG_AR
  1297. AC_CHECK_TOOL(STRIP, strip, :)
  1298. test -z "$STRIP" && STRIP=:
  1299. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1300. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1301. test -z "$RANLIB" && RANLIB=:
  1302. _LT_DECL([], [RANLIB], [1],
  1303. [Commands used to install an old-style archive])
  1304. # Determine commands to create old-style static archives.
  1305. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1306. old_postinstall_cmds='chmod 644 $oldlib'
  1307. old_postuninstall_cmds=
  1308. if test -n "$RANLIB"; then
  1309. case $host_os in
  1310. openbsd*)
  1311. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1312. ;;
  1313. *)
  1314. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1315. ;;
  1316. esac
  1317. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1318. fi
  1319. case $host_os in
  1320. darwin*)
  1321. lock_old_archive_extraction=yes ;;
  1322. *)
  1323. lock_old_archive_extraction=no ;;
  1324. esac
  1325. _LT_DECL([], [old_postinstall_cmds], [2])
  1326. _LT_DECL([], [old_postuninstall_cmds], [2])
  1327. _LT_TAGDECL([], [old_archive_cmds], [2],
  1328. [Commands used to build an old-style archive])
  1329. _LT_DECL([], [lock_old_archive_extraction], [0],
  1330. [Whether to use a lock for old archive extraction])
  1331. ])# _LT_CMD_OLD_ARCHIVE
  1332. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1333. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1334. # ----------------------------------------------------------------
  1335. # Check whether the given compiler option works
  1336. AC_DEFUN([_LT_COMPILER_OPTION],
  1337. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1338. m4_require([_LT_DECL_SED])dnl
  1339. AC_CACHE_CHECK([$1], [$2],
  1340. [$2=no
  1341. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1342. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1343. lt_compiler_flag="$3"
  1344. # Insert the option either (1) after the last *FLAGS variable, or
  1345. # (2) before a word containing "conftest.", or (3) at the end.
  1346. # Note that $ac_compile itself does not contain backslashes and begins
  1347. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1348. # The option is referenced via a variable to avoid confusing sed.
  1349. lt_compile=`echo "$ac_compile" | $SED \
  1350. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1351. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1352. -e 's:$: $lt_compiler_flag:'`
  1353. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1354. (eval "$lt_compile" 2>conftest.err)
  1355. ac_status=$?
  1356. cat conftest.err >&AS_MESSAGE_LOG_FD
  1357. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1358. if (exit $ac_status) && test -s "$ac_outfile"; then
  1359. # The compiler can only warn and ignore the option if not recognized
  1360. # So say no if there are warnings other than the usual output.
  1361. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1362. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1363. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1364. $2=yes
  1365. fi
  1366. fi
  1367. $RM conftest*
  1368. ])
  1369. if test x"[$]$2" = xyes; then
  1370. m4_if([$5], , :, [$5])
  1371. else
  1372. m4_if([$6], , :, [$6])
  1373. fi
  1374. ])# _LT_COMPILER_OPTION
  1375. # Old name:
  1376. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1377. dnl aclocal-1.4 backwards compatibility:
  1378. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1379. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1380. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1381. # ----------------------------------------------------
  1382. # Check whether the given linker option works
  1383. AC_DEFUN([_LT_LINKER_OPTION],
  1384. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1385. m4_require([_LT_DECL_SED])dnl
  1386. AC_CACHE_CHECK([$1], [$2],
  1387. [$2=no
  1388. save_LDFLAGS="$LDFLAGS"
  1389. LDFLAGS="$LDFLAGS $3"
  1390. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1391. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1392. # The linker can only warn and ignore the option if not recognized
  1393. # So say no if there are warnings
  1394. if test -s conftest.err; then
  1395. # Append any errors to the config.log.
  1396. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1397. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1398. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1399. if diff conftest.exp conftest.er2 >/dev/null; then
  1400. $2=yes
  1401. fi
  1402. else
  1403. $2=yes
  1404. fi
  1405. fi
  1406. $RM -r conftest*
  1407. LDFLAGS="$save_LDFLAGS"
  1408. ])
  1409. if test x"[$]$2" = xyes; then
  1410. m4_if([$4], , :, [$4])
  1411. else
  1412. m4_if([$5], , :, [$5])
  1413. fi
  1414. ])# _LT_LINKER_OPTION
  1415. # Old name:
  1416. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1417. dnl aclocal-1.4 backwards compatibility:
  1418. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1419. # LT_CMD_MAX_LEN
  1420. #---------------
  1421. AC_DEFUN([LT_CMD_MAX_LEN],
  1422. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1423. # find the maximum length of command line arguments
  1424. AC_MSG_CHECKING([the maximum length of command line arguments])
  1425. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1426. i=0
  1427. teststring="ABCD"
  1428. case $build_os in
  1429. msdosdjgpp*)
  1430. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1431. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1432. # during glob expansion). Even if it were fixed, the result of this
  1433. # check would be larger than it should be.
  1434. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1435. ;;
  1436. gnu*)
  1437. # Under GNU Hurd, this test is not required because there is
  1438. # no limit to the length of command line arguments.
  1439. # Libtool will interpret -1 as no limit whatsoever
  1440. lt_cv_sys_max_cmd_len=-1;
  1441. ;;
  1442. cygwin* | mingw* | cegcc*)
  1443. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1444. # about 5 minutes as the teststring grows exponentially.
  1445. # Worse, since 9x/ME are not pre-emptively multitasking,
  1446. # you end up with a "frozen" computer, even though with patience
  1447. # the test eventually succeeds (with a max line length of 256k).
  1448. # Instead, let's just punt: use the minimum linelength reported by
  1449. # all of the supported platforms: 8192 (on NT/2K/XP).
  1450. lt_cv_sys_max_cmd_len=8192;
  1451. ;;
  1452. mint*)
  1453. # On MiNT this can take a long time and run out of memory.
  1454. lt_cv_sys_max_cmd_len=8192;
  1455. ;;
  1456. amigaos*)
  1457. # On AmigaOS with pdksh, this test takes hours, literally.
  1458. # So we just punt and use a minimum line length of 8192.
  1459. lt_cv_sys_max_cmd_len=8192;
  1460. ;;
  1461. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1462. # This has been around since 386BSD, at least. Likely further.
  1463. if test -x /sbin/sysctl; then
  1464. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1465. elif test -x /usr/sbin/sysctl; then
  1466. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1467. else
  1468. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1469. fi
  1470. # And add a safety zone
  1471. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1472. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1473. ;;
  1474. interix*)
  1475. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1476. lt_cv_sys_max_cmd_len=196608
  1477. ;;
  1478. os2*)
  1479. # The test takes a long time on OS/2.
  1480. lt_cv_sys_max_cmd_len=8192
  1481. ;;
  1482. osf*)
  1483. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1484. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1485. # nice to cause kernel panics so lets avoid the loop below.
  1486. # First set a reasonable default.
  1487. lt_cv_sys_max_cmd_len=16384
  1488. #
  1489. if test -x /sbin/sysconfig; then
  1490. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1491. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1492. esac
  1493. fi
  1494. ;;
  1495. sco3.2v5*)
  1496. lt_cv_sys_max_cmd_len=102400
  1497. ;;
  1498. sysv5* | sco5v6* | sysv4.2uw2*)
  1499. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1500. if test -n "$kargmax"; then
  1501. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1502. else
  1503. lt_cv_sys_max_cmd_len=32768
  1504. fi
  1505. ;;
  1506. *)
  1507. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1508. if test -n "$lt_cv_sys_max_cmd_len"; then
  1509. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1510. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1511. else
  1512. # Make teststring a little bigger before we do anything with it.
  1513. # a 1K string should be a reasonable start.
  1514. for i in 1 2 3 4 5 6 7 8 ; do
  1515. teststring=$teststring$teststring
  1516. done
  1517. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1518. # If test is not a shell built-in, we'll probably end up computing a
  1519. # maximum length that is only half of the actual maximum length, but
  1520. # we can't tell.
  1521. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  1522. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1523. test $i != 17 # 1/2 MB should be enough
  1524. do
  1525. i=`expr $i + 1`
  1526. teststring=$teststring$teststring
  1527. done
  1528. # Only check the string length outside the loop.
  1529. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1530. teststring=
  1531. # Add a significant safety factor because C++ compilers can tack on
  1532. # massive amounts of additional arguments before passing them to the
  1533. # linker. It appears as though 1/2 is a usable value.
  1534. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1535. fi
  1536. ;;
  1537. esac
  1538. ])
  1539. if test -n $lt_cv_sys_max_cmd_len ; then
  1540. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1541. else
  1542. AC_MSG_RESULT(none)
  1543. fi
  1544. max_cmd_len=$lt_cv_sys_max_cmd_len
  1545. _LT_DECL([], [max_cmd_len], [0],
  1546. [What is the maximum length of a command?])
  1547. ])# LT_CMD_MAX_LEN
  1548. # Old name:
  1549. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1550. dnl aclocal-1.4 backwards compatibility:
  1551. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1552. # _LT_HEADER_DLFCN
  1553. # ----------------
  1554. m4_defun([_LT_HEADER_DLFCN],
  1555. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1556. ])# _LT_HEADER_DLFCN
  1557. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1558. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1559. # ----------------------------------------------------------------
  1560. m4_defun([_LT_TRY_DLOPEN_SELF],
  1561. [m4_require([_LT_HEADER_DLFCN])dnl
  1562. if test "$cross_compiling" = yes; then :
  1563. [$4]
  1564. else
  1565. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1566. lt_status=$lt_dlunknown
  1567. cat > conftest.$ac_ext <<_LT_EOF
  1568. [#line $LINENO "configure"
  1569. #include "confdefs.h"
  1570. #if HAVE_DLFCN_H
  1571. #include <dlfcn.h>
  1572. #endif
  1573. #include <stdio.h>
  1574. #ifdef RTLD_GLOBAL
  1575. # define LT_DLGLOBAL RTLD_GLOBAL
  1576. #else
  1577. # ifdef DL_GLOBAL
  1578. # define LT_DLGLOBAL DL_GLOBAL
  1579. # else
  1580. # define LT_DLGLOBAL 0
  1581. # endif
  1582. #endif
  1583. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1584. find out it does not work in some platform. */
  1585. #ifndef LT_DLLAZY_OR_NOW
  1586. # ifdef RTLD_LAZY
  1587. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1588. # else
  1589. # ifdef DL_LAZY
  1590. # define LT_DLLAZY_OR_NOW DL_LAZY
  1591. # else
  1592. # ifdef RTLD_NOW
  1593. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1594. # else
  1595. # ifdef DL_NOW
  1596. # define LT_DLLAZY_OR_NOW DL_NOW
  1597. # else
  1598. # define LT_DLLAZY_OR_NOW 0
  1599. # endif
  1600. # endif
  1601. # endif
  1602. # endif
  1603. #endif
  1604. /* When -fvisbility=hidden is used, assume the code has been annotated
  1605. correspondingly for the symbols needed. */
  1606. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1607. int fnord () __attribute__((visibility("default")));
  1608. #endif
  1609. int fnord () { return 42; }
  1610. int main ()
  1611. {
  1612. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1613. int status = $lt_dlunknown;
  1614. if (self)
  1615. {
  1616. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1617. else
  1618. {
  1619. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1620. else puts (dlerror ());
  1621. }
  1622. /* dlclose (self); */
  1623. }
  1624. else
  1625. puts (dlerror ());
  1626. return status;
  1627. }]
  1628. _LT_EOF
  1629. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1630. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1631. lt_status=$?
  1632. case x$lt_status in
  1633. x$lt_dlno_uscore) $1 ;;
  1634. x$lt_dlneed_uscore) $2 ;;
  1635. x$lt_dlunknown|x*) $3 ;;
  1636. esac
  1637. else :
  1638. # compilation failed
  1639. $3
  1640. fi
  1641. fi
  1642. rm -fr conftest*
  1643. ])# _LT_TRY_DLOPEN_SELF
  1644. # LT_SYS_DLOPEN_SELF
  1645. # ------------------
  1646. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1647. [m4_require([_LT_HEADER_DLFCN])dnl
  1648. if test "x$enable_dlopen" != xyes; then
  1649. enable_dlopen=unknown
  1650. enable_dlopen_self=unknown
  1651. enable_dlopen_self_static=unknown
  1652. else
  1653. lt_cv_dlopen=no
  1654. lt_cv_dlopen_libs=
  1655. case $host_os in
  1656. beos*)
  1657. lt_cv_dlopen="load_add_on"
  1658. lt_cv_dlopen_libs=
  1659. lt_cv_dlopen_self=yes
  1660. ;;
  1661. mingw* | pw32* | cegcc*)
  1662. lt_cv_dlopen="LoadLibrary"
  1663. lt_cv_dlopen_libs=
  1664. ;;
  1665. cygwin*)
  1666. lt_cv_dlopen="dlopen"
  1667. lt_cv_dlopen_libs=
  1668. ;;
  1669. darwin*)
  1670. # if libdl is installed we need to link against it
  1671. AC_CHECK_LIB([dl], [dlopen],
  1672. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1673. lt_cv_dlopen="dyld"
  1674. lt_cv_dlopen_libs=
  1675. lt_cv_dlopen_self=yes
  1676. ])
  1677. ;;
  1678. *)
  1679. AC_CHECK_FUNC([shl_load],
  1680. [lt_cv_dlopen="shl_load"],
  1681. [AC_CHECK_LIB([dld], [shl_load],
  1682. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1683. [AC_CHECK_FUNC([dlopen],
  1684. [lt_cv_dlopen="dlopen"],
  1685. [AC_CHECK_LIB([dl], [dlopen],
  1686. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1687. [AC_CHECK_LIB([svld], [dlopen],
  1688. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1689. [AC_CHECK_LIB([dld], [dld_link],
  1690. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1691. ])
  1692. ])
  1693. ])
  1694. ])
  1695. ])
  1696. ;;
  1697. esac
  1698. if test "x$lt_cv_dlopen" != xno; then
  1699. enable_dlopen=yes
  1700. else
  1701. enable_dlopen=no
  1702. fi
  1703. case $lt_cv_dlopen in
  1704. dlopen)
  1705. save_CPPFLAGS="$CPPFLAGS"
  1706. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1707. save_LDFLAGS="$LDFLAGS"
  1708. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1709. save_LIBS="$LIBS"
  1710. LIBS="$lt_cv_dlopen_libs $LIBS"
  1711. AC_CACHE_CHECK([whether a program can dlopen itself],
  1712. lt_cv_dlopen_self, [dnl
  1713. _LT_TRY_DLOPEN_SELF(
  1714. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1715. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1716. ])
  1717. if test "x$lt_cv_dlopen_self" = xyes; then
  1718. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1719. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1720. lt_cv_dlopen_self_static, [dnl
  1721. _LT_TRY_DLOPEN_SELF(
  1722. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1723. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1724. ])
  1725. fi
  1726. CPPFLAGS="$save_CPPFLAGS"
  1727. LDFLAGS="$save_LDFLAGS"
  1728. LIBS="$save_LIBS"
  1729. ;;
  1730. esac
  1731. case $lt_cv_dlopen_self in
  1732. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1733. *) enable_dlopen_self=unknown ;;
  1734. esac
  1735. case $lt_cv_dlopen_self_static in
  1736. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1737. *) enable_dlopen_self_static=unknown ;;
  1738. esac
  1739. fi
  1740. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1741. [Whether dlopen is supported])
  1742. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1743. [Whether dlopen of programs is supported])
  1744. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1745. [Whether dlopen of statically linked programs is supported])
  1746. ])# LT_SYS_DLOPEN_SELF
  1747. # Old name:
  1748. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1749. dnl aclocal-1.4 backwards compatibility:
  1750. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1751. # _LT_COMPILER_C_O([TAGNAME])
  1752. # ---------------------------
  1753. # Check to see if options -c and -o are simultaneously supported by compiler.
  1754. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1755. m4_defun([_LT_COMPILER_C_O],
  1756. [m4_require([_LT_DECL_SED])dnl
  1757. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1758. m4_require([_LT_TAG_COMPILER])dnl
  1759. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1760. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1761. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1762. $RM -r conftest 2>/dev/null
  1763. mkdir conftest
  1764. cd conftest
  1765. mkdir out
  1766. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1767. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1768. # Insert the option either (1) after the last *FLAGS variable, or
  1769. # (2) before a word containing "conftest.", or (3) at the end.
  1770. # Note that $ac_compile itself does not contain backslashes and begins
  1771. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1772. lt_compile=`echo "$ac_compile" | $SED \
  1773. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1774. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1775. -e 's:$: $lt_compiler_flag:'`
  1776. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1777. (eval "$lt_compile" 2>out/conftest.err)
  1778. ac_status=$?
  1779. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1780. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1781. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1782. then
  1783. # The compiler can only warn and ignore the option if not recognized
  1784. # So say no if there are warnings
  1785. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1786. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1787. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1788. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1789. fi
  1790. fi
  1791. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1792. $RM conftest*
  1793. # SGI C++ compiler will create directory out/ii_files/ for
  1794. # template instantiation
  1795. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1796. $RM out/* && rmdir out
  1797. cd ..
  1798. $RM -r conftest
  1799. $RM conftest*
  1800. ])
  1801. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1802. [Does compiler simultaneously support -c and -o options?])
  1803. ])# _LT_COMPILER_C_O
  1804. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1805. # ----------------------------------
  1806. # Check to see if we can do hard links to lock some files if needed
  1807. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1808. [m4_require([_LT_ENABLE_LOCK])dnl
  1809. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1810. _LT_COMPILER_C_O([$1])
  1811. hard_links="nottested"
  1812. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1813. # do not overwrite the value of need_locks provided by the user
  1814. AC_MSG_CHECKING([if we can lock with hard links])
  1815. hard_links=yes
  1816. $RM conftest*
  1817. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1818. touch conftest.a
  1819. ln conftest.a conftest.b 2>&5 || hard_links=no
  1820. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1821. AC_MSG_RESULT([$hard_links])
  1822. if test "$hard_links" = no; then
  1823. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1824. need_locks=warn
  1825. fi
  1826. else
  1827. need_locks=no
  1828. fi
  1829. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1830. ])# _LT_COMPILER_FILE_LOCKS
  1831. # _LT_CHECK_OBJDIR
  1832. # ----------------
  1833. m4_defun([_LT_CHECK_OBJDIR],
  1834. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1835. [rm -f .libs 2>/dev/null
  1836. mkdir .libs 2>/dev/null
  1837. if test -d .libs; then
  1838. lt_cv_objdir=.libs
  1839. else
  1840. # MS-DOS does not allow filenames that begin with a dot.
  1841. lt_cv_objdir=_libs
  1842. fi
  1843. rmdir .libs 2>/dev/null])
  1844. objdir=$lt_cv_objdir
  1845. _LT_DECL([], [objdir], [0],
  1846. [The name of the directory that contains temporary libtool files])dnl
  1847. m4_pattern_allow([LT_OBJDIR])dnl
  1848. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1849. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1850. ])# _LT_CHECK_OBJDIR
  1851. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1852. # --------------------------------------
  1853. # Check hardcoding attributes.
  1854. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1855. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1856. _LT_TAGVAR(hardcode_action, $1)=
  1857. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1858. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1859. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1860. # We can hardcode non-existent directories.
  1861. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1862. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1863. # have to relink, otherwise we might link with an installed library
  1864. # when we should be linking with a yet-to-be-installed one
  1865. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1866. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1867. # Linking always hardcodes the temporary library directory.
  1868. _LT_TAGVAR(hardcode_action, $1)=relink
  1869. else
  1870. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1871. _LT_TAGVAR(hardcode_action, $1)=immediate
  1872. fi
  1873. else
  1874. # We cannot hardcode anything, or else we can only hardcode existing
  1875. # directories.
  1876. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1877. fi
  1878. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1879. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1880. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1881. # Fast installation is not supported
  1882. enable_fast_install=no
  1883. elif test "$shlibpath_overrides_runpath" = yes ||
  1884. test "$enable_shared" = no; then
  1885. # Fast installation is not necessary
  1886. enable_fast_install=needless
  1887. fi
  1888. _LT_TAGDECL([], [hardcode_action], [0],
  1889. [How to hardcode a shared library path into an executable])
  1890. ])# _LT_LINKER_HARDCODE_LIBPATH
  1891. # _LT_CMD_STRIPLIB
  1892. # ----------------
  1893. m4_defun([_LT_CMD_STRIPLIB],
  1894. [m4_require([_LT_DECL_EGREP])
  1895. striplib=
  1896. old_striplib=
  1897. AC_MSG_CHECKING([whether stripping libraries is possible])
  1898. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1899. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1900. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1901. AC_MSG_RESULT([yes])
  1902. else
  1903. # FIXME - insert some real tests, host_os isn't really good enough
  1904. case $host_os in
  1905. darwin*)
  1906. if test -n "$STRIP" ; then
  1907. striplib="$STRIP -x"
  1908. old_striplib="$STRIP -S"
  1909. AC_MSG_RESULT([yes])
  1910. else
  1911. AC_MSG_RESULT([no])
  1912. fi
  1913. ;;
  1914. *)
  1915. AC_MSG_RESULT([no])
  1916. ;;
  1917. esac
  1918. fi
  1919. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1920. _LT_DECL([], [striplib], [1])
  1921. ])# _LT_CMD_STRIPLIB
  1922. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1923. # -----------------------------
  1924. # PORTME Fill in your ld.so characteristics
  1925. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1926. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1927. m4_require([_LT_DECL_EGREP])dnl
  1928. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1929. m4_require([_LT_DECL_OBJDUMP])dnl
  1930. m4_require([_LT_DECL_SED])dnl
  1931. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1932. AC_MSG_CHECKING([dynamic linker characteristics])
  1933. m4_if([$1],
  1934. [], [
  1935. if test "$GCC" = yes; then
  1936. case $host_os in
  1937. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1938. *) lt_awk_arg="/^libraries:/" ;;
  1939. esac
  1940. case $host_os in
  1941. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1942. *) lt_sed_strip_eq="s,=/,/,g" ;;
  1943. esac
  1944. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1945. case $lt_search_path_spec in
  1946. *\;*)
  1947. # if the path contains ";" then we assume it to be the separator
  1948. # otherwise default to the standard path separator (i.e. ":") - it is
  1949. # assumed that no part of a normal pathname contains ";" but that should
  1950. # okay in the real world where ";" in dirpaths is itself problematic.
  1951. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1952. ;;
  1953. *)
  1954. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1955. ;;
  1956. esac
  1957. # Ok, now we have the path, separated by spaces, we can step through it
  1958. # and add multilib dir if necessary.
  1959. lt_tmp_lt_search_path_spec=
  1960. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1961. for lt_sys_path in $lt_search_path_spec; do
  1962. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1963. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1964. else
  1965. test -d "$lt_sys_path" && \
  1966. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1967. fi
  1968. done
  1969. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1970. BEGIN {RS=" "; FS="/|\n";} {
  1971. lt_foo="";
  1972. lt_count=0;
  1973. for (lt_i = NF; lt_i > 0; lt_i--) {
  1974. if ($lt_i != "" && $lt_i != ".") {
  1975. if ($lt_i == "..") {
  1976. lt_count++;
  1977. } else {
  1978. if (lt_count == 0) {
  1979. lt_foo="/" $lt_i lt_foo;
  1980. } else {
  1981. lt_count--;
  1982. }
  1983. }
  1984. }
  1985. }
  1986. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1987. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1988. }'`
  1989. # AWK program above erroneously prepends '/' to C:/dos/paths
  1990. # for these hosts.
  1991. case $host_os in
  1992. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1993. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1994. esac
  1995. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1996. else
  1997. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1998. fi])
  1999. library_names_spec=
  2000. libname_spec='lib$name'
  2001. soname_spec=
  2002. shrext_cmds=".so"
  2003. postinstall_cmds=
  2004. postuninstall_cmds=
  2005. finish_cmds=
  2006. finish_eval=
  2007. shlibpath_var=
  2008. shlibpath_overrides_runpath=unknown
  2009. version_type=none
  2010. dynamic_linker="$host_os ld.so"
  2011. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2012. need_lib_prefix=unknown
  2013. hardcode_into_libs=no
  2014. # when you set need_version to no, make sure it does not cause -set_version
  2015. # flags to be left without arguments
  2016. need_version=unknown
  2017. case $host_os in
  2018. aix3*)
  2019. version_type=linux # correct to gnu/linux during the next big refactor
  2020. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2021. shlibpath_var=LIBPATH
  2022. # AIX 3 has no versioning support, so we append a major version to the name.
  2023. soname_spec='${libname}${release}${shared_ext}$major'
  2024. ;;
  2025. aix[[4-9]]*)
  2026. version_type=linux # correct to gnu/linux during the next big refactor
  2027. need_lib_prefix=no
  2028. need_version=no
  2029. hardcode_into_libs=yes
  2030. if test "$host_cpu" = ia64; then
  2031. # AIX 5 supports IA64
  2032. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2033. shlibpath_var=LD_LIBRARY_PATH
  2034. else
  2035. # With GCC up to 2.95.x, collect2 would create an import file
  2036. # for dependence libraries. The import file would start with
  2037. # the line `#! .'. This would cause the generated library to
  2038. # depend on `.', always an invalid library. This was fixed in
  2039. # development snapshots of GCC prior to 3.0.
  2040. case $host_os in
  2041. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2042. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2043. echo ' yes '
  2044. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2045. :
  2046. else
  2047. can_build_shared=no
  2048. fi
  2049. ;;
  2050. esac
  2051. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2052. # soname into executable. Probably we can add versioning support to
  2053. # collect2, so additional links can be useful in future.
  2054. if test "$aix_use_runtimelinking" = yes; then
  2055. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2056. # instead of lib<name>.a to let people know that these are not
  2057. # typical AIX shared libraries.
  2058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2059. else
  2060. # We preserve .a as extension for shared libraries through AIX4.2
  2061. # and later when we are not doing run time linking.
  2062. library_names_spec='${libname}${release}.a $libname.a'
  2063. soname_spec='${libname}${release}${shared_ext}$major'
  2064. fi
  2065. shlibpath_var=LIBPATH
  2066. fi
  2067. ;;
  2068. amigaos*)
  2069. case $host_cpu in
  2070. powerpc)
  2071. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2072. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2074. ;;
  2075. m68k)
  2076. library_names_spec='$libname.ixlibrary $libname.a'
  2077. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2078. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  2079. ;;
  2080. esac
  2081. ;;
  2082. beos*)
  2083. library_names_spec='${libname}${shared_ext}'
  2084. dynamic_linker="$host_os ld.so"
  2085. shlibpath_var=LIBRARY_PATH
  2086. ;;
  2087. bsdi[[45]]*)
  2088. version_type=linux # correct to gnu/linux during the next big refactor
  2089. need_version=no
  2090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2091. soname_spec='${libname}${release}${shared_ext}$major'
  2092. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2093. shlibpath_var=LD_LIBRARY_PATH
  2094. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2095. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2096. # the default ld.so.conf also contains /usr/contrib/lib and
  2097. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2098. # libtool to hard-code these into programs
  2099. ;;
  2100. cygwin* | mingw* | pw32* | cegcc*)
  2101. version_type=windows
  2102. shrext_cmds=".dll"
  2103. need_version=no
  2104. need_lib_prefix=no
  2105. case $GCC,$cc_basename in
  2106. yes,*)
  2107. # gcc
  2108. library_names_spec='$libname.dll.a'
  2109. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2110. postinstall_cmds='base_file=`basename \${file}`~
  2111. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2112. dldir=$destdir/`dirname \$dlpath`~
  2113. test -d \$dldir || mkdir -p \$dldir~
  2114. $install_prog $dir/$dlname \$dldir/$dlname~
  2115. chmod a+x \$dldir/$dlname~
  2116. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2117. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2118. fi'
  2119. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2120. dlpath=$dir/\$dldll~
  2121. $RM \$dlpath'
  2122. shlibpath_overrides_runpath=yes
  2123. case $host_os in
  2124. cygwin*)
  2125. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2126. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2127. m4_if([$1], [],[
  2128. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2129. ;;
  2130. mingw* | cegcc*)
  2131. # MinGW DLLs use traditional 'lib' prefix
  2132. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2133. ;;
  2134. pw32*)
  2135. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2136. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2137. ;;
  2138. esac
  2139. dynamic_linker='Win32 ld.exe'
  2140. ;;
  2141. *,cl*)
  2142. # Native MSVC
  2143. libname_spec='$name'
  2144. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2145. library_names_spec='${libname}.dll.lib'
  2146. case $build_os in
  2147. mingw*)
  2148. sys_lib_search_path_spec=
  2149. lt_save_ifs=$IFS
  2150. IFS=';'
  2151. for lt_path in $LIB
  2152. do
  2153. IFS=$lt_save_ifs
  2154. # Let DOS variable expansion print the short 8.3 style file name.
  2155. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2156. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2157. done
  2158. IFS=$lt_save_ifs
  2159. # Convert to MSYS style.
  2160. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2161. ;;
  2162. cygwin*)
  2163. # Convert to unix form, then to dos form, then back to unix form
  2164. # but this time dos style (no spaces!) so that the unix form looks
  2165. # like /cygdrive/c/PROGRA~1:/cygdr...
  2166. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2167. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2168. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2169. ;;
  2170. *)
  2171. sys_lib_search_path_spec="$LIB"
  2172. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2173. # It is most probably a Windows format PATH.
  2174. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2175. else
  2176. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2177. fi
  2178. # FIXME: find the short name or the path components, as spaces are
  2179. # common. (e.g. "Program Files" -> "PROGRA~1")
  2180. ;;
  2181. esac
  2182. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2183. postinstall_cmds='base_file=`basename \${file}`~
  2184. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2185. dldir=$destdir/`dirname \$dlpath`~
  2186. test -d \$dldir || mkdir -p \$dldir~
  2187. $install_prog $dir/$dlname \$dldir/$dlname'
  2188. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2189. dlpath=$dir/\$dldll~
  2190. $RM \$dlpath'
  2191. shlibpath_overrides_runpath=yes
  2192. dynamic_linker='Win32 link.exe'
  2193. ;;
  2194. *)
  2195. # Assume MSVC wrapper
  2196. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2197. dynamic_linker='Win32 ld.exe'
  2198. ;;
  2199. esac
  2200. # FIXME: first we should search . and the directory the executable is in
  2201. shlibpath_var=PATH
  2202. ;;
  2203. darwin* | rhapsody*)
  2204. dynamic_linker="$host_os dyld"
  2205. version_type=darwin
  2206. need_lib_prefix=no
  2207. need_version=no
  2208. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2209. soname_spec='${libname}${release}${major}$shared_ext'
  2210. shlibpath_overrides_runpath=yes
  2211. shlibpath_var=DYLD_LIBRARY_PATH
  2212. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2213. m4_if([$1], [],[
  2214. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2215. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2216. ;;
  2217. dgux*)
  2218. version_type=linux # correct to gnu/linux during the next big refactor
  2219. need_lib_prefix=no
  2220. need_version=no
  2221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2222. soname_spec='${libname}${release}${shared_ext}$major'
  2223. shlibpath_var=LD_LIBRARY_PATH
  2224. ;;
  2225. freebsd* | dragonfly*)
  2226. # DragonFly does not have aout. When/if they implement a new
  2227. # versioning mechanism, adjust this.
  2228. if test -x /usr/bin/objformat; then
  2229. objformat=`/usr/bin/objformat`
  2230. else
  2231. case $host_os in
  2232. freebsd[[23]].*) objformat=aout ;;
  2233. *) objformat=elf ;;
  2234. esac
  2235. fi
  2236. version_type=freebsd-$objformat
  2237. case $version_type in
  2238. freebsd-elf*)
  2239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2240. need_version=no
  2241. need_lib_prefix=no
  2242. ;;
  2243. freebsd-*)
  2244. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2245. need_version=yes
  2246. ;;
  2247. esac
  2248. shlibpath_var=LD_LIBRARY_PATH
  2249. case $host_os in
  2250. freebsd2.*)
  2251. shlibpath_overrides_runpath=yes
  2252. ;;
  2253. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2254. shlibpath_overrides_runpath=yes
  2255. hardcode_into_libs=yes
  2256. ;;
  2257. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2258. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2259. shlibpath_overrides_runpath=no
  2260. hardcode_into_libs=yes
  2261. ;;
  2262. *) # from 4.6 on, and DragonFly
  2263. shlibpath_overrides_runpath=yes
  2264. hardcode_into_libs=yes
  2265. ;;
  2266. esac
  2267. ;;
  2268. gnu*)
  2269. version_type=linux # correct to gnu/linux during the next big refactor
  2270. need_lib_prefix=no
  2271. need_version=no
  2272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2273. soname_spec='${libname}${release}${shared_ext}$major'
  2274. shlibpath_var=LD_LIBRARY_PATH
  2275. shlibpath_overrides_runpath=no
  2276. hardcode_into_libs=yes
  2277. ;;
  2278. haiku*)
  2279. version_type=linux # correct to gnu/linux during the next big refactor
  2280. need_lib_prefix=no
  2281. need_version=no
  2282. dynamic_linker="$host_os runtime_loader"
  2283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2284. soname_spec='${libname}${release}${shared_ext}$major'
  2285. shlibpath_var=LIBRARY_PATH
  2286. shlibpath_overrides_runpath=yes
  2287. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2288. hardcode_into_libs=yes
  2289. ;;
  2290. hpux9* | hpux10* | hpux11*)
  2291. # Give a soname corresponding to the major version so that dld.sl refuses to
  2292. # link against other versions.
  2293. version_type=sunos
  2294. need_lib_prefix=no
  2295. need_version=no
  2296. case $host_cpu in
  2297. ia64*)
  2298. shrext_cmds='.so'
  2299. hardcode_into_libs=yes
  2300. dynamic_linker="$host_os dld.so"
  2301. shlibpath_var=LD_LIBRARY_PATH
  2302. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2304. soname_spec='${libname}${release}${shared_ext}$major'
  2305. if test "X$HPUX_IA64_MODE" = X32; then
  2306. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2307. else
  2308. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2309. fi
  2310. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2311. ;;
  2312. hppa*64*)
  2313. shrext_cmds='.sl'
  2314. hardcode_into_libs=yes
  2315. dynamic_linker="$host_os dld.sl"
  2316. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2317. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2319. soname_spec='${libname}${release}${shared_ext}$major'
  2320. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2321. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2322. ;;
  2323. *)
  2324. shrext_cmds='.sl'
  2325. dynamic_linker="$host_os dld.sl"
  2326. shlibpath_var=SHLIB_PATH
  2327. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2328. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2329. soname_spec='${libname}${release}${shared_ext}$major'
  2330. ;;
  2331. esac
  2332. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2333. postinstall_cmds='chmod 555 $lib'
  2334. # or fails outright, so override atomically:
  2335. install_override_mode=555
  2336. ;;
  2337. interix[[3-9]]*)
  2338. version_type=linux # correct to gnu/linux during the next big refactor
  2339. need_lib_prefix=no
  2340. need_version=no
  2341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2342. soname_spec='${libname}${release}${shared_ext}$major'
  2343. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2344. shlibpath_var=LD_LIBRARY_PATH
  2345. shlibpath_overrides_runpath=no
  2346. hardcode_into_libs=yes
  2347. ;;
  2348. irix5* | irix6* | nonstopux*)
  2349. case $host_os in
  2350. nonstopux*) version_type=nonstopux ;;
  2351. *)
  2352. if test "$lt_cv_prog_gnu_ld" = yes; then
  2353. version_type=linux # correct to gnu/linux during the next big refactor
  2354. else
  2355. version_type=irix
  2356. fi ;;
  2357. esac
  2358. need_lib_prefix=no
  2359. need_version=no
  2360. soname_spec='${libname}${release}${shared_ext}$major'
  2361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2362. case $host_os in
  2363. irix5* | nonstopux*)
  2364. libsuff= shlibsuff=
  2365. ;;
  2366. *)
  2367. case $LD in # libtool.m4 will add one of these switches to LD
  2368. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2369. libsuff= shlibsuff= libmagic=32-bit;;
  2370. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2371. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2372. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2373. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2374. *) libsuff= shlibsuff= libmagic=never-match;;
  2375. esac
  2376. ;;
  2377. esac
  2378. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2379. shlibpath_overrides_runpath=no
  2380. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2381. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2382. hardcode_into_libs=yes
  2383. ;;
  2384. # No shared lib support for Linux oldld, aout, or coff.
  2385. linux*oldld* | linux*aout* | linux*coff*)
  2386. dynamic_linker=no
  2387. ;;
  2388. # This must be glibc/ELF.
  2389. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2390. version_type=linux # correct to gnu/linux during the next big refactor
  2391. need_lib_prefix=no
  2392. need_version=no
  2393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2394. soname_spec='${libname}${release}${shared_ext}$major'
  2395. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2396. shlibpath_var=LD_LIBRARY_PATH
  2397. shlibpath_overrides_runpath=no
  2398. # Some binutils ld are patched to set DT_RUNPATH
  2399. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2400. [lt_cv_shlibpath_overrides_runpath=no
  2401. save_LDFLAGS=$LDFLAGS
  2402. save_libdir=$libdir
  2403. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2404. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2405. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2406. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2407. [lt_cv_shlibpath_overrides_runpath=yes])])
  2408. LDFLAGS=$save_LDFLAGS
  2409. libdir=$save_libdir
  2410. ])
  2411. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2412. # This implies no fast_install, which is unacceptable.
  2413. # Some rework will be needed to allow for fast_install
  2414. # before this can be enabled.
  2415. hardcode_into_libs=yes
  2416. # Append ld.so.conf contents to the search path
  2417. if test -f /etc/ld.so.conf; then
  2418. 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' ' '`
  2419. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2420. fi
  2421. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2422. # powerpc, because MkLinux only supported shared libraries with the
  2423. # GNU dynamic linker. Since this was broken with cross compilers,
  2424. # most powerpc-linux boxes support dynamic linking these days and
  2425. # people can always --disable-shared, the test was removed, and we
  2426. # assume the GNU/Linux dynamic linker is in use.
  2427. dynamic_linker='GNU/Linux ld.so'
  2428. ;;
  2429. netbsd*)
  2430. version_type=sunos
  2431. need_lib_prefix=no
  2432. need_version=no
  2433. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2435. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2436. dynamic_linker='NetBSD (a.out) ld.so'
  2437. else
  2438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2439. soname_spec='${libname}${release}${shared_ext}$major'
  2440. dynamic_linker='NetBSD ld.elf_so'
  2441. fi
  2442. shlibpath_var=LD_LIBRARY_PATH
  2443. shlibpath_overrides_runpath=yes
  2444. hardcode_into_libs=yes
  2445. ;;
  2446. newsos6)
  2447. version_type=linux # correct to gnu/linux during the next big refactor
  2448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2449. shlibpath_var=LD_LIBRARY_PATH
  2450. shlibpath_overrides_runpath=yes
  2451. ;;
  2452. *nto* | *qnx*)
  2453. version_type=qnx
  2454. need_lib_prefix=no
  2455. need_version=no
  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. shlibpath_var=LD_LIBRARY_PATH
  2459. shlibpath_overrides_runpath=no
  2460. hardcode_into_libs=yes
  2461. dynamic_linker='ldqnx.so'
  2462. ;;
  2463. openbsd*)
  2464. version_type=sunos
  2465. sys_lib_dlsearch_path_spec="/usr/lib"
  2466. need_lib_prefix=no
  2467. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2468. case $host_os in
  2469. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2470. *) need_version=no ;;
  2471. esac
  2472. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2473. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2474. shlibpath_var=LD_LIBRARY_PATH
  2475. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2476. case $host_os in
  2477. openbsd2.[[89]] | openbsd2.[[89]].*)
  2478. shlibpath_overrides_runpath=no
  2479. ;;
  2480. *)
  2481. shlibpath_overrides_runpath=yes
  2482. ;;
  2483. esac
  2484. else
  2485. shlibpath_overrides_runpath=yes
  2486. fi
  2487. ;;
  2488. os2*)
  2489. libname_spec='$name'
  2490. shrext_cmds=".dll"
  2491. need_lib_prefix=no
  2492. library_names_spec='$libname${shared_ext} $libname.a'
  2493. dynamic_linker='OS/2 ld.exe'
  2494. shlibpath_var=LIBPATH
  2495. ;;
  2496. osf3* | osf4* | osf5*)
  2497. version_type=osf
  2498. need_lib_prefix=no
  2499. need_version=no
  2500. soname_spec='${libname}${release}${shared_ext}$major'
  2501. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2502. shlibpath_var=LD_LIBRARY_PATH
  2503. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2504. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2505. ;;
  2506. rdos*)
  2507. dynamic_linker=no
  2508. ;;
  2509. solaris*)
  2510. version_type=linux # correct to gnu/linux during the next big refactor
  2511. need_lib_prefix=no
  2512. need_version=no
  2513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2514. soname_spec='${libname}${release}${shared_ext}$major'
  2515. shlibpath_var=LD_LIBRARY_PATH
  2516. shlibpath_overrides_runpath=yes
  2517. hardcode_into_libs=yes
  2518. # ldd complains unless libraries are executable
  2519. postinstall_cmds='chmod +x $lib'
  2520. ;;
  2521. sunos4*)
  2522. version_type=sunos
  2523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2524. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2525. shlibpath_var=LD_LIBRARY_PATH
  2526. shlibpath_overrides_runpath=yes
  2527. if test "$with_gnu_ld" = yes; then
  2528. need_lib_prefix=no
  2529. fi
  2530. need_version=yes
  2531. ;;
  2532. sysv4 | sysv4.3*)
  2533. version_type=linux # correct to gnu/linux during the next big refactor
  2534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2535. soname_spec='${libname}${release}${shared_ext}$major'
  2536. shlibpath_var=LD_LIBRARY_PATH
  2537. case $host_vendor in
  2538. sni)
  2539. shlibpath_overrides_runpath=no
  2540. need_lib_prefix=no
  2541. runpath_var=LD_RUN_PATH
  2542. ;;
  2543. siemens)
  2544. need_lib_prefix=no
  2545. ;;
  2546. motorola)
  2547. need_lib_prefix=no
  2548. need_version=no
  2549. shlibpath_overrides_runpath=no
  2550. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2551. ;;
  2552. esac
  2553. ;;
  2554. sysv4*MP*)
  2555. if test -d /usr/nec ;then
  2556. version_type=linux # correct to gnu/linux during the next big refactor
  2557. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2558. soname_spec='$libname${shared_ext}.$major'
  2559. shlibpath_var=LD_LIBRARY_PATH
  2560. fi
  2561. ;;
  2562. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2563. version_type=freebsd-elf
  2564. need_lib_prefix=no
  2565. need_version=no
  2566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2567. soname_spec='${libname}${release}${shared_ext}$major'
  2568. shlibpath_var=LD_LIBRARY_PATH
  2569. shlibpath_overrides_runpath=yes
  2570. hardcode_into_libs=yes
  2571. if test "$with_gnu_ld" = yes; then
  2572. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2573. else
  2574. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2575. case $host_os in
  2576. sco3.2v5*)
  2577. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2578. ;;
  2579. esac
  2580. fi
  2581. sys_lib_dlsearch_path_spec='/usr/lib'
  2582. ;;
  2583. tpf*)
  2584. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2585. version_type=linux # correct to gnu/linux during the next big refactor
  2586. need_lib_prefix=no
  2587. need_version=no
  2588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2589. shlibpath_var=LD_LIBRARY_PATH
  2590. shlibpath_overrides_runpath=no
  2591. hardcode_into_libs=yes
  2592. ;;
  2593. uts4*)
  2594. version_type=linux # correct to gnu/linux during the next big refactor
  2595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2596. soname_spec='${libname}${release}${shared_ext}$major'
  2597. shlibpath_var=LD_LIBRARY_PATH
  2598. ;;
  2599. *)
  2600. dynamic_linker=no
  2601. ;;
  2602. esac
  2603. AC_MSG_RESULT([$dynamic_linker])
  2604. test "$dynamic_linker" = no && can_build_shared=no
  2605. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2606. if test "$GCC" = yes; then
  2607. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2608. fi
  2609. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2610. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2611. fi
  2612. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2613. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2614. fi
  2615. _LT_DECL([], [variables_saved_for_relink], [1],
  2616. [Variables whose values should be saved in libtool wrapper scripts and
  2617. restored at link time])
  2618. _LT_DECL([], [need_lib_prefix], [0],
  2619. [Do we need the "lib" prefix for modules?])
  2620. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2621. _LT_DECL([], [version_type], [0], [Library versioning type])
  2622. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2623. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2624. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2625. [Is shlibpath searched before the hard-coded library search path?])
  2626. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2627. _LT_DECL([], [library_names_spec], [1],
  2628. [[List of archive names. First name is the real one, the rest are links.
  2629. The last name is the one that the linker finds with -lNAME]])
  2630. _LT_DECL([], [soname_spec], [1],
  2631. [[The coded name of the library, if different from the real name]])
  2632. _LT_DECL([], [install_override_mode], [1],
  2633. [Permission mode override for installation of shared libraries])
  2634. _LT_DECL([], [postinstall_cmds], [2],
  2635. [Command to use after installation of a shared archive])
  2636. _LT_DECL([], [postuninstall_cmds], [2],
  2637. [Command to use after uninstallation of a shared archive])
  2638. _LT_DECL([], [finish_cmds], [2],
  2639. [Commands used to finish a libtool library installation in a directory])
  2640. _LT_DECL([], [finish_eval], [1],
  2641. [[As "finish_cmds", except a single script fragment to be evaled but
  2642. not shown]])
  2643. _LT_DECL([], [hardcode_into_libs], [0],
  2644. [Whether we should hardcode library paths into libraries])
  2645. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2646. [Compile-time system search path for libraries])
  2647. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2648. [Run-time system search path for libraries])
  2649. ])# _LT_SYS_DYNAMIC_LINKER
  2650. # _LT_PATH_TOOL_PREFIX(TOOL)
  2651. # --------------------------
  2652. # find a file program which can recognize shared library
  2653. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2654. [m4_require([_LT_DECL_EGREP])dnl
  2655. AC_MSG_CHECKING([for $1])
  2656. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2657. [case $MAGIC_CMD in
  2658. [[\\/*] | ?:[\\/]*])
  2659. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2660. ;;
  2661. *)
  2662. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2663. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2664. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2665. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2666. dnl not every word. This closes a longstanding sh security hole.
  2667. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2668. for ac_dir in $ac_dummy; do
  2669. IFS="$lt_save_ifs"
  2670. test -z "$ac_dir" && ac_dir=.
  2671. if test -f $ac_dir/$1; then
  2672. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2673. if test -n "$file_magic_test_file"; then
  2674. case $deplibs_check_method in
  2675. "file_magic "*)
  2676. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2677. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2678. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2679. $EGREP "$file_magic_regex" > /dev/null; then
  2680. :
  2681. else
  2682. cat <<_LT_EOF 1>&2
  2683. *** Warning: the command libtool uses to detect shared libraries,
  2684. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2685. *** The result is that libtool may fail to recognize shared libraries
  2686. *** as such. This will affect the creation of libtool libraries that
  2687. *** depend on shared libraries, but programs linked with such libtool
  2688. *** libraries will work regardless of this problem. Nevertheless, you
  2689. *** may want to report the problem to your system manager and/or to
  2690. *** bug-libtool@gnu.org
  2691. _LT_EOF
  2692. fi ;;
  2693. esac
  2694. fi
  2695. break
  2696. fi
  2697. done
  2698. IFS="$lt_save_ifs"
  2699. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2700. ;;
  2701. esac])
  2702. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2703. if test -n "$MAGIC_CMD"; then
  2704. AC_MSG_RESULT($MAGIC_CMD)
  2705. else
  2706. AC_MSG_RESULT(no)
  2707. fi
  2708. _LT_DECL([], [MAGIC_CMD], [0],
  2709. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2710. ])# _LT_PATH_TOOL_PREFIX
  2711. # Old name:
  2712. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2713. dnl aclocal-1.4 backwards compatibility:
  2714. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2715. # _LT_PATH_MAGIC
  2716. # --------------
  2717. # find a file program which can recognize a shared library
  2718. m4_defun([_LT_PATH_MAGIC],
  2719. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2720. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2721. if test -n "$ac_tool_prefix"; then
  2722. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2723. else
  2724. MAGIC_CMD=:
  2725. fi
  2726. fi
  2727. ])# _LT_PATH_MAGIC
  2728. # LT_PATH_LD
  2729. # ----------
  2730. # find the pathname to the GNU or non-GNU linker
  2731. AC_DEFUN([LT_PATH_LD],
  2732. [AC_REQUIRE([AC_PROG_CC])dnl
  2733. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2734. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2735. m4_require([_LT_DECL_SED])dnl
  2736. m4_require([_LT_DECL_EGREP])dnl
  2737. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2738. AC_ARG_WITH([gnu-ld],
  2739. [AS_HELP_STRING([--with-gnu-ld],
  2740. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2741. [test "$withval" = no || with_gnu_ld=yes],
  2742. [with_gnu_ld=no])dnl
  2743. ac_prog=ld
  2744. if test "$GCC" = yes; then
  2745. # Check if gcc -print-prog-name=ld gives a path.
  2746. AC_MSG_CHECKING([for ld used by $CC])
  2747. case $host in
  2748. *-*-mingw*)
  2749. # gcc leaves a trailing carriage return which upsets mingw
  2750. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2751. *)
  2752. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2753. esac
  2754. case $ac_prog in
  2755. # Accept absolute paths.
  2756. [[\\/]]* | ?:[[\\/]]*)
  2757. re_direlt='/[[^/]][[^/]]*/\.\./'
  2758. # Canonicalize the pathname of ld
  2759. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2760. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2761. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2762. done
  2763. test -z "$LD" && LD="$ac_prog"
  2764. ;;
  2765. "")
  2766. # If it fails, then pretend we aren't using GCC.
  2767. ac_prog=ld
  2768. ;;
  2769. *)
  2770. # If it is relative, then search for the first ld in PATH.
  2771. with_gnu_ld=unknown
  2772. ;;
  2773. esac
  2774. elif test "$with_gnu_ld" = yes; then
  2775. AC_MSG_CHECKING([for GNU ld])
  2776. else
  2777. AC_MSG_CHECKING([for non-GNU ld])
  2778. fi
  2779. AC_CACHE_VAL(lt_cv_path_LD,
  2780. [if test -z "$LD"; then
  2781. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2782. for ac_dir in $PATH; do
  2783. IFS="$lt_save_ifs"
  2784. test -z "$ac_dir" && ac_dir=.
  2785. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2786. lt_cv_path_LD="$ac_dir/$ac_prog"
  2787. # Check to see if the program is GNU ld. I'd rather use --version,
  2788. # but apparently some variants of GNU ld only accept -v.
  2789. # Break only if it was the GNU/non-GNU ld that we prefer.
  2790. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2791. *GNU* | *'with BFD'*)
  2792. test "$with_gnu_ld" != no && break
  2793. ;;
  2794. *)
  2795. test "$with_gnu_ld" != yes && break
  2796. ;;
  2797. esac
  2798. fi
  2799. done
  2800. IFS="$lt_save_ifs"
  2801. else
  2802. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2803. fi])
  2804. LD="$lt_cv_path_LD"
  2805. if test -n "$LD"; then
  2806. AC_MSG_RESULT($LD)
  2807. else
  2808. AC_MSG_RESULT(no)
  2809. fi
  2810. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2811. _LT_PATH_LD_GNU
  2812. AC_SUBST([LD])
  2813. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2814. ])# LT_PATH_LD
  2815. # Old names:
  2816. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2817. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2818. dnl aclocal-1.4 backwards compatibility:
  2819. dnl AC_DEFUN([AM_PROG_LD], [])
  2820. dnl AC_DEFUN([AC_PROG_LD], [])
  2821. # _LT_PATH_LD_GNU
  2822. #- --------------
  2823. m4_defun([_LT_PATH_LD_GNU],
  2824. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2825. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2826. case `$LD -v 2>&1 </dev/null` in
  2827. *GNU* | *'with BFD'*)
  2828. lt_cv_prog_gnu_ld=yes
  2829. ;;
  2830. *)
  2831. lt_cv_prog_gnu_ld=no
  2832. ;;
  2833. esac])
  2834. with_gnu_ld=$lt_cv_prog_gnu_ld
  2835. ])# _LT_PATH_LD_GNU
  2836. # _LT_CMD_RELOAD
  2837. # --------------
  2838. # find reload flag for linker
  2839. # -- PORTME Some linkers may need a different reload flag.
  2840. m4_defun([_LT_CMD_RELOAD],
  2841. [AC_CACHE_CHECK([for $LD option to reload object files],
  2842. lt_cv_ld_reload_flag,
  2843. [lt_cv_ld_reload_flag='-r'])
  2844. reload_flag=$lt_cv_ld_reload_flag
  2845. case $reload_flag in
  2846. "" | " "*) ;;
  2847. *) reload_flag=" $reload_flag" ;;
  2848. esac
  2849. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2850. case $host_os in
  2851. cygwin* | mingw* | pw32* | cegcc*)
  2852. if test "$GCC" != yes; then
  2853. reload_cmds=false
  2854. fi
  2855. ;;
  2856. darwin*)
  2857. if test "$GCC" = yes; then
  2858. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2859. else
  2860. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2861. fi
  2862. ;;
  2863. esac
  2864. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2865. _LT_TAGDECL([], [reload_cmds], [2])dnl
  2866. ])# _LT_CMD_RELOAD
  2867. # _LT_CHECK_MAGIC_METHOD
  2868. # ----------------------
  2869. # how to check for library dependencies
  2870. # -- PORTME fill in with the dynamic library characteristics
  2871. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2872. [m4_require([_LT_DECL_EGREP])
  2873. m4_require([_LT_DECL_OBJDUMP])
  2874. AC_CACHE_CHECK([how to recognize dependent libraries],
  2875. lt_cv_deplibs_check_method,
  2876. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2877. lt_cv_file_magic_test_file=
  2878. lt_cv_deplibs_check_method='unknown'
  2879. # Need to set the preceding variable on all platforms that support
  2880. # interlibrary dependencies.
  2881. # 'none' -- dependencies not supported.
  2882. # `unknown' -- same as none, but documents that we really don't know.
  2883. # 'pass_all' -- all dependencies passed with no checks.
  2884. # 'test_compile' -- check by making test program.
  2885. # 'file_magic [[regex]]' -- check by looking for files in library path
  2886. # which responds to the $file_magic_cmd with a given extended regex.
  2887. # If you have `file' or equivalent on your system and you're not sure
  2888. # whether `pass_all' will *always* work, you probably want this one.
  2889. case $host_os in
  2890. aix[[4-9]]*)
  2891. lt_cv_deplibs_check_method=pass_all
  2892. ;;
  2893. beos*)
  2894. lt_cv_deplibs_check_method=pass_all
  2895. ;;
  2896. bsdi[[45]]*)
  2897. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2898. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2899. lt_cv_file_magic_test_file=/shlib/libc.so
  2900. ;;
  2901. cygwin*)
  2902. # func_win32_libid is a shell function defined in ltmain.sh
  2903. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2904. lt_cv_file_magic_cmd='func_win32_libid'
  2905. ;;
  2906. mingw* | pw32*)
  2907. # Base MSYS/MinGW do not provide the 'file' command needed by
  2908. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2909. # unless we find 'file', for example because we are cross-compiling.
  2910. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  2911. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  2912. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2913. lt_cv_file_magic_cmd='func_win32_libid'
  2914. else
  2915. # Keep this pattern in sync with the one in func_win32_libid.
  2916. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2917. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2918. fi
  2919. ;;
  2920. cegcc*)
  2921. # use the weaker test based on 'objdump'. See mingw*.
  2922. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2923. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2924. ;;
  2925. darwin* | rhapsody*)
  2926. lt_cv_deplibs_check_method=pass_all
  2927. ;;
  2928. freebsd* | dragonfly*)
  2929. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2930. case $host_cpu in
  2931. i*86 )
  2932. # Not sure whether the presence of OpenBSD here was a mistake.
  2933. # Let's accept both of them until this is cleared up.
  2934. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2935. lt_cv_file_magic_cmd=/usr/bin/file
  2936. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2937. ;;
  2938. esac
  2939. else
  2940. lt_cv_deplibs_check_method=pass_all
  2941. fi
  2942. ;;
  2943. gnu*)
  2944. lt_cv_deplibs_check_method=pass_all
  2945. ;;
  2946. haiku*)
  2947. lt_cv_deplibs_check_method=pass_all
  2948. ;;
  2949. hpux10.20* | hpux11*)
  2950. lt_cv_file_magic_cmd=/usr/bin/file
  2951. case $host_cpu in
  2952. ia64*)
  2953. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2954. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2955. ;;
  2956. hppa*64*)
  2957. [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]']
  2958. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2959. ;;
  2960. *)
  2961. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  2962. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2963. ;;
  2964. esac
  2965. ;;
  2966. interix[[3-9]]*)
  2967. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2968. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2969. ;;
  2970. irix5* | irix6* | nonstopux*)
  2971. case $LD in
  2972. *-32|*"-32 ") libmagic=32-bit;;
  2973. *-n32|*"-n32 ") libmagic=N32;;
  2974. *-64|*"-64 ") libmagic=64-bit;;
  2975. *) libmagic=never-match;;
  2976. esac
  2977. lt_cv_deplibs_check_method=pass_all
  2978. ;;
  2979. # This must be glibc/ELF.
  2980. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2981. lt_cv_deplibs_check_method=pass_all
  2982. ;;
  2983. netbsd*)
  2984. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2985. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2986. else
  2987. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2988. fi
  2989. ;;
  2990. newos6*)
  2991. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2992. lt_cv_file_magic_cmd=/usr/bin/file
  2993. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2994. ;;
  2995. *nto* | *qnx*)
  2996. lt_cv_deplibs_check_method=pass_all
  2997. ;;
  2998. openbsd*)
  2999. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3000. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3001. else
  3002. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3003. fi
  3004. ;;
  3005. osf3* | osf4* | osf5*)
  3006. lt_cv_deplibs_check_method=pass_all
  3007. ;;
  3008. rdos*)
  3009. lt_cv_deplibs_check_method=pass_all
  3010. ;;
  3011. solaris*)
  3012. lt_cv_deplibs_check_method=pass_all
  3013. ;;
  3014. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3015. lt_cv_deplibs_check_method=pass_all
  3016. ;;
  3017. sysv4 | sysv4.3*)
  3018. case $host_vendor in
  3019. motorola)
  3020. 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]]'
  3021. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3022. ;;
  3023. ncr)
  3024. lt_cv_deplibs_check_method=pass_all
  3025. ;;
  3026. sequent)
  3027. lt_cv_file_magic_cmd='/bin/file'
  3028. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3029. ;;
  3030. sni)
  3031. lt_cv_file_magic_cmd='/bin/file'
  3032. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3033. lt_cv_file_magic_test_file=/lib/libc.so
  3034. ;;
  3035. siemens)
  3036. lt_cv_deplibs_check_method=pass_all
  3037. ;;
  3038. pc)
  3039. lt_cv_deplibs_check_method=pass_all
  3040. ;;
  3041. esac
  3042. ;;
  3043. tpf*)
  3044. lt_cv_deplibs_check_method=pass_all
  3045. ;;
  3046. esac
  3047. ])
  3048. file_magic_glob=
  3049. want_nocaseglob=no
  3050. if test "$build" = "$host"; then
  3051. case $host_os in
  3052. mingw* | pw32*)
  3053. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3054. want_nocaseglob=yes
  3055. else
  3056. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3057. fi
  3058. ;;
  3059. esac
  3060. fi
  3061. file_magic_cmd=$lt_cv_file_magic_cmd
  3062. deplibs_check_method=$lt_cv_deplibs_check_method
  3063. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3064. _LT_DECL([], [deplibs_check_method], [1],
  3065. [Method to check whether dependent libraries are shared objects])
  3066. _LT_DECL([], [file_magic_cmd], [1],
  3067. [Command to use when deplibs_check_method = "file_magic"])
  3068. _LT_DECL([], [file_magic_glob], [1],
  3069. [How to find potential files when deplibs_check_method = "file_magic"])
  3070. _LT_DECL([], [want_nocaseglob], [1],
  3071. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3072. ])# _LT_CHECK_MAGIC_METHOD
  3073. # LT_PATH_NM
  3074. # ----------
  3075. # find the pathname to a BSD- or MS-compatible name lister
  3076. AC_DEFUN([LT_PATH_NM],
  3077. [AC_REQUIRE([AC_PROG_CC])dnl
  3078. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3079. [if test -n "$NM"; then
  3080. # Let the user override the test.
  3081. lt_cv_path_NM="$NM"
  3082. else
  3083. lt_nm_to_check="${ac_tool_prefix}nm"
  3084. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3085. lt_nm_to_check="$lt_nm_to_check nm"
  3086. fi
  3087. for lt_tmp_nm in $lt_nm_to_check; do
  3088. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3089. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3090. IFS="$lt_save_ifs"
  3091. test -z "$ac_dir" && ac_dir=.
  3092. tmp_nm="$ac_dir/$lt_tmp_nm"
  3093. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3094. # Check to see if the nm accepts a BSD-compat flag.
  3095. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3096. # nm: unknown option "B" ignored
  3097. # Tru64's nm complains that /dev/null is an invalid object file
  3098. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3099. */dev/null* | *'Invalid file or object type'*)
  3100. lt_cv_path_NM="$tmp_nm -B"
  3101. break
  3102. ;;
  3103. *)
  3104. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3105. */dev/null*)
  3106. lt_cv_path_NM="$tmp_nm -p"
  3107. break
  3108. ;;
  3109. *)
  3110. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3111. continue # so that we can try to find one that supports BSD flags
  3112. ;;
  3113. esac
  3114. ;;
  3115. esac
  3116. fi
  3117. done
  3118. IFS="$lt_save_ifs"
  3119. done
  3120. : ${lt_cv_path_NM=no}
  3121. fi])
  3122. if test "$lt_cv_path_NM" != "no"; then
  3123. NM="$lt_cv_path_NM"
  3124. else
  3125. # Didn't find any BSD compatible name lister, look for dumpbin.
  3126. if test -n "$DUMPBIN"; then :
  3127. # Let the user override the test.
  3128. else
  3129. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3130. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3131. *COFF*)
  3132. DUMPBIN="$DUMPBIN -symbols"
  3133. ;;
  3134. *)
  3135. DUMPBIN=:
  3136. ;;
  3137. esac
  3138. fi
  3139. AC_SUBST([DUMPBIN])
  3140. if test "$DUMPBIN" != ":"; then
  3141. NM="$DUMPBIN"
  3142. fi
  3143. fi
  3144. test -z "$NM" && NM=nm
  3145. AC_SUBST([NM])
  3146. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3147. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3148. [lt_cv_nm_interface="BSD nm"
  3149. echo "int some_variable = 0;" > conftest.$ac_ext
  3150. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3151. (eval "$ac_compile" 2>conftest.err)
  3152. cat conftest.err >&AS_MESSAGE_LOG_FD
  3153. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3154. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3155. cat conftest.err >&AS_MESSAGE_LOG_FD
  3156. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3157. cat conftest.out >&AS_MESSAGE_LOG_FD
  3158. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3159. lt_cv_nm_interface="MS dumpbin"
  3160. fi
  3161. rm -f conftest*])
  3162. ])# LT_PATH_NM
  3163. # Old names:
  3164. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3165. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3166. dnl aclocal-1.4 backwards compatibility:
  3167. dnl AC_DEFUN([AM_PROG_NM], [])
  3168. dnl AC_DEFUN([AC_PROG_NM], [])
  3169. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3170. # --------------------------------
  3171. # how to determine the name of the shared library
  3172. # associated with a specific link library.
  3173. # -- PORTME fill in with the dynamic library characteristics
  3174. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3175. [m4_require([_LT_DECL_EGREP])
  3176. m4_require([_LT_DECL_OBJDUMP])
  3177. m4_require([_LT_DECL_DLLTOOL])
  3178. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3179. lt_cv_sharedlib_from_linklib_cmd,
  3180. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3181. case $host_os in
  3182. cygwin* | mingw* | pw32* | cegcc*)
  3183. # two different shell functions defined in ltmain.sh
  3184. # decide which to use based on capabilities of $DLLTOOL
  3185. case `$DLLTOOL --help 2>&1` in
  3186. *--identify-strict*)
  3187. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3188. ;;
  3189. *)
  3190. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3191. ;;
  3192. esac
  3193. ;;
  3194. *)
  3195. # fallback: assume linklib IS sharedlib
  3196. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3197. ;;
  3198. esac
  3199. ])
  3200. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3201. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3202. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3203. [Command to associate shared and link libraries])
  3204. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3205. # _LT_PATH_MANIFEST_TOOL
  3206. # ----------------------
  3207. # locate the manifest tool
  3208. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3209. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3210. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3211. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3212. [lt_cv_path_mainfest_tool=no
  3213. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3214. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3215. cat conftest.err >&AS_MESSAGE_LOG_FD
  3216. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3217. lt_cv_path_mainfest_tool=yes
  3218. fi
  3219. rm -f conftest*])
  3220. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3221. MANIFEST_TOOL=:
  3222. fi
  3223. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3224. ])# _LT_PATH_MANIFEST_TOOL
  3225. # LT_LIB_M
  3226. # --------
  3227. # check for math library
  3228. AC_DEFUN([LT_LIB_M],
  3229. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3230. LIBM=
  3231. case $host in
  3232. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3233. # These system don't have libm, or don't need it
  3234. ;;
  3235. *-ncr-sysv4.3*)
  3236. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3237. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3238. ;;
  3239. *)
  3240. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3241. ;;
  3242. esac
  3243. AC_SUBST([LIBM])
  3244. ])# LT_LIB_M
  3245. # Old name:
  3246. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3247. dnl aclocal-1.4 backwards compatibility:
  3248. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3249. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3250. # -------------------------------
  3251. m4_defun([_LT_COMPILER_NO_RTTI],
  3252. [m4_require([_LT_TAG_COMPILER])dnl
  3253. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3254. if test "$GCC" = yes; then
  3255. case $cc_basename in
  3256. nvcc*)
  3257. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3258. *)
  3259. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3260. esac
  3261. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3262. lt_cv_prog_compiler_rtti_exceptions,
  3263. [-fno-rtti -fno-exceptions], [],
  3264. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3265. fi
  3266. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3267. [Compiler flag to turn off builtin functions])
  3268. ])# _LT_COMPILER_NO_RTTI
  3269. # _LT_CMD_GLOBAL_SYMBOLS
  3270. # ----------------------
  3271. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3272. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3273. AC_REQUIRE([AC_PROG_CC])dnl
  3274. AC_REQUIRE([AC_PROG_AWK])dnl
  3275. AC_REQUIRE([LT_PATH_NM])dnl
  3276. AC_REQUIRE([LT_PATH_LD])dnl
  3277. m4_require([_LT_DECL_SED])dnl
  3278. m4_require([_LT_DECL_EGREP])dnl
  3279. m4_require([_LT_TAG_COMPILER])dnl
  3280. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3281. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3282. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3283. [
  3284. # These are sane defaults that work on at least a few old systems.
  3285. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3286. # Character class describing NM global symbol codes.
  3287. symcode='[[BCDEGRST]]'
  3288. # Regexp to match symbols that can be accessed directly from C.
  3289. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3290. # Define system-specific variables.
  3291. case $host_os in
  3292. aix*)
  3293. symcode='[[BCDT]]'
  3294. ;;
  3295. cygwin* | mingw* | pw32* | cegcc*)
  3296. symcode='[[ABCDGISTW]]'
  3297. ;;
  3298. hpux*)
  3299. if test "$host_cpu" = ia64; then
  3300. symcode='[[ABCDEGRST]]'
  3301. fi
  3302. ;;
  3303. irix* | nonstopux*)
  3304. symcode='[[BCDEGRST]]'
  3305. ;;
  3306. osf*)
  3307. symcode='[[BCDEGQRST]]'
  3308. ;;
  3309. solaris*)
  3310. symcode='[[BDRT]]'
  3311. ;;
  3312. sco3.2v5*)
  3313. symcode='[[DT]]'
  3314. ;;
  3315. sysv4.2uw2*)
  3316. symcode='[[DT]]'
  3317. ;;
  3318. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3319. symcode='[[ABDT]]'
  3320. ;;
  3321. sysv4)
  3322. symcode='[[DFNSTU]]'
  3323. ;;
  3324. esac
  3325. # If we're using GNU nm, then use its standard symbol codes.
  3326. case `$NM -V 2>&1` in
  3327. *GNU* | *'with BFD'*)
  3328. symcode='[[ABCDGIRSTW]]' ;;
  3329. esac
  3330. # Transform an extracted symbol line into a proper C declaration.
  3331. # Some systems (esp. on ia64) link data and code symbols differently,
  3332. # so use this general approach.
  3333. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3334. # Transform an extracted symbol line into symbol name and symbol address
  3335. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3336. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  3337. # Handle CRLF in mingw tool chain
  3338. opt_cr=
  3339. case $build_os in
  3340. mingw*)
  3341. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3342. ;;
  3343. esac
  3344. # Try without a prefix underscore, then with it.
  3345. for ac_symprfx in "" "_"; do
  3346. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3347. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3348. # Write the raw and C identifiers.
  3349. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3350. # Fake it for dumpbin and say T for any non-static function
  3351. # and D for any global variable.
  3352. # Also find C++ and __fastcall symbols from MSVC++,
  3353. # which start with @ or ?.
  3354. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3355. " {last_section=section; section=\$ 3};"\
  3356. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3357. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3358. " \$ 0!~/External *\|/{next};"\
  3359. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3360. " {if(hide[section]) next};"\
  3361. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3362. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3363. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3364. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3365. " ' prfx=^$ac_symprfx]"
  3366. else
  3367. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3368. fi
  3369. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3370. # Check to see that the pipe works correctly.
  3371. pipe_works=no
  3372. rm -f conftest*
  3373. cat > conftest.$ac_ext <<_LT_EOF
  3374. #ifdef __cplusplus
  3375. extern "C" {
  3376. #endif
  3377. char nm_test_var;
  3378. void nm_test_func(void);
  3379. void nm_test_func(void){}
  3380. #ifdef __cplusplus
  3381. }
  3382. #endif
  3383. int main(){nm_test_var='a';nm_test_func();return(0);}
  3384. _LT_EOF
  3385. if AC_TRY_EVAL(ac_compile); then
  3386. # Now try to grab the symbols.
  3387. nlist=conftest.nm
  3388. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3389. # Try sorting and uniquifying the output.
  3390. if sort "$nlist" | uniq > "$nlist"T; then
  3391. mv -f "$nlist"T "$nlist"
  3392. else
  3393. rm -f "$nlist"T
  3394. fi
  3395. # Make sure that we snagged all the symbols we need.
  3396. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3397. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3398. cat <<_LT_EOF > conftest.$ac_ext
  3399. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3400. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3401. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3402. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3403. # define LT@&t@_DLSYM_CONST
  3404. #elif defined(__osf__)
  3405. /* This system does not cope well with relocations in const data. */
  3406. # define LT@&t@_DLSYM_CONST
  3407. #else
  3408. # define LT@&t@_DLSYM_CONST const
  3409. #endif
  3410. #ifdef __cplusplus
  3411. extern "C" {
  3412. #endif
  3413. _LT_EOF
  3414. # Now generate the symbol file.
  3415. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3416. cat <<_LT_EOF >> conftest.$ac_ext
  3417. /* The mapping between symbol names and symbols. */
  3418. LT@&t@_DLSYM_CONST struct {
  3419. const char *name;
  3420. void *address;
  3421. }
  3422. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3423. {
  3424. { "@PROGRAM@", (void *) 0 },
  3425. _LT_EOF
  3426. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3427. cat <<\_LT_EOF >> conftest.$ac_ext
  3428. {0, (void *) 0}
  3429. };
  3430. /* This works around a problem in FreeBSD linker */
  3431. #ifdef FREEBSD_WORKAROUND
  3432. static const void *lt_preloaded_setup() {
  3433. return lt__PROGRAM__LTX_preloaded_symbols;
  3434. }
  3435. #endif
  3436. #ifdef __cplusplus
  3437. }
  3438. #endif
  3439. _LT_EOF
  3440. # Now try linking the two files.
  3441. mv conftest.$ac_objext conftstm.$ac_objext
  3442. lt_globsym_save_LIBS=$LIBS
  3443. lt_globsym_save_CFLAGS=$CFLAGS
  3444. LIBS="conftstm.$ac_objext"
  3445. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3446. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3447. pipe_works=yes
  3448. fi
  3449. LIBS=$lt_globsym_save_LIBS
  3450. CFLAGS=$lt_globsym_save_CFLAGS
  3451. else
  3452. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3453. fi
  3454. else
  3455. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3456. fi
  3457. else
  3458. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3459. fi
  3460. else
  3461. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3462. cat conftest.$ac_ext >&5
  3463. fi
  3464. rm -rf conftest* conftst*
  3465. # Do not use the global_symbol_pipe unless it works.
  3466. if test "$pipe_works" = yes; then
  3467. break
  3468. else
  3469. lt_cv_sys_global_symbol_pipe=
  3470. fi
  3471. done
  3472. ])
  3473. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3474. lt_cv_sys_global_symbol_to_cdecl=
  3475. fi
  3476. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3477. AC_MSG_RESULT(failed)
  3478. else
  3479. AC_MSG_RESULT(ok)
  3480. fi
  3481. # Response file support.
  3482. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3483. nm_file_list_spec='@'
  3484. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3485. nm_file_list_spec='@'
  3486. fi
  3487. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3488. [Take the output of nm and produce a listing of raw symbols and C names])
  3489. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3490. [Transform the output of nm in a proper C declaration])
  3491. _LT_DECL([global_symbol_to_c_name_address],
  3492. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3493. [Transform the output of nm in a C name address pair])
  3494. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3495. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3496. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3497. _LT_DECL([], [nm_file_list_spec], [1],
  3498. [Specify filename containing input files for $NM])
  3499. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3500. # _LT_COMPILER_PIC([TAGNAME])
  3501. # ---------------------------
  3502. m4_defun([_LT_COMPILER_PIC],
  3503. [m4_require([_LT_TAG_COMPILER])dnl
  3504. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3505. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3506. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3507. m4_if([$1], [CXX], [
  3508. # C++ specific cases for pic, static, wl, etc.
  3509. if test "$GXX" = yes; then
  3510. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3511. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3512. case $host_os in
  3513. aix*)
  3514. # All AIX code is PIC.
  3515. if test "$host_cpu" = ia64; then
  3516. # AIX 5 now supports IA64 processor
  3517. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3518. fi
  3519. ;;
  3520. amigaos*)
  3521. case $host_cpu in
  3522. powerpc)
  3523. # see comment about AmigaOS4 .so support
  3524. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3525. ;;
  3526. m68k)
  3527. # FIXME: we need at least 68020 code to build shared libraries, but
  3528. # adding the `-m68020' flag to GCC prevents building anything better,
  3529. # like `-m68040'.
  3530. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3531. ;;
  3532. esac
  3533. ;;
  3534. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3535. # PIC is the default for these OSes.
  3536. ;;
  3537. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3538. # This hack is so that the source file can tell whether it is being
  3539. # built for inclusion in a dll (and should export symbols for example).
  3540. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3541. # (--disable-auto-import) libraries
  3542. m4_if([$1], [GCJ], [],
  3543. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3544. ;;
  3545. darwin* | rhapsody*)
  3546. # PIC is the default on this platform
  3547. # Common symbols not allowed in MH_DYLIB files
  3548. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3549. ;;
  3550. *djgpp*)
  3551. # DJGPP does not support shared libraries at all
  3552. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3553. ;;
  3554. haiku*)
  3555. # PIC is the default for Haiku.
  3556. # The "-static" flag exists, but is broken.
  3557. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3558. ;;
  3559. interix[[3-9]]*)
  3560. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3561. # Instead, we relocate shared libraries at runtime.
  3562. ;;
  3563. sysv4*MP*)
  3564. if test -d /usr/nec; then
  3565. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3566. fi
  3567. ;;
  3568. hpux*)
  3569. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3570. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3571. # sets the default TLS model and affects inlining.
  3572. case $host_cpu in
  3573. hppa*64*)
  3574. ;;
  3575. *)
  3576. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3577. ;;
  3578. esac
  3579. ;;
  3580. *qnx* | *nto*)
  3581. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3582. # it will coredump.
  3583. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3584. ;;
  3585. *)
  3586. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3587. ;;
  3588. esac
  3589. else
  3590. case $host_os in
  3591. aix[[4-9]]*)
  3592. # All AIX code is PIC.
  3593. if test "$host_cpu" = ia64; then
  3594. # AIX 5 now supports IA64 processor
  3595. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3596. else
  3597. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3598. fi
  3599. ;;
  3600. chorus*)
  3601. case $cc_basename in
  3602. cxch68*)
  3603. # Green Hills C++ Compiler
  3604. # _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"
  3605. ;;
  3606. esac
  3607. ;;
  3608. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3609. # This hack is so that the source file can tell whether it is being
  3610. # built for inclusion in a dll (and should export symbols for example).
  3611. m4_if([$1], [GCJ], [],
  3612. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3613. ;;
  3614. dgux*)
  3615. case $cc_basename in
  3616. ec++*)
  3617. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3618. ;;
  3619. ghcx*)
  3620. # Green Hills C++ Compiler
  3621. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3622. ;;
  3623. *)
  3624. ;;
  3625. esac
  3626. ;;
  3627. freebsd* | dragonfly*)
  3628. # FreeBSD uses GNU C++
  3629. ;;
  3630. hpux9* | hpux10* | hpux11*)
  3631. case $cc_basename in
  3632. CC*)
  3633. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3634. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3635. if test "$host_cpu" != ia64; then
  3636. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3637. fi
  3638. ;;
  3639. aCC*)
  3640. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3641. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3642. case $host_cpu in
  3643. hppa*64*|ia64*)
  3644. # +Z the default
  3645. ;;
  3646. *)
  3647. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3648. ;;
  3649. esac
  3650. ;;
  3651. *)
  3652. ;;
  3653. esac
  3654. ;;
  3655. interix*)
  3656. # This is c89, which is MS Visual C++ (no shared libs)
  3657. # Anyone wants to do a port?
  3658. ;;
  3659. irix5* | irix6* | nonstopux*)
  3660. case $cc_basename in
  3661. CC*)
  3662. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3663. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3664. # CC pic flag -KPIC is the default.
  3665. ;;
  3666. *)
  3667. ;;
  3668. esac
  3669. ;;
  3670. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3671. case $cc_basename in
  3672. KCC*)
  3673. # KAI C++ Compiler
  3674. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3675. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3676. ;;
  3677. ecpc* )
  3678. # old Intel C++ for x86_64 which still supported -KPIC.
  3679. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3680. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3681. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3682. ;;
  3683. icpc* )
  3684. # Intel C++, used to be incompatible with GCC.
  3685. # ICC 10 doesn't accept -KPIC any more.
  3686. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3687. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3688. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3689. ;;
  3690. pgCC* | pgcpp*)
  3691. # Portland Group C++ compiler
  3692. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3693. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3694. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3695. ;;
  3696. cxx*)
  3697. # Compaq C++
  3698. # Make sure the PIC flag is empty. It appears that all Alpha
  3699. # Linux and Compaq Tru64 Unix objects are PIC.
  3700. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3701. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3702. ;;
  3703. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3704. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3705. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3706. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3707. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3708. ;;
  3709. *)
  3710. case `$CC -V 2>&1 | sed 5q` in
  3711. *Sun\ C*)
  3712. # Sun C++ 5.9
  3713. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3714. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3715. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3716. ;;
  3717. esac
  3718. ;;
  3719. esac
  3720. ;;
  3721. lynxos*)
  3722. ;;
  3723. m88k*)
  3724. ;;
  3725. mvs*)
  3726. case $cc_basename in
  3727. cxx*)
  3728. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3729. ;;
  3730. *)
  3731. ;;
  3732. esac
  3733. ;;
  3734. netbsd*)
  3735. ;;
  3736. *qnx* | *nto*)
  3737. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3738. # it will coredump.
  3739. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3740. ;;
  3741. osf3* | osf4* | osf5*)
  3742. case $cc_basename in
  3743. KCC*)
  3744. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3745. ;;
  3746. RCC*)
  3747. # Rational C++ 2.4.1
  3748. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3749. ;;
  3750. cxx*)
  3751. # Digital/Compaq C++
  3752. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3753. # Make sure the PIC flag is empty. It appears that all Alpha
  3754. # Linux and Compaq Tru64 Unix objects are PIC.
  3755. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3756. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3757. ;;
  3758. *)
  3759. ;;
  3760. esac
  3761. ;;
  3762. psos*)
  3763. ;;
  3764. solaris*)
  3765. case $cc_basename in
  3766. CC* | sunCC*)
  3767. # Sun C++ 4.2, 5.x and Centerline C++
  3768. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3769. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3770. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3771. ;;
  3772. gcx*)
  3773. # Green Hills C++ Compiler
  3774. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3775. ;;
  3776. *)
  3777. ;;
  3778. esac
  3779. ;;
  3780. sunos4*)
  3781. case $cc_basename in
  3782. CC*)
  3783. # Sun C++ 4.x
  3784. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3785. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3786. ;;
  3787. lcc*)
  3788. # Lucid
  3789. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3790. ;;
  3791. *)
  3792. ;;
  3793. esac
  3794. ;;
  3795. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3796. case $cc_basename in
  3797. CC*)
  3798. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3799. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3800. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3801. ;;
  3802. esac
  3803. ;;
  3804. tandem*)
  3805. case $cc_basename in
  3806. NCC*)
  3807. # NonStop-UX NCC 3.20
  3808. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3809. ;;
  3810. *)
  3811. ;;
  3812. esac
  3813. ;;
  3814. vxworks*)
  3815. ;;
  3816. *)
  3817. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3818. ;;
  3819. esac
  3820. fi
  3821. ],
  3822. [
  3823. if test "$GCC" = yes; then
  3824. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3825. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3826. case $host_os in
  3827. aix*)
  3828. # All AIX code is PIC.
  3829. if test "$host_cpu" = ia64; then
  3830. # AIX 5 now supports IA64 processor
  3831. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3832. fi
  3833. ;;
  3834. amigaos*)
  3835. case $host_cpu in
  3836. powerpc)
  3837. # see comment about AmigaOS4 .so support
  3838. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3839. ;;
  3840. m68k)
  3841. # FIXME: we need at least 68020 code to build shared libraries, but
  3842. # adding the `-m68020' flag to GCC prevents building anything better,
  3843. # like `-m68040'.
  3844. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3845. ;;
  3846. esac
  3847. ;;
  3848. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3849. # PIC is the default for these OSes.
  3850. ;;
  3851. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3852. # This hack is so that the source file can tell whether it is being
  3853. # built for inclusion in a dll (and should export symbols for example).
  3854. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3855. # (--disable-auto-import) libraries
  3856. m4_if([$1], [GCJ], [],
  3857. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3858. ;;
  3859. darwin* | rhapsody*)
  3860. # PIC is the default on this platform
  3861. # Common symbols not allowed in MH_DYLIB files
  3862. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3863. ;;
  3864. haiku*)
  3865. # PIC is the default for Haiku.
  3866. # The "-static" flag exists, but is broken.
  3867. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3868. ;;
  3869. hpux*)
  3870. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3871. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3872. # sets the default TLS model and affects inlining.
  3873. case $host_cpu in
  3874. hppa*64*)
  3875. # +Z the default
  3876. ;;
  3877. *)
  3878. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3879. ;;
  3880. esac
  3881. ;;
  3882. interix[[3-9]]*)
  3883. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3884. # Instead, we relocate shared libraries at runtime.
  3885. ;;
  3886. msdosdjgpp*)
  3887. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3888. # on systems that don't support them.
  3889. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3890. enable_shared=no
  3891. ;;
  3892. *nto* | *qnx*)
  3893. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3894. # it will coredump.
  3895. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3896. ;;
  3897. sysv4*MP*)
  3898. if test -d /usr/nec; then
  3899. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3900. fi
  3901. ;;
  3902. *)
  3903. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3904. ;;
  3905. esac
  3906. case $cc_basename in
  3907. nvcc*) # Cuda Compiler Driver 2.2
  3908. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  3909. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  3910. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  3911. fi
  3912. ;;
  3913. esac
  3914. else
  3915. # PORTME Check for flag to pass linker flags through the system compiler.
  3916. case $host_os in
  3917. aix*)
  3918. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3919. if test "$host_cpu" = ia64; then
  3920. # AIX 5 now supports IA64 processor
  3921. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3922. else
  3923. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3924. fi
  3925. ;;
  3926. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3927. # This hack is so that the source file can tell whether it is being
  3928. # built for inclusion in a dll (and should export symbols for example).
  3929. m4_if([$1], [GCJ], [],
  3930. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3931. ;;
  3932. hpux9* | hpux10* | hpux11*)
  3933. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3934. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3935. # not for PA HP-UX.
  3936. case $host_cpu in
  3937. hppa*64*|ia64*)
  3938. # +Z the default
  3939. ;;
  3940. *)
  3941. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3942. ;;
  3943. esac
  3944. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3945. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3946. ;;
  3947. irix5* | irix6* | nonstopux*)
  3948. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3949. # PIC (with -KPIC) is the default.
  3950. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3951. ;;
  3952. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3953. case $cc_basename in
  3954. # old Intel for x86_64 which still supported -KPIC.
  3955. ecc*)
  3956. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3957. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3958. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3959. ;;
  3960. # icc used to be incompatible with GCC.
  3961. # ICC 10 doesn't accept -KPIC any more.
  3962. icc* | ifort*)
  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)='-static'
  3966. ;;
  3967. # Lahey Fortran 8.1.
  3968. lf95*)
  3969. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3970. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  3971. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  3972. ;;
  3973. nagfor*)
  3974. # NAG Fortran compiler
  3975. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  3976. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3977. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3978. ;;
  3979. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  3980. # Portland Group compilers (*not* the Pentium gcc compiler,
  3981. # which looks to be a dead project)
  3982. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3983. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3984. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3985. ;;
  3986. ccc*)
  3987. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3988. # All Alpha code is PIC.
  3989. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3990. ;;
  3991. xl* | bgxl* | bgf* | mpixl*)
  3992. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  3993. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3994. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3995. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3996. ;;
  3997. *)
  3998. case `$CC -V 2>&1 | sed 5q` in
  3999. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  4000. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4001. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4002. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4003. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4004. ;;
  4005. *Sun\ F* | *Sun*Fortran*)
  4006. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4007. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4008. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4009. ;;
  4010. *Sun\ C*)
  4011. # Sun C 5.9
  4012. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4013. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4014. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4015. ;;
  4016. *Intel*\ [[CF]]*Compiler*)
  4017. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4018. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4019. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4020. ;;
  4021. *Portland\ Group*)
  4022. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4023. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4024. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4025. ;;
  4026. esac
  4027. ;;
  4028. esac
  4029. ;;
  4030. newsos6)
  4031. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4032. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4033. ;;
  4034. *nto* | *qnx*)
  4035. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4036. # it will coredump.
  4037. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4038. ;;
  4039. osf3* | osf4* | osf5*)
  4040. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4041. # All OSF/1 code is PIC.
  4042. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4043. ;;
  4044. rdos*)
  4045. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4046. ;;
  4047. solaris*)
  4048. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4049. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4050. case $cc_basename in
  4051. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4052. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4053. *)
  4054. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4055. esac
  4056. ;;
  4057. sunos4*)
  4058. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4059. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4060. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4061. ;;
  4062. sysv4 | sysv4.2uw2* | sysv4.3*)
  4063. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4064. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4065. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4066. ;;
  4067. sysv4*MP*)
  4068. if test -d /usr/nec ;then
  4069. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4070. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4071. fi
  4072. ;;
  4073. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4074. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4075. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4076. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4077. ;;
  4078. unicos*)
  4079. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4080. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4081. ;;
  4082. uts4*)
  4083. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4084. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4085. ;;
  4086. *)
  4087. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4088. ;;
  4089. esac
  4090. fi
  4091. ])
  4092. case $host_os in
  4093. # For platforms which do not support PIC, -DPIC is meaningless:
  4094. *djgpp*)
  4095. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4096. ;;
  4097. *)
  4098. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4099. ;;
  4100. esac
  4101. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4102. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4103. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4104. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4105. #
  4106. # Check to make sure the PIC flag actually works.
  4107. #
  4108. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4109. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4110. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4111. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4112. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4113. "" | " "*) ;;
  4114. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4115. esac],
  4116. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4117. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4118. fi
  4119. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4120. [Additional compiler flags for building library objects])
  4121. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4122. [How to pass a linker flag through the compiler])
  4123. #
  4124. # Check to make sure the static flag actually works.
  4125. #
  4126. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4127. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4128. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4129. $lt_tmp_static_flag,
  4130. [],
  4131. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4132. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4133. [Compiler flag to prevent dynamic linking])
  4134. ])# _LT_COMPILER_PIC
  4135. # _LT_LINKER_SHLIBS([TAGNAME])
  4136. # ----------------------------
  4137. # See if the linker supports building shared libraries.
  4138. m4_defun([_LT_LINKER_SHLIBS],
  4139. [AC_REQUIRE([LT_PATH_LD])dnl
  4140. AC_REQUIRE([LT_PATH_NM])dnl
  4141. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4142. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4143. m4_require([_LT_DECL_EGREP])dnl
  4144. m4_require([_LT_DECL_SED])dnl
  4145. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4146. m4_require([_LT_TAG_COMPILER])dnl
  4147. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4148. m4_if([$1], [CXX], [
  4149. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4150. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4151. case $host_os in
  4152. aix[[4-9]]*)
  4153. # If we're using GNU nm, then we don't want the "-C" option.
  4154. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4155. # Also, AIX nm treats weak defined symbols like other global defined
  4156. # symbols, whereas GNU nm marks them as "W".
  4157. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4158. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4159. else
  4160. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4161. fi
  4162. ;;
  4163. pw32*)
  4164. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4165. ;;
  4166. cygwin* | mingw* | cegcc*)
  4167. case $cc_basename in
  4168. cl*)
  4169. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4170. ;;
  4171. *)
  4172. _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'
  4173. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4174. ;;
  4175. esac
  4176. ;;
  4177. *)
  4178. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4179. ;;
  4180. esac
  4181. ], [
  4182. runpath_var=
  4183. _LT_TAGVAR(allow_undefined_flag, $1)=
  4184. _LT_TAGVAR(always_export_symbols, $1)=no
  4185. _LT_TAGVAR(archive_cmds, $1)=
  4186. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4187. _LT_TAGVAR(compiler_needs_object, $1)=no
  4188. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4189. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4190. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4191. _LT_TAGVAR(hardcode_automatic, $1)=no
  4192. _LT_TAGVAR(hardcode_direct, $1)=no
  4193. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4194. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4195. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4196. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4197. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4198. _LT_TAGVAR(inherit_rpath, $1)=no
  4199. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4200. _LT_TAGVAR(module_cmds, $1)=
  4201. _LT_TAGVAR(module_expsym_cmds, $1)=
  4202. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4203. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4204. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4205. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4206. # include_expsyms should be a list of space-separated symbols to be *always*
  4207. # included in the symbol list
  4208. _LT_TAGVAR(include_expsyms, $1)=
  4209. # exclude_expsyms can be an extended regexp of symbols to exclude
  4210. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4211. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4212. # as well as any symbol that contains `d'.
  4213. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4214. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4215. # platforms (ab)use it in PIC code, but their linkers get confused if
  4216. # the symbol is explicitly referenced. Since portable code cannot
  4217. # rely on this symbol name, it's probably fine to never include it in
  4218. # preloaded symbol tables.
  4219. # Exclude shared library initialization/finalization symbols.
  4220. dnl Note also adjust exclude_expsyms for C++ above.
  4221. extract_expsyms_cmds=
  4222. case $host_os in
  4223. cygwin* | mingw* | pw32* | cegcc*)
  4224. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4225. # When not using gcc, we currently assume that we are using
  4226. # Microsoft Visual C++.
  4227. if test "$GCC" != yes; then
  4228. with_gnu_ld=no
  4229. fi
  4230. ;;
  4231. interix*)
  4232. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4233. with_gnu_ld=yes
  4234. ;;
  4235. openbsd*)
  4236. with_gnu_ld=no
  4237. ;;
  4238. esac
  4239. _LT_TAGVAR(ld_shlibs, $1)=yes
  4240. # On some targets, GNU ld is compatible enough with the native linker
  4241. # that we're better off using the native interface for both.
  4242. lt_use_gnu_ld_interface=no
  4243. if test "$with_gnu_ld" = yes; then
  4244. case $host_os in
  4245. aix*)
  4246. # The AIX port of GNU ld has always aspired to compatibility
  4247. # with the native linker. However, as the warning in the GNU ld
  4248. # block says, versions before 2.19.5* couldn't really create working
  4249. # shared libraries, regardless of the interface used.
  4250. case `$LD -v 2>&1` in
  4251. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4252. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4253. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4254. *)
  4255. lt_use_gnu_ld_interface=yes
  4256. ;;
  4257. esac
  4258. ;;
  4259. *)
  4260. lt_use_gnu_ld_interface=yes
  4261. ;;
  4262. esac
  4263. fi
  4264. if test "$lt_use_gnu_ld_interface" = yes; then
  4265. # If archive_cmds runs LD, not CC, wlarc should be empty
  4266. wlarc='${wl}'
  4267. # Set some defaults for GNU ld with shared library support. These
  4268. # are reset later if shared libraries are not supported. Putting them
  4269. # here allows them to be overridden if necessary.
  4270. runpath_var=LD_RUN_PATH
  4271. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4272. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4273. # ancient GNU ld didn't support --whole-archive et. al.
  4274. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4275. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4276. else
  4277. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4278. fi
  4279. supports_anon_versioning=no
  4280. case `$LD -v 2>&1` in
  4281. *GNU\ gold*) supports_anon_versioning=yes ;;
  4282. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4283. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4284. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4285. *\ 2.11.*) ;; # other 2.11 versions
  4286. *) supports_anon_versioning=yes ;;
  4287. esac
  4288. # See if GNU ld supports shared libraries.
  4289. case $host_os in
  4290. aix[[3-9]]*)
  4291. # On AIX/PPC, the GNU linker is very broken
  4292. if test "$host_cpu" != ia64; then
  4293. _LT_TAGVAR(ld_shlibs, $1)=no
  4294. cat <<_LT_EOF 1>&2
  4295. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4296. *** to be unable to reliably create shared libraries on AIX.
  4297. *** Therefore, libtool is disabling shared libraries support. If you
  4298. *** really care for shared libraries, you may want to install binutils
  4299. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4300. *** You will then need to restart the configuration process.
  4301. _LT_EOF
  4302. fi
  4303. ;;
  4304. amigaos*)
  4305. case $host_cpu in
  4306. powerpc)
  4307. # see comment about AmigaOS4 .so support
  4308. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4309. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4310. ;;
  4311. m68k)
  4312. _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)'
  4313. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4314. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4315. ;;
  4316. esac
  4317. ;;
  4318. beos*)
  4319. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4320. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4321. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4322. # support --undefined. This deserves some investigation. FIXME
  4323. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4324. else
  4325. _LT_TAGVAR(ld_shlibs, $1)=no
  4326. fi
  4327. ;;
  4328. cygwin* | mingw* | pw32* | cegcc*)
  4329. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4330. # as there is no search path for DLLs.
  4331. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4332. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4333. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4334. _LT_TAGVAR(always_export_symbols, $1)=no
  4335. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4336. _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'
  4337. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4338. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4339. _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'
  4340. # If the export-symbols file already is a .def file (1st line
  4341. # is EXPORTS), use it as is; otherwise, prepend...
  4342. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4343. cp $export_symbols $output_objdir/$soname.def;
  4344. else
  4345. echo EXPORTS > $output_objdir/$soname.def;
  4346. cat $export_symbols >> $output_objdir/$soname.def;
  4347. fi~
  4348. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4349. else
  4350. _LT_TAGVAR(ld_shlibs, $1)=no
  4351. fi
  4352. ;;
  4353. haiku*)
  4354. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4355. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4356. ;;
  4357. interix[[3-9]]*)
  4358. _LT_TAGVAR(hardcode_direct, $1)=no
  4359. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4360. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4361. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4362. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4363. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4364. # default) and relocated if they conflict, which is a slow very memory
  4365. # consuming and fragmenting process. To avoid this, we pick a random,
  4366. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4367. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4368. _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'
  4369. _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'
  4370. ;;
  4371. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4372. tmp_diet=no
  4373. if test "$host_os" = linux-dietlibc; then
  4374. case $cc_basename in
  4375. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4376. esac
  4377. fi
  4378. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4379. && test "$tmp_diet" = no
  4380. then
  4381. tmp_addflag=' $pic_flag'
  4382. tmp_sharedflag='-shared'
  4383. case $cc_basename,$host_cpu in
  4384. pgcc*) # Portland Group C compiler
  4385. _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'
  4386. tmp_addflag=' $pic_flag'
  4387. ;;
  4388. pgf77* | pgf90* | pgf95* | pgfortran*)
  4389. # Portland Group f77 and f90 compilers
  4390. _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'
  4391. tmp_addflag=' $pic_flag -Mnomain' ;;
  4392. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4393. tmp_addflag=' -i_dynamic' ;;
  4394. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4395. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4396. ifc* | ifort*) # Intel Fortran compiler
  4397. tmp_addflag=' -nofor_main' ;;
  4398. lf95*) # Lahey Fortran 8.1
  4399. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4400. tmp_sharedflag='--shared' ;;
  4401. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4402. tmp_sharedflag='-qmkshrobj'
  4403. tmp_addflag= ;;
  4404. nvcc*) # Cuda Compiler Driver 2.2
  4405. _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'
  4406. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4407. ;;
  4408. esac
  4409. case `$CC -V 2>&1 | sed 5q` in
  4410. *Sun\ C*) # Sun C 5.9
  4411. _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'
  4412. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4413. tmp_sharedflag='-G' ;;
  4414. *Sun\ F*) # Sun Fortran 8.3
  4415. tmp_sharedflag='-G' ;;
  4416. esac
  4417. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4418. if test "x$supports_anon_versioning" = xyes; then
  4419. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4420. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4421. echo "local: *; };" >> $output_objdir/$libname.ver~
  4422. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4423. fi
  4424. case $cc_basename in
  4425. xlf* | bgf* | bgxlf* | mpixlf*)
  4426. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4427. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4428. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4429. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4430. if test "x$supports_anon_versioning" = xyes; then
  4431. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4432. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4433. echo "local: *; };" >> $output_objdir/$libname.ver~
  4434. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4435. fi
  4436. ;;
  4437. esac
  4438. else
  4439. _LT_TAGVAR(ld_shlibs, $1)=no
  4440. fi
  4441. ;;
  4442. netbsd*)
  4443. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4444. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4445. wlarc=
  4446. else
  4447. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4448. _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'
  4449. fi
  4450. ;;
  4451. solaris*)
  4452. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4453. _LT_TAGVAR(ld_shlibs, $1)=no
  4454. cat <<_LT_EOF 1>&2
  4455. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4456. *** create shared libraries on Solaris systems. Therefore, libtool
  4457. *** is disabling shared libraries support. We urge you to upgrade GNU
  4458. *** binutils to release 2.9.1 or newer. Another option is to modify
  4459. *** your PATH or compiler configuration so that the native linker is
  4460. *** used, and then restart.
  4461. _LT_EOF
  4462. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4463. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4464. _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'
  4465. else
  4466. _LT_TAGVAR(ld_shlibs, $1)=no
  4467. fi
  4468. ;;
  4469. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4470. case `$LD -v 2>&1` in
  4471. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4472. _LT_TAGVAR(ld_shlibs, $1)=no
  4473. cat <<_LT_EOF 1>&2
  4474. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4475. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4476. *** is disabling shared libraries support. We urge you to upgrade GNU
  4477. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4478. *** your PATH or compiler configuration so that the native linker is
  4479. *** used, and then restart.
  4480. _LT_EOF
  4481. ;;
  4482. *)
  4483. # For security reasons, it is highly recommended that you always
  4484. # use absolute paths for naming shared libraries, and exclude the
  4485. # DT_RUNPATH tag from executables and libraries. But doing so
  4486. # requires that you compile everything twice, which is a pain.
  4487. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4488. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4489. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4490. _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'
  4491. else
  4492. _LT_TAGVAR(ld_shlibs, $1)=no
  4493. fi
  4494. ;;
  4495. esac
  4496. ;;
  4497. sunos4*)
  4498. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4499. wlarc=
  4500. _LT_TAGVAR(hardcode_direct, $1)=yes
  4501. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4502. ;;
  4503. *)
  4504. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4505. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4506. _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'
  4507. else
  4508. _LT_TAGVAR(ld_shlibs, $1)=no
  4509. fi
  4510. ;;
  4511. esac
  4512. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4513. runpath_var=
  4514. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4515. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4516. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4517. fi
  4518. else
  4519. # PORTME fill in a description of your system's linker (not GNU ld)
  4520. case $host_os in
  4521. aix3*)
  4522. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4523. _LT_TAGVAR(always_export_symbols, $1)=yes
  4524. _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'
  4525. # Note: this linker hardcodes the directories in LIBPATH if there
  4526. # are no directories specified by -L.
  4527. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4528. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4529. # Neither direct hardcoding nor static linking is supported with a
  4530. # broken collect2.
  4531. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4532. fi
  4533. ;;
  4534. aix[[4-9]]*)
  4535. if test "$host_cpu" = ia64; then
  4536. # On IA64, the linker does run time linking by default, so we don't
  4537. # have to do anything special.
  4538. aix_use_runtimelinking=no
  4539. exp_sym_flag='-Bexport'
  4540. no_entry_flag=""
  4541. else
  4542. # If we're using GNU nm, then we don't want the "-C" option.
  4543. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4544. # Also, AIX nm treats weak defined symbols like other global
  4545. # defined symbols, whereas GNU nm marks them as "W".
  4546. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4547. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4548. else
  4549. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4550. fi
  4551. aix_use_runtimelinking=no
  4552. # Test if we are trying to use run time linking or normal
  4553. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4554. # need to do runtime linking.
  4555. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4556. for ld_flag in $LDFLAGS; do
  4557. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4558. aix_use_runtimelinking=yes
  4559. break
  4560. fi
  4561. done
  4562. ;;
  4563. esac
  4564. exp_sym_flag='-bexport'
  4565. no_entry_flag='-bnoentry'
  4566. fi
  4567. # When large executables or shared objects are built, AIX ld can
  4568. # have problems creating the table of contents. If linking a library
  4569. # or program results in "error TOC overflow" add -mminimal-toc to
  4570. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4571. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4572. _LT_TAGVAR(archive_cmds, $1)=''
  4573. _LT_TAGVAR(hardcode_direct, $1)=yes
  4574. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4575. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4576. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4577. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4578. if test "$GCC" = yes; then
  4579. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4580. # We only want to do this on AIX 4.2 and lower, the check
  4581. # below for broken collect2 doesn't work under 4.3+
  4582. collect2name=`${CC} -print-prog-name=collect2`
  4583. if test -f "$collect2name" &&
  4584. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4585. then
  4586. # We have reworked collect2
  4587. :
  4588. else
  4589. # We have old collect2
  4590. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4591. # It fails to find uninstalled libraries when the uninstalled
  4592. # path is not listed in the libpath. Setting hardcode_minus_L
  4593. # to unsupported forces relinking
  4594. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4595. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4596. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4597. fi
  4598. ;;
  4599. esac
  4600. shared_flag='-shared'
  4601. if test "$aix_use_runtimelinking" = yes; then
  4602. shared_flag="$shared_flag "'${wl}-G'
  4603. fi
  4604. else
  4605. # not using gcc
  4606. if test "$host_cpu" = ia64; then
  4607. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4608. # chokes on -Wl,-G. The following line is correct:
  4609. shared_flag='-G'
  4610. else
  4611. if test "$aix_use_runtimelinking" = yes; then
  4612. shared_flag='${wl}-G'
  4613. else
  4614. shared_flag='${wl}-bM:SRE'
  4615. fi
  4616. fi
  4617. fi
  4618. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4619. # It seems that -bexpall does not export symbols beginning with
  4620. # underscore (_), so it is better to generate a list of symbols to export.
  4621. _LT_TAGVAR(always_export_symbols, $1)=yes
  4622. if test "$aix_use_runtimelinking" = yes; then
  4623. # Warning - without using the other runtime loading flags (-brtl),
  4624. # -berok will link without error, but may produce a broken library.
  4625. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4626. # Determine the default libpath from the value encoded in an
  4627. # empty executable.
  4628. _LT_SYS_MODULE_PATH_AIX([$1])
  4629. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4630. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4631. else
  4632. if test "$host_cpu" = ia64; then
  4633. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4634. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4635. _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"
  4636. else
  4637. # Determine the default libpath from the value encoded in an
  4638. # empty executable.
  4639. _LT_SYS_MODULE_PATH_AIX([$1])
  4640. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4641. # Warning - without using the other run time loading flags,
  4642. # -berok will link without error, but may produce a broken library.
  4643. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4644. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4645. if test "$with_gnu_ld" = yes; then
  4646. # We only use this code for GNU lds that support --whole-archive.
  4647. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4648. else
  4649. # Exported symbols can be pulled into shared objects from archives
  4650. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4651. fi
  4652. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4653. # This is similar to how AIX traditionally builds its shared libraries.
  4654. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  4655. fi
  4656. fi
  4657. ;;
  4658. amigaos*)
  4659. case $host_cpu in
  4660. powerpc)
  4661. # see comment about AmigaOS4 .so support
  4662. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4663. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4664. ;;
  4665. m68k)
  4666. _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)'
  4667. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4668. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4669. ;;
  4670. esac
  4671. ;;
  4672. bsdi[[45]]*)
  4673. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4674. ;;
  4675. cygwin* | mingw* | pw32* | cegcc*)
  4676. # When not using gcc, we currently assume that we are using
  4677. # Microsoft Visual C++.
  4678. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4679. # no search path for DLLs.
  4680. case $cc_basename in
  4681. cl*)
  4682. # Native MSVC
  4683. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4684. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4685. _LT_TAGVAR(always_export_symbols, $1)=yes
  4686. _LT_TAGVAR(file_list_spec, $1)='@'
  4687. # Tell ltmain to make .lib files, not .a files.
  4688. libext=lib
  4689. # Tell ltmain to make .dll files, not .so files.
  4690. shrext_cmds=".dll"
  4691. # FIXME: Setting linknames here is a bad hack.
  4692. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  4693. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4694. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  4695. else
  4696. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  4697. fi~
  4698. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4699. linknames='
  4700. # The linker will not automatically build a static lib if we build a DLL.
  4701. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4702. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4703. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4704. _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'
  4705. # Don't use ranlib
  4706. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  4707. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  4708. lt_tool_outputfile="@TOOL_OUTPUT@"~
  4709. case $lt_outputfile in
  4710. *.exe|*.EXE) ;;
  4711. *)
  4712. lt_outputfile="$lt_outputfile.exe"
  4713. lt_tool_outputfile="$lt_tool_outputfile.exe"
  4714. ;;
  4715. esac~
  4716. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  4717. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4718. $RM "$lt_outputfile.manifest";
  4719. fi'
  4720. ;;
  4721. *)
  4722. # Assume MSVC wrapper
  4723. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4724. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4725. # Tell ltmain to make .lib files, not .a files.
  4726. libext=lib
  4727. # Tell ltmain to make .dll files, not .so files.
  4728. shrext_cmds=".dll"
  4729. # FIXME: Setting linknames here is a bad hack.
  4730. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4731. # The linker will automatically build a .lib file if we build a DLL.
  4732. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4733. # FIXME: Should let the user specify the lib program.
  4734. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4735. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4736. ;;
  4737. esac
  4738. ;;
  4739. darwin* | rhapsody*)
  4740. _LT_DARWIN_LINKER_FEATURES($1)
  4741. ;;
  4742. dgux*)
  4743. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4744. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4745. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4746. ;;
  4747. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4748. # support. Future versions do this automatically, but an explicit c++rt0.o
  4749. # does not break anything, and helps significantly (at the cost of a little
  4750. # extra space).
  4751. freebsd2.2*)
  4752. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4753. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4754. _LT_TAGVAR(hardcode_direct, $1)=yes
  4755. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4756. ;;
  4757. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4758. freebsd2.*)
  4759. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4760. _LT_TAGVAR(hardcode_direct, $1)=yes
  4761. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4762. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4763. ;;
  4764. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4765. freebsd* | dragonfly*)
  4766. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4767. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4768. _LT_TAGVAR(hardcode_direct, $1)=yes
  4769. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4770. ;;
  4771. hpux9*)
  4772. if test "$GCC" = yes; then
  4773. _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4774. else
  4775. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4776. fi
  4777. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4778. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4779. _LT_TAGVAR(hardcode_direct, $1)=yes
  4780. # hardcode_minus_L: Not really in the search PATH,
  4781. # but as the default location of the library.
  4782. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4783. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4784. ;;
  4785. hpux10*)
  4786. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4787. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4788. else
  4789. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4790. fi
  4791. if test "$with_gnu_ld" = no; then
  4792. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4793. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4794. _LT_TAGVAR(hardcode_direct, $1)=yes
  4795. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4796. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4797. # hardcode_minus_L: Not really in the search PATH,
  4798. # but as the default location of the library.
  4799. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4800. fi
  4801. ;;
  4802. hpux11*)
  4803. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4804. case $host_cpu in
  4805. hppa*64*)
  4806. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4807. ;;
  4808. ia64*)
  4809. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4810. ;;
  4811. *)
  4812. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4813. ;;
  4814. esac
  4815. else
  4816. case $host_cpu in
  4817. hppa*64*)
  4818. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4819. ;;
  4820. ia64*)
  4821. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4822. ;;
  4823. *)
  4824. m4_if($1, [], [
  4825. # Older versions of the 11.00 compiler do not understand -b yet
  4826. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4827. _LT_LINKER_OPTION([if $CC understands -b],
  4828. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4829. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4830. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4831. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4832. ;;
  4833. esac
  4834. fi
  4835. if test "$with_gnu_ld" = no; then
  4836. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4837. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4838. case $host_cpu in
  4839. hppa*64*|ia64*)
  4840. _LT_TAGVAR(hardcode_direct, $1)=no
  4841. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4842. ;;
  4843. *)
  4844. _LT_TAGVAR(hardcode_direct, $1)=yes
  4845. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4846. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4847. # hardcode_minus_L: Not really in the search PATH,
  4848. # but as the default location of the library.
  4849. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4850. ;;
  4851. esac
  4852. fi
  4853. ;;
  4854. irix5* | irix6* | nonstopux*)
  4855. if test "$GCC" = yes; then
  4856. _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'
  4857. # Try to use the -exported_symbol ld option, if it does not
  4858. # work, assume that -exports_file does not work either and
  4859. # implicitly export all symbols.
  4860. # This should be the same for all languages, so no per-tag cache variable.
  4861. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  4862. [lt_cv_irix_exported_symbol],
  4863. [save_LDFLAGS="$LDFLAGS"
  4864. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4865. AC_LINK_IFELSE(
  4866. [AC_LANG_SOURCE(
  4867. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  4868. [C++], [[int foo (void) { return 0; }]],
  4869. [Fortran 77], [[
  4870. subroutine foo
  4871. end]],
  4872. [Fortran], [[
  4873. subroutine foo
  4874. end]])])],
  4875. [lt_cv_irix_exported_symbol=yes],
  4876. [lt_cv_irix_exported_symbol=no])
  4877. LDFLAGS="$save_LDFLAGS"])
  4878. if test "$lt_cv_irix_exported_symbol" = yes; then
  4879. _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'
  4880. fi
  4881. else
  4882. _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'
  4883. _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'
  4884. fi
  4885. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4886. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4887. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4888. _LT_TAGVAR(inherit_rpath, $1)=yes
  4889. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4890. ;;
  4891. netbsd*)
  4892. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4893. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4894. else
  4895. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4896. fi
  4897. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4898. _LT_TAGVAR(hardcode_direct, $1)=yes
  4899. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4900. ;;
  4901. newsos6)
  4902. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4903. _LT_TAGVAR(hardcode_direct, $1)=yes
  4904. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4905. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4906. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4907. ;;
  4908. *nto* | *qnx*)
  4909. ;;
  4910. openbsd*)
  4911. if test -f /usr/libexec/ld.so; then
  4912. _LT_TAGVAR(hardcode_direct, $1)=yes
  4913. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4914. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4915. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4916. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4917. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4918. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4919. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4920. else
  4921. case $host_os in
  4922. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4923. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4924. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4925. ;;
  4926. *)
  4927. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4928. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4929. ;;
  4930. esac
  4931. fi
  4932. else
  4933. _LT_TAGVAR(ld_shlibs, $1)=no
  4934. fi
  4935. ;;
  4936. os2*)
  4937. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4938. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4939. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4940. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  4941. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4942. ;;
  4943. osf3*)
  4944. if test "$GCC" = yes; then
  4945. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4946. _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'
  4947. else
  4948. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4949. _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'
  4950. fi
  4951. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4952. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4953. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4954. ;;
  4955. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4956. if test "$GCC" = yes; then
  4957. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4958. _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'
  4959. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4960. else
  4961. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4962. _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'
  4963. _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~
  4964. $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'
  4965. # Both c and cxx compiler support -rpath directly
  4966. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4967. fi
  4968. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4969. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4970. ;;
  4971. solaris*)
  4972. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4973. if test "$GCC" = yes; then
  4974. wlarc='${wl}'
  4975. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4976. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4977. $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'
  4978. else
  4979. case `$CC -V 2>&1` in
  4980. *"Compilers 5.0"*)
  4981. wlarc=''
  4982. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4983. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4984. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4985. ;;
  4986. *)
  4987. wlarc='${wl}'
  4988. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4989. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4990. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4991. ;;
  4992. esac
  4993. fi
  4994. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4995. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4996. case $host_os in
  4997. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4998. *)
  4999. # The compiler driver will combine and reorder linker options,
  5000. # but understands `-z linker_flag'. GCC discards it without `$wl',
  5001. # but is careful enough not to reorder.
  5002. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5003. if test "$GCC" = yes; then
  5004. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5005. else
  5006. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5007. fi
  5008. ;;
  5009. esac
  5010. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5011. ;;
  5012. sunos4*)
  5013. if test "x$host_vendor" = xsequent; then
  5014. # Use $CC to link under sequent, because it throws in some extra .o
  5015. # files that make .init and .fini sections work.
  5016. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5017. else
  5018. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5019. fi
  5020. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5021. _LT_TAGVAR(hardcode_direct, $1)=yes
  5022. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5023. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5024. ;;
  5025. sysv4)
  5026. case $host_vendor in
  5027. sni)
  5028. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5029. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5030. ;;
  5031. siemens)
  5032. ## LD is ld it makes a PLAMLIB
  5033. ## CC just makes a GrossModule.
  5034. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5035. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5036. _LT_TAGVAR(hardcode_direct, $1)=no
  5037. ;;
  5038. motorola)
  5039. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5040. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5041. ;;
  5042. esac
  5043. runpath_var='LD_RUN_PATH'
  5044. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5045. ;;
  5046. sysv4.3*)
  5047. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5048. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5049. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5050. ;;
  5051. sysv4*MP*)
  5052. if test -d /usr/nec; then
  5053. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5054. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5055. runpath_var=LD_RUN_PATH
  5056. hardcode_runpath_var=yes
  5057. _LT_TAGVAR(ld_shlibs, $1)=yes
  5058. fi
  5059. ;;
  5060. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5061. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5062. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5063. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5064. runpath_var='LD_RUN_PATH'
  5065. if test "$GCC" = yes; then
  5066. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5067. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5068. else
  5069. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5070. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5071. fi
  5072. ;;
  5073. sysv5* | sco3.2v5* | sco5v6*)
  5074. # Note: We can NOT use -z defs as we might desire, because we do not
  5075. # link with -lc, and that would cause any symbols used from libc to
  5076. # always be unresolved, which means just about no library would
  5077. # ever link correctly. If we're not using GNU ld we use -z text
  5078. # though, which does catch some bad symbols but isn't as heavy-handed
  5079. # as -z defs.
  5080. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5081. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5082. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5083. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5084. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5085. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5086. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5087. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5088. runpath_var='LD_RUN_PATH'
  5089. if test "$GCC" = yes; then
  5090. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5091. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5092. else
  5093. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5094. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5095. fi
  5096. ;;
  5097. uts4*)
  5098. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5099. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5100. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5101. ;;
  5102. *)
  5103. _LT_TAGVAR(ld_shlibs, $1)=no
  5104. ;;
  5105. esac
  5106. if test x$host_vendor = xsni; then
  5107. case $host in
  5108. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5109. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5110. ;;
  5111. esac
  5112. fi
  5113. fi
  5114. ])
  5115. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5116. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5117. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5118. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5119. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5120. _LT_DECL([], [extract_expsyms_cmds], [2],
  5121. [The commands to extract the exported symbol list from a shared archive])
  5122. #
  5123. # Do we need to explicitly link libc?
  5124. #
  5125. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5126. x|xyes)
  5127. # Assume -lc should be added
  5128. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5129. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5130. case $_LT_TAGVAR(archive_cmds, $1) in
  5131. *'~'*)
  5132. # FIXME: we may have to deal with multi-command sequences.
  5133. ;;
  5134. '$CC '*)
  5135. # Test whether the compiler implicitly links with -lc since on some
  5136. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5137. # to ld, don't add -lc before -lgcc.
  5138. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5139. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5140. [$RM conftest*
  5141. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5142. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5143. soname=conftest
  5144. lib=conftest
  5145. libobjs=conftest.$ac_objext
  5146. deplibs=
  5147. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5148. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5149. compiler_flags=-v
  5150. linker_flags=-v
  5151. verstring=
  5152. output_objdir=.
  5153. libname=conftest
  5154. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5155. _LT_TAGVAR(allow_undefined_flag, $1)=
  5156. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5157. then
  5158. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5159. else
  5160. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5161. fi
  5162. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5163. else
  5164. cat conftest.err 1>&5
  5165. fi
  5166. $RM conftest*
  5167. ])
  5168. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5169. ;;
  5170. esac
  5171. fi
  5172. ;;
  5173. esac
  5174. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5175. [Whether or not to add -lc for building shared libraries])
  5176. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5177. [enable_shared_with_static_runtimes], [0],
  5178. [Whether or not to disallow shared libs when runtime libs are static])
  5179. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5180. [Compiler flag to allow reflexive dlopens])
  5181. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5182. [Compiler flag to generate shared objects directly from archives])
  5183. _LT_TAGDECL([], [compiler_needs_object], [1],
  5184. [Whether the compiler copes with passing no objects directly])
  5185. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5186. [Create an old-style archive from a shared archive])
  5187. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5188. [Create a temporary old-style archive to link instead of a shared archive])
  5189. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5190. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5191. _LT_TAGDECL([], [module_cmds], [2],
  5192. [Commands used to build a loadable module if different from building
  5193. a shared archive.])
  5194. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5195. _LT_TAGDECL([], [with_gnu_ld], [1],
  5196. [Whether we are building with GNU ld or not])
  5197. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5198. [Flag that allows shared libraries with undefined symbols to be built])
  5199. _LT_TAGDECL([], [no_undefined_flag], [1],
  5200. [Flag that enforces no undefined symbols])
  5201. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5202. [Flag to hardcode $libdir into a binary during linking.
  5203. This must work even if $libdir does not exist])
  5204. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5205. [Whether we need a single "-rpath" flag with a separated argument])
  5206. _LT_TAGDECL([], [hardcode_direct], [0],
  5207. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5208. DIR into the resulting binary])
  5209. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5210. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5211. DIR into the resulting binary and the resulting library dependency is
  5212. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5213. library is relocated])
  5214. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5215. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5216. into the resulting binary])
  5217. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5218. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5219. into the resulting binary])
  5220. _LT_TAGDECL([], [hardcode_automatic], [0],
  5221. [Set to "yes" if building a shared library automatically hardcodes DIR
  5222. into the library and all subsequent libraries and executables linked
  5223. against it])
  5224. _LT_TAGDECL([], [inherit_rpath], [0],
  5225. [Set to yes if linker adds runtime paths of dependent libraries
  5226. to runtime path list])
  5227. _LT_TAGDECL([], [link_all_deplibs], [0],
  5228. [Whether libtool must link a program against all its dependency libraries])
  5229. _LT_TAGDECL([], [always_export_symbols], [0],
  5230. [Set to "yes" if exported symbols are required])
  5231. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5232. [The commands to list exported symbols])
  5233. _LT_TAGDECL([], [exclude_expsyms], [1],
  5234. [Symbols that should not be listed in the preloaded symbols])
  5235. _LT_TAGDECL([], [include_expsyms], [1],
  5236. [Symbols that must always be exported])
  5237. _LT_TAGDECL([], [prelink_cmds], [2],
  5238. [Commands necessary for linking programs (against libraries) with templates])
  5239. _LT_TAGDECL([], [postlink_cmds], [2],
  5240. [Commands necessary for finishing linking programs])
  5241. _LT_TAGDECL([], [file_list_spec], [1],
  5242. [Specify filename containing input files])
  5243. dnl FIXME: Not yet implemented
  5244. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5245. dnl [Compiler flag to generate thread safe objects])
  5246. ])# _LT_LINKER_SHLIBS
  5247. # _LT_LANG_C_CONFIG([TAG])
  5248. # ------------------------
  5249. # Ensure that the configuration variables for a C compiler are suitably
  5250. # defined. These variables are subsequently used by _LT_CONFIG to write
  5251. # the compiler configuration to `libtool'.
  5252. m4_defun([_LT_LANG_C_CONFIG],
  5253. [m4_require([_LT_DECL_EGREP])dnl
  5254. lt_save_CC="$CC"
  5255. AC_LANG_PUSH(C)
  5256. # Source file extension for C test sources.
  5257. ac_ext=c
  5258. # Object file extension for compiled C test sources.
  5259. objext=o
  5260. _LT_TAGVAR(objext, $1)=$objext
  5261. # Code to be used in simple compile tests
  5262. lt_simple_compile_test_code="int some_variable = 0;"
  5263. # Code to be used in simple link tests
  5264. lt_simple_link_test_code='int main(){return(0);}'
  5265. _LT_TAG_COMPILER
  5266. # Save the default compiler, since it gets overwritten when the other
  5267. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5268. compiler_DEFAULT=$CC
  5269. # save warnings/boilerplate of simple test code
  5270. _LT_COMPILER_BOILERPLATE
  5271. _LT_LINKER_BOILERPLATE
  5272. if test -n "$compiler"; then
  5273. _LT_COMPILER_NO_RTTI($1)
  5274. _LT_COMPILER_PIC($1)
  5275. _LT_COMPILER_C_O($1)
  5276. _LT_COMPILER_FILE_LOCKS($1)
  5277. _LT_LINKER_SHLIBS($1)
  5278. _LT_SYS_DYNAMIC_LINKER($1)
  5279. _LT_LINKER_HARDCODE_LIBPATH($1)
  5280. LT_SYS_DLOPEN_SELF
  5281. _LT_CMD_STRIPLIB
  5282. # Report which library types will actually be built
  5283. AC_MSG_CHECKING([if libtool supports shared libraries])
  5284. AC_MSG_RESULT([$can_build_shared])
  5285. AC_MSG_CHECKING([whether to build shared libraries])
  5286. test "$can_build_shared" = "no" && enable_shared=no
  5287. # On AIX, shared libraries and static libraries use the same namespace, and
  5288. # are all built from PIC.
  5289. case $host_os in
  5290. aix3*)
  5291. test "$enable_shared" = yes && enable_static=no
  5292. if test -n "$RANLIB"; then
  5293. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5294. postinstall_cmds='$RANLIB $lib'
  5295. fi
  5296. ;;
  5297. aix[[4-9]]*)
  5298. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5299. test "$enable_shared" = yes && enable_static=no
  5300. fi
  5301. ;;
  5302. esac
  5303. AC_MSG_RESULT([$enable_shared])
  5304. AC_MSG_CHECKING([whether to build static libraries])
  5305. # Make sure either enable_shared or enable_static is yes.
  5306. test "$enable_shared" = yes || enable_static=yes
  5307. AC_MSG_RESULT([$enable_static])
  5308. _LT_CONFIG($1)
  5309. fi
  5310. AC_LANG_POP
  5311. CC="$lt_save_CC"
  5312. ])# _LT_LANG_C_CONFIG
  5313. # _LT_LANG_CXX_CONFIG([TAG])
  5314. # --------------------------
  5315. # Ensure that the configuration variables for a C++ compiler are suitably
  5316. # defined. These variables are subsequently used by _LT_CONFIG to write
  5317. # the compiler configuration to `libtool'.
  5318. m4_defun([_LT_LANG_CXX_CONFIG],
  5319. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5320. m4_require([_LT_DECL_EGREP])dnl
  5321. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5322. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5323. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5324. (test "X$CXX" != "Xg++"))) ; then
  5325. AC_PROG_CXXCPP
  5326. else
  5327. _lt_caught_CXX_error=yes
  5328. fi
  5329. AC_LANG_PUSH(C++)
  5330. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5331. _LT_TAGVAR(allow_undefined_flag, $1)=
  5332. _LT_TAGVAR(always_export_symbols, $1)=no
  5333. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5334. _LT_TAGVAR(compiler_needs_object, $1)=no
  5335. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5336. _LT_TAGVAR(hardcode_direct, $1)=no
  5337. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5338. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5339. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5340. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5341. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5342. _LT_TAGVAR(hardcode_automatic, $1)=no
  5343. _LT_TAGVAR(inherit_rpath, $1)=no
  5344. _LT_TAGVAR(module_cmds, $1)=
  5345. _LT_TAGVAR(module_expsym_cmds, $1)=
  5346. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5347. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5348. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5349. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5350. _LT_TAGVAR(no_undefined_flag, $1)=
  5351. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5352. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5353. # Source file extension for C++ test sources.
  5354. ac_ext=cpp
  5355. # Object file extension for compiled C++ test sources.
  5356. objext=o
  5357. _LT_TAGVAR(objext, $1)=$objext
  5358. # No sense in running all these tests if we already determined that
  5359. # the CXX compiler isn't working. Some variables (like enable_shared)
  5360. # are currently assumed to apply to all compilers on this platform,
  5361. # and will be corrupted by setting them based on a non-working compiler.
  5362. if test "$_lt_caught_CXX_error" != yes; then
  5363. # Code to be used in simple compile tests
  5364. lt_simple_compile_test_code="int some_variable = 0;"
  5365. # Code to be used in simple link tests
  5366. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5367. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5368. _LT_TAG_COMPILER
  5369. # save warnings/boilerplate of simple test code
  5370. _LT_COMPILER_BOILERPLATE
  5371. _LT_LINKER_BOILERPLATE
  5372. # Allow CC to be a program name with arguments.
  5373. lt_save_CC=$CC
  5374. lt_save_CFLAGS=$CFLAGS
  5375. lt_save_LD=$LD
  5376. lt_save_GCC=$GCC
  5377. GCC=$GXX
  5378. lt_save_with_gnu_ld=$with_gnu_ld
  5379. lt_save_path_LD=$lt_cv_path_LD
  5380. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5381. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5382. else
  5383. $as_unset lt_cv_prog_gnu_ld
  5384. fi
  5385. if test -n "${lt_cv_path_LDCXX+set}"; then
  5386. lt_cv_path_LD=$lt_cv_path_LDCXX
  5387. else
  5388. $as_unset lt_cv_path_LD
  5389. fi
  5390. test -z "${LDCXX+set}" || LD=$LDCXX
  5391. CC=${CXX-"c++"}
  5392. CFLAGS=$CXXFLAGS
  5393. compiler=$CC
  5394. _LT_TAGVAR(compiler, $1)=$CC
  5395. _LT_CC_BASENAME([$compiler])
  5396. if test -n "$compiler"; then
  5397. # We don't want -fno-exception when compiling C++ code, so set the
  5398. # no_builtin_flag separately
  5399. if test "$GXX" = yes; then
  5400. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5401. else
  5402. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5403. fi
  5404. if test "$GXX" = yes; then
  5405. # Set up default GNU C++ configuration
  5406. LT_PATH_LD
  5407. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5408. # archiving commands below assume that GNU ld is being used.
  5409. if test "$with_gnu_ld" = yes; then
  5410. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5411. _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'
  5412. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5413. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5414. # If archive_cmds runs LD, not CC, wlarc should be empty
  5415. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5416. # investigate it a little bit more. (MM)
  5417. wlarc='${wl}'
  5418. # ancient GNU ld didn't support --whole-archive et. al.
  5419. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5420. $GREP 'no-whole-archive' > /dev/null; then
  5421. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5422. else
  5423. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5424. fi
  5425. else
  5426. with_gnu_ld=no
  5427. wlarc=
  5428. # A generic and very simple default shared library creation
  5429. # command for GNU C++ for the case where it uses the native
  5430. # linker, instead of GNU ld. If possible, this setting should
  5431. # overridden to take advantage of the native linker features on
  5432. # the platform it is being used on.
  5433. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5434. fi
  5435. # Commands to make compiler produce verbose output that lists
  5436. # what "hidden" libraries, object files and flags are used when
  5437. # linking a shared library.
  5438. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5439. else
  5440. GXX=no
  5441. with_gnu_ld=no
  5442. wlarc=
  5443. fi
  5444. # PORTME: fill in a description of your system's C++ link characteristics
  5445. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5446. _LT_TAGVAR(ld_shlibs, $1)=yes
  5447. case $host_os in
  5448. aix3*)
  5449. # FIXME: insert proper C++ library support
  5450. _LT_TAGVAR(ld_shlibs, $1)=no
  5451. ;;
  5452. aix[[4-9]]*)
  5453. if test "$host_cpu" = ia64; then
  5454. # On IA64, the linker does run time linking by default, so we don't
  5455. # have to do anything special.
  5456. aix_use_runtimelinking=no
  5457. exp_sym_flag='-Bexport'
  5458. no_entry_flag=""
  5459. else
  5460. aix_use_runtimelinking=no
  5461. # Test if we are trying to use run time linking or normal
  5462. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5463. # need to do runtime linking.
  5464. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5465. for ld_flag in $LDFLAGS; do
  5466. case $ld_flag in
  5467. *-brtl*)
  5468. aix_use_runtimelinking=yes
  5469. break
  5470. ;;
  5471. esac
  5472. done
  5473. ;;
  5474. esac
  5475. exp_sym_flag='-bexport'
  5476. no_entry_flag='-bnoentry'
  5477. fi
  5478. # When large executables or shared objects are built, AIX ld can
  5479. # have problems creating the table of contents. If linking a library
  5480. # or program results in "error TOC overflow" add -mminimal-toc to
  5481. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5482. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5483. _LT_TAGVAR(archive_cmds, $1)=''
  5484. _LT_TAGVAR(hardcode_direct, $1)=yes
  5485. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5486. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5487. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5488. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5489. if test "$GXX" = yes; then
  5490. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5491. # We only want to do this on AIX 4.2 and lower, the check
  5492. # below for broken collect2 doesn't work under 4.3+
  5493. collect2name=`${CC} -print-prog-name=collect2`
  5494. if test -f "$collect2name" &&
  5495. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5496. then
  5497. # We have reworked collect2
  5498. :
  5499. else
  5500. # We have old collect2
  5501. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5502. # It fails to find uninstalled libraries when the uninstalled
  5503. # path is not listed in the libpath. Setting hardcode_minus_L
  5504. # to unsupported forces relinking
  5505. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5506. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5507. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5508. fi
  5509. esac
  5510. shared_flag='-shared'
  5511. if test "$aix_use_runtimelinking" = yes; then
  5512. shared_flag="$shared_flag "'${wl}-G'
  5513. fi
  5514. else
  5515. # not using gcc
  5516. if test "$host_cpu" = ia64; then
  5517. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5518. # chokes on -Wl,-G. The following line is correct:
  5519. shared_flag='-G'
  5520. else
  5521. if test "$aix_use_runtimelinking" = yes; then
  5522. shared_flag='${wl}-G'
  5523. else
  5524. shared_flag='${wl}-bM:SRE'
  5525. fi
  5526. fi
  5527. fi
  5528. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5529. # It seems that -bexpall does not export symbols beginning with
  5530. # underscore (_), so it is better to generate a list of symbols to
  5531. # export.
  5532. _LT_TAGVAR(always_export_symbols, $1)=yes
  5533. if test "$aix_use_runtimelinking" = yes; then
  5534. # Warning - without using the other runtime loading flags (-brtl),
  5535. # -berok will link without error, but may produce a broken library.
  5536. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5537. # Determine the default libpath from the value encoded in an empty
  5538. # executable.
  5539. _LT_SYS_MODULE_PATH_AIX([$1])
  5540. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5541. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5542. else
  5543. if test "$host_cpu" = ia64; then
  5544. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5545. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5546. _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"
  5547. else
  5548. # Determine the default libpath from the value encoded in an
  5549. # empty executable.
  5550. _LT_SYS_MODULE_PATH_AIX([$1])
  5551. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5552. # Warning - without using the other run time loading flags,
  5553. # -berok will link without error, but may produce a broken library.
  5554. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5555. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5556. if test "$with_gnu_ld" = yes; then
  5557. # We only use this code for GNU lds that support --whole-archive.
  5558. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5559. else
  5560. # Exported symbols can be pulled into shared objects from archives
  5561. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5562. fi
  5563. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5564. # This is similar to how AIX traditionally builds its shared
  5565. # libraries.
  5566. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5567. fi
  5568. fi
  5569. ;;
  5570. beos*)
  5571. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5572. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5573. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5574. # support --undefined. This deserves some investigation. FIXME
  5575. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5576. else
  5577. _LT_TAGVAR(ld_shlibs, $1)=no
  5578. fi
  5579. ;;
  5580. chorus*)
  5581. case $cc_basename in
  5582. *)
  5583. # FIXME: insert proper C++ library support
  5584. _LT_TAGVAR(ld_shlibs, $1)=no
  5585. ;;
  5586. esac
  5587. ;;
  5588. cygwin* | mingw* | pw32* | cegcc*)
  5589. case $GXX,$cc_basename in
  5590. ,cl* | no,cl*)
  5591. # Native MSVC
  5592. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5593. # no search path for DLLs.
  5594. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5595. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5596. _LT_TAGVAR(always_export_symbols, $1)=yes
  5597. _LT_TAGVAR(file_list_spec, $1)='@'
  5598. # Tell ltmain to make .lib files, not .a files.
  5599. libext=lib
  5600. # Tell ltmain to make .dll files, not .so files.
  5601. shrext_cmds=".dll"
  5602. # FIXME: Setting linknames here is a bad hack.
  5603. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5604. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5605. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5606. else
  5607. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5608. fi~
  5609. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5610. linknames='
  5611. # The linker will not automatically build a static lib if we build a DLL.
  5612. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5613. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5614. # Don't use ranlib
  5615. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5616. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5617. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5618. case $lt_outputfile in
  5619. *.exe|*.EXE) ;;
  5620. *)
  5621. lt_outputfile="$lt_outputfile.exe"
  5622. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5623. ;;
  5624. esac~
  5625. func_to_tool_file "$lt_outputfile"~
  5626. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5627. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5628. $RM "$lt_outputfile.manifest";
  5629. fi'
  5630. ;;
  5631. *)
  5632. # g++
  5633. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5634. # as there is no search path for DLLs.
  5635. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5636. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5637. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5638. _LT_TAGVAR(always_export_symbols, $1)=no
  5639. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5640. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5641. _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'
  5642. # If the export-symbols file already is a .def file (1st line
  5643. # is EXPORTS), use it as is; otherwise, prepend...
  5644. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5645. cp $export_symbols $output_objdir/$soname.def;
  5646. else
  5647. echo EXPORTS > $output_objdir/$soname.def;
  5648. cat $export_symbols >> $output_objdir/$soname.def;
  5649. fi~
  5650. $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'
  5651. else
  5652. _LT_TAGVAR(ld_shlibs, $1)=no
  5653. fi
  5654. ;;
  5655. esac
  5656. ;;
  5657. darwin* | rhapsody*)
  5658. _LT_DARWIN_LINKER_FEATURES($1)
  5659. ;;
  5660. dgux*)
  5661. case $cc_basename in
  5662. ec++*)
  5663. # FIXME: insert proper C++ library support
  5664. _LT_TAGVAR(ld_shlibs, $1)=no
  5665. ;;
  5666. ghcx*)
  5667. # Green Hills C++ Compiler
  5668. # FIXME: insert proper C++ library support
  5669. _LT_TAGVAR(ld_shlibs, $1)=no
  5670. ;;
  5671. *)
  5672. # FIXME: insert proper C++ library support
  5673. _LT_TAGVAR(ld_shlibs, $1)=no
  5674. ;;
  5675. esac
  5676. ;;
  5677. freebsd2.*)
  5678. # C++ shared libraries reported to be fairly broken before
  5679. # switch to ELF
  5680. _LT_TAGVAR(ld_shlibs, $1)=no
  5681. ;;
  5682. freebsd-elf*)
  5683. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5684. ;;
  5685. freebsd* | dragonfly*)
  5686. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5687. # conventions
  5688. _LT_TAGVAR(ld_shlibs, $1)=yes
  5689. ;;
  5690. gnu*)
  5691. ;;
  5692. haiku*)
  5693. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5694. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5695. ;;
  5696. hpux9*)
  5697. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5698. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5699. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5700. _LT_TAGVAR(hardcode_direct, $1)=yes
  5701. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5702. # but as the default
  5703. # location of the library.
  5704. case $cc_basename in
  5705. CC*)
  5706. # FIXME: insert proper C++ library support
  5707. _LT_TAGVAR(ld_shlibs, $1)=no
  5708. ;;
  5709. aCC*)
  5710. _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5711. # Commands to make compiler produce verbose output that lists
  5712. # what "hidden" libraries, object files and flags are used when
  5713. # linking a shared library.
  5714. #
  5715. # There doesn't appear to be a way to prevent this compiler from
  5716. # explicitly linking system object files so we need to strip them
  5717. # from the output so that they don't get included in the library
  5718. # dependencies.
  5719. 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"'
  5720. ;;
  5721. *)
  5722. if test "$GXX" = yes; then
  5723. _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5724. else
  5725. # FIXME: insert proper C++ library support
  5726. _LT_TAGVAR(ld_shlibs, $1)=no
  5727. fi
  5728. ;;
  5729. esac
  5730. ;;
  5731. hpux10*|hpux11*)
  5732. if test $with_gnu_ld = no; then
  5733. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5734. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5735. case $host_cpu in
  5736. hppa*64*|ia64*)
  5737. ;;
  5738. *)
  5739. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5740. ;;
  5741. esac
  5742. fi
  5743. case $host_cpu in
  5744. hppa*64*|ia64*)
  5745. _LT_TAGVAR(hardcode_direct, $1)=no
  5746. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5747. ;;
  5748. *)
  5749. _LT_TAGVAR(hardcode_direct, $1)=yes
  5750. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5751. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5752. # but as the default
  5753. # location of the library.
  5754. ;;
  5755. esac
  5756. case $cc_basename in
  5757. CC*)
  5758. # FIXME: insert proper C++ library support
  5759. _LT_TAGVAR(ld_shlibs, $1)=no
  5760. ;;
  5761. aCC*)
  5762. case $host_cpu in
  5763. hppa*64*)
  5764. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5765. ;;
  5766. ia64*)
  5767. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5768. ;;
  5769. *)
  5770. _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'
  5771. ;;
  5772. esac
  5773. # Commands to make compiler produce verbose output that lists
  5774. # what "hidden" libraries, object files and flags are used when
  5775. # linking a shared library.
  5776. #
  5777. # There doesn't appear to be a way to prevent this compiler from
  5778. # explicitly linking system object files so we need to strip them
  5779. # from the output so that they don't get included in the library
  5780. # dependencies.
  5781. 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"'
  5782. ;;
  5783. *)
  5784. if test "$GXX" = yes; then
  5785. if test $with_gnu_ld = no; then
  5786. case $host_cpu in
  5787. hppa*64*)
  5788. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5789. ;;
  5790. ia64*)
  5791. _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'
  5792. ;;
  5793. *)
  5794. _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'
  5795. ;;
  5796. esac
  5797. fi
  5798. else
  5799. # FIXME: insert proper C++ library support
  5800. _LT_TAGVAR(ld_shlibs, $1)=no
  5801. fi
  5802. ;;
  5803. esac
  5804. ;;
  5805. interix[[3-9]]*)
  5806. _LT_TAGVAR(hardcode_direct, $1)=no
  5807. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5808. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5809. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5810. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5811. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5812. # default) and relocated if they conflict, which is a slow very memory
  5813. # consuming and fragmenting process. To avoid this, we pick a random,
  5814. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5815. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5816. _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'
  5817. _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'
  5818. ;;
  5819. irix5* | irix6*)
  5820. case $cc_basename in
  5821. CC*)
  5822. # SGI C++
  5823. _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'
  5824. # Archives containing C++ object files must be created using
  5825. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5826. # necessary to make sure instantiated templates are included
  5827. # in the archive.
  5828. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5829. ;;
  5830. *)
  5831. if test "$GXX" = yes; then
  5832. if test "$with_gnu_ld" = no; then
  5833. _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'
  5834. else
  5835. _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'
  5836. fi
  5837. fi
  5838. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5839. ;;
  5840. esac
  5841. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5842. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5843. _LT_TAGVAR(inherit_rpath, $1)=yes
  5844. ;;
  5845. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5846. case $cc_basename in
  5847. KCC*)
  5848. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5849. # KCC will only create a shared library if the output file
  5850. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5851. # to its proper name (with version) after linking.
  5852. _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'
  5853. _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'
  5854. # Commands to make compiler produce verbose output that lists
  5855. # what "hidden" libraries, object files and flags are used when
  5856. # linking a shared library.
  5857. #
  5858. # There doesn't appear to be a way to prevent this compiler from
  5859. # explicitly linking system object files so we need to strip them
  5860. # from the output so that they don't get included in the library
  5861. # dependencies.
  5862. 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"'
  5863. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5864. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5865. # Archives containing C++ object files must be created using
  5866. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5867. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5868. ;;
  5869. icpc* | ecpc* )
  5870. # Intel C++
  5871. with_gnu_ld=yes
  5872. # version 8.0 and above of icpc choke on multiply defined symbols
  5873. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5874. # earlier do not add the objects themselves.
  5875. case `$CC -V 2>&1` in
  5876. *"Version 7."*)
  5877. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5878. _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'
  5879. ;;
  5880. *) # Version 8.0 or newer
  5881. tmp_idyn=
  5882. case $host_cpu in
  5883. ia64*) tmp_idyn=' -i_dynamic';;
  5884. esac
  5885. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5886. _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'
  5887. ;;
  5888. esac
  5889. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5890. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5891. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5892. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5893. ;;
  5894. pgCC* | pgcpp*)
  5895. # Portland Group C++ compiler
  5896. case `$CC -V` in
  5897. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  5898. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5899. rm -rf $tpldir~
  5900. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5901. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  5902. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5903. rm -rf $tpldir~
  5904. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5905. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  5906. $RANLIB $oldlib'
  5907. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5908. rm -rf $tpldir~
  5909. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5910. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5911. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5912. rm -rf $tpldir~
  5913. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5914. $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'
  5915. ;;
  5916. *) # Version 6 and above use weak symbols
  5917. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5918. _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'
  5919. ;;
  5920. esac
  5921. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5922. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5923. _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'
  5924. ;;
  5925. cxx*)
  5926. # Compaq C++
  5927. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5928. _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'
  5929. runpath_var=LD_RUN_PATH
  5930. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5931. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5932. # Commands to make compiler produce verbose output that lists
  5933. # what "hidden" libraries, object files and flags are used when
  5934. # linking a shared library.
  5935. #
  5936. # There doesn't appear to be a way to prevent this compiler from
  5937. # explicitly linking system object files so we need to strip them
  5938. # from the output so that they don't get included in the library
  5939. # dependencies.
  5940. 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'
  5941. ;;
  5942. xl* | mpixl* | bgxl*)
  5943. # IBM XL 8.0 on PPC, with GNU ld
  5944. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5945. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5946. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5947. if test "x$supports_anon_versioning" = xyes; then
  5948. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5949. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5950. echo "local: *; };" >> $output_objdir/$libname.ver~
  5951. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5952. fi
  5953. ;;
  5954. *)
  5955. case `$CC -V 2>&1 | sed 5q` in
  5956. *Sun\ C*)
  5957. # Sun C++ 5.9
  5958. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5959. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5960. _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'
  5961. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5962. _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'
  5963. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5964. # Not sure whether something based on
  5965. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5966. # would be better.
  5967. output_verbose_link_cmd='func_echo_all'
  5968. # Archives containing C++ object files must be created using
  5969. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5970. # necessary to make sure instantiated templates are included
  5971. # in the archive.
  5972. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5973. ;;
  5974. esac
  5975. ;;
  5976. esac
  5977. ;;
  5978. lynxos*)
  5979. # FIXME: insert proper C++ library support
  5980. _LT_TAGVAR(ld_shlibs, $1)=no
  5981. ;;
  5982. m88k*)
  5983. # FIXME: insert proper C++ library support
  5984. _LT_TAGVAR(ld_shlibs, $1)=no
  5985. ;;
  5986. mvs*)
  5987. case $cc_basename in
  5988. cxx*)
  5989. # FIXME: insert proper C++ library support
  5990. _LT_TAGVAR(ld_shlibs, $1)=no
  5991. ;;
  5992. *)
  5993. # FIXME: insert proper C++ library support
  5994. _LT_TAGVAR(ld_shlibs, $1)=no
  5995. ;;
  5996. esac
  5997. ;;
  5998. netbsd*)
  5999. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6000. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6001. wlarc=
  6002. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6003. _LT_TAGVAR(hardcode_direct, $1)=yes
  6004. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6005. fi
  6006. # Workaround some broken pre-1.5 toolchains
  6007. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6008. ;;
  6009. *nto* | *qnx*)
  6010. _LT_TAGVAR(ld_shlibs, $1)=yes
  6011. ;;
  6012. openbsd2*)
  6013. # C++ shared libraries are fairly broken
  6014. _LT_TAGVAR(ld_shlibs, $1)=no
  6015. ;;
  6016. openbsd*)
  6017. if test -f /usr/libexec/ld.so; then
  6018. _LT_TAGVAR(hardcode_direct, $1)=yes
  6019. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6020. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6021. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6022. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6023. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6024. _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'
  6025. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6026. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6027. fi
  6028. output_verbose_link_cmd=func_echo_all
  6029. else
  6030. _LT_TAGVAR(ld_shlibs, $1)=no
  6031. fi
  6032. ;;
  6033. osf3* | osf4* | osf5*)
  6034. case $cc_basename in
  6035. KCC*)
  6036. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6037. # KCC will only create a shared library if the output file
  6038. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6039. # to its proper name (with version) after linking.
  6040. _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'
  6041. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6042. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6043. # Archives containing C++ object files must be created using
  6044. # the KAI C++ compiler.
  6045. case $host in
  6046. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6047. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6048. esac
  6049. ;;
  6050. RCC*)
  6051. # Rational C++ 2.4.1
  6052. # FIXME: insert proper C++ library support
  6053. _LT_TAGVAR(ld_shlibs, $1)=no
  6054. ;;
  6055. cxx*)
  6056. case $host in
  6057. osf3*)
  6058. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6059. _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'
  6060. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6061. ;;
  6062. *)
  6063. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6064. _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'
  6065. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6066. echo "-hidden">> $lib.exp~
  6067. $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~
  6068. $RM $lib.exp'
  6069. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6070. ;;
  6071. esac
  6072. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6073. # Commands to make compiler produce verbose output that lists
  6074. # what "hidden" libraries, object files and flags are used when
  6075. # linking a shared library.
  6076. #
  6077. # There doesn't appear to be a way to prevent this compiler from
  6078. # explicitly linking system object files so we need to strip them
  6079. # from the output so that they don't get included in the library
  6080. # dependencies.
  6081. 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"'
  6082. ;;
  6083. *)
  6084. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6085. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6086. case $host in
  6087. osf3*)
  6088. _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'
  6089. ;;
  6090. *)
  6091. _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'
  6092. ;;
  6093. esac
  6094. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6095. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6096. # Commands to make compiler produce verbose output that lists
  6097. # what "hidden" libraries, object files and flags are used when
  6098. # linking a shared library.
  6099. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6100. else
  6101. # FIXME: insert proper C++ library support
  6102. _LT_TAGVAR(ld_shlibs, $1)=no
  6103. fi
  6104. ;;
  6105. esac
  6106. ;;
  6107. psos*)
  6108. # FIXME: insert proper C++ library support
  6109. _LT_TAGVAR(ld_shlibs, $1)=no
  6110. ;;
  6111. sunos4*)
  6112. case $cc_basename in
  6113. CC*)
  6114. # Sun C++ 4.x
  6115. # FIXME: insert proper C++ library support
  6116. _LT_TAGVAR(ld_shlibs, $1)=no
  6117. ;;
  6118. lcc*)
  6119. # Lucid
  6120. # FIXME: insert proper C++ library support
  6121. _LT_TAGVAR(ld_shlibs, $1)=no
  6122. ;;
  6123. *)
  6124. # FIXME: insert proper C++ library support
  6125. _LT_TAGVAR(ld_shlibs, $1)=no
  6126. ;;
  6127. esac
  6128. ;;
  6129. solaris*)
  6130. case $cc_basename in
  6131. CC* | sunCC*)
  6132. # Sun C++ 4.2, 5.x and Centerline C++
  6133. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6134. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6135. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6136. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6137. $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'
  6138. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6139. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6140. case $host_os in
  6141. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6142. *)
  6143. # The compiler driver will combine and reorder linker options,
  6144. # but understands `-z linker_flag'.
  6145. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6146. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6147. ;;
  6148. esac
  6149. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6150. output_verbose_link_cmd='func_echo_all'
  6151. # Archives containing C++ object files must be created using
  6152. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6153. # necessary to make sure instantiated templates are included
  6154. # in the archive.
  6155. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6156. ;;
  6157. gcx*)
  6158. # Green Hills C++ Compiler
  6159. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6160. # The C++ compiler must be used to create the archive.
  6161. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6162. ;;
  6163. *)
  6164. # GNU C++ compiler with Solaris linker
  6165. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6166. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6167. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6168. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6169. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6170. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6171. # Commands to make compiler produce verbose output that lists
  6172. # what "hidden" libraries, object files and flags are used when
  6173. # linking a shared library.
  6174. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6175. else
  6176. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6177. # platform.
  6178. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6179. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6180. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6181. # Commands to make compiler produce verbose output that lists
  6182. # what "hidden" libraries, object files and flags are used when
  6183. # linking a shared library.
  6184. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6185. fi
  6186. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6187. case $host_os in
  6188. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6189. *)
  6190. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6191. ;;
  6192. esac
  6193. fi
  6194. ;;
  6195. esac
  6196. ;;
  6197. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6198. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6199. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6200. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6201. runpath_var='LD_RUN_PATH'
  6202. case $cc_basename in
  6203. CC*)
  6204. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6205. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6206. ;;
  6207. *)
  6208. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6209. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6210. ;;
  6211. esac
  6212. ;;
  6213. sysv5* | sco3.2v5* | sco5v6*)
  6214. # Note: We can NOT use -z defs as we might desire, because we do not
  6215. # link with -lc, and that would cause any symbols used from libc to
  6216. # always be unresolved, which means just about no library would
  6217. # ever link correctly. If we're not using GNU ld we use -z text
  6218. # though, which does catch some bad symbols but isn't as heavy-handed
  6219. # as -z defs.
  6220. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6221. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6222. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6223. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6224. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6225. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6226. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6227. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6228. runpath_var='LD_RUN_PATH'
  6229. case $cc_basename in
  6230. CC*)
  6231. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6232. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6233. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6234. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6235. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6236. '"$_LT_TAGVAR(reload_cmds, $1)"
  6237. ;;
  6238. *)
  6239. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6240. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6241. ;;
  6242. esac
  6243. ;;
  6244. tandem*)
  6245. case $cc_basename in
  6246. NCC*)
  6247. # NonStop-UX NCC 3.20
  6248. # FIXME: insert proper C++ library support
  6249. _LT_TAGVAR(ld_shlibs, $1)=no
  6250. ;;
  6251. *)
  6252. # FIXME: insert proper C++ library support
  6253. _LT_TAGVAR(ld_shlibs, $1)=no
  6254. ;;
  6255. esac
  6256. ;;
  6257. vxworks*)
  6258. # FIXME: insert proper C++ library support
  6259. _LT_TAGVAR(ld_shlibs, $1)=no
  6260. ;;
  6261. *)
  6262. # FIXME: insert proper C++ library support
  6263. _LT_TAGVAR(ld_shlibs, $1)=no
  6264. ;;
  6265. esac
  6266. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6267. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6268. _LT_TAGVAR(GCC, $1)="$GXX"
  6269. _LT_TAGVAR(LD, $1)="$LD"
  6270. ## CAVEAT EMPTOR:
  6271. ## There is no encapsulation within the following macros, do not change
  6272. ## the running order or otherwise move them around unless you know exactly
  6273. ## what you are doing...
  6274. _LT_SYS_HIDDEN_LIBDEPS($1)
  6275. _LT_COMPILER_PIC($1)
  6276. _LT_COMPILER_C_O($1)
  6277. _LT_COMPILER_FILE_LOCKS($1)
  6278. _LT_LINKER_SHLIBS($1)
  6279. _LT_SYS_DYNAMIC_LINKER($1)
  6280. _LT_LINKER_HARDCODE_LIBPATH($1)
  6281. _LT_CONFIG($1)
  6282. fi # test -n "$compiler"
  6283. CC=$lt_save_CC
  6284. CFLAGS=$lt_save_CFLAGS
  6285. LDCXX=$LD
  6286. LD=$lt_save_LD
  6287. GCC=$lt_save_GCC
  6288. with_gnu_ld=$lt_save_with_gnu_ld
  6289. lt_cv_path_LDCXX=$lt_cv_path_LD
  6290. lt_cv_path_LD=$lt_save_path_LD
  6291. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6292. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6293. fi # test "$_lt_caught_CXX_error" != yes
  6294. AC_LANG_POP
  6295. ])# _LT_LANG_CXX_CONFIG
  6296. # _LT_FUNC_STRIPNAME_CNF
  6297. # ----------------------
  6298. # func_stripname_cnf prefix suffix name
  6299. # strip PREFIX and SUFFIX off of NAME.
  6300. # PREFIX and SUFFIX must not contain globbing or regex special
  6301. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6302. # dot (in which case that matches only a dot).
  6303. #
  6304. # This function is identical to the (non-XSI) version of func_stripname,
  6305. # except this one can be used by m4 code that may be executed by configure,
  6306. # rather than the libtool script.
  6307. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6308. AC_REQUIRE([_LT_DECL_SED])
  6309. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6310. func_stripname_cnf ()
  6311. {
  6312. case ${2} in
  6313. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6314. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6315. esac
  6316. } # func_stripname_cnf
  6317. ])# _LT_FUNC_STRIPNAME_CNF
  6318. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6319. # ---------------------------------
  6320. # Figure out "hidden" library dependencies from verbose
  6321. # compiler output when linking a shared library.
  6322. # Parse the compiler output and extract the necessary
  6323. # objects, libraries and library flags.
  6324. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6325. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6326. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6327. # Dependencies to place before and after the object being linked:
  6328. _LT_TAGVAR(predep_objects, $1)=
  6329. _LT_TAGVAR(postdep_objects, $1)=
  6330. _LT_TAGVAR(predeps, $1)=
  6331. _LT_TAGVAR(postdeps, $1)=
  6332. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6333. dnl we can't use the lt_simple_compile_test_code here,
  6334. dnl because it contains code intended for an executable,
  6335. dnl not a library. It's possible we should let each
  6336. dnl tag define a new lt_????_link_test_code variable,
  6337. dnl but it's only used here...
  6338. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6339. int a;
  6340. void foo (void) { a = 0; }
  6341. _LT_EOF
  6342. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6343. class Foo
  6344. {
  6345. public:
  6346. Foo (void) { a = 0; }
  6347. private:
  6348. int a;
  6349. };
  6350. _LT_EOF
  6351. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6352. subroutine foo
  6353. implicit none
  6354. integer*4 a
  6355. a=0
  6356. return
  6357. end
  6358. _LT_EOF
  6359. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6360. subroutine foo
  6361. implicit none
  6362. integer a
  6363. a=0
  6364. return
  6365. end
  6366. _LT_EOF
  6367. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6368. public class foo {
  6369. private int a;
  6370. public void bar (void) {
  6371. a = 0;
  6372. }
  6373. };
  6374. _LT_EOF
  6375. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6376. package foo
  6377. func foo() {
  6378. }
  6379. _LT_EOF
  6380. ])
  6381. _lt_libdeps_save_CFLAGS=$CFLAGS
  6382. case "$CC $CFLAGS " in #(
  6383. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6384. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6385. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6386. esac
  6387. dnl Parse the compiler output and extract the necessary
  6388. dnl objects, libraries and library flags.
  6389. if AC_TRY_EVAL(ac_compile); then
  6390. # Parse the compiler output and extract the necessary
  6391. # objects, libraries and library flags.
  6392. # Sentinel used to keep track of whether or not we are before
  6393. # the conftest object file.
  6394. pre_test_object_deps_done=no
  6395. for p in `eval "$output_verbose_link_cmd"`; do
  6396. case ${prev}${p} in
  6397. -L* | -R* | -l*)
  6398. # Some compilers place space between "-{L,R}" and the path.
  6399. # Remove the space.
  6400. if test $p = "-L" ||
  6401. test $p = "-R"; then
  6402. prev=$p
  6403. continue
  6404. fi
  6405. # Expand the sysroot to ease extracting the directories later.
  6406. if test -z "$prev"; then
  6407. case $p in
  6408. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6409. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6410. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6411. esac
  6412. fi
  6413. case $p in
  6414. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6415. esac
  6416. if test "$pre_test_object_deps_done" = no; then
  6417. case ${prev} in
  6418. -L | -R)
  6419. # Internal compiler library paths should come after those
  6420. # provided the user. The postdeps already come after the
  6421. # user supplied libs so there is no need to process them.
  6422. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6423. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6424. else
  6425. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6426. fi
  6427. ;;
  6428. # The "-l" case would never come before the object being
  6429. # linked, so don't bother handling this case.
  6430. esac
  6431. else
  6432. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6433. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6434. else
  6435. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6436. fi
  6437. fi
  6438. prev=
  6439. ;;
  6440. *.lto.$objext) ;; # Ignore GCC LTO objects
  6441. *.$objext)
  6442. # This assumes that the test object file only shows up
  6443. # once in the compiler output.
  6444. if test "$p" = "conftest.$objext"; then
  6445. pre_test_object_deps_done=yes
  6446. continue
  6447. fi
  6448. if test "$pre_test_object_deps_done" = no; then
  6449. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6450. _LT_TAGVAR(predep_objects, $1)="$p"
  6451. else
  6452. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6453. fi
  6454. else
  6455. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6456. _LT_TAGVAR(postdep_objects, $1)="$p"
  6457. else
  6458. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6459. fi
  6460. fi
  6461. ;;
  6462. *) ;; # Ignore the rest.
  6463. esac
  6464. done
  6465. # Clean up.
  6466. rm -f a.out a.exe
  6467. else
  6468. echo "libtool.m4: error: problem compiling $1 test program"
  6469. fi
  6470. $RM -f confest.$objext
  6471. CFLAGS=$_lt_libdeps_save_CFLAGS
  6472. # PORTME: override above test on systems where it is broken
  6473. m4_if([$1], [CXX],
  6474. [case $host_os in
  6475. interix[[3-9]]*)
  6476. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6477. # hack all around it, let's just trust "g++" to DTRT.
  6478. _LT_TAGVAR(predep_objects,$1)=
  6479. _LT_TAGVAR(postdep_objects,$1)=
  6480. _LT_TAGVAR(postdeps,$1)=
  6481. ;;
  6482. linux*)
  6483. case `$CC -V 2>&1 | sed 5q` in
  6484. *Sun\ C*)
  6485. # Sun C++ 5.9
  6486. # The more standards-conforming stlport4 library is
  6487. # incompatible with the Cstd library. Avoid specifying
  6488. # it if it's in CXXFLAGS. Ignore libCrun as
  6489. # -library=stlport4 depends on it.
  6490. case " $CXX $CXXFLAGS " in
  6491. *" -library=stlport4 "*)
  6492. solaris_use_stlport4=yes
  6493. ;;
  6494. esac
  6495. if test "$solaris_use_stlport4" != yes; then
  6496. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6497. fi
  6498. ;;
  6499. esac
  6500. ;;
  6501. solaris*)
  6502. case $cc_basename in
  6503. CC* | sunCC*)
  6504. # The more standards-conforming stlport4 library is
  6505. # incompatible with the Cstd library. Avoid specifying
  6506. # it if it's in CXXFLAGS. Ignore libCrun as
  6507. # -library=stlport4 depends on it.
  6508. case " $CXX $CXXFLAGS " in
  6509. *" -library=stlport4 "*)
  6510. solaris_use_stlport4=yes
  6511. ;;
  6512. esac
  6513. # Adding this requires a known-good setup of shared libraries for
  6514. # Sun compiler versions before 5.6, else PIC objects from an old
  6515. # archive will be linked into the output, leading to subtle bugs.
  6516. if test "$solaris_use_stlport4" != yes; then
  6517. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6518. fi
  6519. ;;
  6520. esac
  6521. ;;
  6522. esac
  6523. ])
  6524. case " $_LT_TAGVAR(postdeps, $1) " in
  6525. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6526. esac
  6527. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6528. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6529. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6530. fi
  6531. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6532. [The directories searched by this compiler when creating a shared library])
  6533. _LT_TAGDECL([], [predep_objects], [1],
  6534. [Dependencies to place before and after the objects being linked to
  6535. create a shared library])
  6536. _LT_TAGDECL([], [postdep_objects], [1])
  6537. _LT_TAGDECL([], [predeps], [1])
  6538. _LT_TAGDECL([], [postdeps], [1])
  6539. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6540. [The library search path used internally by the compiler when linking
  6541. a shared library])
  6542. ])# _LT_SYS_HIDDEN_LIBDEPS
  6543. # _LT_LANG_F77_CONFIG([TAG])
  6544. # --------------------------
  6545. # Ensure that the configuration variables for a Fortran 77 compiler are
  6546. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6547. # to write the compiler configuration to `libtool'.
  6548. m4_defun([_LT_LANG_F77_CONFIG],
  6549. [AC_LANG_PUSH(Fortran 77)
  6550. if test -z "$F77" || test "X$F77" = "Xno"; then
  6551. _lt_disable_F77=yes
  6552. fi
  6553. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6554. _LT_TAGVAR(allow_undefined_flag, $1)=
  6555. _LT_TAGVAR(always_export_symbols, $1)=no
  6556. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6557. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6558. _LT_TAGVAR(hardcode_direct, $1)=no
  6559. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6560. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6561. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6562. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6563. _LT_TAGVAR(hardcode_automatic, $1)=no
  6564. _LT_TAGVAR(inherit_rpath, $1)=no
  6565. _LT_TAGVAR(module_cmds, $1)=
  6566. _LT_TAGVAR(module_expsym_cmds, $1)=
  6567. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6568. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6569. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6570. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6571. _LT_TAGVAR(no_undefined_flag, $1)=
  6572. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6573. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6574. # Source file extension for f77 test sources.
  6575. ac_ext=f
  6576. # Object file extension for compiled f77 test sources.
  6577. objext=o
  6578. _LT_TAGVAR(objext, $1)=$objext
  6579. # No sense in running all these tests if we already determined that
  6580. # the F77 compiler isn't working. Some variables (like enable_shared)
  6581. # are currently assumed to apply to all compilers on this platform,
  6582. # and will be corrupted by setting them based on a non-working compiler.
  6583. if test "$_lt_disable_F77" != yes; then
  6584. # Code to be used in simple compile tests
  6585. lt_simple_compile_test_code="\
  6586. subroutine t
  6587. return
  6588. end
  6589. "
  6590. # Code to be used in simple link tests
  6591. lt_simple_link_test_code="\
  6592. program t
  6593. end
  6594. "
  6595. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6596. _LT_TAG_COMPILER
  6597. # save warnings/boilerplate of simple test code
  6598. _LT_COMPILER_BOILERPLATE
  6599. _LT_LINKER_BOILERPLATE
  6600. # Allow CC to be a program name with arguments.
  6601. lt_save_CC="$CC"
  6602. lt_save_GCC=$GCC
  6603. lt_save_CFLAGS=$CFLAGS
  6604. CC=${F77-"f77"}
  6605. CFLAGS=$FFLAGS
  6606. compiler=$CC
  6607. _LT_TAGVAR(compiler, $1)=$CC
  6608. _LT_CC_BASENAME([$compiler])
  6609. GCC=$G77
  6610. if test -n "$compiler"; then
  6611. AC_MSG_CHECKING([if libtool supports shared libraries])
  6612. AC_MSG_RESULT([$can_build_shared])
  6613. AC_MSG_CHECKING([whether to build shared libraries])
  6614. test "$can_build_shared" = "no" && enable_shared=no
  6615. # On AIX, shared libraries and static libraries use the same namespace, and
  6616. # are all built from PIC.
  6617. case $host_os in
  6618. aix3*)
  6619. test "$enable_shared" = yes && enable_static=no
  6620. if test -n "$RANLIB"; then
  6621. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6622. postinstall_cmds='$RANLIB $lib'
  6623. fi
  6624. ;;
  6625. aix[[4-9]]*)
  6626. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6627. test "$enable_shared" = yes && enable_static=no
  6628. fi
  6629. ;;
  6630. esac
  6631. AC_MSG_RESULT([$enable_shared])
  6632. AC_MSG_CHECKING([whether to build static libraries])
  6633. # Make sure either enable_shared or enable_static is yes.
  6634. test "$enable_shared" = yes || enable_static=yes
  6635. AC_MSG_RESULT([$enable_static])
  6636. _LT_TAGVAR(GCC, $1)="$G77"
  6637. _LT_TAGVAR(LD, $1)="$LD"
  6638. ## CAVEAT EMPTOR:
  6639. ## There is no encapsulation within the following macros, do not change
  6640. ## the running order or otherwise move them around unless you know exactly
  6641. ## what you are doing...
  6642. _LT_COMPILER_PIC($1)
  6643. _LT_COMPILER_C_O($1)
  6644. _LT_COMPILER_FILE_LOCKS($1)
  6645. _LT_LINKER_SHLIBS($1)
  6646. _LT_SYS_DYNAMIC_LINKER($1)
  6647. _LT_LINKER_HARDCODE_LIBPATH($1)
  6648. _LT_CONFIG($1)
  6649. fi # test -n "$compiler"
  6650. GCC=$lt_save_GCC
  6651. CC="$lt_save_CC"
  6652. CFLAGS="$lt_save_CFLAGS"
  6653. fi # test "$_lt_disable_F77" != yes
  6654. AC_LANG_POP
  6655. ])# _LT_LANG_F77_CONFIG
  6656. # _LT_LANG_FC_CONFIG([TAG])
  6657. # -------------------------
  6658. # Ensure that the configuration variables for a Fortran compiler are
  6659. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6660. # to write the compiler configuration to `libtool'.
  6661. m4_defun([_LT_LANG_FC_CONFIG],
  6662. [AC_LANG_PUSH(Fortran)
  6663. if test -z "$FC" || test "X$FC" = "Xno"; then
  6664. _lt_disable_FC=yes
  6665. fi
  6666. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6667. _LT_TAGVAR(allow_undefined_flag, $1)=
  6668. _LT_TAGVAR(always_export_symbols, $1)=no
  6669. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6670. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6671. _LT_TAGVAR(hardcode_direct, $1)=no
  6672. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6673. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6674. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6675. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6676. _LT_TAGVAR(hardcode_automatic, $1)=no
  6677. _LT_TAGVAR(inherit_rpath, $1)=no
  6678. _LT_TAGVAR(module_cmds, $1)=
  6679. _LT_TAGVAR(module_expsym_cmds, $1)=
  6680. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6681. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6682. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6683. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6684. _LT_TAGVAR(no_undefined_flag, $1)=
  6685. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6686. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6687. # Source file extension for fc test sources.
  6688. ac_ext=${ac_fc_srcext-f}
  6689. # Object file extension for compiled fc test sources.
  6690. objext=o
  6691. _LT_TAGVAR(objext, $1)=$objext
  6692. # No sense in running all these tests if we already determined that
  6693. # the FC compiler isn't working. Some variables (like enable_shared)
  6694. # are currently assumed to apply to all compilers on this platform,
  6695. # and will be corrupted by setting them based on a non-working compiler.
  6696. if test "$_lt_disable_FC" != yes; then
  6697. # Code to be used in simple compile tests
  6698. lt_simple_compile_test_code="\
  6699. subroutine t
  6700. return
  6701. end
  6702. "
  6703. # Code to be used in simple link tests
  6704. lt_simple_link_test_code="\
  6705. program t
  6706. end
  6707. "
  6708. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6709. _LT_TAG_COMPILER
  6710. # save warnings/boilerplate of simple test code
  6711. _LT_COMPILER_BOILERPLATE
  6712. _LT_LINKER_BOILERPLATE
  6713. # Allow CC to be a program name with arguments.
  6714. lt_save_CC="$CC"
  6715. lt_save_GCC=$GCC
  6716. lt_save_CFLAGS=$CFLAGS
  6717. CC=${FC-"f95"}
  6718. CFLAGS=$FCFLAGS
  6719. compiler=$CC
  6720. GCC=$ac_cv_fc_compiler_gnu
  6721. _LT_TAGVAR(compiler, $1)=$CC
  6722. _LT_CC_BASENAME([$compiler])
  6723. if test -n "$compiler"; then
  6724. AC_MSG_CHECKING([if libtool supports shared libraries])
  6725. AC_MSG_RESULT([$can_build_shared])
  6726. AC_MSG_CHECKING([whether to build shared libraries])
  6727. test "$can_build_shared" = "no" && enable_shared=no
  6728. # On AIX, shared libraries and static libraries use the same namespace, and
  6729. # are all built from PIC.
  6730. case $host_os in
  6731. aix3*)
  6732. test "$enable_shared" = yes && enable_static=no
  6733. if test -n "$RANLIB"; then
  6734. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6735. postinstall_cmds='$RANLIB $lib'
  6736. fi
  6737. ;;
  6738. aix[[4-9]]*)
  6739. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6740. test "$enable_shared" = yes && enable_static=no
  6741. fi
  6742. ;;
  6743. esac
  6744. AC_MSG_RESULT([$enable_shared])
  6745. AC_MSG_CHECKING([whether to build static libraries])
  6746. # Make sure either enable_shared or enable_static is yes.
  6747. test "$enable_shared" = yes || enable_static=yes
  6748. AC_MSG_RESULT([$enable_static])
  6749. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6750. _LT_TAGVAR(LD, $1)="$LD"
  6751. ## CAVEAT EMPTOR:
  6752. ## There is no encapsulation within the following macros, do not change
  6753. ## the running order or otherwise move them around unless you know exactly
  6754. ## what you are doing...
  6755. _LT_SYS_HIDDEN_LIBDEPS($1)
  6756. _LT_COMPILER_PIC($1)
  6757. _LT_COMPILER_C_O($1)
  6758. _LT_COMPILER_FILE_LOCKS($1)
  6759. _LT_LINKER_SHLIBS($1)
  6760. _LT_SYS_DYNAMIC_LINKER($1)
  6761. _LT_LINKER_HARDCODE_LIBPATH($1)
  6762. _LT_CONFIG($1)
  6763. fi # test -n "$compiler"
  6764. GCC=$lt_save_GCC
  6765. CC=$lt_save_CC
  6766. CFLAGS=$lt_save_CFLAGS
  6767. fi # test "$_lt_disable_FC" != yes
  6768. AC_LANG_POP
  6769. ])# _LT_LANG_FC_CONFIG
  6770. # _LT_LANG_GCJ_CONFIG([TAG])
  6771. # --------------------------
  6772. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6773. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6774. # to write the compiler configuration to `libtool'.
  6775. m4_defun([_LT_LANG_GCJ_CONFIG],
  6776. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6777. AC_LANG_SAVE
  6778. # Source file extension for Java test sources.
  6779. ac_ext=java
  6780. # Object file extension for compiled Java test sources.
  6781. objext=o
  6782. _LT_TAGVAR(objext, $1)=$objext
  6783. # Code to be used in simple compile tests
  6784. lt_simple_compile_test_code="class foo {}"
  6785. # Code to be used in simple link tests
  6786. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6787. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6788. _LT_TAG_COMPILER
  6789. # save warnings/boilerplate of simple test code
  6790. _LT_COMPILER_BOILERPLATE
  6791. _LT_LINKER_BOILERPLATE
  6792. # Allow CC to be a program name with arguments.
  6793. lt_save_CC=$CC
  6794. lt_save_CFLAGS=$CFLAGS
  6795. lt_save_GCC=$GCC
  6796. GCC=yes
  6797. CC=${GCJ-"gcj"}
  6798. CFLAGS=$GCJFLAGS
  6799. compiler=$CC
  6800. _LT_TAGVAR(compiler, $1)=$CC
  6801. _LT_TAGVAR(LD, $1)="$LD"
  6802. _LT_CC_BASENAME([$compiler])
  6803. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6804. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6805. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6806. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6807. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6808. if test -n "$compiler"; then
  6809. _LT_COMPILER_NO_RTTI($1)
  6810. _LT_COMPILER_PIC($1)
  6811. _LT_COMPILER_C_O($1)
  6812. _LT_COMPILER_FILE_LOCKS($1)
  6813. _LT_LINKER_SHLIBS($1)
  6814. _LT_LINKER_HARDCODE_LIBPATH($1)
  6815. _LT_CONFIG($1)
  6816. fi
  6817. AC_LANG_RESTORE
  6818. GCC=$lt_save_GCC
  6819. CC=$lt_save_CC
  6820. CFLAGS=$lt_save_CFLAGS
  6821. ])# _LT_LANG_GCJ_CONFIG
  6822. # _LT_LANG_GO_CONFIG([TAG])
  6823. # --------------------------
  6824. # Ensure that the configuration variables for the GNU Go compiler
  6825. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6826. # to write the compiler configuration to `libtool'.
  6827. m4_defun([_LT_LANG_GO_CONFIG],
  6828. [AC_REQUIRE([LT_PROG_GO])dnl
  6829. AC_LANG_SAVE
  6830. # Source file extension for Go test sources.
  6831. ac_ext=go
  6832. # Object file extension for compiled Go test sources.
  6833. objext=o
  6834. _LT_TAGVAR(objext, $1)=$objext
  6835. # Code to be used in simple compile tests
  6836. lt_simple_compile_test_code="package main; func main() { }"
  6837. # Code to be used in simple link tests
  6838. lt_simple_link_test_code='package main; func main() { }'
  6839. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6840. _LT_TAG_COMPILER
  6841. # save warnings/boilerplate of simple test code
  6842. _LT_COMPILER_BOILERPLATE
  6843. _LT_LINKER_BOILERPLATE
  6844. # Allow CC to be a program name with arguments.
  6845. lt_save_CC=$CC
  6846. lt_save_CFLAGS=$CFLAGS
  6847. lt_save_GCC=$GCC
  6848. GCC=yes
  6849. CC=${GOC-"gccgo"}
  6850. CFLAGS=$GOFLAGS
  6851. compiler=$CC
  6852. _LT_TAGVAR(compiler, $1)=$CC
  6853. _LT_TAGVAR(LD, $1)="$LD"
  6854. _LT_CC_BASENAME([$compiler])
  6855. # Go did not exist at the time GCC didn't implicitly link libc in.
  6856. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6857. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6858. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6859. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6860. if test -n "$compiler"; then
  6861. _LT_COMPILER_NO_RTTI($1)
  6862. _LT_COMPILER_PIC($1)
  6863. _LT_COMPILER_C_O($1)
  6864. _LT_COMPILER_FILE_LOCKS($1)
  6865. _LT_LINKER_SHLIBS($1)
  6866. _LT_LINKER_HARDCODE_LIBPATH($1)
  6867. _LT_CONFIG($1)
  6868. fi
  6869. AC_LANG_RESTORE
  6870. GCC=$lt_save_GCC
  6871. CC=$lt_save_CC
  6872. CFLAGS=$lt_save_CFLAGS
  6873. ])# _LT_LANG_GO_CONFIG
  6874. # _LT_LANG_RC_CONFIG([TAG])
  6875. # -------------------------
  6876. # Ensure that the configuration variables for the Windows resource compiler
  6877. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6878. # to write the compiler configuration to `libtool'.
  6879. m4_defun([_LT_LANG_RC_CONFIG],
  6880. [AC_REQUIRE([LT_PROG_RC])dnl
  6881. AC_LANG_SAVE
  6882. # Source file extension for RC test sources.
  6883. ac_ext=rc
  6884. # Object file extension for compiled RC test sources.
  6885. objext=o
  6886. _LT_TAGVAR(objext, $1)=$objext
  6887. # Code to be used in simple compile tests
  6888. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6889. # Code to be used in simple link tests
  6890. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6891. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6892. _LT_TAG_COMPILER
  6893. # save warnings/boilerplate of simple test code
  6894. _LT_COMPILER_BOILERPLATE
  6895. _LT_LINKER_BOILERPLATE
  6896. # Allow CC to be a program name with arguments.
  6897. lt_save_CC="$CC"
  6898. lt_save_CFLAGS=$CFLAGS
  6899. lt_save_GCC=$GCC
  6900. GCC=
  6901. CC=${RC-"windres"}
  6902. CFLAGS=
  6903. compiler=$CC
  6904. _LT_TAGVAR(compiler, $1)=$CC
  6905. _LT_CC_BASENAME([$compiler])
  6906. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6907. if test -n "$compiler"; then
  6908. :
  6909. _LT_CONFIG($1)
  6910. fi
  6911. GCC=$lt_save_GCC
  6912. AC_LANG_RESTORE
  6913. CC=$lt_save_CC
  6914. CFLAGS=$lt_save_CFLAGS
  6915. ])# _LT_LANG_RC_CONFIG
  6916. # LT_PROG_GCJ
  6917. # -----------
  6918. AC_DEFUN([LT_PROG_GCJ],
  6919. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6920. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6921. [AC_CHECK_TOOL(GCJ, gcj,)
  6922. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6923. AC_SUBST(GCJFLAGS)])])[]dnl
  6924. ])
  6925. # Old name:
  6926. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6927. dnl aclocal-1.4 backwards compatibility:
  6928. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6929. # LT_PROG_GO
  6930. # ----------
  6931. AC_DEFUN([LT_PROG_GO],
  6932. [AC_CHECK_TOOL(GOC, gccgo,)
  6933. ])
  6934. # LT_PROG_RC
  6935. # ----------
  6936. AC_DEFUN([LT_PROG_RC],
  6937. [AC_CHECK_TOOL(RC, windres,)
  6938. ])
  6939. # Old name:
  6940. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6941. dnl aclocal-1.4 backwards compatibility:
  6942. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6943. # _LT_DECL_EGREP
  6944. # --------------
  6945. # If we don't have a new enough Autoconf to choose the best grep
  6946. # available, choose the one first in the user's PATH.
  6947. m4_defun([_LT_DECL_EGREP],
  6948. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6949. AC_REQUIRE([AC_PROG_FGREP])dnl
  6950. test -z "$GREP" && GREP=grep
  6951. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6952. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6953. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6954. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6955. AC_SUBST([GREP])
  6956. ])
  6957. # _LT_DECL_OBJDUMP
  6958. # --------------
  6959. # If we don't have a new enough Autoconf to choose the best objdump
  6960. # available, choose the one first in the user's PATH.
  6961. m4_defun([_LT_DECL_OBJDUMP],
  6962. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6963. test -z "$OBJDUMP" && OBJDUMP=objdump
  6964. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6965. AC_SUBST([OBJDUMP])
  6966. ])
  6967. # _LT_DECL_DLLTOOL
  6968. # ----------------
  6969. # Ensure DLLTOOL variable is set.
  6970. m4_defun([_LT_DECL_DLLTOOL],
  6971. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6972. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6973. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  6974. AC_SUBST([DLLTOOL])
  6975. ])
  6976. # _LT_DECL_SED
  6977. # ------------
  6978. # Check for a fully-functional sed program, that truncates
  6979. # as few characters as possible. Prefer GNU sed if found.
  6980. m4_defun([_LT_DECL_SED],
  6981. [AC_PROG_SED
  6982. test -z "$SED" && SED=sed
  6983. Xsed="$SED -e 1s/^X//"
  6984. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  6985. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  6986. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  6987. ])# _LT_DECL_SED
  6988. m4_ifndef([AC_PROG_SED], [
  6989. # NOTE: This macro has been submitted for inclusion into #
  6990. # GNU Autoconf as AC_PROG_SED. When it is available in #
  6991. # a released version of Autoconf we should remove this #
  6992. # macro and use it instead. #
  6993. m4_defun([AC_PROG_SED],
  6994. [AC_MSG_CHECKING([for a sed that does not truncate output])
  6995. AC_CACHE_VAL(lt_cv_path_SED,
  6996. [# Loop through the user's path and test for sed and gsed.
  6997. # Then use that list of sed's as ones to test for truncation.
  6998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6999. for as_dir in $PATH
  7000. do
  7001. IFS=$as_save_IFS
  7002. test -z "$as_dir" && as_dir=.
  7003. for lt_ac_prog in sed gsed; do
  7004. for ac_exec_ext in '' $ac_executable_extensions; do
  7005. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7006. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7007. fi
  7008. done
  7009. done
  7010. done
  7011. IFS=$as_save_IFS
  7012. lt_ac_max=0
  7013. lt_ac_count=0
  7014. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7015. # along with /bin/sed that truncates output.
  7016. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7017. test ! -f $lt_ac_sed && continue
  7018. cat /dev/null > conftest.in
  7019. lt_ac_count=0
  7020. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7021. # Check for GNU sed and select it if it is found.
  7022. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7023. lt_cv_path_SED=$lt_ac_sed
  7024. break
  7025. fi
  7026. while true; do
  7027. cat conftest.in conftest.in >conftest.tmp
  7028. mv conftest.tmp conftest.in
  7029. cp conftest.in conftest.nl
  7030. echo >>conftest.nl
  7031. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7032. cmp -s conftest.out conftest.nl || break
  7033. # 10000 chars as input seems more than enough
  7034. test $lt_ac_count -gt 10 && break
  7035. lt_ac_count=`expr $lt_ac_count + 1`
  7036. if test $lt_ac_count -gt $lt_ac_max; then
  7037. lt_ac_max=$lt_ac_count
  7038. lt_cv_path_SED=$lt_ac_sed
  7039. fi
  7040. done
  7041. done
  7042. ])
  7043. SED=$lt_cv_path_SED
  7044. AC_SUBST([SED])
  7045. AC_MSG_RESULT([$SED])
  7046. ])#AC_PROG_SED
  7047. ])#m4_ifndef
  7048. # Old name:
  7049. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7050. dnl aclocal-1.4 backwards compatibility:
  7051. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7052. # _LT_CHECK_SHELL_FEATURES
  7053. # ------------------------
  7054. # Find out whether the shell is Bourne or XSI compatible,
  7055. # or has some other useful features.
  7056. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7057. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7058. # Try some XSI features
  7059. xsi_shell=no
  7060. ( _lt_dummy="a/b/c"
  7061. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7062. = c,a/b,b/c, \
  7063. && eval 'test $(( 1 + 1 )) -eq 2 \
  7064. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7065. && xsi_shell=yes
  7066. AC_MSG_RESULT([$xsi_shell])
  7067. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7068. AC_MSG_CHECKING([whether the shell understands "+="])
  7069. lt_shell_append=no
  7070. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7071. >/dev/null 2>&1 \
  7072. && lt_shell_append=yes
  7073. AC_MSG_RESULT([$lt_shell_append])
  7074. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7075. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7076. lt_unset=unset
  7077. else
  7078. lt_unset=false
  7079. fi
  7080. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7081. # test EBCDIC or ASCII
  7082. case `echo X|tr X '\101'` in
  7083. A) # ASCII based system
  7084. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7085. lt_SP2NL='tr \040 \012'
  7086. lt_NL2SP='tr \015\012 \040\040'
  7087. ;;
  7088. *) # EBCDIC based system
  7089. lt_SP2NL='tr \100 \n'
  7090. lt_NL2SP='tr \r\n \100\100'
  7091. ;;
  7092. esac
  7093. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7094. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7095. ])# _LT_CHECK_SHELL_FEATURES
  7096. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  7097. # ------------------------------------------------------
  7098. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  7099. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  7100. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  7101. [dnl {
  7102. sed -e '/^$1 ()$/,/^} # $1 /c\
  7103. $1 ()\
  7104. {\
  7105. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  7106. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  7107. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7108. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7109. test 0 -eq $? || _lt_function_replace_fail=:
  7110. ])
  7111. # _LT_PROG_REPLACE_SHELLFNS
  7112. # -------------------------
  7113. # Replace existing portable implementations of several shell functions with
  7114. # equivalent extended shell implementations where those features are available..
  7115. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  7116. [if test x"$xsi_shell" = xyes; then
  7117. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  7118. case ${1} in
  7119. */*) func_dirname_result="${1%/*}${2}" ;;
  7120. * ) func_dirname_result="${3}" ;;
  7121. esac])
  7122. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  7123. func_basename_result="${1##*/}"])
  7124. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  7125. case ${1} in
  7126. */*) func_dirname_result="${1%/*}${2}" ;;
  7127. * ) func_dirname_result="${3}" ;;
  7128. esac
  7129. func_basename_result="${1##*/}"])
  7130. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  7131. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7132. # positional parameters, so assign one to ordinary parameter first.
  7133. func_stripname_result=${3}
  7134. func_stripname_result=${func_stripname_result#"${1}"}
  7135. func_stripname_result=${func_stripname_result%"${2}"}])
  7136. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  7137. func_split_long_opt_name=${1%%=*}
  7138. func_split_long_opt_arg=${1#*=}])
  7139. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  7140. func_split_short_opt_arg=${1#??}
  7141. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  7142. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7143. case ${1} in
  7144. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7145. *) func_lo2o_result=${1} ;;
  7146. esac])
  7147. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7148. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7149. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7150. fi
  7151. if test x"$lt_shell_append" = xyes; then
  7152. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7153. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7154. func_quote_for_eval "${2}"
  7155. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7156. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7157. # Save a `func_append' function call where possible by direct use of '+='
  7158. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7159. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7160. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7161. test 0 -eq $? || _lt_function_replace_fail=:
  7162. else
  7163. # Save a `func_append' function call even when '+=' is not available
  7164. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7165. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7166. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7167. test 0 -eq $? || _lt_function_replace_fail=:
  7168. fi
  7169. if test x"$_lt_function_replace_fail" = x":"; then
  7170. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7171. fi
  7172. ])
  7173. # _LT_PATH_CONVERSION_FUNCTIONS
  7174. # -----------------------------
  7175. # Determine which file name conversion functions should be used by
  7176. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7177. # for certain cross-compile configurations and native mingw.
  7178. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7179. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7180. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7181. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7182. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7183. [case $host in
  7184. *-*-mingw* )
  7185. case $build in
  7186. *-*-mingw* ) # actually msys
  7187. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7188. ;;
  7189. *-*-cygwin* )
  7190. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7191. ;;
  7192. * ) # otherwise, assume *nix
  7193. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7194. ;;
  7195. esac
  7196. ;;
  7197. *-*-cygwin* )
  7198. case $build in
  7199. *-*-mingw* ) # actually msys
  7200. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7201. ;;
  7202. *-*-cygwin* )
  7203. lt_cv_to_host_file_cmd=func_convert_file_noop
  7204. ;;
  7205. * ) # otherwise, assume *nix
  7206. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7207. ;;
  7208. esac
  7209. ;;
  7210. * ) # unhandled hosts (and "normal" native builds)
  7211. lt_cv_to_host_file_cmd=func_convert_file_noop
  7212. ;;
  7213. esac
  7214. ])
  7215. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7216. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7217. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7218. [0], [convert $build file names to $host format])dnl
  7219. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7220. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7221. [#assume ordinary cross tools, or native build.
  7222. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7223. case $host in
  7224. *-*-mingw* )
  7225. case $build in
  7226. *-*-mingw* ) # actually msys
  7227. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7228. ;;
  7229. esac
  7230. ;;
  7231. esac
  7232. ])
  7233. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7234. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7235. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7236. [0], [convert $build files to toolchain format])dnl
  7237. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7238. # Helper functions for option handling. -*- Autoconf -*-
  7239. #
  7240. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7241. # Inc.
  7242. # Written by Gary V. Vaughan, 2004
  7243. #
  7244. # This file is free software; the Free Software Foundation gives
  7245. # unlimited permission to copy and/or distribute it, with or without
  7246. # modifications, as long as this notice is preserved.
  7247. # serial 7 ltoptions.m4
  7248. # This is to help aclocal find these macros, as it can't see m4_define.
  7249. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7250. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7251. # ------------------------------------------
  7252. m4_define([_LT_MANGLE_OPTION],
  7253. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7254. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7255. # ---------------------------------------
  7256. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7257. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7258. # saved as a flag.
  7259. m4_define([_LT_SET_OPTION],
  7260. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7261. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7262. _LT_MANGLE_DEFUN([$1], [$2]),
  7263. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7264. ])
  7265. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7266. # ------------------------------------------------------------
  7267. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7268. m4_define([_LT_IF_OPTION],
  7269. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7270. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7271. # -------------------------------------------------------
  7272. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7273. # are set.
  7274. m4_define([_LT_UNLESS_OPTIONS],
  7275. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7276. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7277. [m4_define([$0_found])])])[]dnl
  7278. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7279. ])[]dnl
  7280. ])
  7281. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7282. # ----------------------------------------
  7283. # OPTION-LIST is a space-separated list of Libtool options associated
  7284. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7285. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7286. # the unknown option and exit.
  7287. m4_defun([_LT_SET_OPTIONS],
  7288. [# Set options
  7289. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7290. [_LT_SET_OPTION([$1], _LT_Option)])
  7291. m4_if([$1],[LT_INIT],[
  7292. dnl
  7293. dnl Simply set some default values (i.e off) if boolean options were not
  7294. dnl specified:
  7295. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7296. ])
  7297. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7298. ])
  7299. dnl
  7300. dnl If no reference was made to various pairs of opposing options, then
  7301. dnl we run the default mode handler for the pair. For example, if neither
  7302. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7303. dnl archives by default:
  7304. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7305. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7306. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7307. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7308. [_LT_ENABLE_FAST_INSTALL])
  7309. ])
  7310. ])# _LT_SET_OPTIONS
  7311. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7312. # -----------------------------------------
  7313. m4_define([_LT_MANGLE_DEFUN],
  7314. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7315. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7316. # -----------------------------------------------
  7317. m4_define([LT_OPTION_DEFINE],
  7318. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7319. ])# LT_OPTION_DEFINE
  7320. # dlopen
  7321. # ------
  7322. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7323. ])
  7324. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7325. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7326. AC_DIAGNOSE([obsolete],
  7327. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7328. put the `dlopen' option into LT_INIT's first parameter.])
  7329. ])
  7330. dnl aclocal-1.4 backwards compatibility:
  7331. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7332. # win32-dll
  7333. # ---------
  7334. # Declare package support for building win32 dll's.
  7335. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7336. [enable_win32_dll=yes
  7337. case $host in
  7338. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7339. AC_CHECK_TOOL(AS, as, false)
  7340. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7341. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7342. ;;
  7343. esac
  7344. test -z "$AS" && AS=as
  7345. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7346. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7347. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7348. test -z "$OBJDUMP" && OBJDUMP=objdump
  7349. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7350. ])# win32-dll
  7351. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7352. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7353. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7354. AC_DIAGNOSE([obsolete],
  7355. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7356. put the `win32-dll' option into LT_INIT's first parameter.])
  7357. ])
  7358. dnl aclocal-1.4 backwards compatibility:
  7359. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7360. # _LT_ENABLE_SHARED([DEFAULT])
  7361. # ----------------------------
  7362. # implement the --enable-shared flag, and supports the `shared' and
  7363. # `disable-shared' LT_INIT options.
  7364. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7365. m4_define([_LT_ENABLE_SHARED],
  7366. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7367. AC_ARG_ENABLE([shared],
  7368. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7369. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7370. [p=${PACKAGE-default}
  7371. case $enableval in
  7372. yes) enable_shared=yes ;;
  7373. no) enable_shared=no ;;
  7374. *)
  7375. enable_shared=no
  7376. # Look at the argument we got. We use all the common list separators.
  7377. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7378. for pkg in $enableval; do
  7379. IFS="$lt_save_ifs"
  7380. if test "X$pkg" = "X$p"; then
  7381. enable_shared=yes
  7382. fi
  7383. done
  7384. IFS="$lt_save_ifs"
  7385. ;;
  7386. esac],
  7387. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7388. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7389. [Whether or not to build shared libraries])
  7390. ])# _LT_ENABLE_SHARED
  7391. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7392. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7393. # Old names:
  7394. AC_DEFUN([AC_ENABLE_SHARED],
  7395. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7396. ])
  7397. AC_DEFUN([AC_DISABLE_SHARED],
  7398. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7399. ])
  7400. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7401. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7402. dnl aclocal-1.4 backwards compatibility:
  7403. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7404. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7405. # _LT_ENABLE_STATIC([DEFAULT])
  7406. # ----------------------------
  7407. # implement the --enable-static flag, and support the `static' and
  7408. # `disable-static' LT_INIT options.
  7409. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7410. m4_define([_LT_ENABLE_STATIC],
  7411. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7412. AC_ARG_ENABLE([static],
  7413. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7414. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7415. [p=${PACKAGE-default}
  7416. case $enableval in
  7417. yes) enable_static=yes ;;
  7418. no) enable_static=no ;;
  7419. *)
  7420. enable_static=no
  7421. # Look at the argument we got. We use all the common list separators.
  7422. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7423. for pkg in $enableval; do
  7424. IFS="$lt_save_ifs"
  7425. if test "X$pkg" = "X$p"; then
  7426. enable_static=yes
  7427. fi
  7428. done
  7429. IFS="$lt_save_ifs"
  7430. ;;
  7431. esac],
  7432. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7433. _LT_DECL([build_old_libs], [enable_static], [0],
  7434. [Whether or not to build static libraries])
  7435. ])# _LT_ENABLE_STATIC
  7436. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7437. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7438. # Old names:
  7439. AC_DEFUN([AC_ENABLE_STATIC],
  7440. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7441. ])
  7442. AC_DEFUN([AC_DISABLE_STATIC],
  7443. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7444. ])
  7445. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7446. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7447. dnl aclocal-1.4 backwards compatibility:
  7448. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7449. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7450. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7451. # ----------------------------------
  7452. # implement the --enable-fast-install flag, and support the `fast-install'
  7453. # and `disable-fast-install' LT_INIT options.
  7454. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7455. m4_define([_LT_ENABLE_FAST_INSTALL],
  7456. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7457. AC_ARG_ENABLE([fast-install],
  7458. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7459. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7460. [p=${PACKAGE-default}
  7461. case $enableval in
  7462. yes) enable_fast_install=yes ;;
  7463. no) enable_fast_install=no ;;
  7464. *)
  7465. enable_fast_install=no
  7466. # Look at the argument we got. We use all the common list separators.
  7467. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7468. for pkg in $enableval; do
  7469. IFS="$lt_save_ifs"
  7470. if test "X$pkg" = "X$p"; then
  7471. enable_fast_install=yes
  7472. fi
  7473. done
  7474. IFS="$lt_save_ifs"
  7475. ;;
  7476. esac],
  7477. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7478. _LT_DECL([fast_install], [enable_fast_install], [0],
  7479. [Whether or not to optimize for fast installation])dnl
  7480. ])# _LT_ENABLE_FAST_INSTALL
  7481. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7482. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7483. # Old names:
  7484. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7485. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7486. AC_DIAGNOSE([obsolete],
  7487. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7488. the `fast-install' option into LT_INIT's first parameter.])
  7489. ])
  7490. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7491. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7492. AC_DIAGNOSE([obsolete],
  7493. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7494. the `disable-fast-install' option into LT_INIT's first parameter.])
  7495. ])
  7496. dnl aclocal-1.4 backwards compatibility:
  7497. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7498. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7499. # _LT_WITH_PIC([MODE])
  7500. # --------------------
  7501. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7502. # LT_INIT options.
  7503. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7504. m4_define([_LT_WITH_PIC],
  7505. [AC_ARG_WITH([pic],
  7506. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7507. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7508. [lt_p=${PACKAGE-default}
  7509. case $withval in
  7510. yes|no) pic_mode=$withval ;;
  7511. *)
  7512. pic_mode=default
  7513. # Look at the argument we got. We use all the common list separators.
  7514. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7515. for lt_pkg in $withval; do
  7516. IFS="$lt_save_ifs"
  7517. if test "X$lt_pkg" = "X$lt_p"; then
  7518. pic_mode=yes
  7519. fi
  7520. done
  7521. IFS="$lt_save_ifs"
  7522. ;;
  7523. esac],
  7524. [pic_mode=default])
  7525. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7526. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7527. ])# _LT_WITH_PIC
  7528. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7529. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7530. # Old name:
  7531. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7532. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7533. AC_DIAGNOSE([obsolete],
  7534. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7535. put the `pic-only' option into LT_INIT's first parameter.])
  7536. ])
  7537. dnl aclocal-1.4 backwards compatibility:
  7538. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7539. m4_define([_LTDL_MODE], [])
  7540. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7541. [m4_define([_LTDL_MODE], [nonrecursive])])
  7542. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7543. [m4_define([_LTDL_MODE], [recursive])])
  7544. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7545. [m4_define([_LTDL_MODE], [subproject])])
  7546. m4_define([_LTDL_TYPE], [])
  7547. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7548. [m4_define([_LTDL_TYPE], [installable])])
  7549. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7550. [m4_define([_LTDL_TYPE], [convenience])])
  7551. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7552. #
  7553. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7554. # Written by Gary V. Vaughan, 2004
  7555. #
  7556. # This file is free software; the Free Software Foundation gives
  7557. # unlimited permission to copy and/or distribute it, with or without
  7558. # modifications, as long as this notice is preserved.
  7559. # serial 6 ltsugar.m4
  7560. # This is to help aclocal find these macros, as it can't see m4_define.
  7561. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7562. # lt_join(SEP, ARG1, [ARG2...])
  7563. # -----------------------------
  7564. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7565. # associated separator.
  7566. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7567. # versions in m4sugar had bugs.
  7568. m4_define([lt_join],
  7569. [m4_if([$#], [1], [],
  7570. [$#], [2], [[$2]],
  7571. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7572. m4_define([_lt_join],
  7573. [m4_if([$#$2], [2], [],
  7574. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7575. # lt_car(LIST)
  7576. # lt_cdr(LIST)
  7577. # ------------
  7578. # Manipulate m4 lists.
  7579. # These macros are necessary as long as will still need to support
  7580. # Autoconf-2.59 which quotes differently.
  7581. m4_define([lt_car], [[$1]])
  7582. m4_define([lt_cdr],
  7583. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7584. [$#], 1, [],
  7585. [m4_dquote(m4_shift($@))])])
  7586. m4_define([lt_unquote], $1)
  7587. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7588. # ------------------------------------------
  7589. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7590. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7591. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7592. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7593. # than defined and empty).
  7594. #
  7595. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7596. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7597. m4_define([lt_append],
  7598. [m4_define([$1],
  7599. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7600. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7601. # ----------------------------------------------------------
  7602. # Produce a SEP delimited list of all paired combinations of elements of
  7603. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7604. # has the form PREFIXmINFIXSUFFIXn.
  7605. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7606. m4_define([lt_combine],
  7607. [m4_if(m4_eval([$# > 3]), [1],
  7608. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7609. [[m4_foreach([_Lt_prefix], [$2],
  7610. [m4_foreach([_Lt_suffix],
  7611. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7612. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7613. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7614. # -----------------------------------------------------------------------
  7615. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7616. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7617. m4_define([lt_if_append_uniq],
  7618. [m4_ifdef([$1],
  7619. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7620. [lt_append([$1], [$2], [$3])$4],
  7621. [$5])],
  7622. [lt_append([$1], [$2], [$3])$4])])
  7623. # lt_dict_add(DICT, KEY, VALUE)
  7624. # -----------------------------
  7625. m4_define([lt_dict_add],
  7626. [m4_define([$1($2)], [$3])])
  7627. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7628. # --------------------------------------------
  7629. m4_define([lt_dict_add_subkey],
  7630. [m4_define([$1($2:$3)], [$4])])
  7631. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7632. # ----------------------------------
  7633. m4_define([lt_dict_fetch],
  7634. [m4_ifval([$3],
  7635. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7636. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7637. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7638. # -----------------------------------------------------------------
  7639. m4_define([lt_if_dict_fetch],
  7640. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7641. [$5],
  7642. [$6])])
  7643. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7644. # --------------------------------------------------------------
  7645. m4_define([lt_dict_filter],
  7646. [m4_if([$5], [], [],
  7647. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7648. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7649. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7650. ])
  7651. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7652. #
  7653. # Copyright (C) 2004 Free Software Foundation, Inc.
  7654. # Written by Scott James Remnant, 2004
  7655. #
  7656. # This file is free software; the Free Software Foundation gives
  7657. # unlimited permission to copy and/or distribute it, with or without
  7658. # modifications, as long as this notice is preserved.
  7659. # @configure_input@
  7660. # serial 3337 ltversion.m4
  7661. # This file is part of GNU Libtool
  7662. m4_define([LT_PACKAGE_VERSION], [2.4.2])
  7663. m4_define([LT_PACKAGE_REVISION], [1.3337])
  7664. AC_DEFUN([LTVERSION_VERSION],
  7665. [macro_version='2.4.2'
  7666. macro_revision='1.3337'
  7667. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7668. _LT_DECL(, macro_revision, 0)
  7669. ])
  7670. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7671. #
  7672. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  7673. # Written by Scott James Remnant, 2004.
  7674. #
  7675. # This file is free software; the Free Software Foundation gives
  7676. # unlimited permission to copy and/or distribute it, with or without
  7677. # modifications, as long as this notice is preserved.
  7678. # serial 5 lt~obsolete.m4
  7679. # These exist entirely to fool aclocal when bootstrapping libtool.
  7680. #
  7681. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7682. # which have later been changed to m4_define as they aren't part of the
  7683. # exported API, or moved to Autoconf or Automake where they belong.
  7684. #
  7685. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7686. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7687. # using a macro with the same name in our local m4/libtool.m4 it'll
  7688. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7689. # and doesn't know about Autoconf macros at all.)
  7690. #
  7691. # So we provide this file, which has a silly filename so it's always
  7692. # included after everything else. This provides aclocal with the
  7693. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7694. # because those macros already exist, or will be overwritten later.
  7695. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7696. #
  7697. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7698. # Yes, that means every name once taken will need to remain here until
  7699. # we give up compatibility with versions before 1.7, at which point
  7700. # we need to keep only those names which we still refer to.
  7701. # This is to help aclocal find these macros, as it can't see m4_define.
  7702. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7703. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7704. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7705. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7706. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7707. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7708. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7709. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7710. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7711. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7712. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7713. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7714. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7715. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7716. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7717. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7718. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7719. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7720. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7721. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7722. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7723. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7724. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7725. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7726. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7727. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7728. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7729. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7730. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7731. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7732. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7733. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7734. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7735. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7736. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7737. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7738. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7739. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7740. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7741. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7742. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7743. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7744. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7745. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7746. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7747. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7748. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7749. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7750. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7751. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7752. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7753. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7754. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7755. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7756. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7757. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7758. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7759. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7760. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7761. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7762. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7763. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7764. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7765. #
  7766. # This file is free software; the Free Software Foundation
  7767. # gives unlimited permission to copy and/or distribute it,
  7768. # with or without modifications, as long as this notice is preserved.
  7769. # AM_AUTOMAKE_VERSION(VERSION)
  7770. # ----------------------------
  7771. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7772. # generated from the m4 files accompanying Automake X.Y.
  7773. # (This private macro should not be called outside this file.)
  7774. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7775. [am__api_version='1.11'
  7776. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7777. dnl require some minimum version. Point them to the right macro.
  7778. m4_if([$1], [1.11.1], [],
  7779. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7780. ])
  7781. # _AM_AUTOCONF_VERSION(VERSION)
  7782. # -----------------------------
  7783. # aclocal traces this macro to find the Autoconf version.
  7784. # This is a private macro too. Using m4_define simplifies
  7785. # the logic in aclocal, which can simply ignore this definition.
  7786. m4_define([_AM_AUTOCONF_VERSION], [])
  7787. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7788. # -------------------------------
  7789. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7790. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7791. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7792. [AM_AUTOMAKE_VERSION([1.11.1])dnl
  7793. m4_ifndef([AC_AUTOCONF_VERSION],
  7794. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7795. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7796. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7797. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  7798. #
  7799. # This file is free software; the Free Software Foundation
  7800. # gives unlimited permission to copy and/or distribute it,
  7801. # with or without modifications, as long as this notice is preserved.
  7802. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7803. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  7804. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  7805. #
  7806. # Of course, Automake must honor this variable whenever it calls a
  7807. # tool from the auxiliary directory. The problem is that $srcdir (and
  7808. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7809. # depending on how configure is run. This is pretty annoying, since
  7810. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7811. # source directory, any form will work fine, but in subdirectories a
  7812. # relative path needs to be adjusted first.
  7813. #
  7814. # $ac_aux_dir/missing
  7815. # fails when called from a subdirectory if $ac_aux_dir is relative
  7816. # $top_srcdir/$ac_aux_dir/missing
  7817. # fails if $ac_aux_dir is absolute,
  7818. # fails when called from a subdirectory in a VPATH build with
  7819. # a relative $ac_aux_dir
  7820. #
  7821. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7822. # are both prefixed by $srcdir. In an in-source build this is usually
  7823. # harmless because $srcdir is `.', but things will broke when you
  7824. # start a VPATH build or use an absolute $srcdir.
  7825. #
  7826. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7827. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7828. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7829. # and then we would define $MISSING as
  7830. # MISSING="\${SHELL} $am_aux_dir/missing"
  7831. # This will work as long as MISSING is not called from configure, because
  7832. # unfortunately $(top_srcdir) has no meaning in configure.
  7833. # However there are other variables, like CC, which are often used in
  7834. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7835. #
  7836. # Another solution, used here, is to always expand $ac_aux_dir to an
  7837. # absolute PATH. The drawback is that using absolute paths prevent a
  7838. # configured tree to be moved without reconfiguration.
  7839. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7840. [dnl Rely on autoconf to set up CDPATH properly.
  7841. AC_PREREQ([2.50])dnl
  7842. # expand $ac_aux_dir to an absolute path
  7843. am_aux_dir=`cd $ac_aux_dir && pwd`
  7844. ])
  7845. # AM_CONDITIONAL -*- Autoconf -*-
  7846. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  7847. # Free Software Foundation, Inc.
  7848. #
  7849. # This file is free software; the Free Software Foundation
  7850. # gives unlimited permission to copy and/or distribute it,
  7851. # with or without modifications, as long as this notice is preserved.
  7852. # serial 9
  7853. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7854. # -------------------------------------
  7855. # Define a conditional.
  7856. AC_DEFUN([AM_CONDITIONAL],
  7857. [AC_PREREQ(2.52)dnl
  7858. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7859. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7860. AC_SUBST([$1_TRUE])dnl
  7861. AC_SUBST([$1_FALSE])dnl
  7862. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  7863. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  7864. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  7865. if $2; then
  7866. $1_TRUE=
  7867. $1_FALSE='#'
  7868. else
  7869. $1_TRUE='#'
  7870. $1_FALSE=
  7871. fi
  7872. AC_CONFIG_COMMANDS_PRE(
  7873. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  7874. AC_MSG_ERROR([[conditional "$1" was never defined.
  7875. Usually this means the macro was only invoked conditionally.]])
  7876. fi])])
  7877. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  7878. # Free Software Foundation, Inc.
  7879. #
  7880. # This file is free software; the Free Software Foundation
  7881. # gives unlimited permission to copy and/or distribute it,
  7882. # with or without modifications, as long as this notice is preserved.
  7883. # serial 10
  7884. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  7885. # written in clear, in which case automake, when reading aclocal.m4,
  7886. # will think it sees a *use*, and therefore will trigger all it's
  7887. # C support machinery. Also note that it means that autoscan, seeing
  7888. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  7889. # _AM_DEPENDENCIES(NAME)
  7890. # ----------------------
  7891. # See how the compiler implements dependency checking.
  7892. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  7893. # We try a few techniques and use that to set a single cache variable.
  7894. #
  7895. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  7896. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  7897. # dependency, and given that the user is not expected to run this macro,
  7898. # just rely on AC_PROG_CC.
  7899. AC_DEFUN([_AM_DEPENDENCIES],
  7900. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  7901. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  7902. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  7903. AC_REQUIRE([AM_DEP_TRACK])dnl
  7904. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  7905. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  7906. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  7907. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  7908. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  7909. [depcc="$$1" am_compiler_list=])
  7910. AC_CACHE_CHECK([dependency style of $depcc],
  7911. [am_cv_$1_dependencies_compiler_type],
  7912. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7913. # We make a subdir and do the tests there. Otherwise we can end up
  7914. # making bogus files that we don't know about and never remove. For
  7915. # instance it was reported that on HP-UX the gcc test will end up
  7916. # making a dummy file named `D' -- because `-MD' means `put the output
  7917. # in D'.
  7918. mkdir conftest.dir
  7919. # Copy depcomp to subdir because otherwise we won't find it if we're
  7920. # using a relative directory.
  7921. cp "$am_depcomp" conftest.dir
  7922. cd conftest.dir
  7923. # We will build objects and dependencies in a subdirectory because
  7924. # it helps to detect inapplicable dependency modes. For instance
  7925. # both Tru64's cc and ICC support -MD to output dependencies as a
  7926. # side effect of compilation, but ICC will put the dependencies in
  7927. # the current directory while Tru64 will put them in the object
  7928. # directory.
  7929. mkdir sub
  7930. am_cv_$1_dependencies_compiler_type=none
  7931. if test "$am_compiler_list" = ""; then
  7932. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  7933. fi
  7934. am__universal=false
  7935. m4_case([$1], [CC],
  7936. [case " $depcc " in #(
  7937. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7938. esac],
  7939. [CXX],
  7940. [case " $depcc " in #(
  7941. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7942. esac])
  7943. for depmode in $am_compiler_list; do
  7944. # Setup a source with many dependencies, because some compilers
  7945. # like to wrap large dependency lists on column 80 (with \), and
  7946. # we should not choose a depcomp mode which is confused by this.
  7947. #
  7948. # We need to recreate these files for each test, as the compiler may
  7949. # overwrite some of them when testing with obscure command lines.
  7950. # This happens at least with the AIX C compiler.
  7951. : > sub/conftest.c
  7952. for i in 1 2 3 4 5 6; do
  7953. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7954. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7955. # Solaris 8's {/usr,}/bin/sh.
  7956. touch sub/conftst$i.h
  7957. done
  7958. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7959. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7960. # mode. It turns out that the SunPro C++ compiler does not properly
  7961. # handle `-M -o', and we need to detect this. Also, some Intel
  7962. # versions had trouble with output in subdirs
  7963. am__obj=sub/conftest.${OBJEXT-o}
  7964. am__minus_obj="-o $am__obj"
  7965. case $depmode in
  7966. gcc)
  7967. # This depmode causes a compiler race in universal mode.
  7968. test "$am__universal" = false || continue
  7969. ;;
  7970. nosideeffect)
  7971. # after this tag, mechanisms are not by side-effect, so they'll
  7972. # only be used when explicitly requested
  7973. if test "x$enable_dependency_tracking" = xyes; then
  7974. continue
  7975. else
  7976. break
  7977. fi
  7978. ;;
  7979. msvisualcpp | msvcmsys)
  7980. # This compiler won't grok `-c -o', but also, the minuso test has
  7981. # not run yet. These depmodes are late enough in the game, and
  7982. # so weak that their functioning should not be impacted.
  7983. am__obj=conftest.${OBJEXT-o}
  7984. am__minus_obj=
  7985. ;;
  7986. none) break ;;
  7987. esac
  7988. if depmode=$depmode \
  7989. source=sub/conftest.c object=$am__obj \
  7990. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7991. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7992. >/dev/null 2>conftest.err &&
  7993. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7994. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7995. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7996. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7997. # icc doesn't choke on unknown options, it will just issue warnings
  7998. # or remarks (even with -Werror). So we grep stderr for any message
  7999. # that says an option was ignored or not supported.
  8000. # When given -MP, icc 7.0 and 7.1 complain thusly:
  8001. # icc: Command line warning: ignoring option '-M'; no argument required
  8002. # The diagnosis changed in icc 8.0:
  8003. # icc: Command line remark: option '-MP' not supported
  8004. if (grep 'ignoring option' conftest.err ||
  8005. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8006. am_cv_$1_dependencies_compiler_type=$depmode
  8007. break
  8008. fi
  8009. fi
  8010. done
  8011. cd ..
  8012. rm -rf conftest.dir
  8013. else
  8014. am_cv_$1_dependencies_compiler_type=none
  8015. fi
  8016. ])
  8017. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8018. AM_CONDITIONAL([am__fastdep$1], [
  8019. test "x$enable_dependency_tracking" != xno \
  8020. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8021. ])
  8022. # AM_SET_DEPDIR
  8023. # -------------
  8024. # Choose a directory name for dependency files.
  8025. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  8026. AC_DEFUN([AM_SET_DEPDIR],
  8027. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8028. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8029. ])
  8030. # AM_DEP_TRACK
  8031. # ------------
  8032. AC_DEFUN([AM_DEP_TRACK],
  8033. [AC_ARG_ENABLE(dependency-tracking,
  8034. [ --disable-dependency-tracking speeds up one-time build
  8035. --enable-dependency-tracking do not reject slow dependency extractors])
  8036. if test "x$enable_dependency_tracking" != xno; then
  8037. am_depcomp="$ac_aux_dir/depcomp"
  8038. AMDEPBACKSLASH='\'
  8039. fi
  8040. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8041. AC_SUBST([AMDEPBACKSLASH])dnl
  8042. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8043. ])
  8044. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8045. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  8046. # Free Software Foundation, Inc.
  8047. #
  8048. # This file is free software; the Free Software Foundation
  8049. # gives unlimited permission to copy and/or distribute it,
  8050. # with or without modifications, as long as this notice is preserved.
  8051. #serial 5
  8052. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8053. # ------------------------------
  8054. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8055. [{
  8056. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  8057. # are listed without --file. Let's play safe and only enable the eval
  8058. # if we detect the quoting.
  8059. case $CONFIG_FILES in
  8060. *\'*) eval set x "$CONFIG_FILES" ;;
  8061. *) set x $CONFIG_FILES ;;
  8062. esac
  8063. shift
  8064. for mf
  8065. do
  8066. # Strip MF so we end up with the name of the file.
  8067. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8068. # Check whether this is an Automake generated Makefile or not.
  8069. # We used to match only the files named `Makefile.in', but
  8070. # some people rename them; so instead we look at the file content.
  8071. # Grep'ing the first line is not enough: some people post-process
  8072. # each Makefile.in and add a new line on top of each file to say so.
  8073. # Grep'ing the whole file is not good either: AIX grep has a line
  8074. # limit of 2048, but all sed's we know have understand at least 4000.
  8075. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8076. dirpart=`AS_DIRNAME("$mf")`
  8077. else
  8078. continue
  8079. fi
  8080. # Extract the definition of DEPDIR, am__include, and am__quote
  8081. # from the Makefile without running `make'.
  8082. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8083. test -z "$DEPDIR" && continue
  8084. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8085. test -z "am__include" && continue
  8086. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8087. # When using ansi2knr, U may be empty or an underscore; expand it
  8088. U=`sed -n 's/^U = //p' < "$mf"`
  8089. # Find all dependency output files, they are included files with
  8090. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8091. # simplest approach to changing $(DEPDIR) to its actual value in the
  8092. # expansion.
  8093. for file in `sed -n "
  8094. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8095. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8096. # Make sure the directory exists.
  8097. test -f "$dirpart/$file" && continue
  8098. fdir=`AS_DIRNAME(["$file"])`
  8099. AS_MKDIR_P([$dirpart/$fdir])
  8100. # echo "creating $dirpart/$file"
  8101. echo '# dummy' > "$dirpart/$file"
  8102. done
  8103. done
  8104. }
  8105. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8106. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8107. # -----------------------------
  8108. # This macro should only be invoked once -- use via AC_REQUIRE.
  8109. #
  8110. # This code is only required when automatic dependency tracking
  8111. # is enabled. FIXME. This creates each `.P' file that we will
  8112. # need in order to bootstrap the dependency handling code.
  8113. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8114. [AC_CONFIG_COMMANDS([depfiles],
  8115. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8116. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8117. ])
  8118. # Do all the work for Automake. -*- Autoconf -*-
  8119. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8120. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  8121. #
  8122. # This file is free software; the Free Software Foundation
  8123. # gives unlimited permission to copy and/or distribute it,
  8124. # with or without modifications, as long as this notice is preserved.
  8125. # serial 16
  8126. # This macro actually does too much. Some checks are only needed if
  8127. # your package does certain things. But this isn't really a big deal.
  8128. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8129. # AM_INIT_AUTOMAKE([OPTIONS])
  8130. # -----------------------------------------------
  8131. # The call with PACKAGE and VERSION arguments is the old style
  8132. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8133. # and VERSION should now be passed to AC_INIT and removed from
  8134. # the call to AM_INIT_AUTOMAKE.
  8135. # We support both call styles for the transition. After
  8136. # the next Automake release, Autoconf can make the AC_INIT
  8137. # arguments mandatory, and then we can depend on a new Autoconf
  8138. # release and drop the old call support.
  8139. AC_DEFUN([AM_INIT_AUTOMAKE],
  8140. [AC_PREREQ([2.62])dnl
  8141. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8142. dnl the ones we care about.
  8143. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8144. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8145. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8146. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8147. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8148. # is not polluted with repeated "-I."
  8149. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8150. # test to see if srcdir already configured
  8151. if test -f $srcdir/config.status; then
  8152. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8153. fi
  8154. fi
  8155. # test whether we have cygpath
  8156. if test -z "$CYGPATH_W"; then
  8157. if (cygpath --version) >/dev/null 2>/dev/null; then
  8158. CYGPATH_W='cygpath -w'
  8159. else
  8160. CYGPATH_W=echo
  8161. fi
  8162. fi
  8163. AC_SUBST([CYGPATH_W])
  8164. # Define the identity of the package.
  8165. dnl Distinguish between old-style and new-style calls.
  8166. m4_ifval([$2],
  8167. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8168. AC_SUBST([PACKAGE], [$1])dnl
  8169. AC_SUBST([VERSION], [$2])],
  8170. [_AM_SET_OPTIONS([$1])dnl
  8171. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8172. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  8173. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8174. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8175. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8176. _AM_IF_OPTION([no-define],,
  8177. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8178. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8179. # Some tools Automake needs.
  8180. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8181. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8182. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8183. AM_MISSING_PROG(AUTOCONF, autoconf)
  8184. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8185. AM_MISSING_PROG(AUTOHEADER, autoheader)
  8186. AM_MISSING_PROG(MAKEINFO, makeinfo)
  8187. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8188. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8189. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8190. # We need awk for the "check" target. The system "awk" is bad on
  8191. # some platforms.
  8192. AC_REQUIRE([AC_PROG_AWK])dnl
  8193. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8194. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8195. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8196. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8197. [_AM_PROG_TAR([v7])])])
  8198. _AM_IF_OPTION([no-dependencies],,
  8199. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8200. [_AM_DEPENDENCIES(CC)],
  8201. [define([AC_PROG_CC],
  8202. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8203. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8204. [_AM_DEPENDENCIES(CXX)],
  8205. [define([AC_PROG_CXX],
  8206. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8207. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8208. [_AM_DEPENDENCIES(OBJC)],
  8209. [define([AC_PROG_OBJC],
  8210. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  8211. ])
  8212. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  8213. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  8214. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  8215. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8216. AC_CONFIG_COMMANDS_PRE(dnl
  8217. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8218. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8219. ])
  8220. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8221. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8222. dnl mangled by Autoconf and run in a shell conditional statement.
  8223. m4_define([_AC_COMPILER_EXEEXT],
  8224. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8225. # When config.status generates a header, we must update the stamp-h file.
  8226. # This file resides in the same directory as the config header
  8227. # that is generated. The stamp files are numbered to have different names.
  8228. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8229. # loop where config.status creates the headers, so we can generate
  8230. # our stamp files there.
  8231. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8232. [# Compute $1's index in $config_headers.
  8233. _am_arg=$1
  8234. _am_stamp_count=1
  8235. for _am_header in $config_headers :; do
  8236. case $_am_header in
  8237. $_am_arg | $_am_arg:* )
  8238. break ;;
  8239. * )
  8240. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8241. esac
  8242. done
  8243. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8244. # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  8245. #
  8246. # This file is free software; the Free Software Foundation
  8247. # gives unlimited permission to copy and/or distribute it,
  8248. # with or without modifications, as long as this notice is preserved.
  8249. # AM_PROG_INSTALL_SH
  8250. # ------------------
  8251. # Define $install_sh.
  8252. AC_DEFUN([AM_PROG_INSTALL_SH],
  8253. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8254. if test x"${install_sh}" != xset; then
  8255. case $am_aux_dir in
  8256. *\ * | *\ *)
  8257. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8258. *)
  8259. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8260. esac
  8261. fi
  8262. AC_SUBST(install_sh)])
  8263. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  8264. #
  8265. # This file is free software; the Free Software Foundation
  8266. # gives unlimited permission to copy and/or distribute it,
  8267. # with or without modifications, as long as this notice is preserved.
  8268. # serial 2
  8269. # Check whether the underlying file-system supports filenames
  8270. # with a leading dot. For instance MS-DOS doesn't.
  8271. AC_DEFUN([AM_SET_LEADING_DOT],
  8272. [rm -rf .tst 2>/dev/null
  8273. mkdir .tst 2>/dev/null
  8274. if test -d .tst; then
  8275. am__leading_dot=.
  8276. else
  8277. am__leading_dot=_
  8278. fi
  8279. rmdir .tst 2>/dev/null
  8280. AC_SUBST([am__leading_dot])])
  8281. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8282. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  8283. #
  8284. # This file is free software; the Free Software Foundation
  8285. # gives unlimited permission to copy and/or distribute it,
  8286. # with or without modifications, as long as this notice is preserved.
  8287. # serial 4
  8288. # AM_MAKE_INCLUDE()
  8289. # -----------------
  8290. # Check to see how make treats includes.
  8291. AC_DEFUN([AM_MAKE_INCLUDE],
  8292. [am_make=${MAKE-make}
  8293. cat > confinc << 'END'
  8294. am__doit:
  8295. @echo this is the am__doit target
  8296. .PHONY: am__doit
  8297. END
  8298. # If we don't find an include directive, just comment out the code.
  8299. AC_MSG_CHECKING([for style of include used by $am_make])
  8300. am__include="#"
  8301. am__quote=
  8302. _am_result=none
  8303. # First try GNU make style include.
  8304. echo "include confinc" > confmf
  8305. # Ignore all kinds of additional output from `make'.
  8306. case `$am_make -s -f confmf 2> /dev/null` in #(
  8307. *the\ am__doit\ target*)
  8308. am__include=include
  8309. am__quote=
  8310. _am_result=GNU
  8311. ;;
  8312. esac
  8313. # Now try BSD make style include.
  8314. if test "$am__include" = "#"; then
  8315. echo '.include "confinc"' > confmf
  8316. case `$am_make -s -f confmf 2> /dev/null` in #(
  8317. *the\ am__doit\ target*)
  8318. am__include=.include
  8319. am__quote="\""
  8320. _am_result=BSD
  8321. ;;
  8322. esac
  8323. fi
  8324. AC_SUBST([am__include])
  8325. AC_SUBST([am__quote])
  8326. AC_MSG_RESULT([$_am_result])
  8327. rm -f confinc confmf
  8328. ])
  8329. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8330. # Free Software Foundation, Inc.
  8331. #
  8332. # This file is free software; the Free Software Foundation
  8333. # gives unlimited permission to copy and/or distribute it,
  8334. # with or without modifications, as long as this notice is preserved.
  8335. # serial 6
  8336. # AM_PROG_CC_C_O
  8337. # --------------
  8338. # Like AC_PROG_CC_C_O, but changed for automake.
  8339. AC_DEFUN([AM_PROG_CC_C_O],
  8340. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  8341. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8342. AC_REQUIRE_AUX_FILE([compile])dnl
  8343. # FIXME: we rely on the cache variable name because
  8344. # there is no other way.
  8345. set dummy $CC
  8346. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  8347. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  8348. if test "$am_t" != yes; then
  8349. # Losing compiler, so override with the script.
  8350. # FIXME: It is wrong to rewrite CC.
  8351. # But if we don't then we get into trouble of one sort or another.
  8352. # A longer-term fix would be to have automake use am__CC in this case,
  8353. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  8354. CC="$am_aux_dir/compile $CC"
  8355. fi
  8356. dnl Make sure AC_PROG_CC is never called again, or it will override our
  8357. dnl setting of CC.
  8358. m4_define([AC_PROG_CC],
  8359. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  8360. ])
  8361. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8362. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8363. # Free Software Foundation, Inc.
  8364. #
  8365. # This file is free software; the Free Software Foundation
  8366. # gives unlimited permission to copy and/or distribute it,
  8367. # with or without modifications, as long as this notice is preserved.
  8368. # serial 6
  8369. # AM_MISSING_PROG(NAME, PROGRAM)
  8370. # ------------------------------
  8371. AC_DEFUN([AM_MISSING_PROG],
  8372. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8373. $1=${$1-"${am_missing_run}$2"}
  8374. AC_SUBST($1)])
  8375. # AM_MISSING_HAS_RUN
  8376. # ------------------
  8377. # Define MISSING if not defined so far and test if it supports --run.
  8378. # If it does, set am_missing_run to use it, otherwise, to nothing.
  8379. AC_DEFUN([AM_MISSING_HAS_RUN],
  8380. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8381. AC_REQUIRE_AUX_FILE([missing])dnl
  8382. if test x"${MISSING+set}" != xset; then
  8383. case $am_aux_dir in
  8384. *\ * | *\ *)
  8385. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8386. *)
  8387. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8388. esac
  8389. fi
  8390. # Use eval to expand $SHELL
  8391. if eval "$MISSING --run true"; then
  8392. am_missing_run="$MISSING --run "
  8393. else
  8394. am_missing_run=
  8395. AC_MSG_WARN([`missing' script is too old or missing])
  8396. fi
  8397. ])
  8398. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8399. #
  8400. # This file is free software; the Free Software Foundation
  8401. # gives unlimited permission to copy and/or distribute it,
  8402. # with or without modifications, as long as this notice is preserved.
  8403. # AM_PROG_MKDIR_P
  8404. # ---------------
  8405. # Check for `mkdir -p'.
  8406. AC_DEFUN([AM_PROG_MKDIR_P],
  8407. [AC_PREREQ([2.60])dnl
  8408. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8409. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  8410. dnl while keeping a definition of mkdir_p for backward compatibility.
  8411. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  8412. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  8413. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  8414. dnl adjustment using top_builddir (which is defined more often than
  8415. dnl MKDIR_P).
  8416. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  8417. case $mkdir_p in
  8418. [[\\/$]]* | ?:[[\\/]]*) ;;
  8419. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8420. esac
  8421. ])
  8422. # Helper functions for option handling. -*- Autoconf -*-
  8423. # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  8424. #
  8425. # This file is free software; the Free Software Foundation
  8426. # gives unlimited permission to copy and/or distribute it,
  8427. # with or without modifications, as long as this notice is preserved.
  8428. # serial 4
  8429. # _AM_MANGLE_OPTION(NAME)
  8430. # -----------------------
  8431. AC_DEFUN([_AM_MANGLE_OPTION],
  8432. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8433. # _AM_SET_OPTION(NAME)
  8434. # ------------------------------
  8435. # Set option NAME. Presently that only means defining a flag for this option.
  8436. AC_DEFUN([_AM_SET_OPTION],
  8437. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  8438. # _AM_SET_OPTIONS(OPTIONS)
  8439. # ----------------------------------
  8440. # OPTIONS is a space-separated list of Automake options.
  8441. AC_DEFUN([_AM_SET_OPTIONS],
  8442. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8443. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8444. # -------------------------------------------
  8445. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8446. AC_DEFUN([_AM_IF_OPTION],
  8447. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8448. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8449. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  8450. # Free Software Foundation, Inc.
  8451. #
  8452. # This file is free software; the Free Software Foundation
  8453. # gives unlimited permission to copy and/or distribute it,
  8454. # with or without modifications, as long as this notice is preserved.
  8455. # serial 5
  8456. # AM_SANITY_CHECK
  8457. # ---------------
  8458. AC_DEFUN([AM_SANITY_CHECK],
  8459. [AC_MSG_CHECKING([whether build environment is sane])
  8460. # Just in case
  8461. sleep 1
  8462. echo timestamp > conftest.file
  8463. # Reject unsafe characters in $srcdir or the absolute working directory
  8464. # name. Accept space and tab only in the latter.
  8465. am_lf='
  8466. '
  8467. case `pwd` in
  8468. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8469. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8470. esac
  8471. case $srcdir in
  8472. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8473. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  8474. esac
  8475. # Do `set' in a subshell so we don't clobber the current shell's
  8476. # arguments. Must try -L first in case configure is actually a
  8477. # symlink; some systems play weird games with the mod time of symlinks
  8478. # (eg FreeBSD returns the mod time of the symlink's containing
  8479. # directory).
  8480. if (
  8481. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8482. if test "$[*]" = "X"; then
  8483. # -L didn't work.
  8484. set X `ls -t "$srcdir/configure" conftest.file`
  8485. fi
  8486. rm -f conftest.file
  8487. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8488. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8489. # If neither matched, then we have a broken ls. This can happen
  8490. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8491. # broken ls alias from the environment. This has actually
  8492. # happened. Such a system could not be considered "sane".
  8493. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8494. alias in your environment])
  8495. fi
  8496. test "$[2]" = conftest.file
  8497. )
  8498. then
  8499. # Ok.
  8500. :
  8501. else
  8502. AC_MSG_ERROR([newly created file is older than distributed files!
  8503. Check your system clock])
  8504. fi
  8505. AC_MSG_RESULT(yes)])
  8506. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  8507. #
  8508. # This file is free software; the Free Software Foundation
  8509. # gives unlimited permission to copy and/or distribute it,
  8510. # with or without modifications, as long as this notice is preserved.
  8511. # AM_PROG_INSTALL_STRIP
  8512. # ---------------------
  8513. # One issue with vendor `install' (even GNU) is that you can't
  8514. # specify the program used to strip binaries. This is especially
  8515. # annoying in cross-compiling environments, where the build's strip
  8516. # is unlikely to handle the host's binaries.
  8517. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8518. # always use install-sh in `make install-strip', and initialize
  8519. # STRIPPROG with the value of the STRIP variable (set by the user).
  8520. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8521. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8522. # Installed binaries are usually stripped using `strip' when the user
  8523. # run `make install-strip'. However `strip' might not be the right
  8524. # tool to use in cross-compilation environments, therefore Automake
  8525. # will honor the `STRIP' environment variable to overrule this program.
  8526. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  8527. if test "$cross_compiling" != no; then
  8528. AC_CHECK_TOOL([STRIP], [strip], :)
  8529. fi
  8530. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8531. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8532. # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  8533. #
  8534. # This file is free software; the Free Software Foundation
  8535. # gives unlimited permission to copy and/or distribute it,
  8536. # with or without modifications, as long as this notice is preserved.
  8537. # serial 2
  8538. # _AM_SUBST_NOTMAKE(VARIABLE)
  8539. # ---------------------------
  8540. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8541. # This macro is traced by Automake.
  8542. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8543. # AM_SUBST_NOTMAKE(VARIABLE)
  8544. # ---------------------------
  8545. # Public sister of _AM_SUBST_NOTMAKE.
  8546. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8547. # Check how to create a tarball. -*- Autoconf -*-
  8548. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  8549. #
  8550. # This file is free software; the Free Software Foundation
  8551. # gives unlimited permission to copy and/or distribute it,
  8552. # with or without modifications, as long as this notice is preserved.
  8553. # serial 2
  8554. # _AM_PROG_TAR(FORMAT)
  8555. # --------------------
  8556. # Check how to create a tarball in format FORMAT.
  8557. # FORMAT should be one of `v7', `ustar', or `pax'.
  8558. #
  8559. # Substitute a variable $(am__tar) that is a command
  8560. # writing to stdout a FORMAT-tarball containing the directory
  8561. # $tardir.
  8562. # tardir=directory && $(am__tar) > result.tar
  8563. #
  8564. # Substitute a variable $(am__untar) that extract such
  8565. # a tarball read from stdin.
  8566. # $(am__untar) < result.tar
  8567. AC_DEFUN([_AM_PROG_TAR],
  8568. [# Always define AMTAR for backward compatibility.
  8569. AM_MISSING_PROG([AMTAR], [tar])
  8570. m4_if([$1], [v7],
  8571. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  8572. [m4_case([$1], [ustar],, [pax],,
  8573. [m4_fatal([Unknown tar format])])
  8574. AC_MSG_CHECKING([how to create a $1 tar archive])
  8575. # Loop over all known methods to create a tar archive until one works.
  8576. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8577. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8578. # Do not fold the above two line into one, because Tru64 sh and
  8579. # Solaris sh will not grok spaces in the rhs of `-'.
  8580. for _am_tool in $_am_tools
  8581. do
  8582. case $_am_tool in
  8583. gnutar)
  8584. for _am_tar in tar gnutar gtar;
  8585. do
  8586. AM_RUN_LOG([$_am_tar --version]) && break
  8587. done
  8588. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8589. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8590. am__untar="$_am_tar -xf -"
  8591. ;;
  8592. plaintar)
  8593. # Must skip GNU tar: if it does not support --format= it doesn't create
  8594. # ustar tarball either.
  8595. (tar --version) >/dev/null 2>&1 && continue
  8596. am__tar='tar chf - "$$tardir"'
  8597. am__tar_='tar chf - "$tardir"'
  8598. am__untar='tar xf -'
  8599. ;;
  8600. pax)
  8601. am__tar='pax -L -x $1 -w "$$tardir"'
  8602. am__tar_='pax -L -x $1 -w "$tardir"'
  8603. am__untar='pax -r'
  8604. ;;
  8605. cpio)
  8606. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8607. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8608. am__untar='cpio -i -H $1 -d'
  8609. ;;
  8610. none)
  8611. am__tar=false
  8612. am__tar_=false
  8613. am__untar=false
  8614. ;;
  8615. esac
  8616. # If the value was cached, stop now. We just wanted to have am__tar
  8617. # and am__untar set.
  8618. test -n "${am_cv_prog_tar_$1}" && break
  8619. # tar/untar a dummy directory, and stop if the command works
  8620. rm -rf conftest.dir
  8621. mkdir conftest.dir
  8622. echo GrepMe > conftest.dir/file
  8623. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8624. rm -rf conftest.dir
  8625. if test -s conftest.tar; then
  8626. AM_RUN_LOG([$am__untar <conftest.tar])
  8627. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8628. fi
  8629. done
  8630. rm -rf conftest.dir
  8631. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8632. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8633. AC_SUBST([am__tar])
  8634. AC_SUBST([am__untar])
  8635. ]) # _AM_PROG_TAR