aclocal.m4 338 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634
  1. # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
  4. # Inc.
  5. # This file is free software; the Free Software Foundation
  6. # gives unlimited permission to copy and/or distribute it,
  7. # with or without modifications, as long as this notice is preserved.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  10. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  11. # PARTICULAR PURPOSE.
  12. m4_ifndef([AC_AUTOCONF_VERSION],
  13. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  14. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
  15. [m4_warning([this file was generated for autoconf 2.68.
  16. You have another version of autoconf. It may work, but is not guaranteed to.
  17. If you have problems, you may need to regenerate the build system entirely.
  18. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  19. # codeset.m4 serial 4 (gettext-0.18)
  20. dnl Copyright (C) 2000-2002, 2006, 2008-2010 Free Software Foundation, Inc.
  21. dnl This file is free software; the Free Software Foundation
  22. dnl gives unlimited permission to copy and/or distribute it,
  23. dnl with or without modifications, as long as this notice is preserved.
  24. dnl From Bruno Haible.
  25. AC_DEFUN([AM_LANGINFO_CODESET],
  26. [
  27. AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
  28. [AC_TRY_LINK([#include <langinfo.h>],
  29. [char* cs = nl_langinfo(CODESET); return !cs;],
  30. [am_cv_langinfo_codeset=yes],
  31. [am_cv_langinfo_codeset=no])
  32. ])
  33. if test $am_cv_langinfo_codeset = yes; then
  34. AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
  35. [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
  36. fi
  37. ])
  38. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  39. #
  40. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  41. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  42. # Foundation, Inc.
  43. # Written by Gordon Matzigkeit, 1996
  44. #
  45. # This file is free software; the Free Software Foundation gives
  46. # unlimited permission to copy and/or distribute it, with or without
  47. # modifications, as long as this notice is preserved.
  48. m4_define([_LT_COPYING], [dnl
  49. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  50. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  51. # Foundation, Inc.
  52. # Written by Gordon Matzigkeit, 1996
  53. #
  54. # This file is part of GNU Libtool.
  55. #
  56. # GNU Libtool is free software; you can redistribute it and/or
  57. # modify it under the terms of the GNU General Public License as
  58. # published by the Free Software Foundation; either version 2 of
  59. # the License, or (at your option) any later version.
  60. #
  61. # As a special exception to the GNU General Public License,
  62. # if you distribute this file as part of a program or library that
  63. # is built using GNU Libtool, you may include this file under the
  64. # same distribution terms that you use for the rest of that program.
  65. #
  66. # GNU Libtool is distributed in the hope that it will be useful,
  67. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  68. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  69. # GNU General Public License for more details.
  70. #
  71. # You should have received a copy of the GNU General Public License
  72. # along with GNU Libtool; see the file COPYING. If not, a copy
  73. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  74. # obtained by writing to the Free Software Foundation, Inc.,
  75. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  76. ])
  77. # serial 57 LT_INIT
  78. # LT_PREREQ(VERSION)
  79. # ------------------
  80. # Complain and exit if this libtool version is less that VERSION.
  81. m4_defun([LT_PREREQ],
  82. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  83. [m4_default([$3],
  84. [m4_fatal([Libtool version $1 or higher is required],
  85. 63)])],
  86. [$2])])
  87. # _LT_CHECK_BUILDDIR
  88. # ------------------
  89. # Complain if the absolute build directory name contains unusual characters
  90. m4_defun([_LT_CHECK_BUILDDIR],
  91. [case `pwd` in
  92. *\ * | *\ *)
  93. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  94. esac
  95. ])
  96. # LT_INIT([OPTIONS])
  97. # ------------------
  98. AC_DEFUN([LT_INIT],
  99. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  100. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  101. AC_BEFORE([$0], [LT_LANG])dnl
  102. AC_BEFORE([$0], [LT_OUTPUT])dnl
  103. AC_BEFORE([$0], [LTDL_INIT])dnl
  104. m4_require([_LT_CHECK_BUILDDIR])dnl
  105. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  106. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  107. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  108. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  109. dnl unless we require an AC_DEFUNed macro:
  110. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  111. AC_REQUIRE([LTSUGAR_VERSION])dnl
  112. AC_REQUIRE([LTVERSION_VERSION])dnl
  113. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  114. m4_require([_LT_PROG_LTMAIN])dnl
  115. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  116. dnl Parse OPTIONS
  117. _LT_SET_OPTIONS([$0], [$1])
  118. # This can be used to rebuild libtool when needed
  119. LIBTOOL_DEPS="$ltmain"
  120. # Always use our own libtool.
  121. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  122. AC_SUBST(LIBTOOL)dnl
  123. _LT_SETUP
  124. # Only expand once:
  125. m4_define([LT_INIT])
  126. ])# LT_INIT
  127. # Old names:
  128. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  129. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  130. dnl aclocal-1.4 backwards compatibility:
  131. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  132. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  133. # _LT_CC_BASENAME(CC)
  134. # -------------------
  135. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  136. m4_defun([_LT_CC_BASENAME],
  137. [for cc_temp in $1""; do
  138. case $cc_temp in
  139. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  140. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  141. \-*) ;;
  142. *) break;;
  143. esac
  144. done
  145. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  146. ])
  147. # _LT_FILEUTILS_DEFAULTS
  148. # ----------------------
  149. # It is okay to use these file commands and assume they have been set
  150. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  151. m4_defun([_LT_FILEUTILS_DEFAULTS],
  152. [: ${CP="cp -f"}
  153. : ${MV="mv -f"}
  154. : ${RM="rm -f"}
  155. ])# _LT_FILEUTILS_DEFAULTS
  156. # _LT_SETUP
  157. # ---------
  158. m4_defun([_LT_SETUP],
  159. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  160. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  161. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  162. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  163. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  164. dnl
  165. _LT_DECL([], [host_alias], [0], [The host system])dnl
  166. _LT_DECL([], [host], [0])dnl
  167. _LT_DECL([], [host_os], [0])dnl
  168. dnl
  169. _LT_DECL([], [build_alias], [0], [The build system])dnl
  170. _LT_DECL([], [build], [0])dnl
  171. _LT_DECL([], [build_os], [0])dnl
  172. dnl
  173. AC_REQUIRE([AC_PROG_CC])dnl
  174. AC_REQUIRE([LT_PATH_LD])dnl
  175. AC_REQUIRE([LT_PATH_NM])dnl
  176. dnl
  177. AC_REQUIRE([AC_PROG_LN_S])dnl
  178. test -z "$LN_S" && LN_S="ln -s"
  179. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  180. dnl
  181. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  182. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  183. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  184. dnl
  185. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  186. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  187. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  188. m4_require([_LT_CMD_RELOAD])dnl
  189. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  190. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  191. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  192. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  193. m4_require([_LT_WITH_SYSROOT])dnl
  194. _LT_CONFIG_LIBTOOL_INIT([
  195. # See if we are running on zsh, and set the options which allow our
  196. # commands through without removal of \ escapes INIT.
  197. if test -n "\${ZSH_VERSION+set}" ; then
  198. setopt NO_GLOB_SUBST
  199. fi
  200. ])
  201. if test -n "${ZSH_VERSION+set}" ; then
  202. setopt NO_GLOB_SUBST
  203. fi
  204. _LT_CHECK_OBJDIR
  205. m4_require([_LT_TAG_COMPILER])dnl
  206. case $host_os in
  207. aix3*)
  208. # AIX sometimes has problems with the GCC collect2 program. For some
  209. # reason, if we set the COLLECT_NAMES environment variable, the problems
  210. # vanish in a puff of smoke.
  211. if test "X${COLLECT_NAMES+set}" != Xset; then
  212. COLLECT_NAMES=
  213. export COLLECT_NAMES
  214. fi
  215. ;;
  216. esac
  217. # Global variables:
  218. ofile=libtool
  219. can_build_shared=yes
  220. # All known linkers require a `.a' archive for static linking (except MSVC,
  221. # which needs '.lib').
  222. libext=a
  223. with_gnu_ld="$lt_cv_prog_gnu_ld"
  224. old_CC="$CC"
  225. old_CFLAGS="$CFLAGS"
  226. # Set sane defaults for various variables
  227. test -z "$CC" && CC=cc
  228. test -z "$LTCC" && LTCC=$CC
  229. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  230. test -z "$LD" && LD=ld
  231. test -z "$ac_objext" && ac_objext=o
  232. _LT_CC_BASENAME([$compiler])
  233. # Only perform the check for file, if the check method requires it
  234. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  235. case $deplibs_check_method in
  236. file_magic*)
  237. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  238. _LT_PATH_MAGIC
  239. fi
  240. ;;
  241. esac
  242. # Use C for the default configuration in the libtool script
  243. LT_SUPPORTED_TAG([CC])
  244. _LT_LANG_C_CONFIG
  245. _LT_LANG_DEFAULT_CONFIG
  246. _LT_CONFIG_COMMANDS
  247. ])# _LT_SETUP
  248. # _LT_PREPARE_SED_QUOTE_VARS
  249. # --------------------------
  250. # Define a few sed substitution that help us do robust quoting.
  251. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  252. [# Backslashify metacharacters that are still active within
  253. # double-quoted strings.
  254. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  255. # Same as above, but do not quote variable references.
  256. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  257. # Sed substitution to delay expansion of an escaped shell variable in a
  258. # double_quote_subst'ed string.
  259. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  260. # Sed substitution to delay expansion of an escaped single quote.
  261. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  262. # Sed substitution to avoid accidental globbing in evaled expressions
  263. no_glob_subst='s/\*/\\\*/g'
  264. ])
  265. # _LT_PROG_LTMAIN
  266. # ---------------
  267. # Note that this code is called both from `configure', and `config.status'
  268. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  269. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  270. # so we pass a copy along to make sure it has a sensible value anyway.
  271. m4_defun([_LT_PROG_LTMAIN],
  272. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  273. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  274. ltmain="$ac_aux_dir/ltmain.sh"
  275. ])# _LT_PROG_LTMAIN
  276. # So that we can recreate a full libtool script including additional
  277. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  278. # in macros and then make a single call at the end using the `libtool'
  279. # label.
  280. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  281. # ----------------------------------------
  282. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  283. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  284. [m4_ifval([$1],
  285. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  286. [$1
  287. ])])])
  288. # Initialize.
  289. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  290. # _LT_CONFIG_LIBTOOL([COMMANDS])
  291. # ------------------------------
  292. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  293. m4_define([_LT_CONFIG_LIBTOOL],
  294. [m4_ifval([$1],
  295. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  296. [$1
  297. ])])])
  298. # Initialize.
  299. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  300. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  301. # -----------------------------------------------------
  302. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  303. [_LT_CONFIG_LIBTOOL([$1])
  304. _LT_CONFIG_LIBTOOL_INIT([$2])
  305. ])
  306. # _LT_FORMAT_COMMENT([COMMENT])
  307. # -----------------------------
  308. # Add leading comment marks to the start of each line, and a trailing
  309. # full-stop to the whole comment if one is not present already.
  310. m4_define([_LT_FORMAT_COMMENT],
  311. [m4_ifval([$1], [
  312. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  313. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  314. )])
  315. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  316. # -------------------------------------------------------------------
  317. # CONFIGNAME is the name given to the value in the libtool script.
  318. # VARNAME is the (base) name used in the configure script.
  319. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  320. # VARNAME. Any other value will be used directly.
  321. m4_define([_LT_DECL],
  322. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  323. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  324. [m4_ifval([$1], [$1], [$2])])
  325. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  326. m4_ifval([$4],
  327. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  328. lt_dict_add_subkey([lt_decl_dict], [$2],
  329. [tagged?], [m4_ifval([$5], [yes], [no])])])
  330. ])
  331. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  332. # --------------------------------------------------------
  333. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  334. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  335. # ------------------------------------------------
  336. m4_define([lt_decl_tag_varnames],
  337. [_lt_decl_filter([tagged?], [yes], $@)])
  338. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  339. # ---------------------------------------------------------
  340. m4_define([_lt_decl_filter],
  341. [m4_case([$#],
  342. [0], [m4_fatal([$0: too few arguments: $#])],
  343. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  344. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  345. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  346. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  347. ])
  348. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  349. # --------------------------------------------------
  350. m4_define([lt_decl_quote_varnames],
  351. [_lt_decl_filter([value], [1], $@)])
  352. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  353. # ---------------------------------------------------
  354. m4_define([lt_decl_dquote_varnames],
  355. [_lt_decl_filter([value], [2], $@)])
  356. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  357. # ---------------------------------------------------
  358. m4_define([lt_decl_varnames_tagged],
  359. [m4_assert([$# <= 2])dnl
  360. _$0(m4_quote(m4_default([$1], [[, ]])),
  361. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  362. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  363. m4_define([_lt_decl_varnames_tagged],
  364. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  365. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  366. # ------------------------------------------------
  367. m4_define([lt_decl_all_varnames],
  368. [_$0(m4_quote(m4_default([$1], [[, ]])),
  369. m4_if([$2], [],
  370. m4_quote(lt_decl_varnames),
  371. m4_quote(m4_shift($@))))[]dnl
  372. ])
  373. m4_define([_lt_decl_all_varnames],
  374. [lt_join($@, lt_decl_varnames_tagged([$1],
  375. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  376. ])
  377. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  378. # ------------------------------------
  379. # Quote a variable value, and forward it to `config.status' so that its
  380. # declaration there will have the same value as in `configure'. VARNAME
  381. # must have a single quote delimited value for this to work.
  382. m4_define([_LT_CONFIG_STATUS_DECLARE],
  383. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  384. # _LT_CONFIG_STATUS_DECLARATIONS
  385. # ------------------------------
  386. # We delimit libtool config variables with single quotes, so when
  387. # we write them to config.status, we have to be sure to quote all
  388. # embedded single quotes properly. In configure, this macro expands
  389. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  390. #
  391. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  392. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  393. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  394. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  395. # _LT_LIBTOOL_TAGS
  396. # ----------------
  397. # Output comment and list of tags supported by the script
  398. m4_defun([_LT_LIBTOOL_TAGS],
  399. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  400. available_tags="_LT_TAGS"dnl
  401. ])
  402. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  403. # -----------------------------------
  404. # Extract the dictionary values for VARNAME (optionally with TAG) and
  405. # expand to a commented shell variable setting:
  406. #
  407. # # Some comment about what VAR is for.
  408. # visible_name=$lt_internal_name
  409. m4_define([_LT_LIBTOOL_DECLARE],
  410. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  411. [description])))[]dnl
  412. m4_pushdef([_libtool_name],
  413. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  414. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  415. [0], [_libtool_name=[$]$1],
  416. [1], [_libtool_name=$lt_[]$1],
  417. [2], [_libtool_name=$lt_[]$1],
  418. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  419. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  420. ])
  421. # _LT_LIBTOOL_CONFIG_VARS
  422. # -----------------------
  423. # Produce commented declarations of non-tagged libtool config variables
  424. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  425. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  426. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  427. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  428. [m4_foreach([_lt_var],
  429. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  430. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  431. # _LT_LIBTOOL_TAG_VARS(TAG)
  432. # -------------------------
  433. m4_define([_LT_LIBTOOL_TAG_VARS],
  434. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  435. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  436. # _LT_TAGVAR(VARNAME, [TAGNAME])
  437. # ------------------------------
  438. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  439. # _LT_CONFIG_COMMANDS
  440. # -------------------
  441. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  442. # variables for single and double quote escaping we saved from calls
  443. # to _LT_DECL, we can put quote escaped variables declarations
  444. # into `config.status', and then the shell code to quote escape them in
  445. # for loops in `config.status'. Finally, any additional code accumulated
  446. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  447. m4_defun([_LT_CONFIG_COMMANDS],
  448. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  449. dnl If the libtool generation code has been placed in $CONFIG_LT,
  450. dnl instead of duplicating it all over again into config.status,
  451. dnl then we will have config.status run $CONFIG_LT later, so it
  452. dnl needs to know what name is stored there:
  453. [AC_CONFIG_COMMANDS([libtool],
  454. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  455. dnl If the libtool generation code is destined for config.status,
  456. dnl expand the accumulated commands and init code now:
  457. [AC_CONFIG_COMMANDS([libtool],
  458. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  459. ])#_LT_CONFIG_COMMANDS
  460. # Initialize.
  461. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  462. [
  463. # The HP-UX ksh and POSIX shell print the target directory to stdout
  464. # if CDPATH is set.
  465. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  466. sed_quote_subst='$sed_quote_subst'
  467. double_quote_subst='$double_quote_subst'
  468. delay_variable_subst='$delay_variable_subst'
  469. _LT_CONFIG_STATUS_DECLARATIONS
  470. LTCC='$LTCC'
  471. LTCFLAGS='$LTCFLAGS'
  472. compiler='$compiler_DEFAULT'
  473. # A function that is used when there is no print builtin or printf.
  474. func_fallback_echo ()
  475. {
  476. eval 'cat <<_LTECHO_EOF
  477. \$[]1
  478. _LTECHO_EOF'
  479. }
  480. # Quote evaled strings.
  481. for var in lt_decl_all_varnames([[ \
  482. ]], lt_decl_quote_varnames); do
  483. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  484. *[[\\\\\\\`\\"\\\$]]*)
  485. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  486. ;;
  487. *)
  488. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  489. ;;
  490. esac
  491. done
  492. # Double-quote double-evaled strings.
  493. for var in lt_decl_all_varnames([[ \
  494. ]], lt_decl_dquote_varnames); do
  495. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  496. *[[\\\\\\\`\\"\\\$]]*)
  497. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  498. ;;
  499. *)
  500. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  501. ;;
  502. esac
  503. done
  504. _LT_OUTPUT_LIBTOOL_INIT
  505. ])
  506. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  507. # ------------------------------------
  508. # Generate a child script FILE with all initialization necessary to
  509. # reuse the environment learned by the parent script, and make the
  510. # file executable. If COMMENT is supplied, it is inserted after the
  511. # `#!' sequence but before initialization text begins. After this
  512. # macro, additional text can be appended to FILE to form the body of
  513. # the child script. The macro ends with non-zero status if the
  514. # file could not be fully written (such as if the disk is full).
  515. m4_ifdef([AS_INIT_GENERATED],
  516. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  517. [m4_defun([_LT_GENERATED_FILE_INIT],
  518. [m4_require([AS_PREPARE])]dnl
  519. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  520. [lt_write_fail=0
  521. cat >$1 <<_ASEOF || lt_write_fail=1
  522. #! $SHELL
  523. # Generated by $as_me.
  524. $2
  525. SHELL=\${CONFIG_SHELL-$SHELL}
  526. export SHELL
  527. _ASEOF
  528. cat >>$1 <<\_ASEOF || lt_write_fail=1
  529. AS_SHELL_SANITIZE
  530. _AS_PREPARE
  531. exec AS_MESSAGE_FD>&1
  532. _ASEOF
  533. test $lt_write_fail = 0 && chmod +x $1[]dnl
  534. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  535. # LT_OUTPUT
  536. # ---------
  537. # This macro allows early generation of the libtool script (before
  538. # AC_OUTPUT is called), incase it is used in configure for compilation
  539. # tests.
  540. AC_DEFUN([LT_OUTPUT],
  541. [: ${CONFIG_LT=./config.lt}
  542. AC_MSG_NOTICE([creating $CONFIG_LT])
  543. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  544. [# Run this file to recreate a libtool stub with the current configuration.])
  545. cat >>"$CONFIG_LT" <<\_LTEOF
  546. lt_cl_silent=false
  547. exec AS_MESSAGE_LOG_FD>>config.log
  548. {
  549. echo
  550. AS_BOX([Running $as_me.])
  551. } >&AS_MESSAGE_LOG_FD
  552. lt_cl_help="\
  553. \`$as_me' creates a local libtool stub from the current configuration,
  554. for use in further configure time tests before the real libtool is
  555. generated.
  556. Usage: $[0] [[OPTIONS]]
  557. -h, --help print this help, then exit
  558. -V, --version print version number, then exit
  559. -q, --quiet do not print progress messages
  560. -d, --debug don't remove temporary files
  561. Report bugs to <bug-libtool@gnu.org>."
  562. lt_cl_version="\
  563. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  564. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  565. configured by $[0], generated by m4_PACKAGE_STRING.
  566. Copyright (C) 2011 Free Software Foundation, Inc.
  567. This config.lt script is free software; the Free Software Foundation
  568. gives unlimited permision to copy, distribute and modify it."
  569. while test $[#] != 0
  570. do
  571. case $[1] in
  572. --version | --v* | -V )
  573. echo "$lt_cl_version"; exit 0 ;;
  574. --help | --h* | -h )
  575. echo "$lt_cl_help"; exit 0 ;;
  576. --debug | --d* | -d )
  577. debug=: ;;
  578. --quiet | --q* | --silent | --s* | -q )
  579. lt_cl_silent=: ;;
  580. -*) AC_MSG_ERROR([unrecognized option: $[1]
  581. Try \`$[0] --help' for more information.]) ;;
  582. *) AC_MSG_ERROR([unrecognized argument: $[1]
  583. Try \`$[0] --help' for more information.]) ;;
  584. esac
  585. shift
  586. done
  587. if $lt_cl_silent; then
  588. exec AS_MESSAGE_FD>/dev/null
  589. fi
  590. _LTEOF
  591. cat >>"$CONFIG_LT" <<_LTEOF
  592. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  593. _LTEOF
  594. cat >>"$CONFIG_LT" <<\_LTEOF
  595. AC_MSG_NOTICE([creating $ofile])
  596. _LT_OUTPUT_LIBTOOL_COMMANDS
  597. AS_EXIT(0)
  598. _LTEOF
  599. chmod +x "$CONFIG_LT"
  600. # configure is writing to config.log, but config.lt does its own redirection,
  601. # appending to config.log, which fails on DOS, as config.log is still kept
  602. # open by configure. Here we exec the FD to /dev/null, effectively closing
  603. # config.log, so it can be properly (re)opened and appended to by config.lt.
  604. lt_cl_success=:
  605. test "$silent" = yes &&
  606. lt_config_lt_args="$lt_config_lt_args --quiet"
  607. exec AS_MESSAGE_LOG_FD>/dev/null
  608. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  609. exec AS_MESSAGE_LOG_FD>>config.log
  610. $lt_cl_success || AS_EXIT(1)
  611. ])# LT_OUTPUT
  612. # _LT_CONFIG(TAG)
  613. # ---------------
  614. # If TAG is the built-in tag, create an initial libtool script with a
  615. # default configuration from the untagged config vars. Otherwise add code
  616. # to config.status for appending the configuration named by TAG from the
  617. # matching tagged config vars.
  618. m4_defun([_LT_CONFIG],
  619. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  620. _LT_CONFIG_SAVE_COMMANDS([
  621. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  622. m4_if(_LT_TAG, [C], [
  623. # See if we are running on zsh, and set the options which allow our
  624. # commands through without removal of \ escapes.
  625. if test -n "${ZSH_VERSION+set}" ; then
  626. setopt NO_GLOB_SUBST
  627. fi
  628. cfgfile="${ofile}T"
  629. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  630. $RM "$cfgfile"
  631. cat <<_LT_EOF >> "$cfgfile"
  632. #! $SHELL
  633. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  634. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  635. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  636. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  637. #
  638. _LT_COPYING
  639. _LT_LIBTOOL_TAGS
  640. # ### BEGIN LIBTOOL CONFIG
  641. _LT_LIBTOOL_CONFIG_VARS
  642. _LT_LIBTOOL_TAG_VARS
  643. # ### END LIBTOOL CONFIG
  644. _LT_EOF
  645. case $host_os in
  646. aix3*)
  647. cat <<\_LT_EOF >> "$cfgfile"
  648. # AIX sometimes has problems with the GCC collect2 program. For some
  649. # reason, if we set the COLLECT_NAMES environment variable, the problems
  650. # vanish in a puff of smoke.
  651. if test "X${COLLECT_NAMES+set}" != Xset; then
  652. COLLECT_NAMES=
  653. export COLLECT_NAMES
  654. fi
  655. _LT_EOF
  656. ;;
  657. esac
  658. _LT_PROG_LTMAIN
  659. # We use sed instead of cat because bash on DJGPP gets confused if
  660. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  661. # text mode, it properly converts lines to CR/LF. This bash problem
  662. # is reportedly fixed, but why not run on old versions too?
  663. sed '$q' "$ltmain" >> "$cfgfile" \
  664. || (rm -f "$cfgfile"; exit 1)
  665. _LT_PROG_REPLACE_SHELLFNS
  666. mv -f "$cfgfile" "$ofile" ||
  667. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  668. chmod +x "$ofile"
  669. ],
  670. [cat <<_LT_EOF >> "$ofile"
  671. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  672. dnl in a comment (ie after a #).
  673. # ### BEGIN LIBTOOL TAG CONFIG: $1
  674. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  675. # ### END LIBTOOL TAG CONFIG: $1
  676. _LT_EOF
  677. ])dnl /m4_if
  678. ],
  679. [m4_if([$1], [], [
  680. PACKAGE='$PACKAGE'
  681. VERSION='$VERSION'
  682. TIMESTAMP='$TIMESTAMP'
  683. RM='$RM'
  684. ofile='$ofile'], [])
  685. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  686. ])# _LT_CONFIG
  687. # LT_SUPPORTED_TAG(TAG)
  688. # ---------------------
  689. # Trace this macro to discover what tags are supported by the libtool
  690. # --tag option, using:
  691. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  692. AC_DEFUN([LT_SUPPORTED_TAG], [])
  693. # C support is built-in for now
  694. m4_define([_LT_LANG_C_enabled], [])
  695. m4_define([_LT_TAGS], [])
  696. # LT_LANG(LANG)
  697. # -------------
  698. # Enable libtool support for the given language if not already enabled.
  699. AC_DEFUN([LT_LANG],
  700. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  701. m4_case([$1],
  702. [C], [_LT_LANG(C)],
  703. [C++], [_LT_LANG(CXX)],
  704. [Go], [_LT_LANG(GO)],
  705. [Java], [_LT_LANG(GCJ)],
  706. [Fortran 77], [_LT_LANG(F77)],
  707. [Fortran], [_LT_LANG(FC)],
  708. [Windows Resource], [_LT_LANG(RC)],
  709. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  710. [_LT_LANG($1)],
  711. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  712. ])# LT_LANG
  713. # _LT_LANG(LANGNAME)
  714. # ------------------
  715. m4_defun([_LT_LANG],
  716. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  717. [LT_SUPPORTED_TAG([$1])dnl
  718. m4_append([_LT_TAGS], [$1 ])dnl
  719. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  720. _LT_LANG_$1_CONFIG($1)])dnl
  721. ])# _LT_LANG
  722. m4_ifndef([AC_PROG_GO], [
  723. # NOTE: This macro has been submitted for inclusion into #
  724. # GNU Autoconf as AC_PROG_GO. When it is available in #
  725. # a released version of Autoconf we should remove this #
  726. # macro and use it instead. #
  727. m4_defun([AC_PROG_GO],
  728. [AC_LANG_PUSH(Go)dnl
  729. AC_ARG_VAR([GOC], [Go compiler command])dnl
  730. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  731. _AC_ARG_VAR_LDFLAGS()dnl
  732. AC_CHECK_TOOL(GOC, gccgo)
  733. if test -z "$GOC"; then
  734. if test -n "$ac_tool_prefix"; then
  735. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  736. fi
  737. fi
  738. if test -z "$GOC"; then
  739. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  740. fi
  741. ])#m4_defun
  742. ])#m4_ifndef
  743. # _LT_LANG_DEFAULT_CONFIG
  744. # -----------------------
  745. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  746. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  747. [LT_LANG(CXX)],
  748. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  749. AC_PROVIDE_IFELSE([AC_PROG_F77],
  750. [LT_LANG(F77)],
  751. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  752. AC_PROVIDE_IFELSE([AC_PROG_FC],
  753. [LT_LANG(FC)],
  754. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  755. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  756. dnl pulling things in needlessly.
  757. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  758. [LT_LANG(GCJ)],
  759. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  760. [LT_LANG(GCJ)],
  761. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  762. [LT_LANG(GCJ)],
  763. [m4_ifdef([AC_PROG_GCJ],
  764. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  765. m4_ifdef([A][M_PROG_GCJ],
  766. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  767. m4_ifdef([LT_PROG_GCJ],
  768. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  769. AC_PROVIDE_IFELSE([AC_PROG_GO],
  770. [LT_LANG(GO)],
  771. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  772. AC_PROVIDE_IFELSE([LT_PROG_RC],
  773. [LT_LANG(RC)],
  774. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  775. ])# _LT_LANG_DEFAULT_CONFIG
  776. # Obsolete macros:
  777. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  778. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  779. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  780. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  781. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  782. dnl aclocal-1.4 backwards compatibility:
  783. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  784. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  785. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  786. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  787. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  788. # _LT_TAG_COMPILER
  789. # ----------------
  790. m4_defun([_LT_TAG_COMPILER],
  791. [AC_REQUIRE([AC_PROG_CC])dnl
  792. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  793. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  794. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  795. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  796. # If no C compiler was specified, use CC.
  797. LTCC=${LTCC-"$CC"}
  798. # If no C compiler flags were specified, use CFLAGS.
  799. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  800. # Allow CC to be a program name with arguments.
  801. compiler=$CC
  802. ])# _LT_TAG_COMPILER
  803. # _LT_COMPILER_BOILERPLATE
  804. # ------------------------
  805. # Check for compiler boilerplate output or warnings with
  806. # the simple compiler test code.
  807. m4_defun([_LT_COMPILER_BOILERPLATE],
  808. [m4_require([_LT_DECL_SED])dnl
  809. ac_outfile=conftest.$ac_objext
  810. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  811. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  812. _lt_compiler_boilerplate=`cat conftest.err`
  813. $RM conftest*
  814. ])# _LT_COMPILER_BOILERPLATE
  815. # _LT_LINKER_BOILERPLATE
  816. # ----------------------
  817. # Check for linker boilerplate output or warnings with
  818. # the simple link test code.
  819. m4_defun([_LT_LINKER_BOILERPLATE],
  820. [m4_require([_LT_DECL_SED])dnl
  821. ac_outfile=conftest.$ac_objext
  822. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  823. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  824. _lt_linker_boilerplate=`cat conftest.err`
  825. $RM -r conftest*
  826. ])# _LT_LINKER_BOILERPLATE
  827. # _LT_REQUIRED_DARWIN_CHECKS
  828. # -------------------------
  829. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  830. case $host_os in
  831. rhapsody* | darwin*)
  832. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  833. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  834. AC_CHECK_TOOL([LIPO], [lipo], [:])
  835. AC_CHECK_TOOL([OTOOL], [otool], [:])
  836. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  837. _LT_DECL([], [DSYMUTIL], [1],
  838. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  839. _LT_DECL([], [NMEDIT], [1],
  840. [Tool to change global to local symbols on Mac OS X])
  841. _LT_DECL([], [LIPO], [1],
  842. [Tool to manipulate fat objects and archives on Mac OS X])
  843. _LT_DECL([], [OTOOL], [1],
  844. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  845. _LT_DECL([], [OTOOL64], [1],
  846. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  847. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  848. [lt_cv_apple_cc_single_mod=no
  849. if test -z "${LT_MULTI_MODULE}"; then
  850. # By default we will add the -single_module flag. You can override
  851. # by either setting the environment variable LT_MULTI_MODULE
  852. # non-empty at configure time, or by adding -multi_module to the
  853. # link flags.
  854. rm -rf libconftest.dylib*
  855. echo "int foo(void){return 1;}" > conftest.c
  856. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  857. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  858. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  859. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  860. _lt_result=$?
  861. # If there is a non-empty error log, and "single_module"
  862. # appears in it, assume the flag caused a linker warning
  863. if test -s conftest.err && $GREP single_module conftest.err; then
  864. cat conftest.err >&AS_MESSAGE_LOG_FD
  865. # Otherwise, if the output was created with a 0 exit code from
  866. # the compiler, it worked.
  867. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  868. lt_cv_apple_cc_single_mod=yes
  869. else
  870. cat conftest.err >&AS_MESSAGE_LOG_FD
  871. fi
  872. rm -rf libconftest.dylib*
  873. rm -f conftest.*
  874. fi])
  875. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  876. [lt_cv_ld_exported_symbols_list],
  877. [lt_cv_ld_exported_symbols_list=no
  878. save_LDFLAGS=$LDFLAGS
  879. echo "_main" > conftest.sym
  880. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  881. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  882. [lt_cv_ld_exported_symbols_list=yes],
  883. [lt_cv_ld_exported_symbols_list=no])
  884. LDFLAGS="$save_LDFLAGS"
  885. ])
  886. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  887. [lt_cv_ld_force_load=no
  888. cat > conftest.c << _LT_EOF
  889. int forced_loaded() { return 2;}
  890. _LT_EOF
  891. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  892. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  893. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  894. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  895. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  896. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  897. cat > conftest.c << _LT_EOF
  898. int main() { return 0;}
  899. _LT_EOF
  900. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  901. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  902. _lt_result=$?
  903. if test -s conftest.err && $GREP force_load conftest.err; then
  904. cat conftest.err >&AS_MESSAGE_LOG_FD
  905. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  906. lt_cv_ld_force_load=yes
  907. else
  908. cat conftest.err >&AS_MESSAGE_LOG_FD
  909. fi
  910. rm -f conftest.err libconftest.a conftest conftest.c
  911. rm -rf conftest.dSYM
  912. ])
  913. case $host_os in
  914. rhapsody* | darwin1.[[012]])
  915. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  916. darwin1.*)
  917. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  918. darwin*) # darwin 5.x on
  919. # if running on 10.5 or later, the deployment target defaults
  920. # to the OS version, if on x86, and 10.4, the deployment
  921. # target defaults to 10.4. Don't you love it?
  922. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  923. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  924. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  925. 10.[[012]]*)
  926. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  927. 10.*)
  928. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  929. esac
  930. ;;
  931. esac
  932. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  933. _lt_dar_single_mod='$single_module'
  934. fi
  935. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  936. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  937. else
  938. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  939. fi
  940. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  941. _lt_dsymutil='~$DSYMUTIL $lib || :'
  942. else
  943. _lt_dsymutil=
  944. fi
  945. ;;
  946. esac
  947. ])
  948. # _LT_DARWIN_LINKER_FEATURES([TAG])
  949. # ---------------------------------
  950. # Checks for linker and compiler features on darwin
  951. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  952. [
  953. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  954. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  955. _LT_TAGVAR(hardcode_direct, $1)=no
  956. _LT_TAGVAR(hardcode_automatic, $1)=yes
  957. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  958. if test "$lt_cv_ld_force_load" = "yes"; then
  959. _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\"`'
  960. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  961. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  962. else
  963. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  964. fi
  965. _LT_TAGVAR(link_all_deplibs, $1)=yes
  966. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  967. case $cc_basename in
  968. ifort*) _lt_dar_can_shared=yes ;;
  969. *) _lt_dar_can_shared=$GCC ;;
  970. esac
  971. if test "$_lt_dar_can_shared" = "yes"; then
  972. output_verbose_link_cmd=func_echo_all
  973. _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}"
  974. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  975. _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}"
  976. _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}"
  977. m4_if([$1], [CXX],
  978. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  979. _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}"
  980. _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}"
  981. fi
  982. ],[])
  983. else
  984. _LT_TAGVAR(ld_shlibs, $1)=no
  985. fi
  986. ])
  987. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  988. # ----------------------------------
  989. # Links a minimal program and checks the executable
  990. # for the system default hardcoded library path. In most cases,
  991. # this is /usr/lib:/lib, but when the MPI compilers are used
  992. # the location of the communication and MPI libs are included too.
  993. # If we don't find anything, use the default library path according
  994. # to the aix ld manual.
  995. # Store the results from the different compilers for each TAGNAME.
  996. # Allow to override them for all tags through lt_cv_aix_libpath.
  997. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  998. [m4_require([_LT_DECL_SED])dnl
  999. if test "${lt_cv_aix_libpath+set}" = set; then
  1000. aix_libpath=$lt_cv_aix_libpath
  1001. else
  1002. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  1003. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  1004. lt_aix_libpath_sed='[
  1005. /Import File Strings/,/^$/ {
  1006. /^0/ {
  1007. s/^0 *\([^ ]*\) *$/\1/
  1008. p
  1009. }
  1010. }]'
  1011. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1012. # Check for a 64-bit object if we didn't find anything.
  1013. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1014. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1015. fi],[])
  1016. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1017. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  1018. fi
  1019. ])
  1020. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1021. fi
  1022. ])# _LT_SYS_MODULE_PATH_AIX
  1023. # _LT_SHELL_INIT(ARG)
  1024. # -------------------
  1025. m4_define([_LT_SHELL_INIT],
  1026. [m4_divert_text([M4SH-INIT], [$1
  1027. ])])# _LT_SHELL_INIT
  1028. # _LT_PROG_ECHO_BACKSLASH
  1029. # -----------------------
  1030. # Find how we can fake an echo command that does not interpret backslash.
  1031. # In particular, with Autoconf 2.60 or later we add some code to the start
  1032. # of the generated configure script which will find a shell with a builtin
  1033. # printf (which we can use as an echo command).
  1034. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1035. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1036. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1037. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1038. AC_MSG_CHECKING([how to print strings])
  1039. # Test print first, because it will be a builtin if present.
  1040. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1041. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1042. ECHO='print -r --'
  1043. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1044. ECHO='printf %s\n'
  1045. else
  1046. # Use this function as a fallback that always works.
  1047. func_fallback_echo ()
  1048. {
  1049. eval 'cat <<_LTECHO_EOF
  1050. $[]1
  1051. _LTECHO_EOF'
  1052. }
  1053. ECHO='func_fallback_echo'
  1054. fi
  1055. # func_echo_all arg...
  1056. # Invoke $ECHO with all args, space-separated.
  1057. func_echo_all ()
  1058. {
  1059. $ECHO "$*"
  1060. }
  1061. case "$ECHO" in
  1062. printf*) AC_MSG_RESULT([printf]) ;;
  1063. print*) AC_MSG_RESULT([print -r]) ;;
  1064. *) AC_MSG_RESULT([cat]) ;;
  1065. esac
  1066. m4_ifdef([_AS_DETECT_SUGGESTED],
  1067. [_AS_DETECT_SUGGESTED([
  1068. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1069. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1070. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1071. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1072. PATH=/empty FPATH=/empty; export PATH FPATH
  1073. test "X`printf %s $ECHO`" = "X$ECHO" \
  1074. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1075. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1076. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1077. ])# _LT_PROG_ECHO_BACKSLASH
  1078. # _LT_WITH_SYSROOT
  1079. # ----------------
  1080. AC_DEFUN([_LT_WITH_SYSROOT],
  1081. [AC_MSG_CHECKING([for sysroot])
  1082. AC_ARG_WITH([sysroot],
  1083. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1084. (or the compiler's sysroot if not specified).],
  1085. [], [with_sysroot=no])
  1086. dnl lt_sysroot will always be passed unquoted. We quote it here
  1087. dnl in case the user passed a directory name.
  1088. lt_sysroot=
  1089. case ${with_sysroot} in #(
  1090. yes)
  1091. if test "$GCC" = yes; then
  1092. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1093. fi
  1094. ;; #(
  1095. /*)
  1096. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1097. ;; #(
  1098. no|'')
  1099. ;; #(
  1100. *)
  1101. AC_MSG_RESULT([${with_sysroot}])
  1102. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1103. ;;
  1104. esac
  1105. AC_MSG_RESULT([${lt_sysroot:-no}])
  1106. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1107. [dependent libraries, and in which our libraries should be installed.])])
  1108. # _LT_ENABLE_LOCK
  1109. # ---------------
  1110. m4_defun([_LT_ENABLE_LOCK],
  1111. [AC_ARG_ENABLE([libtool-lock],
  1112. [AS_HELP_STRING([--disable-libtool-lock],
  1113. [avoid locking (might break parallel builds)])])
  1114. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1115. # Some flags need to be propagated to the compiler or linker for good
  1116. # libtool support.
  1117. case $host in
  1118. ia64-*-hpux*)
  1119. # Find out which ABI we are using.
  1120. echo 'int i;' > conftest.$ac_ext
  1121. if AC_TRY_EVAL(ac_compile); then
  1122. case `/usr/bin/file conftest.$ac_objext` in
  1123. *ELF-32*)
  1124. HPUX_IA64_MODE="32"
  1125. ;;
  1126. *ELF-64*)
  1127. HPUX_IA64_MODE="64"
  1128. ;;
  1129. esac
  1130. fi
  1131. rm -rf conftest*
  1132. ;;
  1133. *-*-irix6*)
  1134. # Find out which ABI we are using.
  1135. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1136. if AC_TRY_EVAL(ac_compile); then
  1137. if test "$lt_cv_prog_gnu_ld" = yes; then
  1138. case `/usr/bin/file conftest.$ac_objext` in
  1139. *32-bit*)
  1140. LD="${LD-ld} -melf32bsmip"
  1141. ;;
  1142. *N32*)
  1143. LD="${LD-ld} -melf32bmipn32"
  1144. ;;
  1145. *64-bit*)
  1146. LD="${LD-ld} -melf64bmip"
  1147. ;;
  1148. esac
  1149. else
  1150. case `/usr/bin/file conftest.$ac_objext` in
  1151. *32-bit*)
  1152. LD="${LD-ld} -32"
  1153. ;;
  1154. *N32*)
  1155. LD="${LD-ld} -n32"
  1156. ;;
  1157. *64-bit*)
  1158. LD="${LD-ld} -64"
  1159. ;;
  1160. esac
  1161. fi
  1162. fi
  1163. rm -rf conftest*
  1164. ;;
  1165. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1166. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1167. # Find out which ABI we are using.
  1168. echo 'int i;' > conftest.$ac_ext
  1169. if AC_TRY_EVAL(ac_compile); then
  1170. case `/usr/bin/file conftest.o` in
  1171. *32-bit*)
  1172. case $host in
  1173. x86_64-*kfreebsd*-gnu)
  1174. LD="${LD-ld} -m elf_i386_fbsd"
  1175. ;;
  1176. x86_64-*linux*)
  1177. LD="${LD-ld} -m elf_i386"
  1178. ;;
  1179. ppc64-*linux*|powerpc64-*linux*)
  1180. LD="${LD-ld} -m elf32ppclinux"
  1181. ;;
  1182. s390x-*linux*)
  1183. LD="${LD-ld} -m elf_s390"
  1184. ;;
  1185. sparc64-*linux*)
  1186. LD="${LD-ld} -m elf32_sparc"
  1187. ;;
  1188. esac
  1189. ;;
  1190. *64-bit*)
  1191. case $host in
  1192. x86_64-*kfreebsd*-gnu)
  1193. LD="${LD-ld} -m elf_x86_64_fbsd"
  1194. ;;
  1195. x86_64-*linux*)
  1196. LD="${LD-ld} -m elf_x86_64"
  1197. ;;
  1198. ppc*-*linux*|powerpc*-*linux*)
  1199. LD="${LD-ld} -m elf64ppc"
  1200. ;;
  1201. s390*-*linux*|s390*-*tpf*)
  1202. LD="${LD-ld} -m elf64_s390"
  1203. ;;
  1204. sparc*-*linux*)
  1205. LD="${LD-ld} -m elf64_sparc"
  1206. ;;
  1207. esac
  1208. ;;
  1209. esac
  1210. fi
  1211. rm -rf conftest*
  1212. ;;
  1213. *-*-sco3.2v5*)
  1214. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1215. SAVE_CFLAGS="$CFLAGS"
  1216. CFLAGS="$CFLAGS -belf"
  1217. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1218. [AC_LANG_PUSH(C)
  1219. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1220. AC_LANG_POP])
  1221. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1222. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1223. CFLAGS="$SAVE_CFLAGS"
  1224. fi
  1225. ;;
  1226. *-*solaris*)
  1227. # Find out which ABI we are using.
  1228. echo 'int i;' > conftest.$ac_ext
  1229. if AC_TRY_EVAL(ac_compile); then
  1230. case `/usr/bin/file conftest.o` in
  1231. *64-bit*)
  1232. case $lt_cv_prog_gnu_ld in
  1233. yes*)
  1234. case $host in
  1235. i?86-*-solaris*)
  1236. LD="${LD-ld} -m elf_x86_64"
  1237. ;;
  1238. sparc*-*-solaris*)
  1239. LD="${LD-ld} -m elf64_sparc"
  1240. ;;
  1241. esac
  1242. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1243. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1244. LD="${LD-ld}_sol2"
  1245. fi
  1246. ;;
  1247. *)
  1248. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1249. LD="${LD-ld} -64"
  1250. fi
  1251. ;;
  1252. esac
  1253. ;;
  1254. esac
  1255. fi
  1256. rm -rf conftest*
  1257. ;;
  1258. esac
  1259. need_locks="$enable_libtool_lock"
  1260. ])# _LT_ENABLE_LOCK
  1261. # _LT_PROG_AR
  1262. # -----------
  1263. m4_defun([_LT_PROG_AR],
  1264. [AC_CHECK_TOOLS(AR, [ar], false)
  1265. : ${AR=ar}
  1266. : ${AR_FLAGS=cru}
  1267. _LT_DECL([], [AR], [1], [The archiver])
  1268. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1269. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1270. [lt_cv_ar_at_file=no
  1271. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1272. [echo conftest.$ac_objext > conftest.lst
  1273. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1274. AC_TRY_EVAL([lt_ar_try])
  1275. if test "$ac_status" -eq 0; then
  1276. # Ensure the archiver fails upon bogus file names.
  1277. rm -f conftest.$ac_objext libconftest.a
  1278. AC_TRY_EVAL([lt_ar_try])
  1279. if test "$ac_status" -ne 0; then
  1280. lt_cv_ar_at_file=@
  1281. fi
  1282. fi
  1283. rm -f conftest.* libconftest.a
  1284. ])
  1285. ])
  1286. if test "x$lt_cv_ar_at_file" = xno; then
  1287. archiver_list_spec=
  1288. else
  1289. archiver_list_spec=$lt_cv_ar_at_file
  1290. fi
  1291. _LT_DECL([], [archiver_list_spec], [1],
  1292. [How to feed a file listing to the archiver])
  1293. ])# _LT_PROG_AR
  1294. # _LT_CMD_OLD_ARCHIVE
  1295. # -------------------
  1296. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1297. [_LT_PROG_AR
  1298. AC_CHECK_TOOL(STRIP, strip, :)
  1299. test -z "$STRIP" && STRIP=:
  1300. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1301. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1302. test -z "$RANLIB" && RANLIB=:
  1303. _LT_DECL([], [RANLIB], [1],
  1304. [Commands used to install an old-style archive])
  1305. # Determine commands to create old-style static archives.
  1306. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1307. old_postinstall_cmds='chmod 644 $oldlib'
  1308. old_postuninstall_cmds=
  1309. if test -n "$RANLIB"; then
  1310. case $host_os in
  1311. openbsd*)
  1312. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1313. ;;
  1314. *)
  1315. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1316. ;;
  1317. esac
  1318. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1319. fi
  1320. case $host_os in
  1321. darwin*)
  1322. lock_old_archive_extraction=yes ;;
  1323. *)
  1324. lock_old_archive_extraction=no ;;
  1325. esac
  1326. _LT_DECL([], [old_postinstall_cmds], [2])
  1327. _LT_DECL([], [old_postuninstall_cmds], [2])
  1328. _LT_TAGDECL([], [old_archive_cmds], [2],
  1329. [Commands used to build an old-style archive])
  1330. _LT_DECL([], [lock_old_archive_extraction], [0],
  1331. [Whether to use a lock for old archive extraction])
  1332. ])# _LT_CMD_OLD_ARCHIVE
  1333. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1334. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1335. # ----------------------------------------------------------------
  1336. # Check whether the given compiler option works
  1337. AC_DEFUN([_LT_COMPILER_OPTION],
  1338. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1339. m4_require([_LT_DECL_SED])dnl
  1340. AC_CACHE_CHECK([$1], [$2],
  1341. [$2=no
  1342. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1343. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1344. lt_compiler_flag="$3"
  1345. # Insert the option either (1) after the last *FLAGS variable, or
  1346. # (2) before a word containing "conftest.", or (3) at the end.
  1347. # Note that $ac_compile itself does not contain backslashes and begins
  1348. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1349. # The option is referenced via a variable to avoid confusing sed.
  1350. lt_compile=`echo "$ac_compile" | $SED \
  1351. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1352. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1353. -e 's:$: $lt_compiler_flag:'`
  1354. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1355. (eval "$lt_compile" 2>conftest.err)
  1356. ac_status=$?
  1357. cat conftest.err >&AS_MESSAGE_LOG_FD
  1358. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1359. if (exit $ac_status) && test -s "$ac_outfile"; then
  1360. # The compiler can only warn and ignore the option if not recognized
  1361. # So say no if there are warnings other than the usual output.
  1362. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1363. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1364. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1365. $2=yes
  1366. fi
  1367. fi
  1368. $RM conftest*
  1369. ])
  1370. if test x"[$]$2" = xyes; then
  1371. m4_if([$5], , :, [$5])
  1372. else
  1373. m4_if([$6], , :, [$6])
  1374. fi
  1375. ])# _LT_COMPILER_OPTION
  1376. # Old name:
  1377. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1378. dnl aclocal-1.4 backwards compatibility:
  1379. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1380. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1381. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1382. # ----------------------------------------------------
  1383. # Check whether the given linker option works
  1384. AC_DEFUN([_LT_LINKER_OPTION],
  1385. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1386. m4_require([_LT_DECL_SED])dnl
  1387. AC_CACHE_CHECK([$1], [$2],
  1388. [$2=no
  1389. save_LDFLAGS="$LDFLAGS"
  1390. LDFLAGS="$LDFLAGS $3"
  1391. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1392. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1393. # The linker can only warn and ignore the option if not recognized
  1394. # So say no if there are warnings
  1395. if test -s conftest.err; then
  1396. # Append any errors to the config.log.
  1397. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1398. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1399. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1400. if diff conftest.exp conftest.er2 >/dev/null; then
  1401. $2=yes
  1402. fi
  1403. else
  1404. $2=yes
  1405. fi
  1406. fi
  1407. $RM -r conftest*
  1408. LDFLAGS="$save_LDFLAGS"
  1409. ])
  1410. if test x"[$]$2" = xyes; then
  1411. m4_if([$4], , :, [$4])
  1412. else
  1413. m4_if([$5], , :, [$5])
  1414. fi
  1415. ])# _LT_LINKER_OPTION
  1416. # Old name:
  1417. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1418. dnl aclocal-1.4 backwards compatibility:
  1419. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1420. # LT_CMD_MAX_LEN
  1421. #---------------
  1422. AC_DEFUN([LT_CMD_MAX_LEN],
  1423. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1424. # find the maximum length of command line arguments
  1425. AC_MSG_CHECKING([the maximum length of command line arguments])
  1426. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1427. i=0
  1428. teststring="ABCD"
  1429. case $build_os in
  1430. msdosdjgpp*)
  1431. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1432. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1433. # during glob expansion). Even if it were fixed, the result of this
  1434. # check would be larger than it should be.
  1435. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1436. ;;
  1437. gnu*)
  1438. # Under GNU Hurd, this test is not required because there is
  1439. # no limit to the length of command line arguments.
  1440. # Libtool will interpret -1 as no limit whatsoever
  1441. lt_cv_sys_max_cmd_len=-1;
  1442. ;;
  1443. cygwin* | mingw* | cegcc*)
  1444. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1445. # about 5 minutes as the teststring grows exponentially.
  1446. # Worse, since 9x/ME are not pre-emptively multitasking,
  1447. # you end up with a "frozen" computer, even though with patience
  1448. # the test eventually succeeds (with a max line length of 256k).
  1449. # Instead, let's just punt: use the minimum linelength reported by
  1450. # all of the supported platforms: 8192 (on NT/2K/XP).
  1451. lt_cv_sys_max_cmd_len=8192;
  1452. ;;
  1453. mint*)
  1454. # On MiNT this can take a long time and run out of memory.
  1455. lt_cv_sys_max_cmd_len=8192;
  1456. ;;
  1457. amigaos*)
  1458. # On AmigaOS with pdksh, this test takes hours, literally.
  1459. # So we just punt and use a minimum line length of 8192.
  1460. lt_cv_sys_max_cmd_len=8192;
  1461. ;;
  1462. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1463. # This has been around since 386BSD, at least. Likely further.
  1464. if test -x /sbin/sysctl; then
  1465. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1466. elif test -x /usr/sbin/sysctl; then
  1467. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1468. else
  1469. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1470. fi
  1471. # And add a safety zone
  1472. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1473. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1474. ;;
  1475. interix*)
  1476. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1477. lt_cv_sys_max_cmd_len=196608
  1478. ;;
  1479. os2*)
  1480. # The test takes a long time on OS/2.
  1481. lt_cv_sys_max_cmd_len=8192
  1482. ;;
  1483. osf*)
  1484. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1485. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1486. # nice to cause kernel panics so lets avoid the loop below.
  1487. # First set a reasonable default.
  1488. lt_cv_sys_max_cmd_len=16384
  1489. #
  1490. if test -x /sbin/sysconfig; then
  1491. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1492. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1493. esac
  1494. fi
  1495. ;;
  1496. sco3.2v5*)
  1497. lt_cv_sys_max_cmd_len=102400
  1498. ;;
  1499. sysv5* | sco5v6* | sysv4.2uw2*)
  1500. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1501. if test -n "$kargmax"; then
  1502. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1503. else
  1504. lt_cv_sys_max_cmd_len=32768
  1505. fi
  1506. ;;
  1507. *)
  1508. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1509. if test -n "$lt_cv_sys_max_cmd_len"; then
  1510. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1511. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1512. else
  1513. # Make teststring a little bigger before we do anything with it.
  1514. # a 1K string should be a reasonable start.
  1515. for i in 1 2 3 4 5 6 7 8 ; do
  1516. teststring=$teststring$teststring
  1517. done
  1518. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1519. # If test is not a shell built-in, we'll probably end up computing a
  1520. # maximum length that is only half of the actual maximum length, but
  1521. # we can't tell.
  1522. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  1523. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1524. test $i != 17 # 1/2 MB should be enough
  1525. do
  1526. i=`expr $i + 1`
  1527. teststring=$teststring$teststring
  1528. done
  1529. # Only check the string length outside the loop.
  1530. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1531. teststring=
  1532. # Add a significant safety factor because C++ compilers can tack on
  1533. # massive amounts of additional arguments before passing them to the
  1534. # linker. It appears as though 1/2 is a usable value.
  1535. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1536. fi
  1537. ;;
  1538. esac
  1539. ])
  1540. if test -n $lt_cv_sys_max_cmd_len ; then
  1541. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1542. else
  1543. AC_MSG_RESULT(none)
  1544. fi
  1545. max_cmd_len=$lt_cv_sys_max_cmd_len
  1546. _LT_DECL([], [max_cmd_len], [0],
  1547. [What is the maximum length of a command?])
  1548. ])# LT_CMD_MAX_LEN
  1549. # Old name:
  1550. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1551. dnl aclocal-1.4 backwards compatibility:
  1552. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1553. # _LT_HEADER_DLFCN
  1554. # ----------------
  1555. m4_defun([_LT_HEADER_DLFCN],
  1556. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1557. ])# _LT_HEADER_DLFCN
  1558. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1559. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1560. # ----------------------------------------------------------------
  1561. m4_defun([_LT_TRY_DLOPEN_SELF],
  1562. [m4_require([_LT_HEADER_DLFCN])dnl
  1563. if test "$cross_compiling" = yes; then :
  1564. [$4]
  1565. else
  1566. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1567. lt_status=$lt_dlunknown
  1568. cat > conftest.$ac_ext <<_LT_EOF
  1569. [#line $LINENO "configure"
  1570. #include "confdefs.h"
  1571. #if HAVE_DLFCN_H
  1572. #include <dlfcn.h>
  1573. #endif
  1574. #include <stdio.h>
  1575. #ifdef RTLD_GLOBAL
  1576. # define LT_DLGLOBAL RTLD_GLOBAL
  1577. #else
  1578. # ifdef DL_GLOBAL
  1579. # define LT_DLGLOBAL DL_GLOBAL
  1580. # else
  1581. # define LT_DLGLOBAL 0
  1582. # endif
  1583. #endif
  1584. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1585. find out it does not work in some platform. */
  1586. #ifndef LT_DLLAZY_OR_NOW
  1587. # ifdef RTLD_LAZY
  1588. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1589. # else
  1590. # ifdef DL_LAZY
  1591. # define LT_DLLAZY_OR_NOW DL_LAZY
  1592. # else
  1593. # ifdef RTLD_NOW
  1594. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1595. # else
  1596. # ifdef DL_NOW
  1597. # define LT_DLLAZY_OR_NOW DL_NOW
  1598. # else
  1599. # define LT_DLLAZY_OR_NOW 0
  1600. # endif
  1601. # endif
  1602. # endif
  1603. # endif
  1604. #endif
  1605. /* When -fvisbility=hidden is used, assume the code has been annotated
  1606. correspondingly for the symbols needed. */
  1607. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1608. int fnord () __attribute__((visibility("default")));
  1609. #endif
  1610. int fnord () { return 42; }
  1611. int main ()
  1612. {
  1613. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1614. int status = $lt_dlunknown;
  1615. if (self)
  1616. {
  1617. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1618. else
  1619. {
  1620. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1621. else puts (dlerror ());
  1622. }
  1623. /* dlclose (self); */
  1624. }
  1625. else
  1626. puts (dlerror ());
  1627. return status;
  1628. }]
  1629. _LT_EOF
  1630. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1631. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1632. lt_status=$?
  1633. case x$lt_status in
  1634. x$lt_dlno_uscore) $1 ;;
  1635. x$lt_dlneed_uscore) $2 ;;
  1636. x$lt_dlunknown|x*) $3 ;;
  1637. esac
  1638. else :
  1639. # compilation failed
  1640. $3
  1641. fi
  1642. fi
  1643. rm -fr conftest*
  1644. ])# _LT_TRY_DLOPEN_SELF
  1645. # LT_SYS_DLOPEN_SELF
  1646. # ------------------
  1647. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1648. [m4_require([_LT_HEADER_DLFCN])dnl
  1649. if test "x$enable_dlopen" != xyes; then
  1650. enable_dlopen=unknown
  1651. enable_dlopen_self=unknown
  1652. enable_dlopen_self_static=unknown
  1653. else
  1654. lt_cv_dlopen=no
  1655. lt_cv_dlopen_libs=
  1656. case $host_os in
  1657. beos*)
  1658. lt_cv_dlopen="load_add_on"
  1659. lt_cv_dlopen_libs=
  1660. lt_cv_dlopen_self=yes
  1661. ;;
  1662. mingw* | pw32* | cegcc*)
  1663. lt_cv_dlopen="LoadLibrary"
  1664. lt_cv_dlopen_libs=
  1665. ;;
  1666. cygwin*)
  1667. lt_cv_dlopen="dlopen"
  1668. lt_cv_dlopen_libs=
  1669. ;;
  1670. darwin*)
  1671. # if libdl is installed we need to link against it
  1672. AC_CHECK_LIB([dl], [dlopen],
  1673. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1674. lt_cv_dlopen="dyld"
  1675. lt_cv_dlopen_libs=
  1676. lt_cv_dlopen_self=yes
  1677. ])
  1678. ;;
  1679. *)
  1680. AC_CHECK_FUNC([shl_load],
  1681. [lt_cv_dlopen="shl_load"],
  1682. [AC_CHECK_LIB([dld], [shl_load],
  1683. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1684. [AC_CHECK_FUNC([dlopen],
  1685. [lt_cv_dlopen="dlopen"],
  1686. [AC_CHECK_LIB([dl], [dlopen],
  1687. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1688. [AC_CHECK_LIB([svld], [dlopen],
  1689. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1690. [AC_CHECK_LIB([dld], [dld_link],
  1691. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1692. ])
  1693. ])
  1694. ])
  1695. ])
  1696. ])
  1697. ;;
  1698. esac
  1699. if test "x$lt_cv_dlopen" != xno; then
  1700. enable_dlopen=yes
  1701. else
  1702. enable_dlopen=no
  1703. fi
  1704. case $lt_cv_dlopen in
  1705. dlopen)
  1706. save_CPPFLAGS="$CPPFLAGS"
  1707. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1708. save_LDFLAGS="$LDFLAGS"
  1709. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1710. save_LIBS="$LIBS"
  1711. LIBS="$lt_cv_dlopen_libs $LIBS"
  1712. AC_CACHE_CHECK([whether a program can dlopen itself],
  1713. lt_cv_dlopen_self, [dnl
  1714. _LT_TRY_DLOPEN_SELF(
  1715. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1716. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1717. ])
  1718. if test "x$lt_cv_dlopen_self" = xyes; then
  1719. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1720. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1721. lt_cv_dlopen_self_static, [dnl
  1722. _LT_TRY_DLOPEN_SELF(
  1723. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1724. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1725. ])
  1726. fi
  1727. CPPFLAGS="$save_CPPFLAGS"
  1728. LDFLAGS="$save_LDFLAGS"
  1729. LIBS="$save_LIBS"
  1730. ;;
  1731. esac
  1732. case $lt_cv_dlopen_self in
  1733. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1734. *) enable_dlopen_self=unknown ;;
  1735. esac
  1736. case $lt_cv_dlopen_self_static in
  1737. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1738. *) enable_dlopen_self_static=unknown ;;
  1739. esac
  1740. fi
  1741. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1742. [Whether dlopen is supported])
  1743. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1744. [Whether dlopen of programs is supported])
  1745. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1746. [Whether dlopen of statically linked programs is supported])
  1747. ])# LT_SYS_DLOPEN_SELF
  1748. # Old name:
  1749. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1750. dnl aclocal-1.4 backwards compatibility:
  1751. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1752. # _LT_COMPILER_C_O([TAGNAME])
  1753. # ---------------------------
  1754. # Check to see if options -c and -o are simultaneously supported by compiler.
  1755. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1756. m4_defun([_LT_COMPILER_C_O],
  1757. [m4_require([_LT_DECL_SED])dnl
  1758. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1759. m4_require([_LT_TAG_COMPILER])dnl
  1760. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1761. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1762. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1763. $RM -r conftest 2>/dev/null
  1764. mkdir conftest
  1765. cd conftest
  1766. mkdir out
  1767. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1768. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1769. # Insert the option either (1) after the last *FLAGS variable, or
  1770. # (2) before a word containing "conftest.", or (3) at the end.
  1771. # Note that $ac_compile itself does not contain backslashes and begins
  1772. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1773. lt_compile=`echo "$ac_compile" | $SED \
  1774. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1775. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1776. -e 's:$: $lt_compiler_flag:'`
  1777. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1778. (eval "$lt_compile" 2>out/conftest.err)
  1779. ac_status=$?
  1780. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1781. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1782. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1783. then
  1784. # The compiler can only warn and ignore the option if not recognized
  1785. # So say no if there are warnings
  1786. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1787. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1788. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1789. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1790. fi
  1791. fi
  1792. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1793. $RM conftest*
  1794. # SGI C++ compiler will create directory out/ii_files/ for
  1795. # template instantiation
  1796. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1797. $RM out/* && rmdir out
  1798. cd ..
  1799. $RM -r conftest
  1800. $RM conftest*
  1801. ])
  1802. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1803. [Does compiler simultaneously support -c and -o options?])
  1804. ])# _LT_COMPILER_C_O
  1805. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1806. # ----------------------------------
  1807. # Check to see if we can do hard links to lock some files if needed
  1808. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1809. [m4_require([_LT_ENABLE_LOCK])dnl
  1810. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1811. _LT_COMPILER_C_O([$1])
  1812. hard_links="nottested"
  1813. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1814. # do not overwrite the value of need_locks provided by the user
  1815. AC_MSG_CHECKING([if we can lock with hard links])
  1816. hard_links=yes
  1817. $RM conftest*
  1818. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1819. touch conftest.a
  1820. ln conftest.a conftest.b 2>&5 || hard_links=no
  1821. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1822. AC_MSG_RESULT([$hard_links])
  1823. if test "$hard_links" = no; then
  1824. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1825. need_locks=warn
  1826. fi
  1827. else
  1828. need_locks=no
  1829. fi
  1830. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1831. ])# _LT_COMPILER_FILE_LOCKS
  1832. # _LT_CHECK_OBJDIR
  1833. # ----------------
  1834. m4_defun([_LT_CHECK_OBJDIR],
  1835. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1836. [rm -f .libs 2>/dev/null
  1837. mkdir .libs 2>/dev/null
  1838. if test -d .libs; then
  1839. lt_cv_objdir=.libs
  1840. else
  1841. # MS-DOS does not allow filenames that begin with a dot.
  1842. lt_cv_objdir=_libs
  1843. fi
  1844. rmdir .libs 2>/dev/null])
  1845. objdir=$lt_cv_objdir
  1846. _LT_DECL([], [objdir], [0],
  1847. [The name of the directory that contains temporary libtool files])dnl
  1848. m4_pattern_allow([LT_OBJDIR])dnl
  1849. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1850. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1851. ])# _LT_CHECK_OBJDIR
  1852. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1853. # --------------------------------------
  1854. # Check hardcoding attributes.
  1855. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1856. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1857. _LT_TAGVAR(hardcode_action, $1)=
  1858. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1859. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1860. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1861. # We can hardcode non-existent directories.
  1862. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1863. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1864. # have to relink, otherwise we might link with an installed library
  1865. # when we should be linking with a yet-to-be-installed one
  1866. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1867. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1868. # Linking always hardcodes the temporary library directory.
  1869. _LT_TAGVAR(hardcode_action, $1)=relink
  1870. else
  1871. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1872. _LT_TAGVAR(hardcode_action, $1)=immediate
  1873. fi
  1874. else
  1875. # We cannot hardcode anything, or else we can only hardcode existing
  1876. # directories.
  1877. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1878. fi
  1879. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1880. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1881. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1882. # Fast installation is not supported
  1883. enable_fast_install=no
  1884. elif test "$shlibpath_overrides_runpath" = yes ||
  1885. test "$enable_shared" = no; then
  1886. # Fast installation is not necessary
  1887. enable_fast_install=needless
  1888. fi
  1889. _LT_TAGDECL([], [hardcode_action], [0],
  1890. [How to hardcode a shared library path into an executable])
  1891. ])# _LT_LINKER_HARDCODE_LIBPATH
  1892. # _LT_CMD_STRIPLIB
  1893. # ----------------
  1894. m4_defun([_LT_CMD_STRIPLIB],
  1895. [m4_require([_LT_DECL_EGREP])
  1896. striplib=
  1897. old_striplib=
  1898. AC_MSG_CHECKING([whether stripping libraries is possible])
  1899. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1900. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1901. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1902. AC_MSG_RESULT([yes])
  1903. else
  1904. # FIXME - insert some real tests, host_os isn't really good enough
  1905. case $host_os in
  1906. darwin*)
  1907. if test -n "$STRIP" ; then
  1908. striplib="$STRIP -x"
  1909. old_striplib="$STRIP -S"
  1910. AC_MSG_RESULT([yes])
  1911. else
  1912. AC_MSG_RESULT([no])
  1913. fi
  1914. ;;
  1915. *)
  1916. AC_MSG_RESULT([no])
  1917. ;;
  1918. esac
  1919. fi
  1920. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1921. _LT_DECL([], [striplib], [1])
  1922. ])# _LT_CMD_STRIPLIB
  1923. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1924. # -----------------------------
  1925. # PORTME Fill in your ld.so characteristics
  1926. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1927. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1928. m4_require([_LT_DECL_EGREP])dnl
  1929. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1930. m4_require([_LT_DECL_OBJDUMP])dnl
  1931. m4_require([_LT_DECL_SED])dnl
  1932. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1933. AC_MSG_CHECKING([dynamic linker characteristics])
  1934. m4_if([$1],
  1935. [], [
  1936. if test "$GCC" = yes; then
  1937. case $host_os in
  1938. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1939. *) lt_awk_arg="/^libraries:/" ;;
  1940. esac
  1941. case $host_os in
  1942. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1943. *) lt_sed_strip_eq="s,=/,/,g" ;;
  1944. esac
  1945. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1946. case $lt_search_path_spec in
  1947. *\;*)
  1948. # if the path contains ";" then we assume it to be the separator
  1949. # otherwise default to the standard path separator (i.e. ":") - it is
  1950. # assumed that no part of a normal pathname contains ";" but that should
  1951. # okay in the real world where ";" in dirpaths is itself problematic.
  1952. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1953. ;;
  1954. *)
  1955. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1956. ;;
  1957. esac
  1958. # Ok, now we have the path, separated by spaces, we can step through it
  1959. # and add multilib dir if necessary.
  1960. lt_tmp_lt_search_path_spec=
  1961. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1962. for lt_sys_path in $lt_search_path_spec; do
  1963. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1964. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1965. else
  1966. test -d "$lt_sys_path" && \
  1967. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1968. fi
  1969. done
  1970. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1971. BEGIN {RS=" "; FS="/|\n";} {
  1972. lt_foo="";
  1973. lt_count=0;
  1974. for (lt_i = NF; lt_i > 0; lt_i--) {
  1975. if ($lt_i != "" && $lt_i != ".") {
  1976. if ($lt_i == "..") {
  1977. lt_count++;
  1978. } else {
  1979. if (lt_count == 0) {
  1980. lt_foo="/" $lt_i lt_foo;
  1981. } else {
  1982. lt_count--;
  1983. }
  1984. }
  1985. }
  1986. }
  1987. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1988. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1989. }'`
  1990. # AWK program above erroneously prepends '/' to C:/dos/paths
  1991. # for these hosts.
  1992. case $host_os in
  1993. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1994. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1995. esac
  1996. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1997. else
  1998. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1999. fi])
  2000. library_names_spec=
  2001. libname_spec='lib$name'
  2002. soname_spec=
  2003. shrext_cmds=".so"
  2004. postinstall_cmds=
  2005. postuninstall_cmds=
  2006. finish_cmds=
  2007. finish_eval=
  2008. shlibpath_var=
  2009. shlibpath_overrides_runpath=unknown
  2010. version_type=none
  2011. dynamic_linker="$host_os ld.so"
  2012. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2013. need_lib_prefix=unknown
  2014. hardcode_into_libs=no
  2015. # when you set need_version to no, make sure it does not cause -set_version
  2016. # flags to be left without arguments
  2017. need_version=unknown
  2018. case $host_os in
  2019. aix3*)
  2020. version_type=linux # correct to gnu/linux during the next big refactor
  2021. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2022. shlibpath_var=LIBPATH
  2023. # AIX 3 has no versioning support, so we append a major version to the name.
  2024. soname_spec='${libname}${release}${shared_ext}$major'
  2025. ;;
  2026. aix[[4-9]]*)
  2027. version_type=linux # correct to gnu/linux during the next big refactor
  2028. need_lib_prefix=no
  2029. need_version=no
  2030. hardcode_into_libs=yes
  2031. if test "$host_cpu" = ia64; then
  2032. # AIX 5 supports IA64
  2033. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2034. shlibpath_var=LD_LIBRARY_PATH
  2035. else
  2036. # With GCC up to 2.95.x, collect2 would create an import file
  2037. # for dependence libraries. The import file would start with
  2038. # the line `#! .'. This would cause the generated library to
  2039. # depend on `.', always an invalid library. This was fixed in
  2040. # development snapshots of GCC prior to 3.0.
  2041. case $host_os in
  2042. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2043. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2044. echo ' yes '
  2045. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2046. :
  2047. else
  2048. can_build_shared=no
  2049. fi
  2050. ;;
  2051. esac
  2052. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2053. # soname into executable. Probably we can add versioning support to
  2054. # collect2, so additional links can be useful in future.
  2055. if test "$aix_use_runtimelinking" = yes; then
  2056. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2057. # instead of lib<name>.a to let people know that these are not
  2058. # typical AIX shared libraries.
  2059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2060. else
  2061. # We preserve .a as extension for shared libraries through AIX4.2
  2062. # and later when we are not doing run time linking.
  2063. library_names_spec='${libname}${release}.a $libname.a'
  2064. soname_spec='${libname}${release}${shared_ext}$major'
  2065. fi
  2066. shlibpath_var=LIBPATH
  2067. fi
  2068. ;;
  2069. amigaos*)
  2070. case $host_cpu in
  2071. powerpc)
  2072. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2073. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2075. ;;
  2076. m68k)
  2077. library_names_spec='$libname.ixlibrary $libname.a'
  2078. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2079. 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'
  2080. ;;
  2081. esac
  2082. ;;
  2083. beos*)
  2084. library_names_spec='${libname}${shared_ext}'
  2085. dynamic_linker="$host_os ld.so"
  2086. shlibpath_var=LIBRARY_PATH
  2087. ;;
  2088. bsdi[[45]]*)
  2089. version_type=linux # correct to gnu/linux during the next big refactor
  2090. need_version=no
  2091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2092. soname_spec='${libname}${release}${shared_ext}$major'
  2093. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2094. shlibpath_var=LD_LIBRARY_PATH
  2095. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2096. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2097. # the default ld.so.conf also contains /usr/contrib/lib and
  2098. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2099. # libtool to hard-code these into programs
  2100. ;;
  2101. cygwin* | mingw* | pw32* | cegcc*)
  2102. version_type=windows
  2103. shrext_cmds=".dll"
  2104. need_version=no
  2105. need_lib_prefix=no
  2106. case $GCC,$cc_basename in
  2107. yes,*)
  2108. # gcc
  2109. library_names_spec='$libname.dll.a'
  2110. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2111. postinstall_cmds='base_file=`basename \${file}`~
  2112. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2113. dldir=$destdir/`dirname \$dlpath`~
  2114. test -d \$dldir || mkdir -p \$dldir~
  2115. $install_prog $dir/$dlname \$dldir/$dlname~
  2116. chmod a+x \$dldir/$dlname~
  2117. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2118. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2119. fi'
  2120. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2121. dlpath=$dir/\$dldll~
  2122. $RM \$dlpath'
  2123. shlibpath_overrides_runpath=yes
  2124. case $host_os in
  2125. cygwin*)
  2126. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2127. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2128. m4_if([$1], [],[
  2129. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2130. ;;
  2131. mingw* | cegcc*)
  2132. # MinGW DLLs use traditional 'lib' prefix
  2133. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2134. ;;
  2135. pw32*)
  2136. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2137. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2138. ;;
  2139. esac
  2140. dynamic_linker='Win32 ld.exe'
  2141. ;;
  2142. *,cl*)
  2143. # Native MSVC
  2144. libname_spec='$name'
  2145. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2146. library_names_spec='${libname}.dll.lib'
  2147. case $build_os in
  2148. mingw*)
  2149. sys_lib_search_path_spec=
  2150. lt_save_ifs=$IFS
  2151. IFS=';'
  2152. for lt_path in $LIB
  2153. do
  2154. IFS=$lt_save_ifs
  2155. # Let DOS variable expansion print the short 8.3 style file name.
  2156. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2157. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2158. done
  2159. IFS=$lt_save_ifs
  2160. # Convert to MSYS style.
  2161. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2162. ;;
  2163. cygwin*)
  2164. # Convert to unix form, then to dos form, then back to unix form
  2165. # but this time dos style (no spaces!) so that the unix form looks
  2166. # like /cygdrive/c/PROGRA~1:/cygdr...
  2167. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2168. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2169. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2170. ;;
  2171. *)
  2172. sys_lib_search_path_spec="$LIB"
  2173. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2174. # It is most probably a Windows format PATH.
  2175. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2176. else
  2177. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2178. fi
  2179. # FIXME: find the short name or the path components, as spaces are
  2180. # common. (e.g. "Program Files" -> "PROGRA~1")
  2181. ;;
  2182. esac
  2183. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2184. postinstall_cmds='base_file=`basename \${file}`~
  2185. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2186. dldir=$destdir/`dirname \$dlpath`~
  2187. test -d \$dldir || mkdir -p \$dldir~
  2188. $install_prog $dir/$dlname \$dldir/$dlname'
  2189. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2190. dlpath=$dir/\$dldll~
  2191. $RM \$dlpath'
  2192. shlibpath_overrides_runpath=yes
  2193. dynamic_linker='Win32 link.exe'
  2194. ;;
  2195. *)
  2196. # Assume MSVC wrapper
  2197. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2198. dynamic_linker='Win32 ld.exe'
  2199. ;;
  2200. esac
  2201. # FIXME: first we should search . and the directory the executable is in
  2202. shlibpath_var=PATH
  2203. ;;
  2204. darwin* | rhapsody*)
  2205. dynamic_linker="$host_os dyld"
  2206. version_type=darwin
  2207. need_lib_prefix=no
  2208. need_version=no
  2209. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2210. soname_spec='${libname}${release}${major}$shared_ext'
  2211. shlibpath_overrides_runpath=yes
  2212. shlibpath_var=DYLD_LIBRARY_PATH
  2213. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2214. m4_if([$1], [],[
  2215. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2216. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2217. ;;
  2218. dgux*)
  2219. version_type=linux # correct to gnu/linux during the next big refactor
  2220. need_lib_prefix=no
  2221. need_version=no
  2222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2223. soname_spec='${libname}${release}${shared_ext}$major'
  2224. shlibpath_var=LD_LIBRARY_PATH
  2225. ;;
  2226. freebsd* | dragonfly*)
  2227. # DragonFly does not have aout. When/if they implement a new
  2228. # versioning mechanism, adjust this.
  2229. if test -x /usr/bin/objformat; then
  2230. objformat=`/usr/bin/objformat`
  2231. else
  2232. case $host_os in
  2233. freebsd[[23]].*) objformat=aout ;;
  2234. *) objformat=elf ;;
  2235. esac
  2236. fi
  2237. version_type=freebsd-$objformat
  2238. case $version_type in
  2239. freebsd-elf*)
  2240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2241. need_version=no
  2242. need_lib_prefix=no
  2243. ;;
  2244. freebsd-*)
  2245. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2246. need_version=yes
  2247. ;;
  2248. esac
  2249. shlibpath_var=LD_LIBRARY_PATH
  2250. case $host_os in
  2251. freebsd2.*)
  2252. shlibpath_overrides_runpath=yes
  2253. ;;
  2254. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2255. shlibpath_overrides_runpath=yes
  2256. hardcode_into_libs=yes
  2257. ;;
  2258. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2259. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2260. shlibpath_overrides_runpath=no
  2261. hardcode_into_libs=yes
  2262. ;;
  2263. *) # from 4.6 on, and DragonFly
  2264. shlibpath_overrides_runpath=yes
  2265. hardcode_into_libs=yes
  2266. ;;
  2267. esac
  2268. ;;
  2269. gnu*)
  2270. version_type=linux # correct to gnu/linux during the next big refactor
  2271. need_lib_prefix=no
  2272. need_version=no
  2273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2274. soname_spec='${libname}${release}${shared_ext}$major'
  2275. shlibpath_var=LD_LIBRARY_PATH
  2276. shlibpath_overrides_runpath=no
  2277. hardcode_into_libs=yes
  2278. ;;
  2279. haiku*)
  2280. version_type=linux # correct to gnu/linux during the next big refactor
  2281. need_lib_prefix=no
  2282. need_version=no
  2283. dynamic_linker="$host_os runtime_loader"
  2284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2285. soname_spec='${libname}${release}${shared_ext}$major'
  2286. shlibpath_var=LIBRARY_PATH
  2287. shlibpath_overrides_runpath=yes
  2288. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2289. hardcode_into_libs=yes
  2290. ;;
  2291. hpux9* | hpux10* | hpux11*)
  2292. # Give a soname corresponding to the major version so that dld.sl refuses to
  2293. # link against other versions.
  2294. version_type=sunos
  2295. need_lib_prefix=no
  2296. need_version=no
  2297. case $host_cpu in
  2298. ia64*)
  2299. shrext_cmds='.so'
  2300. hardcode_into_libs=yes
  2301. dynamic_linker="$host_os dld.so"
  2302. shlibpath_var=LD_LIBRARY_PATH
  2303. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2305. soname_spec='${libname}${release}${shared_ext}$major'
  2306. if test "X$HPUX_IA64_MODE" = X32; then
  2307. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2308. else
  2309. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2310. fi
  2311. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2312. ;;
  2313. hppa*64*)
  2314. shrext_cmds='.sl'
  2315. hardcode_into_libs=yes
  2316. dynamic_linker="$host_os dld.sl"
  2317. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2318. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2320. soname_spec='${libname}${release}${shared_ext}$major'
  2321. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2322. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2323. ;;
  2324. *)
  2325. shrext_cmds='.sl'
  2326. dynamic_linker="$host_os dld.sl"
  2327. shlibpath_var=SHLIB_PATH
  2328. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2330. soname_spec='${libname}${release}${shared_ext}$major'
  2331. ;;
  2332. esac
  2333. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2334. postinstall_cmds='chmod 555 $lib'
  2335. # or fails outright, so override atomically:
  2336. install_override_mode=555
  2337. ;;
  2338. interix[[3-9]]*)
  2339. version_type=linux # correct to gnu/linux during the next big refactor
  2340. need_lib_prefix=no
  2341. need_version=no
  2342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2343. soname_spec='${libname}${release}${shared_ext}$major'
  2344. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2345. shlibpath_var=LD_LIBRARY_PATH
  2346. shlibpath_overrides_runpath=no
  2347. hardcode_into_libs=yes
  2348. ;;
  2349. irix5* | irix6* | nonstopux*)
  2350. case $host_os in
  2351. nonstopux*) version_type=nonstopux ;;
  2352. *)
  2353. if test "$lt_cv_prog_gnu_ld" = yes; then
  2354. version_type=linux # correct to gnu/linux during the next big refactor
  2355. else
  2356. version_type=irix
  2357. fi ;;
  2358. esac
  2359. need_lib_prefix=no
  2360. need_version=no
  2361. soname_spec='${libname}${release}${shared_ext}$major'
  2362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2363. case $host_os in
  2364. irix5* | nonstopux*)
  2365. libsuff= shlibsuff=
  2366. ;;
  2367. *)
  2368. case $LD in # libtool.m4 will add one of these switches to LD
  2369. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2370. libsuff= shlibsuff= libmagic=32-bit;;
  2371. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2372. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2373. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2374. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2375. *) libsuff= shlibsuff= libmagic=never-match;;
  2376. esac
  2377. ;;
  2378. esac
  2379. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2380. shlibpath_overrides_runpath=no
  2381. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2382. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2383. hardcode_into_libs=yes
  2384. ;;
  2385. # No shared lib support for Linux oldld, aout, or coff.
  2386. linux*oldld* | linux*aout* | linux*coff*)
  2387. dynamic_linker=no
  2388. ;;
  2389. # This must be glibc/ELF.
  2390. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2391. version_type=linux # correct to gnu/linux during the next big refactor
  2392. need_lib_prefix=no
  2393. need_version=no
  2394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2395. soname_spec='${libname}${release}${shared_ext}$major'
  2396. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2397. shlibpath_var=LD_LIBRARY_PATH
  2398. shlibpath_overrides_runpath=no
  2399. # Some binutils ld are patched to set DT_RUNPATH
  2400. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2401. [lt_cv_shlibpath_overrides_runpath=no
  2402. save_LDFLAGS=$LDFLAGS
  2403. save_libdir=$libdir
  2404. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2405. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2406. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2407. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2408. [lt_cv_shlibpath_overrides_runpath=yes])])
  2409. LDFLAGS=$save_LDFLAGS
  2410. libdir=$save_libdir
  2411. ])
  2412. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2413. # This implies no fast_install, which is unacceptable.
  2414. # Some rework will be needed to allow for fast_install
  2415. # before this can be enabled.
  2416. hardcode_into_libs=yes
  2417. # Append ld.so.conf contents to the search path
  2418. if test -f /etc/ld.so.conf; then
  2419. 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' ' '`
  2420. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2421. fi
  2422. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2423. # powerpc, because MkLinux only supported shared libraries with the
  2424. # GNU dynamic linker. Since this was broken with cross compilers,
  2425. # most powerpc-linux boxes support dynamic linking these days and
  2426. # people can always --disable-shared, the test was removed, and we
  2427. # assume the GNU/Linux dynamic linker is in use.
  2428. dynamic_linker='GNU/Linux ld.so'
  2429. ;;
  2430. netbsdelf*-gnu)
  2431. version_type=linux
  2432. need_lib_prefix=no
  2433. need_version=no
  2434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2435. soname_spec='${libname}${release}${shared_ext}$major'
  2436. shlibpath_var=LD_LIBRARY_PATH
  2437. shlibpath_overrides_runpath=no
  2438. hardcode_into_libs=yes
  2439. dynamic_linker='NetBSD ld.elf_so'
  2440. ;;
  2441. netbsd*)
  2442. version_type=sunos
  2443. need_lib_prefix=no
  2444. need_version=no
  2445. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2447. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2448. dynamic_linker='NetBSD (a.out) ld.so'
  2449. else
  2450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2451. soname_spec='${libname}${release}${shared_ext}$major'
  2452. dynamic_linker='NetBSD ld.elf_so'
  2453. fi
  2454. shlibpath_var=LD_LIBRARY_PATH
  2455. shlibpath_overrides_runpath=yes
  2456. hardcode_into_libs=yes
  2457. ;;
  2458. newsos6)
  2459. version_type=linux # correct to gnu/linux during the next big refactor
  2460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2461. shlibpath_var=LD_LIBRARY_PATH
  2462. shlibpath_overrides_runpath=yes
  2463. ;;
  2464. *nto* | *qnx*)
  2465. version_type=qnx
  2466. need_lib_prefix=no
  2467. need_version=no
  2468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2469. soname_spec='${libname}${release}${shared_ext}$major'
  2470. shlibpath_var=LD_LIBRARY_PATH
  2471. shlibpath_overrides_runpath=no
  2472. hardcode_into_libs=yes
  2473. dynamic_linker='ldqnx.so'
  2474. ;;
  2475. openbsd*)
  2476. version_type=sunos
  2477. sys_lib_dlsearch_path_spec="/usr/lib"
  2478. need_lib_prefix=no
  2479. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2480. case $host_os in
  2481. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2482. *) need_version=no ;;
  2483. esac
  2484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2485. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2486. shlibpath_var=LD_LIBRARY_PATH
  2487. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2488. case $host_os in
  2489. openbsd2.[[89]] | openbsd2.[[89]].*)
  2490. shlibpath_overrides_runpath=no
  2491. ;;
  2492. *)
  2493. shlibpath_overrides_runpath=yes
  2494. ;;
  2495. esac
  2496. else
  2497. shlibpath_overrides_runpath=yes
  2498. fi
  2499. ;;
  2500. os2*)
  2501. libname_spec='$name'
  2502. shrext_cmds=".dll"
  2503. need_lib_prefix=no
  2504. library_names_spec='$libname${shared_ext} $libname.a'
  2505. dynamic_linker='OS/2 ld.exe'
  2506. shlibpath_var=LIBPATH
  2507. ;;
  2508. osf3* | osf4* | osf5*)
  2509. version_type=osf
  2510. need_lib_prefix=no
  2511. need_version=no
  2512. soname_spec='${libname}${release}${shared_ext}$major'
  2513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2514. shlibpath_var=LD_LIBRARY_PATH
  2515. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2516. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2517. ;;
  2518. rdos*)
  2519. dynamic_linker=no
  2520. ;;
  2521. solaris*)
  2522. version_type=linux # correct to gnu/linux during the next big refactor
  2523. need_lib_prefix=no
  2524. need_version=no
  2525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2526. soname_spec='${libname}${release}${shared_ext}$major'
  2527. shlibpath_var=LD_LIBRARY_PATH
  2528. shlibpath_overrides_runpath=yes
  2529. hardcode_into_libs=yes
  2530. # ldd complains unless libraries are executable
  2531. postinstall_cmds='chmod +x $lib'
  2532. ;;
  2533. sunos4*)
  2534. version_type=sunos
  2535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2536. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2537. shlibpath_var=LD_LIBRARY_PATH
  2538. shlibpath_overrides_runpath=yes
  2539. if test "$with_gnu_ld" = yes; then
  2540. need_lib_prefix=no
  2541. fi
  2542. need_version=yes
  2543. ;;
  2544. sysv4 | sysv4.3*)
  2545. version_type=linux # correct to gnu/linux during the next big refactor
  2546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2547. soname_spec='${libname}${release}${shared_ext}$major'
  2548. shlibpath_var=LD_LIBRARY_PATH
  2549. case $host_vendor in
  2550. sni)
  2551. shlibpath_overrides_runpath=no
  2552. need_lib_prefix=no
  2553. runpath_var=LD_RUN_PATH
  2554. ;;
  2555. siemens)
  2556. need_lib_prefix=no
  2557. ;;
  2558. motorola)
  2559. need_lib_prefix=no
  2560. need_version=no
  2561. shlibpath_overrides_runpath=no
  2562. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2563. ;;
  2564. esac
  2565. ;;
  2566. sysv4*MP*)
  2567. if test -d /usr/nec ;then
  2568. version_type=linux # correct to gnu/linux during the next big refactor
  2569. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2570. soname_spec='$libname${shared_ext}.$major'
  2571. shlibpath_var=LD_LIBRARY_PATH
  2572. fi
  2573. ;;
  2574. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2575. version_type=freebsd-elf
  2576. need_lib_prefix=no
  2577. need_version=no
  2578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2579. soname_spec='${libname}${release}${shared_ext}$major'
  2580. shlibpath_var=LD_LIBRARY_PATH
  2581. shlibpath_overrides_runpath=yes
  2582. hardcode_into_libs=yes
  2583. if test "$with_gnu_ld" = yes; then
  2584. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2585. else
  2586. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2587. case $host_os in
  2588. sco3.2v5*)
  2589. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2590. ;;
  2591. esac
  2592. fi
  2593. sys_lib_dlsearch_path_spec='/usr/lib'
  2594. ;;
  2595. tpf*)
  2596. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2597. version_type=linux # correct to gnu/linux during the next big refactor
  2598. need_lib_prefix=no
  2599. need_version=no
  2600. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2601. shlibpath_var=LD_LIBRARY_PATH
  2602. shlibpath_overrides_runpath=no
  2603. hardcode_into_libs=yes
  2604. ;;
  2605. uts4*)
  2606. version_type=linux # correct to gnu/linux during the next big refactor
  2607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2608. soname_spec='${libname}${release}${shared_ext}$major'
  2609. shlibpath_var=LD_LIBRARY_PATH
  2610. ;;
  2611. *)
  2612. dynamic_linker=no
  2613. ;;
  2614. esac
  2615. AC_MSG_RESULT([$dynamic_linker])
  2616. test "$dynamic_linker" = no && can_build_shared=no
  2617. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2618. if test "$GCC" = yes; then
  2619. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2620. fi
  2621. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2622. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2623. fi
  2624. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2625. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2626. fi
  2627. _LT_DECL([], [variables_saved_for_relink], [1],
  2628. [Variables whose values should be saved in libtool wrapper scripts and
  2629. restored at link time])
  2630. _LT_DECL([], [need_lib_prefix], [0],
  2631. [Do we need the "lib" prefix for modules?])
  2632. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2633. _LT_DECL([], [version_type], [0], [Library versioning type])
  2634. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2635. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2636. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2637. [Is shlibpath searched before the hard-coded library search path?])
  2638. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2639. _LT_DECL([], [library_names_spec], [1],
  2640. [[List of archive names. First name is the real one, the rest are links.
  2641. The last name is the one that the linker finds with -lNAME]])
  2642. _LT_DECL([], [soname_spec], [1],
  2643. [[The coded name of the library, if different from the real name]])
  2644. _LT_DECL([], [install_override_mode], [1],
  2645. [Permission mode override for installation of shared libraries])
  2646. _LT_DECL([], [postinstall_cmds], [2],
  2647. [Command to use after installation of a shared archive])
  2648. _LT_DECL([], [postuninstall_cmds], [2],
  2649. [Command to use after uninstallation of a shared archive])
  2650. _LT_DECL([], [finish_cmds], [2],
  2651. [Commands used to finish a libtool library installation in a directory])
  2652. _LT_DECL([], [finish_eval], [1],
  2653. [[As "finish_cmds", except a single script fragment to be evaled but
  2654. not shown]])
  2655. _LT_DECL([], [hardcode_into_libs], [0],
  2656. [Whether we should hardcode library paths into libraries])
  2657. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2658. [Compile-time system search path for libraries])
  2659. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2660. [Run-time system search path for libraries])
  2661. ])# _LT_SYS_DYNAMIC_LINKER
  2662. # _LT_PATH_TOOL_PREFIX(TOOL)
  2663. # --------------------------
  2664. # find a file program which can recognize shared library
  2665. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2666. [m4_require([_LT_DECL_EGREP])dnl
  2667. AC_MSG_CHECKING([for $1])
  2668. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2669. [case $MAGIC_CMD in
  2670. [[\\/*] | ?:[\\/]*])
  2671. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2672. ;;
  2673. *)
  2674. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2675. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2676. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2677. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2678. dnl not every word. This closes a longstanding sh security hole.
  2679. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2680. for ac_dir in $ac_dummy; do
  2681. IFS="$lt_save_ifs"
  2682. test -z "$ac_dir" && ac_dir=.
  2683. if test -f $ac_dir/$1; then
  2684. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2685. if test -n "$file_magic_test_file"; then
  2686. case $deplibs_check_method in
  2687. "file_magic "*)
  2688. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2689. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2690. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2691. $EGREP "$file_magic_regex" > /dev/null; then
  2692. :
  2693. else
  2694. cat <<_LT_EOF 1>&2
  2695. *** Warning: the command libtool uses to detect shared libraries,
  2696. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2697. *** The result is that libtool may fail to recognize shared libraries
  2698. *** as such. This will affect the creation of libtool libraries that
  2699. *** depend on shared libraries, but programs linked with such libtool
  2700. *** libraries will work regardless of this problem. Nevertheless, you
  2701. *** may want to report the problem to your system manager and/or to
  2702. *** bug-libtool@gnu.org
  2703. _LT_EOF
  2704. fi ;;
  2705. esac
  2706. fi
  2707. break
  2708. fi
  2709. done
  2710. IFS="$lt_save_ifs"
  2711. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2712. ;;
  2713. esac])
  2714. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2715. if test -n "$MAGIC_CMD"; then
  2716. AC_MSG_RESULT($MAGIC_CMD)
  2717. else
  2718. AC_MSG_RESULT(no)
  2719. fi
  2720. _LT_DECL([], [MAGIC_CMD], [0],
  2721. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2722. ])# _LT_PATH_TOOL_PREFIX
  2723. # Old name:
  2724. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2725. dnl aclocal-1.4 backwards compatibility:
  2726. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2727. # _LT_PATH_MAGIC
  2728. # --------------
  2729. # find a file program which can recognize a shared library
  2730. m4_defun([_LT_PATH_MAGIC],
  2731. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2732. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2733. if test -n "$ac_tool_prefix"; then
  2734. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2735. else
  2736. MAGIC_CMD=:
  2737. fi
  2738. fi
  2739. ])# _LT_PATH_MAGIC
  2740. # LT_PATH_LD
  2741. # ----------
  2742. # find the pathname to the GNU or non-GNU linker
  2743. AC_DEFUN([LT_PATH_LD],
  2744. [AC_REQUIRE([AC_PROG_CC])dnl
  2745. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2746. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2747. m4_require([_LT_DECL_SED])dnl
  2748. m4_require([_LT_DECL_EGREP])dnl
  2749. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2750. AC_ARG_WITH([gnu-ld],
  2751. [AS_HELP_STRING([--with-gnu-ld],
  2752. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2753. [test "$withval" = no || with_gnu_ld=yes],
  2754. [with_gnu_ld=no])dnl
  2755. ac_prog=ld
  2756. if test "$GCC" = yes; then
  2757. # Check if gcc -print-prog-name=ld gives a path.
  2758. AC_MSG_CHECKING([for ld used by $CC])
  2759. case $host in
  2760. *-*-mingw*)
  2761. # gcc leaves a trailing carriage return which upsets mingw
  2762. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2763. *)
  2764. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2765. esac
  2766. case $ac_prog in
  2767. # Accept absolute paths.
  2768. [[\\/]]* | ?:[[\\/]]*)
  2769. re_direlt='/[[^/]][[^/]]*/\.\./'
  2770. # Canonicalize the pathname of ld
  2771. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2772. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2773. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2774. done
  2775. test -z "$LD" && LD="$ac_prog"
  2776. ;;
  2777. "")
  2778. # If it fails, then pretend we aren't using GCC.
  2779. ac_prog=ld
  2780. ;;
  2781. *)
  2782. # If it is relative, then search for the first ld in PATH.
  2783. with_gnu_ld=unknown
  2784. ;;
  2785. esac
  2786. elif test "$with_gnu_ld" = yes; then
  2787. AC_MSG_CHECKING([for GNU ld])
  2788. else
  2789. AC_MSG_CHECKING([for non-GNU ld])
  2790. fi
  2791. AC_CACHE_VAL(lt_cv_path_LD,
  2792. [if test -z "$LD"; then
  2793. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2794. for ac_dir in $PATH; do
  2795. IFS="$lt_save_ifs"
  2796. test -z "$ac_dir" && ac_dir=.
  2797. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2798. lt_cv_path_LD="$ac_dir/$ac_prog"
  2799. # Check to see if the program is GNU ld. I'd rather use --version,
  2800. # but apparently some variants of GNU ld only accept -v.
  2801. # Break only if it was the GNU/non-GNU ld that we prefer.
  2802. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2803. *GNU* | *'with BFD'*)
  2804. test "$with_gnu_ld" != no && break
  2805. ;;
  2806. *)
  2807. test "$with_gnu_ld" != yes && break
  2808. ;;
  2809. esac
  2810. fi
  2811. done
  2812. IFS="$lt_save_ifs"
  2813. else
  2814. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2815. fi])
  2816. LD="$lt_cv_path_LD"
  2817. if test -n "$LD"; then
  2818. AC_MSG_RESULT($LD)
  2819. else
  2820. AC_MSG_RESULT(no)
  2821. fi
  2822. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2823. _LT_PATH_LD_GNU
  2824. AC_SUBST([LD])
  2825. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2826. ])# LT_PATH_LD
  2827. # Old names:
  2828. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2829. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2830. dnl aclocal-1.4 backwards compatibility:
  2831. dnl AC_DEFUN([AM_PROG_LD], [])
  2832. dnl AC_DEFUN([AC_PROG_LD], [])
  2833. # _LT_PATH_LD_GNU
  2834. #- --------------
  2835. m4_defun([_LT_PATH_LD_GNU],
  2836. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2837. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2838. case `$LD -v 2>&1 </dev/null` in
  2839. *GNU* | *'with BFD'*)
  2840. lt_cv_prog_gnu_ld=yes
  2841. ;;
  2842. *)
  2843. lt_cv_prog_gnu_ld=no
  2844. ;;
  2845. esac])
  2846. with_gnu_ld=$lt_cv_prog_gnu_ld
  2847. ])# _LT_PATH_LD_GNU
  2848. # _LT_CMD_RELOAD
  2849. # --------------
  2850. # find reload flag for linker
  2851. # -- PORTME Some linkers may need a different reload flag.
  2852. m4_defun([_LT_CMD_RELOAD],
  2853. [AC_CACHE_CHECK([for $LD option to reload object files],
  2854. lt_cv_ld_reload_flag,
  2855. [lt_cv_ld_reload_flag='-r'])
  2856. reload_flag=$lt_cv_ld_reload_flag
  2857. case $reload_flag in
  2858. "" | " "*) ;;
  2859. *) reload_flag=" $reload_flag" ;;
  2860. esac
  2861. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2862. case $host_os in
  2863. cygwin* | mingw* | pw32* | cegcc*)
  2864. if test "$GCC" != yes; then
  2865. reload_cmds=false
  2866. fi
  2867. ;;
  2868. darwin*)
  2869. if test "$GCC" = yes; then
  2870. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2871. else
  2872. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2873. fi
  2874. ;;
  2875. esac
  2876. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2877. _LT_TAGDECL([], [reload_cmds], [2])dnl
  2878. ])# _LT_CMD_RELOAD
  2879. # _LT_CHECK_MAGIC_METHOD
  2880. # ----------------------
  2881. # how to check for library dependencies
  2882. # -- PORTME fill in with the dynamic library characteristics
  2883. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2884. [m4_require([_LT_DECL_EGREP])
  2885. m4_require([_LT_DECL_OBJDUMP])
  2886. AC_CACHE_CHECK([how to recognize dependent libraries],
  2887. lt_cv_deplibs_check_method,
  2888. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2889. lt_cv_file_magic_test_file=
  2890. lt_cv_deplibs_check_method='unknown'
  2891. # Need to set the preceding variable on all platforms that support
  2892. # interlibrary dependencies.
  2893. # 'none' -- dependencies not supported.
  2894. # `unknown' -- same as none, but documents that we really don't know.
  2895. # 'pass_all' -- all dependencies passed with no checks.
  2896. # 'test_compile' -- check by making test program.
  2897. # 'file_magic [[regex]]' -- check by looking for files in library path
  2898. # which responds to the $file_magic_cmd with a given extended regex.
  2899. # If you have `file' or equivalent on your system and you're not sure
  2900. # whether `pass_all' will *always* work, you probably want this one.
  2901. case $host_os in
  2902. aix[[4-9]]*)
  2903. lt_cv_deplibs_check_method=pass_all
  2904. ;;
  2905. beos*)
  2906. lt_cv_deplibs_check_method=pass_all
  2907. ;;
  2908. bsdi[[45]]*)
  2909. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2910. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2911. lt_cv_file_magic_test_file=/shlib/libc.so
  2912. ;;
  2913. cygwin*)
  2914. # func_win32_libid is a shell function defined in ltmain.sh
  2915. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2916. lt_cv_file_magic_cmd='func_win32_libid'
  2917. ;;
  2918. mingw* | pw32*)
  2919. # Base MSYS/MinGW do not provide the 'file' command needed by
  2920. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2921. # unless we find 'file', for example because we are cross-compiling.
  2922. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  2923. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  2924. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2925. lt_cv_file_magic_cmd='func_win32_libid'
  2926. else
  2927. # Keep this pattern in sync with the one in func_win32_libid.
  2928. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2929. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2930. fi
  2931. ;;
  2932. cegcc*)
  2933. # use the weaker test based on 'objdump'. See mingw*.
  2934. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2935. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2936. ;;
  2937. darwin* | rhapsody*)
  2938. lt_cv_deplibs_check_method=pass_all
  2939. ;;
  2940. freebsd* | dragonfly*)
  2941. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2942. case $host_cpu in
  2943. i*86 )
  2944. # Not sure whether the presence of OpenBSD here was a mistake.
  2945. # Let's accept both of them until this is cleared up.
  2946. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2947. lt_cv_file_magic_cmd=/usr/bin/file
  2948. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2949. ;;
  2950. esac
  2951. else
  2952. lt_cv_deplibs_check_method=pass_all
  2953. fi
  2954. ;;
  2955. gnu*)
  2956. lt_cv_deplibs_check_method=pass_all
  2957. ;;
  2958. haiku*)
  2959. lt_cv_deplibs_check_method=pass_all
  2960. ;;
  2961. hpux10.20* | hpux11*)
  2962. lt_cv_file_magic_cmd=/usr/bin/file
  2963. case $host_cpu in
  2964. ia64*)
  2965. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2966. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2967. ;;
  2968. hppa*64*)
  2969. [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]']
  2970. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2971. ;;
  2972. *)
  2973. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  2974. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2975. ;;
  2976. esac
  2977. ;;
  2978. interix[[3-9]]*)
  2979. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2980. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2981. ;;
  2982. irix5* | irix6* | nonstopux*)
  2983. case $LD in
  2984. *-32|*"-32 ") libmagic=32-bit;;
  2985. *-n32|*"-n32 ") libmagic=N32;;
  2986. *-64|*"-64 ") libmagic=64-bit;;
  2987. *) libmagic=never-match;;
  2988. esac
  2989. lt_cv_deplibs_check_method=pass_all
  2990. ;;
  2991. # This must be glibc/ELF.
  2992. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2993. lt_cv_deplibs_check_method=pass_all
  2994. ;;
  2995. netbsd* | netbsdelf*-gnu)
  2996. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2997. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2998. else
  2999. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3000. fi
  3001. ;;
  3002. newos6*)
  3003. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3004. lt_cv_file_magic_cmd=/usr/bin/file
  3005. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3006. ;;
  3007. *nto* | *qnx*)
  3008. lt_cv_deplibs_check_method=pass_all
  3009. ;;
  3010. openbsd*)
  3011. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3012. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3013. else
  3014. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3015. fi
  3016. ;;
  3017. osf3* | osf4* | osf5*)
  3018. lt_cv_deplibs_check_method=pass_all
  3019. ;;
  3020. rdos*)
  3021. lt_cv_deplibs_check_method=pass_all
  3022. ;;
  3023. solaris*)
  3024. lt_cv_deplibs_check_method=pass_all
  3025. ;;
  3026. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3027. lt_cv_deplibs_check_method=pass_all
  3028. ;;
  3029. sysv4 | sysv4.3*)
  3030. case $host_vendor in
  3031. motorola)
  3032. 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]]'
  3033. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3034. ;;
  3035. ncr)
  3036. lt_cv_deplibs_check_method=pass_all
  3037. ;;
  3038. sequent)
  3039. lt_cv_file_magic_cmd='/bin/file'
  3040. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3041. ;;
  3042. sni)
  3043. lt_cv_file_magic_cmd='/bin/file'
  3044. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3045. lt_cv_file_magic_test_file=/lib/libc.so
  3046. ;;
  3047. siemens)
  3048. lt_cv_deplibs_check_method=pass_all
  3049. ;;
  3050. pc)
  3051. lt_cv_deplibs_check_method=pass_all
  3052. ;;
  3053. esac
  3054. ;;
  3055. tpf*)
  3056. lt_cv_deplibs_check_method=pass_all
  3057. ;;
  3058. esac
  3059. ])
  3060. file_magic_glob=
  3061. want_nocaseglob=no
  3062. if test "$build" = "$host"; then
  3063. case $host_os in
  3064. mingw* | pw32*)
  3065. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3066. want_nocaseglob=yes
  3067. else
  3068. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3069. fi
  3070. ;;
  3071. esac
  3072. fi
  3073. file_magic_cmd=$lt_cv_file_magic_cmd
  3074. deplibs_check_method=$lt_cv_deplibs_check_method
  3075. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3076. _LT_DECL([], [deplibs_check_method], [1],
  3077. [Method to check whether dependent libraries are shared objects])
  3078. _LT_DECL([], [file_magic_cmd], [1],
  3079. [Command to use when deplibs_check_method = "file_magic"])
  3080. _LT_DECL([], [file_magic_glob], [1],
  3081. [How to find potential files when deplibs_check_method = "file_magic"])
  3082. _LT_DECL([], [want_nocaseglob], [1],
  3083. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3084. ])# _LT_CHECK_MAGIC_METHOD
  3085. # LT_PATH_NM
  3086. # ----------
  3087. # find the pathname to a BSD- or MS-compatible name lister
  3088. AC_DEFUN([LT_PATH_NM],
  3089. [AC_REQUIRE([AC_PROG_CC])dnl
  3090. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3091. [if test -n "$NM"; then
  3092. # Let the user override the test.
  3093. lt_cv_path_NM="$NM"
  3094. else
  3095. lt_nm_to_check="${ac_tool_prefix}nm"
  3096. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3097. lt_nm_to_check="$lt_nm_to_check nm"
  3098. fi
  3099. for lt_tmp_nm in $lt_nm_to_check; do
  3100. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3101. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3102. IFS="$lt_save_ifs"
  3103. test -z "$ac_dir" && ac_dir=.
  3104. tmp_nm="$ac_dir/$lt_tmp_nm"
  3105. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3106. # Check to see if the nm accepts a BSD-compat flag.
  3107. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3108. # nm: unknown option "B" ignored
  3109. # Tru64's nm complains that /dev/null is an invalid object file
  3110. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3111. */dev/null* | *'Invalid file or object type'*)
  3112. lt_cv_path_NM="$tmp_nm -B"
  3113. break
  3114. ;;
  3115. *)
  3116. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3117. */dev/null*)
  3118. lt_cv_path_NM="$tmp_nm -p"
  3119. break
  3120. ;;
  3121. *)
  3122. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3123. continue # so that we can try to find one that supports BSD flags
  3124. ;;
  3125. esac
  3126. ;;
  3127. esac
  3128. fi
  3129. done
  3130. IFS="$lt_save_ifs"
  3131. done
  3132. : ${lt_cv_path_NM=no}
  3133. fi])
  3134. if test "$lt_cv_path_NM" != "no"; then
  3135. NM="$lt_cv_path_NM"
  3136. else
  3137. # Didn't find any BSD compatible name lister, look for dumpbin.
  3138. if test -n "$DUMPBIN"; then :
  3139. # Let the user override the test.
  3140. else
  3141. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3142. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3143. *COFF*)
  3144. DUMPBIN="$DUMPBIN -symbols"
  3145. ;;
  3146. *)
  3147. DUMPBIN=:
  3148. ;;
  3149. esac
  3150. fi
  3151. AC_SUBST([DUMPBIN])
  3152. if test "$DUMPBIN" != ":"; then
  3153. NM="$DUMPBIN"
  3154. fi
  3155. fi
  3156. test -z "$NM" && NM=nm
  3157. AC_SUBST([NM])
  3158. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3159. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3160. [lt_cv_nm_interface="BSD nm"
  3161. echo "int some_variable = 0;" > conftest.$ac_ext
  3162. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3163. (eval "$ac_compile" 2>conftest.err)
  3164. cat conftest.err >&AS_MESSAGE_LOG_FD
  3165. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3166. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3167. cat conftest.err >&AS_MESSAGE_LOG_FD
  3168. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3169. cat conftest.out >&AS_MESSAGE_LOG_FD
  3170. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3171. lt_cv_nm_interface="MS dumpbin"
  3172. fi
  3173. rm -f conftest*])
  3174. ])# LT_PATH_NM
  3175. # Old names:
  3176. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3177. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3178. dnl aclocal-1.4 backwards compatibility:
  3179. dnl AC_DEFUN([AM_PROG_NM], [])
  3180. dnl AC_DEFUN([AC_PROG_NM], [])
  3181. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3182. # --------------------------------
  3183. # how to determine the name of the shared library
  3184. # associated with a specific link library.
  3185. # -- PORTME fill in with the dynamic library characteristics
  3186. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3187. [m4_require([_LT_DECL_EGREP])
  3188. m4_require([_LT_DECL_OBJDUMP])
  3189. m4_require([_LT_DECL_DLLTOOL])
  3190. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3191. lt_cv_sharedlib_from_linklib_cmd,
  3192. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3193. case $host_os in
  3194. cygwin* | mingw* | pw32* | cegcc*)
  3195. # two different shell functions defined in ltmain.sh
  3196. # decide which to use based on capabilities of $DLLTOOL
  3197. case `$DLLTOOL --help 2>&1` in
  3198. *--identify-strict*)
  3199. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3200. ;;
  3201. *)
  3202. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3203. ;;
  3204. esac
  3205. ;;
  3206. *)
  3207. # fallback: assume linklib IS sharedlib
  3208. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3209. ;;
  3210. esac
  3211. ])
  3212. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3213. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3214. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3215. [Command to associate shared and link libraries])
  3216. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3217. # _LT_PATH_MANIFEST_TOOL
  3218. # ----------------------
  3219. # locate the manifest tool
  3220. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3221. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3222. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3223. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3224. [lt_cv_path_mainfest_tool=no
  3225. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3226. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3227. cat conftest.err >&AS_MESSAGE_LOG_FD
  3228. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3229. lt_cv_path_mainfest_tool=yes
  3230. fi
  3231. rm -f conftest*])
  3232. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3233. MANIFEST_TOOL=:
  3234. fi
  3235. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3236. ])# _LT_PATH_MANIFEST_TOOL
  3237. # LT_LIB_M
  3238. # --------
  3239. # check for math library
  3240. AC_DEFUN([LT_LIB_M],
  3241. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3242. LIBM=
  3243. case $host in
  3244. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3245. # These system don't have libm, or don't need it
  3246. ;;
  3247. *-ncr-sysv4.3*)
  3248. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3249. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3250. ;;
  3251. *)
  3252. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3253. ;;
  3254. esac
  3255. AC_SUBST([LIBM])
  3256. ])# LT_LIB_M
  3257. # Old name:
  3258. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3259. dnl aclocal-1.4 backwards compatibility:
  3260. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3261. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3262. # -------------------------------
  3263. m4_defun([_LT_COMPILER_NO_RTTI],
  3264. [m4_require([_LT_TAG_COMPILER])dnl
  3265. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3266. if test "$GCC" = yes; then
  3267. case $cc_basename in
  3268. nvcc*)
  3269. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3270. *)
  3271. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3272. esac
  3273. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3274. lt_cv_prog_compiler_rtti_exceptions,
  3275. [-fno-rtti -fno-exceptions], [],
  3276. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3277. fi
  3278. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3279. [Compiler flag to turn off builtin functions])
  3280. ])# _LT_COMPILER_NO_RTTI
  3281. # _LT_CMD_GLOBAL_SYMBOLS
  3282. # ----------------------
  3283. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3284. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3285. AC_REQUIRE([AC_PROG_CC])dnl
  3286. AC_REQUIRE([AC_PROG_AWK])dnl
  3287. AC_REQUIRE([LT_PATH_NM])dnl
  3288. AC_REQUIRE([LT_PATH_LD])dnl
  3289. m4_require([_LT_DECL_SED])dnl
  3290. m4_require([_LT_DECL_EGREP])dnl
  3291. m4_require([_LT_TAG_COMPILER])dnl
  3292. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3293. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3294. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3295. [
  3296. # These are sane defaults that work on at least a few old systems.
  3297. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3298. # Character class describing NM global symbol codes.
  3299. symcode='[[BCDEGRST]]'
  3300. # Regexp to match symbols that can be accessed directly from C.
  3301. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3302. # Define system-specific variables.
  3303. case $host_os in
  3304. aix*)
  3305. symcode='[[BCDT]]'
  3306. ;;
  3307. cygwin* | mingw* | pw32* | cegcc*)
  3308. symcode='[[ABCDGISTW]]'
  3309. ;;
  3310. hpux*)
  3311. if test "$host_cpu" = ia64; then
  3312. symcode='[[ABCDEGRST]]'
  3313. fi
  3314. ;;
  3315. irix* | nonstopux*)
  3316. symcode='[[BCDEGRST]]'
  3317. ;;
  3318. osf*)
  3319. symcode='[[BCDEGQRST]]'
  3320. ;;
  3321. solaris*)
  3322. symcode='[[BDRT]]'
  3323. ;;
  3324. sco3.2v5*)
  3325. symcode='[[DT]]'
  3326. ;;
  3327. sysv4.2uw2*)
  3328. symcode='[[DT]]'
  3329. ;;
  3330. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3331. symcode='[[ABDT]]'
  3332. ;;
  3333. sysv4)
  3334. symcode='[[DFNSTU]]'
  3335. ;;
  3336. esac
  3337. # If we're using GNU nm, then use its standard symbol codes.
  3338. case `$NM -V 2>&1` in
  3339. *GNU* | *'with BFD'*)
  3340. symcode='[[ABCDGIRSTW]]' ;;
  3341. esac
  3342. # Transform an extracted symbol line into a proper C declaration.
  3343. # Some systems (esp. on ia64) link data and code symbols differently,
  3344. # so use this general approach.
  3345. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3346. # Transform an extracted symbol line into symbol name and symbol address
  3347. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3348. 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'"
  3349. # Handle CRLF in mingw tool chain
  3350. opt_cr=
  3351. case $build_os in
  3352. mingw*)
  3353. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3354. ;;
  3355. esac
  3356. # Try without a prefix underscore, then with it.
  3357. for ac_symprfx in "" "_"; do
  3358. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3359. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3360. # Write the raw and C identifiers.
  3361. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3362. # Fake it for dumpbin and say T for any non-static function
  3363. # and D for any global variable.
  3364. # Also find C++ and __fastcall symbols from MSVC++,
  3365. # which start with @ or ?.
  3366. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3367. " {last_section=section; section=\$ 3};"\
  3368. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3369. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3370. " \$ 0!~/External *\|/{next};"\
  3371. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3372. " {if(hide[section]) next};"\
  3373. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3374. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3375. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3376. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3377. " ' prfx=^$ac_symprfx]"
  3378. else
  3379. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3380. fi
  3381. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3382. # Check to see that the pipe works correctly.
  3383. pipe_works=no
  3384. rm -f conftest*
  3385. cat > conftest.$ac_ext <<_LT_EOF
  3386. #ifdef __cplusplus
  3387. extern "C" {
  3388. #endif
  3389. char nm_test_var;
  3390. void nm_test_func(void);
  3391. void nm_test_func(void){}
  3392. #ifdef __cplusplus
  3393. }
  3394. #endif
  3395. int main(){nm_test_var='a';nm_test_func();return(0);}
  3396. _LT_EOF
  3397. if AC_TRY_EVAL(ac_compile); then
  3398. # Now try to grab the symbols.
  3399. nlist=conftest.nm
  3400. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3401. # Try sorting and uniquifying the output.
  3402. if sort "$nlist" | uniq > "$nlist"T; then
  3403. mv -f "$nlist"T "$nlist"
  3404. else
  3405. rm -f "$nlist"T
  3406. fi
  3407. # Make sure that we snagged all the symbols we need.
  3408. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3409. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3410. cat <<_LT_EOF > conftest.$ac_ext
  3411. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3412. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3413. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3414. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3415. # define LT@&t@_DLSYM_CONST
  3416. #elif defined(__osf__)
  3417. /* This system does not cope well with relocations in const data. */
  3418. # define LT@&t@_DLSYM_CONST
  3419. #else
  3420. # define LT@&t@_DLSYM_CONST const
  3421. #endif
  3422. #ifdef __cplusplus
  3423. extern "C" {
  3424. #endif
  3425. _LT_EOF
  3426. # Now generate the symbol file.
  3427. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3428. cat <<_LT_EOF >> conftest.$ac_ext
  3429. /* The mapping between symbol names and symbols. */
  3430. LT@&t@_DLSYM_CONST struct {
  3431. const char *name;
  3432. void *address;
  3433. }
  3434. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3435. {
  3436. { "@PROGRAM@", (void *) 0 },
  3437. _LT_EOF
  3438. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3439. cat <<\_LT_EOF >> conftest.$ac_ext
  3440. {0, (void *) 0}
  3441. };
  3442. /* This works around a problem in FreeBSD linker */
  3443. #ifdef FREEBSD_WORKAROUND
  3444. static const void *lt_preloaded_setup() {
  3445. return lt__PROGRAM__LTX_preloaded_symbols;
  3446. }
  3447. #endif
  3448. #ifdef __cplusplus
  3449. }
  3450. #endif
  3451. _LT_EOF
  3452. # Now try linking the two files.
  3453. mv conftest.$ac_objext conftstm.$ac_objext
  3454. lt_globsym_save_LIBS=$LIBS
  3455. lt_globsym_save_CFLAGS=$CFLAGS
  3456. LIBS="conftstm.$ac_objext"
  3457. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3458. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3459. pipe_works=yes
  3460. fi
  3461. LIBS=$lt_globsym_save_LIBS
  3462. CFLAGS=$lt_globsym_save_CFLAGS
  3463. else
  3464. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3465. fi
  3466. else
  3467. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3468. fi
  3469. else
  3470. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3471. fi
  3472. else
  3473. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3474. cat conftest.$ac_ext >&5
  3475. fi
  3476. rm -rf conftest* conftst*
  3477. # Do not use the global_symbol_pipe unless it works.
  3478. if test "$pipe_works" = yes; then
  3479. break
  3480. else
  3481. lt_cv_sys_global_symbol_pipe=
  3482. fi
  3483. done
  3484. ])
  3485. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3486. lt_cv_sys_global_symbol_to_cdecl=
  3487. fi
  3488. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3489. AC_MSG_RESULT(failed)
  3490. else
  3491. AC_MSG_RESULT(ok)
  3492. fi
  3493. # Response file support.
  3494. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3495. nm_file_list_spec='@'
  3496. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3497. nm_file_list_spec='@'
  3498. fi
  3499. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3500. [Take the output of nm and produce a listing of raw symbols and C names])
  3501. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3502. [Transform the output of nm in a proper C declaration])
  3503. _LT_DECL([global_symbol_to_c_name_address],
  3504. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3505. [Transform the output of nm in a C name address pair])
  3506. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3507. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3508. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3509. _LT_DECL([], [nm_file_list_spec], [1],
  3510. [Specify filename containing input files for $NM])
  3511. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3512. # _LT_COMPILER_PIC([TAGNAME])
  3513. # ---------------------------
  3514. m4_defun([_LT_COMPILER_PIC],
  3515. [m4_require([_LT_TAG_COMPILER])dnl
  3516. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3517. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3518. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3519. m4_if([$1], [CXX], [
  3520. # C++ specific cases for pic, static, wl, etc.
  3521. if test "$GXX" = yes; then
  3522. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3523. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3524. case $host_os in
  3525. aix*)
  3526. # All AIX code is PIC.
  3527. if test "$host_cpu" = ia64; then
  3528. # AIX 5 now supports IA64 processor
  3529. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3530. fi
  3531. ;;
  3532. amigaos*)
  3533. case $host_cpu in
  3534. powerpc)
  3535. # see comment about AmigaOS4 .so support
  3536. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3537. ;;
  3538. m68k)
  3539. # FIXME: we need at least 68020 code to build shared libraries, but
  3540. # adding the `-m68020' flag to GCC prevents building anything better,
  3541. # like `-m68040'.
  3542. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3543. ;;
  3544. esac
  3545. ;;
  3546. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3547. # PIC is the default for these OSes.
  3548. ;;
  3549. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3550. # This hack is so that the source file can tell whether it is being
  3551. # built for inclusion in a dll (and should export symbols for example).
  3552. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3553. # (--disable-auto-import) libraries
  3554. m4_if([$1], [GCJ], [],
  3555. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3556. ;;
  3557. darwin* | rhapsody*)
  3558. # PIC is the default on this platform
  3559. # Common symbols not allowed in MH_DYLIB files
  3560. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3561. ;;
  3562. *djgpp*)
  3563. # DJGPP does not support shared libraries at all
  3564. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3565. ;;
  3566. haiku*)
  3567. # PIC is the default for Haiku.
  3568. # The "-static" flag exists, but is broken.
  3569. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3570. ;;
  3571. interix[[3-9]]*)
  3572. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3573. # Instead, we relocate shared libraries at runtime.
  3574. ;;
  3575. sysv4*MP*)
  3576. if test -d /usr/nec; then
  3577. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3578. fi
  3579. ;;
  3580. hpux*)
  3581. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3582. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3583. # sets the default TLS model and affects inlining.
  3584. case $host_cpu in
  3585. hppa*64*)
  3586. ;;
  3587. *)
  3588. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3589. ;;
  3590. esac
  3591. ;;
  3592. *qnx* | *nto*)
  3593. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3594. # it will coredump.
  3595. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3596. ;;
  3597. *)
  3598. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3599. ;;
  3600. esac
  3601. else
  3602. case $host_os in
  3603. aix[[4-9]]*)
  3604. # All AIX code is PIC.
  3605. if test "$host_cpu" = ia64; then
  3606. # AIX 5 now supports IA64 processor
  3607. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3608. else
  3609. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3610. fi
  3611. ;;
  3612. chorus*)
  3613. case $cc_basename in
  3614. cxch68*)
  3615. # Green Hills C++ Compiler
  3616. # _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"
  3617. ;;
  3618. esac
  3619. ;;
  3620. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3621. # This hack is so that the source file can tell whether it is being
  3622. # built for inclusion in a dll (and should export symbols for example).
  3623. m4_if([$1], [GCJ], [],
  3624. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3625. ;;
  3626. dgux*)
  3627. case $cc_basename in
  3628. ec++*)
  3629. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3630. ;;
  3631. ghcx*)
  3632. # Green Hills C++ Compiler
  3633. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3634. ;;
  3635. *)
  3636. ;;
  3637. esac
  3638. ;;
  3639. freebsd* | dragonfly*)
  3640. # FreeBSD uses GNU C++
  3641. ;;
  3642. hpux9* | hpux10* | hpux11*)
  3643. case $cc_basename in
  3644. CC*)
  3645. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3646. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3647. if test "$host_cpu" != ia64; then
  3648. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3649. fi
  3650. ;;
  3651. aCC*)
  3652. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3653. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3654. case $host_cpu in
  3655. hppa*64*|ia64*)
  3656. # +Z the default
  3657. ;;
  3658. *)
  3659. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3660. ;;
  3661. esac
  3662. ;;
  3663. *)
  3664. ;;
  3665. esac
  3666. ;;
  3667. interix*)
  3668. # This is c89, which is MS Visual C++ (no shared libs)
  3669. # Anyone wants to do a port?
  3670. ;;
  3671. irix5* | irix6* | nonstopux*)
  3672. case $cc_basename in
  3673. CC*)
  3674. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3675. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3676. # CC pic flag -KPIC is the default.
  3677. ;;
  3678. *)
  3679. ;;
  3680. esac
  3681. ;;
  3682. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3683. case $cc_basename in
  3684. KCC*)
  3685. # KAI C++ Compiler
  3686. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3687. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3688. ;;
  3689. ecpc* )
  3690. # old Intel C++ for x86_64 which still supported -KPIC.
  3691. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3692. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3693. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3694. ;;
  3695. icpc* )
  3696. # Intel C++, used to be incompatible with GCC.
  3697. # ICC 10 doesn't accept -KPIC any more.
  3698. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3699. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3700. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3701. ;;
  3702. pgCC* | pgcpp*)
  3703. # Portland Group C++ compiler
  3704. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3705. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3706. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3707. ;;
  3708. cxx*)
  3709. # Compaq C++
  3710. # Make sure the PIC flag is empty. It appears that all Alpha
  3711. # Linux and Compaq Tru64 Unix objects are PIC.
  3712. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3713. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3714. ;;
  3715. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3716. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3717. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3718. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3719. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3720. ;;
  3721. *)
  3722. case `$CC -V 2>&1 | sed 5q` in
  3723. *Sun\ C*)
  3724. # Sun C++ 5.9
  3725. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3726. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3727. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3728. ;;
  3729. esac
  3730. ;;
  3731. esac
  3732. ;;
  3733. lynxos*)
  3734. ;;
  3735. m88k*)
  3736. ;;
  3737. mvs*)
  3738. case $cc_basename in
  3739. cxx*)
  3740. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3741. ;;
  3742. *)
  3743. ;;
  3744. esac
  3745. ;;
  3746. netbsd* | netbsdelf*-gnu)
  3747. ;;
  3748. *qnx* | *nto*)
  3749. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3750. # it will coredump.
  3751. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3752. ;;
  3753. osf3* | osf4* | osf5*)
  3754. case $cc_basename in
  3755. KCC*)
  3756. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3757. ;;
  3758. RCC*)
  3759. # Rational C++ 2.4.1
  3760. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3761. ;;
  3762. cxx*)
  3763. # Digital/Compaq C++
  3764. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3765. # Make sure the PIC flag is empty. It appears that all Alpha
  3766. # Linux and Compaq Tru64 Unix objects are PIC.
  3767. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3768. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3769. ;;
  3770. *)
  3771. ;;
  3772. esac
  3773. ;;
  3774. psos*)
  3775. ;;
  3776. solaris*)
  3777. case $cc_basename in
  3778. CC* | sunCC*)
  3779. # Sun C++ 4.2, 5.x and Centerline C++
  3780. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3781. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3782. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3783. ;;
  3784. gcx*)
  3785. # Green Hills C++ Compiler
  3786. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3787. ;;
  3788. *)
  3789. ;;
  3790. esac
  3791. ;;
  3792. sunos4*)
  3793. case $cc_basename in
  3794. CC*)
  3795. # Sun C++ 4.x
  3796. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3797. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3798. ;;
  3799. lcc*)
  3800. # Lucid
  3801. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3802. ;;
  3803. *)
  3804. ;;
  3805. esac
  3806. ;;
  3807. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3808. case $cc_basename in
  3809. CC*)
  3810. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3811. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3812. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3813. ;;
  3814. esac
  3815. ;;
  3816. tandem*)
  3817. case $cc_basename in
  3818. NCC*)
  3819. # NonStop-UX NCC 3.20
  3820. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3821. ;;
  3822. *)
  3823. ;;
  3824. esac
  3825. ;;
  3826. vxworks*)
  3827. ;;
  3828. *)
  3829. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3830. ;;
  3831. esac
  3832. fi
  3833. ],
  3834. [
  3835. if test "$GCC" = yes; then
  3836. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3837. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3838. case $host_os in
  3839. aix*)
  3840. # All AIX code is PIC.
  3841. if test "$host_cpu" = ia64; then
  3842. # AIX 5 now supports IA64 processor
  3843. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3844. fi
  3845. ;;
  3846. amigaos*)
  3847. case $host_cpu in
  3848. powerpc)
  3849. # see comment about AmigaOS4 .so support
  3850. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3851. ;;
  3852. m68k)
  3853. # FIXME: we need at least 68020 code to build shared libraries, but
  3854. # adding the `-m68020' flag to GCC prevents building anything better,
  3855. # like `-m68040'.
  3856. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3857. ;;
  3858. esac
  3859. ;;
  3860. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3861. # PIC is the default for these OSes.
  3862. ;;
  3863. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3864. # This hack is so that the source file can tell whether it is being
  3865. # built for inclusion in a dll (and should export symbols for example).
  3866. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3867. # (--disable-auto-import) libraries
  3868. m4_if([$1], [GCJ], [],
  3869. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3870. ;;
  3871. darwin* | rhapsody*)
  3872. # PIC is the default on this platform
  3873. # Common symbols not allowed in MH_DYLIB files
  3874. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3875. ;;
  3876. haiku*)
  3877. # PIC is the default for Haiku.
  3878. # The "-static" flag exists, but is broken.
  3879. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3880. ;;
  3881. hpux*)
  3882. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3883. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3884. # sets the default TLS model and affects inlining.
  3885. case $host_cpu in
  3886. hppa*64*)
  3887. # +Z the default
  3888. ;;
  3889. *)
  3890. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3891. ;;
  3892. esac
  3893. ;;
  3894. interix[[3-9]]*)
  3895. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3896. # Instead, we relocate shared libraries at runtime.
  3897. ;;
  3898. msdosdjgpp*)
  3899. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3900. # on systems that don't support them.
  3901. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3902. enable_shared=no
  3903. ;;
  3904. *nto* | *qnx*)
  3905. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3906. # it will coredump.
  3907. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3908. ;;
  3909. sysv4*MP*)
  3910. if test -d /usr/nec; then
  3911. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3912. fi
  3913. ;;
  3914. *)
  3915. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3916. ;;
  3917. esac
  3918. case $cc_basename in
  3919. nvcc*) # Cuda Compiler Driver 2.2
  3920. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  3921. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  3922. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  3923. fi
  3924. ;;
  3925. esac
  3926. else
  3927. # PORTME Check for flag to pass linker flags through the system compiler.
  3928. case $host_os in
  3929. aix*)
  3930. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3931. if test "$host_cpu" = ia64; then
  3932. # AIX 5 now supports IA64 processor
  3933. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3934. else
  3935. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3936. fi
  3937. ;;
  3938. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3939. # This hack is so that the source file can tell whether it is being
  3940. # built for inclusion in a dll (and should export symbols for example).
  3941. m4_if([$1], [GCJ], [],
  3942. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3943. ;;
  3944. hpux9* | hpux10* | hpux11*)
  3945. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3946. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3947. # not for PA HP-UX.
  3948. case $host_cpu in
  3949. hppa*64*|ia64*)
  3950. # +Z the default
  3951. ;;
  3952. *)
  3953. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3954. ;;
  3955. esac
  3956. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3957. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3958. ;;
  3959. irix5* | irix6* | nonstopux*)
  3960. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3961. # PIC (with -KPIC) is the default.
  3962. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3963. ;;
  3964. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3965. case $cc_basename in
  3966. # old Intel for x86_64 which still supported -KPIC.
  3967. ecc*)
  3968. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3969. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3970. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3971. ;;
  3972. # icc used to be incompatible with GCC.
  3973. # ICC 10 doesn't accept -KPIC any more.
  3974. icc* | ifort*)
  3975. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3976. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3977. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3978. ;;
  3979. # Lahey Fortran 8.1.
  3980. lf95*)
  3981. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3982. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  3983. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  3984. ;;
  3985. nagfor*)
  3986. # NAG Fortran compiler
  3987. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  3988. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3989. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3990. ;;
  3991. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  3992. # Portland Group compilers (*not* the Pentium gcc compiler,
  3993. # which looks to be a dead project)
  3994. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3995. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3996. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3997. ;;
  3998. ccc*)
  3999. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4000. # All Alpha code is PIC.
  4001. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4002. ;;
  4003. xl* | bgxl* | bgf* | mpixl*)
  4004. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  4005. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4006. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4007. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4008. ;;
  4009. *)
  4010. case `$CC -V 2>&1 | sed 5q` in
  4011. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  4012. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4013. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4014. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4015. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4016. ;;
  4017. *Sun\ F* | *Sun*Fortran*)
  4018. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4019. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4020. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4021. ;;
  4022. *Sun\ C*)
  4023. # Sun C 5.9
  4024. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4025. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4026. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4027. ;;
  4028. *Intel*\ [[CF]]*Compiler*)
  4029. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4030. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4031. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4032. ;;
  4033. *Portland\ Group*)
  4034. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4035. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4036. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4037. ;;
  4038. esac
  4039. ;;
  4040. esac
  4041. ;;
  4042. newsos6)
  4043. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4044. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4045. ;;
  4046. *nto* | *qnx*)
  4047. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4048. # it will coredump.
  4049. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4050. ;;
  4051. osf3* | osf4* | osf5*)
  4052. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4053. # All OSF/1 code is PIC.
  4054. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4055. ;;
  4056. rdos*)
  4057. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4058. ;;
  4059. solaris*)
  4060. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4061. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4062. case $cc_basename in
  4063. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4064. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4065. *)
  4066. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4067. esac
  4068. ;;
  4069. sunos4*)
  4070. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4071. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4072. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4073. ;;
  4074. sysv4 | sysv4.2uw2* | sysv4.3*)
  4075. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4076. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4077. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4078. ;;
  4079. sysv4*MP*)
  4080. if test -d /usr/nec ;then
  4081. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4082. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4083. fi
  4084. ;;
  4085. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4086. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4087. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4088. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4089. ;;
  4090. unicos*)
  4091. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4092. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4093. ;;
  4094. uts4*)
  4095. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4096. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4097. ;;
  4098. *)
  4099. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4100. ;;
  4101. esac
  4102. fi
  4103. ])
  4104. case $host_os in
  4105. # For platforms which do not support PIC, -DPIC is meaningless:
  4106. *djgpp*)
  4107. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4108. ;;
  4109. *)
  4110. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4111. ;;
  4112. esac
  4113. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4114. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4115. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4116. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4117. #
  4118. # Check to make sure the PIC flag actually works.
  4119. #
  4120. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4121. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4122. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4123. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4124. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4125. "" | " "*) ;;
  4126. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4127. esac],
  4128. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4129. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4130. fi
  4131. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4132. [Additional compiler flags for building library objects])
  4133. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4134. [How to pass a linker flag through the compiler])
  4135. #
  4136. # Check to make sure the static flag actually works.
  4137. #
  4138. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4139. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4140. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4141. $lt_tmp_static_flag,
  4142. [],
  4143. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4144. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4145. [Compiler flag to prevent dynamic linking])
  4146. ])# _LT_COMPILER_PIC
  4147. # _LT_LINKER_SHLIBS([TAGNAME])
  4148. # ----------------------------
  4149. # See if the linker supports building shared libraries.
  4150. m4_defun([_LT_LINKER_SHLIBS],
  4151. [AC_REQUIRE([LT_PATH_LD])dnl
  4152. AC_REQUIRE([LT_PATH_NM])dnl
  4153. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4154. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4155. m4_require([_LT_DECL_EGREP])dnl
  4156. m4_require([_LT_DECL_SED])dnl
  4157. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4158. m4_require([_LT_TAG_COMPILER])dnl
  4159. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4160. m4_if([$1], [CXX], [
  4161. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4162. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4163. case $host_os in
  4164. aix[[4-9]]*)
  4165. # If we're using GNU nm, then we don't want the "-C" option.
  4166. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4167. # Also, AIX nm treats weak defined symbols like other global defined
  4168. # symbols, whereas GNU nm marks them as "W".
  4169. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4170. _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'
  4171. else
  4172. _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'
  4173. fi
  4174. ;;
  4175. pw32*)
  4176. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4177. ;;
  4178. cygwin* | mingw* | cegcc*)
  4179. case $cc_basename in
  4180. cl*)
  4181. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4182. ;;
  4183. *)
  4184. _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'
  4185. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4186. ;;
  4187. esac
  4188. ;;
  4189. linux* | k*bsd*-gnu | gnu*)
  4190. _LT_TAGVAR(link_all_deplibs, $1)=no
  4191. ;;
  4192. *)
  4193. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4194. ;;
  4195. esac
  4196. ], [
  4197. runpath_var=
  4198. _LT_TAGVAR(allow_undefined_flag, $1)=
  4199. _LT_TAGVAR(always_export_symbols, $1)=no
  4200. _LT_TAGVAR(archive_cmds, $1)=
  4201. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4202. _LT_TAGVAR(compiler_needs_object, $1)=no
  4203. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4204. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4205. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4206. _LT_TAGVAR(hardcode_automatic, $1)=no
  4207. _LT_TAGVAR(hardcode_direct, $1)=no
  4208. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4209. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4210. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4211. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4212. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4213. _LT_TAGVAR(inherit_rpath, $1)=no
  4214. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4215. _LT_TAGVAR(module_cmds, $1)=
  4216. _LT_TAGVAR(module_expsym_cmds, $1)=
  4217. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4218. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4219. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4220. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4221. # include_expsyms should be a list of space-separated symbols to be *always*
  4222. # included in the symbol list
  4223. _LT_TAGVAR(include_expsyms, $1)=
  4224. # exclude_expsyms can be an extended regexp of symbols to exclude
  4225. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4226. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4227. # as well as any symbol that contains `d'.
  4228. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4229. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4230. # platforms (ab)use it in PIC code, but their linkers get confused if
  4231. # the symbol is explicitly referenced. Since portable code cannot
  4232. # rely on this symbol name, it's probably fine to never include it in
  4233. # preloaded symbol tables.
  4234. # Exclude shared library initialization/finalization symbols.
  4235. dnl Note also adjust exclude_expsyms for C++ above.
  4236. extract_expsyms_cmds=
  4237. case $host_os in
  4238. cygwin* | mingw* | pw32* | cegcc*)
  4239. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4240. # When not using gcc, we currently assume that we are using
  4241. # Microsoft Visual C++.
  4242. if test "$GCC" != yes; then
  4243. with_gnu_ld=no
  4244. fi
  4245. ;;
  4246. interix*)
  4247. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4248. with_gnu_ld=yes
  4249. ;;
  4250. openbsd*)
  4251. with_gnu_ld=no
  4252. ;;
  4253. linux* | k*bsd*-gnu | gnu*)
  4254. _LT_TAGVAR(link_all_deplibs, $1)=no
  4255. ;;
  4256. esac
  4257. _LT_TAGVAR(ld_shlibs, $1)=yes
  4258. # On some targets, GNU ld is compatible enough with the native linker
  4259. # that we're better off using the native interface for both.
  4260. lt_use_gnu_ld_interface=no
  4261. if test "$with_gnu_ld" = yes; then
  4262. case $host_os in
  4263. aix*)
  4264. # The AIX port of GNU ld has always aspired to compatibility
  4265. # with the native linker. However, as the warning in the GNU ld
  4266. # block says, versions before 2.19.5* couldn't really create working
  4267. # shared libraries, regardless of the interface used.
  4268. case `$LD -v 2>&1` in
  4269. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4270. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4271. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4272. *)
  4273. lt_use_gnu_ld_interface=yes
  4274. ;;
  4275. esac
  4276. ;;
  4277. *)
  4278. lt_use_gnu_ld_interface=yes
  4279. ;;
  4280. esac
  4281. fi
  4282. if test "$lt_use_gnu_ld_interface" = yes; then
  4283. # If archive_cmds runs LD, not CC, wlarc should be empty
  4284. wlarc='${wl}'
  4285. # Set some defaults for GNU ld with shared library support. These
  4286. # are reset later if shared libraries are not supported. Putting them
  4287. # here allows them to be overridden if necessary.
  4288. runpath_var=LD_RUN_PATH
  4289. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4290. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4291. # ancient GNU ld didn't support --whole-archive et. al.
  4292. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4293. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4294. else
  4295. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4296. fi
  4297. supports_anon_versioning=no
  4298. case `$LD -v 2>&1` in
  4299. *GNU\ gold*) supports_anon_versioning=yes ;;
  4300. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4301. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4302. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4303. *\ 2.11.*) ;; # other 2.11 versions
  4304. *) supports_anon_versioning=yes ;;
  4305. esac
  4306. # See if GNU ld supports shared libraries.
  4307. case $host_os in
  4308. aix[[3-9]]*)
  4309. # On AIX/PPC, the GNU linker is very broken
  4310. if test "$host_cpu" != ia64; then
  4311. _LT_TAGVAR(ld_shlibs, $1)=no
  4312. cat <<_LT_EOF 1>&2
  4313. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4314. *** to be unable to reliably create shared libraries on AIX.
  4315. *** Therefore, libtool is disabling shared libraries support. If you
  4316. *** really care for shared libraries, you may want to install binutils
  4317. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4318. *** You will then need to restart the configuration process.
  4319. _LT_EOF
  4320. fi
  4321. ;;
  4322. amigaos*)
  4323. case $host_cpu in
  4324. powerpc)
  4325. # see comment about AmigaOS4 .so support
  4326. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4327. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4328. ;;
  4329. m68k)
  4330. _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)'
  4331. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4332. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4333. ;;
  4334. esac
  4335. ;;
  4336. beos*)
  4337. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4338. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4339. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4340. # support --undefined. This deserves some investigation. FIXME
  4341. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4342. else
  4343. _LT_TAGVAR(ld_shlibs, $1)=no
  4344. fi
  4345. ;;
  4346. cygwin* | mingw* | pw32* | cegcc*)
  4347. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4348. # as there is no search path for DLLs.
  4349. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4350. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4351. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4352. _LT_TAGVAR(always_export_symbols, $1)=no
  4353. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4354. _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'
  4355. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4356. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4357. _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'
  4358. # If the export-symbols file already is a .def file (1st line
  4359. # is EXPORTS), use it as is; otherwise, prepend...
  4360. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4361. cp $export_symbols $output_objdir/$soname.def;
  4362. else
  4363. echo EXPORTS > $output_objdir/$soname.def;
  4364. cat $export_symbols >> $output_objdir/$soname.def;
  4365. fi~
  4366. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4367. else
  4368. _LT_TAGVAR(ld_shlibs, $1)=no
  4369. fi
  4370. ;;
  4371. haiku*)
  4372. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4373. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4374. ;;
  4375. interix[[3-9]]*)
  4376. _LT_TAGVAR(hardcode_direct, $1)=no
  4377. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4378. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4379. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4380. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4381. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4382. # default) and relocated if they conflict, which is a slow very memory
  4383. # consuming and fragmenting process. To avoid this, we pick a random,
  4384. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4385. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4386. _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'
  4387. _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'
  4388. ;;
  4389. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4390. tmp_diet=no
  4391. if test "$host_os" = linux-dietlibc; then
  4392. case $cc_basename in
  4393. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4394. esac
  4395. fi
  4396. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4397. && test "$tmp_diet" = no
  4398. then
  4399. tmp_addflag=' $pic_flag'
  4400. tmp_sharedflag='-shared'
  4401. case $cc_basename,$host_cpu in
  4402. pgcc*) # Portland Group C compiler
  4403. _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'
  4404. tmp_addflag=' $pic_flag'
  4405. ;;
  4406. pgf77* | pgf90* | pgf95* | pgfortran*)
  4407. # Portland Group f77 and f90 compilers
  4408. _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'
  4409. tmp_addflag=' $pic_flag -Mnomain' ;;
  4410. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4411. tmp_addflag=' -i_dynamic' ;;
  4412. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4413. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4414. ifc* | ifort*) # Intel Fortran compiler
  4415. tmp_addflag=' -nofor_main' ;;
  4416. lf95*) # Lahey Fortran 8.1
  4417. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4418. tmp_sharedflag='--shared' ;;
  4419. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4420. tmp_sharedflag='-qmkshrobj'
  4421. tmp_addflag= ;;
  4422. nvcc*) # Cuda Compiler Driver 2.2
  4423. _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'
  4424. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4425. ;;
  4426. esac
  4427. case `$CC -V 2>&1 | sed 5q` in
  4428. *Sun\ C*) # Sun C 5.9
  4429. _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'
  4430. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4431. tmp_sharedflag='-G' ;;
  4432. *Sun\ F*) # Sun Fortran 8.3
  4433. tmp_sharedflag='-G' ;;
  4434. esac
  4435. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4436. if test "x$supports_anon_versioning" = xyes; then
  4437. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4438. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4439. echo "local: *; };" >> $output_objdir/$libname.ver~
  4440. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4441. fi
  4442. case $cc_basename in
  4443. xlf* | bgf* | bgxlf* | mpixlf*)
  4444. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4445. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4446. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4447. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4448. if test "x$supports_anon_versioning" = xyes; then
  4449. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4450. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4451. echo "local: *; };" >> $output_objdir/$libname.ver~
  4452. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4453. fi
  4454. ;;
  4455. esac
  4456. else
  4457. _LT_TAGVAR(ld_shlibs, $1)=no
  4458. fi
  4459. ;;
  4460. netbsd* | netbsdelf*-gnu)
  4461. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4462. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4463. wlarc=
  4464. else
  4465. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4466. _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'
  4467. fi
  4468. ;;
  4469. solaris*)
  4470. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4471. _LT_TAGVAR(ld_shlibs, $1)=no
  4472. cat <<_LT_EOF 1>&2
  4473. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4474. *** create shared libraries on Solaris systems. Therefore, libtool
  4475. *** is disabling shared libraries support. We urge you to upgrade GNU
  4476. *** binutils to release 2.9.1 or newer. Another option is to modify
  4477. *** your PATH or compiler configuration so that the native linker is
  4478. *** used, and then restart.
  4479. _LT_EOF
  4480. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4481. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4482. _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'
  4483. else
  4484. _LT_TAGVAR(ld_shlibs, $1)=no
  4485. fi
  4486. ;;
  4487. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4488. case `$LD -v 2>&1` in
  4489. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4490. _LT_TAGVAR(ld_shlibs, $1)=no
  4491. cat <<_LT_EOF 1>&2
  4492. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4493. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4494. *** is disabling shared libraries support. We urge you to upgrade GNU
  4495. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4496. *** your PATH or compiler configuration so that the native linker is
  4497. *** used, and then restart.
  4498. _LT_EOF
  4499. ;;
  4500. *)
  4501. # For security reasons, it is highly recommended that you always
  4502. # use absolute paths for naming shared libraries, and exclude the
  4503. # DT_RUNPATH tag from executables and libraries. But doing so
  4504. # requires that you compile everything twice, which is a pain.
  4505. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4506. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4507. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4508. _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'
  4509. else
  4510. _LT_TAGVAR(ld_shlibs, $1)=no
  4511. fi
  4512. ;;
  4513. esac
  4514. ;;
  4515. sunos4*)
  4516. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4517. wlarc=
  4518. _LT_TAGVAR(hardcode_direct, $1)=yes
  4519. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4520. ;;
  4521. *)
  4522. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4523. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4524. _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'
  4525. else
  4526. _LT_TAGVAR(ld_shlibs, $1)=no
  4527. fi
  4528. ;;
  4529. esac
  4530. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4531. runpath_var=
  4532. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4533. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4534. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4535. fi
  4536. else
  4537. # PORTME fill in a description of your system's linker (not GNU ld)
  4538. case $host_os in
  4539. aix3*)
  4540. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4541. _LT_TAGVAR(always_export_symbols, $1)=yes
  4542. _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'
  4543. # Note: this linker hardcodes the directories in LIBPATH if there
  4544. # are no directories specified by -L.
  4545. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4546. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4547. # Neither direct hardcoding nor static linking is supported with a
  4548. # broken collect2.
  4549. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4550. fi
  4551. ;;
  4552. aix[[4-9]]*)
  4553. if test "$host_cpu" = ia64; then
  4554. # On IA64, the linker does run time linking by default, so we don't
  4555. # have to do anything special.
  4556. aix_use_runtimelinking=no
  4557. exp_sym_flag='-Bexport'
  4558. no_entry_flag=""
  4559. else
  4560. # If we're using GNU nm, then we don't want the "-C" option.
  4561. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4562. # Also, AIX nm treats weak defined symbols like other global
  4563. # defined symbols, whereas GNU nm marks them as "W".
  4564. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4565. _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'
  4566. else
  4567. _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'
  4568. fi
  4569. aix_use_runtimelinking=no
  4570. # Test if we are trying to use run time linking or normal
  4571. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4572. # need to do runtime linking.
  4573. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4574. for ld_flag in $LDFLAGS; do
  4575. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4576. aix_use_runtimelinking=yes
  4577. break
  4578. fi
  4579. done
  4580. ;;
  4581. esac
  4582. exp_sym_flag='-bexport'
  4583. no_entry_flag='-bnoentry'
  4584. fi
  4585. # When large executables or shared objects are built, AIX ld can
  4586. # have problems creating the table of contents. If linking a library
  4587. # or program results in "error TOC overflow" add -mminimal-toc to
  4588. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4589. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4590. _LT_TAGVAR(archive_cmds, $1)=''
  4591. _LT_TAGVAR(hardcode_direct, $1)=yes
  4592. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4593. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4594. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4595. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4596. if test "$GCC" = yes; then
  4597. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4598. # We only want to do this on AIX 4.2 and lower, the check
  4599. # below for broken collect2 doesn't work under 4.3+
  4600. collect2name=`${CC} -print-prog-name=collect2`
  4601. if test -f "$collect2name" &&
  4602. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4603. then
  4604. # We have reworked collect2
  4605. :
  4606. else
  4607. # We have old collect2
  4608. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4609. # It fails to find uninstalled libraries when the uninstalled
  4610. # path is not listed in the libpath. Setting hardcode_minus_L
  4611. # to unsupported forces relinking
  4612. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4613. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4614. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4615. fi
  4616. ;;
  4617. esac
  4618. shared_flag='-shared'
  4619. if test "$aix_use_runtimelinking" = yes; then
  4620. shared_flag="$shared_flag "'${wl}-G'
  4621. fi
  4622. _LT_TAGVAR(link_all_deplibs, $1)=no
  4623. else
  4624. # not using gcc
  4625. if test "$host_cpu" = ia64; then
  4626. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4627. # chokes on -Wl,-G. The following line is correct:
  4628. shared_flag='-G'
  4629. else
  4630. if test "$aix_use_runtimelinking" = yes; then
  4631. shared_flag='${wl}-G'
  4632. else
  4633. shared_flag='${wl}-bM:SRE'
  4634. fi
  4635. fi
  4636. fi
  4637. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4638. # It seems that -bexpall does not export symbols beginning with
  4639. # underscore (_), so it is better to generate a list of symbols to export.
  4640. _LT_TAGVAR(always_export_symbols, $1)=yes
  4641. if test "$aix_use_runtimelinking" = yes; then
  4642. # Warning - without using the other runtime loading flags (-brtl),
  4643. # -berok will link without error, but may produce a broken library.
  4644. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4645. # Determine the default libpath from the value encoded in an
  4646. # empty executable.
  4647. _LT_SYS_MODULE_PATH_AIX([$1])
  4648. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4649. _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"
  4650. else
  4651. if test "$host_cpu" = ia64; then
  4652. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4653. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4654. _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"
  4655. else
  4656. # Determine the default libpath from the value encoded in an
  4657. # empty executable.
  4658. _LT_SYS_MODULE_PATH_AIX([$1])
  4659. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4660. # Warning - without using the other run time loading flags,
  4661. # -berok will link without error, but may produce a broken library.
  4662. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4663. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4664. if test "$with_gnu_ld" = yes; then
  4665. # We only use this code for GNU lds that support --whole-archive.
  4666. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4667. else
  4668. # Exported symbols can be pulled into shared objects from archives
  4669. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4670. fi
  4671. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4672. # This is similar to how AIX traditionally builds its shared libraries.
  4673. _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'
  4674. fi
  4675. fi
  4676. ;;
  4677. amigaos*)
  4678. case $host_cpu in
  4679. powerpc)
  4680. # see comment about AmigaOS4 .so support
  4681. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4682. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4683. ;;
  4684. m68k)
  4685. _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)'
  4686. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4687. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4688. ;;
  4689. esac
  4690. ;;
  4691. bsdi[[45]]*)
  4692. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4693. ;;
  4694. cygwin* | mingw* | pw32* | cegcc*)
  4695. # When not using gcc, we currently assume that we are using
  4696. # Microsoft Visual C++.
  4697. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4698. # no search path for DLLs.
  4699. case $cc_basename in
  4700. cl*)
  4701. # Native MSVC
  4702. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4703. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4704. _LT_TAGVAR(always_export_symbols, $1)=yes
  4705. _LT_TAGVAR(file_list_spec, $1)='@'
  4706. # Tell ltmain to make .lib files, not .a files.
  4707. libext=lib
  4708. # Tell ltmain to make .dll files, not .so files.
  4709. shrext_cmds=".dll"
  4710. # FIXME: Setting linknames here is a bad hack.
  4711. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  4712. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4713. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  4714. else
  4715. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  4716. fi~
  4717. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4718. linknames='
  4719. # The linker will not automatically build a static lib if we build a DLL.
  4720. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4721. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4722. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4723. _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'
  4724. # Don't use ranlib
  4725. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  4726. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  4727. lt_tool_outputfile="@TOOL_OUTPUT@"~
  4728. case $lt_outputfile in
  4729. *.exe|*.EXE) ;;
  4730. *)
  4731. lt_outputfile="$lt_outputfile.exe"
  4732. lt_tool_outputfile="$lt_tool_outputfile.exe"
  4733. ;;
  4734. esac~
  4735. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  4736. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4737. $RM "$lt_outputfile.manifest";
  4738. fi'
  4739. ;;
  4740. *)
  4741. # Assume MSVC wrapper
  4742. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4743. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4744. # Tell ltmain to make .lib files, not .a files.
  4745. libext=lib
  4746. # Tell ltmain to make .dll files, not .so files.
  4747. shrext_cmds=".dll"
  4748. # FIXME: Setting linknames here is a bad hack.
  4749. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4750. # The linker will automatically build a .lib file if we build a DLL.
  4751. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4752. # FIXME: Should let the user specify the lib program.
  4753. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4754. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4755. ;;
  4756. esac
  4757. ;;
  4758. darwin* | rhapsody*)
  4759. _LT_DARWIN_LINKER_FEATURES($1)
  4760. ;;
  4761. dgux*)
  4762. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4763. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4764. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4765. ;;
  4766. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4767. # support. Future versions do this automatically, but an explicit c++rt0.o
  4768. # does not break anything, and helps significantly (at the cost of a little
  4769. # extra space).
  4770. freebsd2.2*)
  4771. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4772. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4773. _LT_TAGVAR(hardcode_direct, $1)=yes
  4774. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4775. ;;
  4776. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4777. freebsd2.*)
  4778. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4779. _LT_TAGVAR(hardcode_direct, $1)=yes
  4780. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4781. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4782. ;;
  4783. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4784. freebsd* | dragonfly*)
  4785. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4786. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4787. _LT_TAGVAR(hardcode_direct, $1)=yes
  4788. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4789. ;;
  4790. hpux9*)
  4791. if test "$GCC" = yes; then
  4792. _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'
  4793. else
  4794. _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'
  4795. fi
  4796. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4797. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4798. _LT_TAGVAR(hardcode_direct, $1)=yes
  4799. # hardcode_minus_L: Not really in the search PATH,
  4800. # but as the default location of the library.
  4801. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4802. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4803. ;;
  4804. hpux10*)
  4805. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4806. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4807. else
  4808. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4809. fi
  4810. if test "$with_gnu_ld" = no; then
  4811. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4812. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4813. _LT_TAGVAR(hardcode_direct, $1)=yes
  4814. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4815. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4816. # hardcode_minus_L: Not really in the search PATH,
  4817. # but as the default location of the library.
  4818. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4819. fi
  4820. ;;
  4821. hpux11*)
  4822. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4823. case $host_cpu in
  4824. hppa*64*)
  4825. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4826. ;;
  4827. ia64*)
  4828. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4829. ;;
  4830. *)
  4831. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4832. ;;
  4833. esac
  4834. else
  4835. case $host_cpu in
  4836. hppa*64*)
  4837. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4838. ;;
  4839. ia64*)
  4840. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4841. ;;
  4842. *)
  4843. m4_if($1, [], [
  4844. # Older versions of the 11.00 compiler do not understand -b yet
  4845. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4846. _LT_LINKER_OPTION([if $CC understands -b],
  4847. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4848. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4849. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4850. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4851. ;;
  4852. esac
  4853. fi
  4854. if test "$with_gnu_ld" = no; then
  4855. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4856. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4857. case $host_cpu in
  4858. hppa*64*|ia64*)
  4859. _LT_TAGVAR(hardcode_direct, $1)=no
  4860. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4861. ;;
  4862. *)
  4863. _LT_TAGVAR(hardcode_direct, $1)=yes
  4864. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4865. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4866. # hardcode_minus_L: Not really in the search PATH,
  4867. # but as the default location of the library.
  4868. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4869. ;;
  4870. esac
  4871. fi
  4872. ;;
  4873. irix5* | irix6* | nonstopux*)
  4874. if test "$GCC" = yes; then
  4875. _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'
  4876. # Try to use the -exported_symbol ld option, if it does not
  4877. # work, assume that -exports_file does not work either and
  4878. # implicitly export all symbols.
  4879. # This should be the same for all languages, so no per-tag cache variable.
  4880. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  4881. [lt_cv_irix_exported_symbol],
  4882. [save_LDFLAGS="$LDFLAGS"
  4883. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4884. AC_LINK_IFELSE(
  4885. [AC_LANG_SOURCE(
  4886. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  4887. [C++], [[int foo (void) { return 0; }]],
  4888. [Fortran 77], [[
  4889. subroutine foo
  4890. end]],
  4891. [Fortran], [[
  4892. subroutine foo
  4893. end]])])],
  4894. [lt_cv_irix_exported_symbol=yes],
  4895. [lt_cv_irix_exported_symbol=no])
  4896. LDFLAGS="$save_LDFLAGS"])
  4897. if test "$lt_cv_irix_exported_symbol" = yes; then
  4898. _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'
  4899. fi
  4900. else
  4901. _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'
  4902. _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'
  4903. fi
  4904. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4905. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4906. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4907. _LT_TAGVAR(inherit_rpath, $1)=yes
  4908. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4909. ;;
  4910. netbsd* | netbsdelf*-gnu)
  4911. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4912. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4913. else
  4914. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4915. fi
  4916. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4917. _LT_TAGVAR(hardcode_direct, $1)=yes
  4918. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4919. ;;
  4920. newsos6)
  4921. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4922. _LT_TAGVAR(hardcode_direct, $1)=yes
  4923. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4924. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4925. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4926. ;;
  4927. *nto* | *qnx*)
  4928. ;;
  4929. openbsd*)
  4930. if test -f /usr/libexec/ld.so; then
  4931. _LT_TAGVAR(hardcode_direct, $1)=yes
  4932. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4933. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4934. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4935. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4936. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4937. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4938. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4939. else
  4940. case $host_os in
  4941. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4942. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4943. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4944. ;;
  4945. *)
  4946. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4947. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4948. ;;
  4949. esac
  4950. fi
  4951. else
  4952. _LT_TAGVAR(ld_shlibs, $1)=no
  4953. fi
  4954. ;;
  4955. os2*)
  4956. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4957. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4958. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4959. _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'
  4960. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4961. ;;
  4962. osf3*)
  4963. if test "$GCC" = yes; then
  4964. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4965. _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'
  4966. else
  4967. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4968. _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'
  4969. fi
  4970. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4971. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4972. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4973. ;;
  4974. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4975. if test "$GCC" = yes; then
  4976. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4977. _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'
  4978. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4979. else
  4980. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4981. _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'
  4982. _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~
  4983. $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'
  4984. # Both c and cxx compiler support -rpath directly
  4985. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4986. fi
  4987. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4988. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4989. ;;
  4990. solaris*)
  4991. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4992. if test "$GCC" = yes; then
  4993. wlarc='${wl}'
  4994. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4995. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4996. $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'
  4997. else
  4998. case `$CC -V 2>&1` in
  4999. *"Compilers 5.0"*)
  5000. wlarc=''
  5001. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5002. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5003. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  5004. ;;
  5005. *)
  5006. wlarc='${wl}'
  5007. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5008. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5009. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5010. ;;
  5011. esac
  5012. fi
  5013. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5014. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5015. case $host_os in
  5016. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5017. *)
  5018. # The compiler driver will combine and reorder linker options,
  5019. # but understands `-z linker_flag'. GCC discards it without `$wl',
  5020. # but is careful enough not to reorder.
  5021. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5022. if test "$GCC" = yes; then
  5023. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5024. else
  5025. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5026. fi
  5027. ;;
  5028. esac
  5029. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5030. ;;
  5031. sunos4*)
  5032. if test "x$host_vendor" = xsequent; then
  5033. # Use $CC to link under sequent, because it throws in some extra .o
  5034. # files that make .init and .fini sections work.
  5035. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5036. else
  5037. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5038. fi
  5039. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5040. _LT_TAGVAR(hardcode_direct, $1)=yes
  5041. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5042. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5043. ;;
  5044. sysv4)
  5045. case $host_vendor in
  5046. sni)
  5047. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5048. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5049. ;;
  5050. siemens)
  5051. ## LD is ld it makes a PLAMLIB
  5052. ## CC just makes a GrossModule.
  5053. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5054. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5055. _LT_TAGVAR(hardcode_direct, $1)=no
  5056. ;;
  5057. motorola)
  5058. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5059. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5060. ;;
  5061. esac
  5062. runpath_var='LD_RUN_PATH'
  5063. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5064. ;;
  5065. sysv4.3*)
  5066. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5067. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5068. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5069. ;;
  5070. sysv4*MP*)
  5071. if test -d /usr/nec; then
  5072. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5073. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5074. runpath_var=LD_RUN_PATH
  5075. hardcode_runpath_var=yes
  5076. _LT_TAGVAR(ld_shlibs, $1)=yes
  5077. fi
  5078. ;;
  5079. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5080. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5081. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5082. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5083. runpath_var='LD_RUN_PATH'
  5084. if test "$GCC" = yes; then
  5085. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5086. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5087. else
  5088. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5089. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5090. fi
  5091. ;;
  5092. sysv5* | sco3.2v5* | sco5v6*)
  5093. # Note: We can NOT use -z defs as we might desire, because we do not
  5094. # link with -lc, and that would cause any symbols used from libc to
  5095. # always be unresolved, which means just about no library would
  5096. # ever link correctly. If we're not using GNU ld we use -z text
  5097. # though, which does catch some bad symbols but isn't as heavy-handed
  5098. # as -z defs.
  5099. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5100. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5101. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5102. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5103. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5104. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5105. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5106. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5107. runpath_var='LD_RUN_PATH'
  5108. if test "$GCC" = yes; then
  5109. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5110. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5111. else
  5112. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5113. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5114. fi
  5115. ;;
  5116. uts4*)
  5117. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5118. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5119. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5120. ;;
  5121. *)
  5122. _LT_TAGVAR(ld_shlibs, $1)=no
  5123. ;;
  5124. esac
  5125. if test x$host_vendor = xsni; then
  5126. case $host in
  5127. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5128. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5129. ;;
  5130. esac
  5131. fi
  5132. fi
  5133. ])
  5134. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5135. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5136. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5137. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5138. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5139. _LT_DECL([], [extract_expsyms_cmds], [2],
  5140. [The commands to extract the exported symbol list from a shared archive])
  5141. #
  5142. # Do we need to explicitly link libc?
  5143. #
  5144. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5145. x|xyes)
  5146. # Assume -lc should be added
  5147. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5148. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5149. case $_LT_TAGVAR(archive_cmds, $1) in
  5150. *'~'*)
  5151. # FIXME: we may have to deal with multi-command sequences.
  5152. ;;
  5153. '$CC '*)
  5154. # Test whether the compiler implicitly links with -lc since on some
  5155. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5156. # to ld, don't add -lc before -lgcc.
  5157. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5158. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5159. [$RM conftest*
  5160. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5161. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5162. soname=conftest
  5163. lib=conftest
  5164. libobjs=conftest.$ac_objext
  5165. deplibs=
  5166. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5167. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5168. compiler_flags=-v
  5169. linker_flags=-v
  5170. verstring=
  5171. output_objdir=.
  5172. libname=conftest
  5173. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5174. _LT_TAGVAR(allow_undefined_flag, $1)=
  5175. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5176. then
  5177. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5178. else
  5179. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5180. fi
  5181. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5182. else
  5183. cat conftest.err 1>&5
  5184. fi
  5185. $RM conftest*
  5186. ])
  5187. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5188. ;;
  5189. esac
  5190. fi
  5191. ;;
  5192. esac
  5193. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5194. [Whether or not to add -lc for building shared libraries])
  5195. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5196. [enable_shared_with_static_runtimes], [0],
  5197. [Whether or not to disallow shared libs when runtime libs are static])
  5198. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5199. [Compiler flag to allow reflexive dlopens])
  5200. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5201. [Compiler flag to generate shared objects directly from archives])
  5202. _LT_TAGDECL([], [compiler_needs_object], [1],
  5203. [Whether the compiler copes with passing no objects directly])
  5204. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5205. [Create an old-style archive from a shared archive])
  5206. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5207. [Create a temporary old-style archive to link instead of a shared archive])
  5208. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5209. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5210. _LT_TAGDECL([], [module_cmds], [2],
  5211. [Commands used to build a loadable module if different from building
  5212. a shared archive.])
  5213. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5214. _LT_TAGDECL([], [with_gnu_ld], [1],
  5215. [Whether we are building with GNU ld or not])
  5216. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5217. [Flag that allows shared libraries with undefined symbols to be built])
  5218. _LT_TAGDECL([], [no_undefined_flag], [1],
  5219. [Flag that enforces no undefined symbols])
  5220. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5221. [Flag to hardcode $libdir into a binary during linking.
  5222. This must work even if $libdir does not exist])
  5223. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5224. [Whether we need a single "-rpath" flag with a separated argument])
  5225. _LT_TAGDECL([], [hardcode_direct], [0],
  5226. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5227. DIR into the resulting binary])
  5228. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5229. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5230. DIR into the resulting binary and the resulting library dependency is
  5231. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5232. library is relocated])
  5233. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5234. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5235. into the resulting binary])
  5236. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5237. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5238. into the resulting binary])
  5239. _LT_TAGDECL([], [hardcode_automatic], [0],
  5240. [Set to "yes" if building a shared library automatically hardcodes DIR
  5241. into the library and all subsequent libraries and executables linked
  5242. against it])
  5243. _LT_TAGDECL([], [inherit_rpath], [0],
  5244. [Set to yes if linker adds runtime paths of dependent libraries
  5245. to runtime path list])
  5246. _LT_TAGDECL([], [link_all_deplibs], [0],
  5247. [Whether libtool must link a program against all its dependency libraries])
  5248. _LT_TAGDECL([], [always_export_symbols], [0],
  5249. [Set to "yes" if exported symbols are required])
  5250. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5251. [The commands to list exported symbols])
  5252. _LT_TAGDECL([], [exclude_expsyms], [1],
  5253. [Symbols that should not be listed in the preloaded symbols])
  5254. _LT_TAGDECL([], [include_expsyms], [1],
  5255. [Symbols that must always be exported])
  5256. _LT_TAGDECL([], [prelink_cmds], [2],
  5257. [Commands necessary for linking programs (against libraries) with templates])
  5258. _LT_TAGDECL([], [postlink_cmds], [2],
  5259. [Commands necessary for finishing linking programs])
  5260. _LT_TAGDECL([], [file_list_spec], [1],
  5261. [Specify filename containing input files])
  5262. dnl FIXME: Not yet implemented
  5263. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5264. dnl [Compiler flag to generate thread safe objects])
  5265. ])# _LT_LINKER_SHLIBS
  5266. # _LT_LANG_C_CONFIG([TAG])
  5267. # ------------------------
  5268. # Ensure that the configuration variables for a C compiler are suitably
  5269. # defined. These variables are subsequently used by _LT_CONFIG to write
  5270. # the compiler configuration to `libtool'.
  5271. m4_defun([_LT_LANG_C_CONFIG],
  5272. [m4_require([_LT_DECL_EGREP])dnl
  5273. lt_save_CC="$CC"
  5274. AC_LANG_PUSH(C)
  5275. # Source file extension for C test sources.
  5276. ac_ext=c
  5277. # Object file extension for compiled C test sources.
  5278. objext=o
  5279. _LT_TAGVAR(objext, $1)=$objext
  5280. # Code to be used in simple compile tests
  5281. lt_simple_compile_test_code="int some_variable = 0;"
  5282. # Code to be used in simple link tests
  5283. lt_simple_link_test_code='int main(){return(0);}'
  5284. _LT_TAG_COMPILER
  5285. # Save the default compiler, since it gets overwritten when the other
  5286. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5287. compiler_DEFAULT=$CC
  5288. # save warnings/boilerplate of simple test code
  5289. _LT_COMPILER_BOILERPLATE
  5290. _LT_LINKER_BOILERPLATE
  5291. if test -n "$compiler"; then
  5292. _LT_COMPILER_NO_RTTI($1)
  5293. _LT_COMPILER_PIC($1)
  5294. _LT_COMPILER_C_O($1)
  5295. _LT_COMPILER_FILE_LOCKS($1)
  5296. _LT_LINKER_SHLIBS($1)
  5297. _LT_SYS_DYNAMIC_LINKER($1)
  5298. _LT_LINKER_HARDCODE_LIBPATH($1)
  5299. LT_SYS_DLOPEN_SELF
  5300. _LT_CMD_STRIPLIB
  5301. # Report which library types will actually be built
  5302. AC_MSG_CHECKING([if libtool supports shared libraries])
  5303. AC_MSG_RESULT([$can_build_shared])
  5304. AC_MSG_CHECKING([whether to build shared libraries])
  5305. test "$can_build_shared" = "no" && enable_shared=no
  5306. # On AIX, shared libraries and static libraries use the same namespace, and
  5307. # are all built from PIC.
  5308. case $host_os in
  5309. aix3*)
  5310. test "$enable_shared" = yes && enable_static=no
  5311. if test -n "$RANLIB"; then
  5312. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5313. postinstall_cmds='$RANLIB $lib'
  5314. fi
  5315. ;;
  5316. aix[[4-9]]*)
  5317. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5318. test "$enable_shared" = yes && enable_static=no
  5319. fi
  5320. ;;
  5321. esac
  5322. AC_MSG_RESULT([$enable_shared])
  5323. AC_MSG_CHECKING([whether to build static libraries])
  5324. # Make sure either enable_shared or enable_static is yes.
  5325. test "$enable_shared" = yes || enable_static=yes
  5326. AC_MSG_RESULT([$enable_static])
  5327. _LT_CONFIG($1)
  5328. fi
  5329. AC_LANG_POP
  5330. CC="$lt_save_CC"
  5331. ])# _LT_LANG_C_CONFIG
  5332. # _LT_LANG_CXX_CONFIG([TAG])
  5333. # --------------------------
  5334. # Ensure that the configuration variables for a C++ compiler are suitably
  5335. # defined. These variables are subsequently used by _LT_CONFIG to write
  5336. # the compiler configuration to `libtool'.
  5337. m4_defun([_LT_LANG_CXX_CONFIG],
  5338. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5339. m4_require([_LT_DECL_EGREP])dnl
  5340. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5341. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5342. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5343. (test "X$CXX" != "Xg++"))) ; then
  5344. AC_PROG_CXXCPP
  5345. else
  5346. _lt_caught_CXX_error=yes
  5347. fi
  5348. AC_LANG_PUSH(C++)
  5349. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5350. _LT_TAGVAR(allow_undefined_flag, $1)=
  5351. _LT_TAGVAR(always_export_symbols, $1)=no
  5352. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5353. _LT_TAGVAR(compiler_needs_object, $1)=no
  5354. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5355. _LT_TAGVAR(hardcode_direct, $1)=no
  5356. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5357. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5358. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5359. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5360. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5361. _LT_TAGVAR(hardcode_automatic, $1)=no
  5362. _LT_TAGVAR(inherit_rpath, $1)=no
  5363. _LT_TAGVAR(module_cmds, $1)=
  5364. _LT_TAGVAR(module_expsym_cmds, $1)=
  5365. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5366. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5367. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5368. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5369. _LT_TAGVAR(no_undefined_flag, $1)=
  5370. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5371. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5372. # Source file extension for C++ test sources.
  5373. ac_ext=cpp
  5374. # Object file extension for compiled C++ test sources.
  5375. objext=o
  5376. _LT_TAGVAR(objext, $1)=$objext
  5377. # No sense in running all these tests if we already determined that
  5378. # the CXX compiler isn't working. Some variables (like enable_shared)
  5379. # are currently assumed to apply to all compilers on this platform,
  5380. # and will be corrupted by setting them based on a non-working compiler.
  5381. if test "$_lt_caught_CXX_error" != yes; then
  5382. # Code to be used in simple compile tests
  5383. lt_simple_compile_test_code="int some_variable = 0;"
  5384. # Code to be used in simple link tests
  5385. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5386. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5387. _LT_TAG_COMPILER
  5388. # save warnings/boilerplate of simple test code
  5389. _LT_COMPILER_BOILERPLATE
  5390. _LT_LINKER_BOILERPLATE
  5391. # Allow CC to be a program name with arguments.
  5392. lt_save_CC=$CC
  5393. lt_save_CFLAGS=$CFLAGS
  5394. lt_save_LD=$LD
  5395. lt_save_GCC=$GCC
  5396. GCC=$GXX
  5397. lt_save_with_gnu_ld=$with_gnu_ld
  5398. lt_save_path_LD=$lt_cv_path_LD
  5399. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5400. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5401. else
  5402. $as_unset lt_cv_prog_gnu_ld
  5403. fi
  5404. if test -n "${lt_cv_path_LDCXX+set}"; then
  5405. lt_cv_path_LD=$lt_cv_path_LDCXX
  5406. else
  5407. $as_unset lt_cv_path_LD
  5408. fi
  5409. test -z "${LDCXX+set}" || LD=$LDCXX
  5410. CC=${CXX-"c++"}
  5411. CFLAGS=$CXXFLAGS
  5412. compiler=$CC
  5413. _LT_TAGVAR(compiler, $1)=$CC
  5414. _LT_CC_BASENAME([$compiler])
  5415. if test -n "$compiler"; then
  5416. # We don't want -fno-exception when compiling C++ code, so set the
  5417. # no_builtin_flag separately
  5418. if test "$GXX" = yes; then
  5419. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5420. else
  5421. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5422. fi
  5423. if test "$GXX" = yes; then
  5424. # Set up default GNU C++ configuration
  5425. LT_PATH_LD
  5426. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5427. # archiving commands below assume that GNU ld is being used.
  5428. if test "$with_gnu_ld" = yes; then
  5429. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5430. _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'
  5431. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5432. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5433. # If archive_cmds runs LD, not CC, wlarc should be empty
  5434. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5435. # investigate it a little bit more. (MM)
  5436. wlarc='${wl}'
  5437. # ancient GNU ld didn't support --whole-archive et. al.
  5438. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5439. $GREP 'no-whole-archive' > /dev/null; then
  5440. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5441. else
  5442. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5443. fi
  5444. else
  5445. with_gnu_ld=no
  5446. wlarc=
  5447. # A generic and very simple default shared library creation
  5448. # command for GNU C++ for the case where it uses the native
  5449. # linker, instead of GNU ld. If possible, this setting should
  5450. # overridden to take advantage of the native linker features on
  5451. # the platform it is being used on.
  5452. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5453. fi
  5454. # Commands to make compiler produce verbose output that lists
  5455. # what "hidden" libraries, object files and flags are used when
  5456. # linking a shared library.
  5457. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5458. else
  5459. GXX=no
  5460. with_gnu_ld=no
  5461. wlarc=
  5462. fi
  5463. # PORTME: fill in a description of your system's C++ link characteristics
  5464. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5465. _LT_TAGVAR(ld_shlibs, $1)=yes
  5466. case $host_os in
  5467. aix3*)
  5468. # FIXME: insert proper C++ library support
  5469. _LT_TAGVAR(ld_shlibs, $1)=no
  5470. ;;
  5471. aix[[4-9]]*)
  5472. if test "$host_cpu" = ia64; then
  5473. # On IA64, the linker does run time linking by default, so we don't
  5474. # have to do anything special.
  5475. aix_use_runtimelinking=no
  5476. exp_sym_flag='-Bexport'
  5477. no_entry_flag=""
  5478. else
  5479. aix_use_runtimelinking=no
  5480. # Test if we are trying to use run time linking or normal
  5481. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5482. # need to do runtime linking.
  5483. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5484. for ld_flag in $LDFLAGS; do
  5485. case $ld_flag in
  5486. *-brtl*)
  5487. aix_use_runtimelinking=yes
  5488. break
  5489. ;;
  5490. esac
  5491. done
  5492. ;;
  5493. esac
  5494. exp_sym_flag='-bexport'
  5495. no_entry_flag='-bnoentry'
  5496. fi
  5497. # When large executables or shared objects are built, AIX ld can
  5498. # have problems creating the table of contents. If linking a library
  5499. # or program results in "error TOC overflow" add -mminimal-toc to
  5500. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5501. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5502. _LT_TAGVAR(archive_cmds, $1)=''
  5503. _LT_TAGVAR(hardcode_direct, $1)=yes
  5504. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5505. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5506. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5507. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5508. if test "$GXX" = yes; then
  5509. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5510. # We only want to do this on AIX 4.2 and lower, the check
  5511. # below for broken collect2 doesn't work under 4.3+
  5512. collect2name=`${CC} -print-prog-name=collect2`
  5513. if test -f "$collect2name" &&
  5514. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5515. then
  5516. # We have reworked collect2
  5517. :
  5518. else
  5519. # We have old collect2
  5520. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5521. # It fails to find uninstalled libraries when the uninstalled
  5522. # path is not listed in the libpath. Setting hardcode_minus_L
  5523. # to unsupported forces relinking
  5524. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5525. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5526. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5527. fi
  5528. esac
  5529. shared_flag='-shared'
  5530. if test "$aix_use_runtimelinking" = yes; then
  5531. shared_flag="$shared_flag "'${wl}-G'
  5532. fi
  5533. else
  5534. # not using gcc
  5535. if test "$host_cpu" = ia64; then
  5536. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5537. # chokes on -Wl,-G. The following line is correct:
  5538. shared_flag='-G'
  5539. else
  5540. if test "$aix_use_runtimelinking" = yes; then
  5541. shared_flag='${wl}-G'
  5542. else
  5543. shared_flag='${wl}-bM:SRE'
  5544. fi
  5545. fi
  5546. fi
  5547. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5548. # It seems that -bexpall does not export symbols beginning with
  5549. # underscore (_), so it is better to generate a list of symbols to
  5550. # export.
  5551. _LT_TAGVAR(always_export_symbols, $1)=yes
  5552. if test "$aix_use_runtimelinking" = yes; then
  5553. # Warning - without using the other runtime loading flags (-brtl),
  5554. # -berok will link without error, but may produce a broken library.
  5555. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5556. # Determine the default libpath from the value encoded in an empty
  5557. # executable.
  5558. _LT_SYS_MODULE_PATH_AIX([$1])
  5559. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5560. _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"
  5561. else
  5562. if test "$host_cpu" = ia64; then
  5563. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5564. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5565. _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"
  5566. else
  5567. # Determine the default libpath from the value encoded in an
  5568. # empty executable.
  5569. _LT_SYS_MODULE_PATH_AIX([$1])
  5570. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5571. # Warning - without using the other run time loading flags,
  5572. # -berok will link without error, but may produce a broken library.
  5573. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5574. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5575. if test "$with_gnu_ld" = yes; then
  5576. # We only use this code for GNU lds that support --whole-archive.
  5577. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5578. else
  5579. # Exported symbols can be pulled into shared objects from archives
  5580. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5581. fi
  5582. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5583. # This is similar to how AIX traditionally builds its shared
  5584. # libraries.
  5585. _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'
  5586. fi
  5587. fi
  5588. ;;
  5589. beos*)
  5590. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5591. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5592. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5593. # support --undefined. This deserves some investigation. FIXME
  5594. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5595. else
  5596. _LT_TAGVAR(ld_shlibs, $1)=no
  5597. fi
  5598. ;;
  5599. chorus*)
  5600. case $cc_basename in
  5601. *)
  5602. # FIXME: insert proper C++ library support
  5603. _LT_TAGVAR(ld_shlibs, $1)=no
  5604. ;;
  5605. esac
  5606. ;;
  5607. cygwin* | mingw* | pw32* | cegcc*)
  5608. case $GXX,$cc_basename in
  5609. ,cl* | no,cl*)
  5610. # Native MSVC
  5611. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5612. # no search path for DLLs.
  5613. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5614. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5615. _LT_TAGVAR(always_export_symbols, $1)=yes
  5616. _LT_TAGVAR(file_list_spec, $1)='@'
  5617. # Tell ltmain to make .lib files, not .a files.
  5618. libext=lib
  5619. # Tell ltmain to make .dll files, not .so files.
  5620. shrext_cmds=".dll"
  5621. # FIXME: Setting linknames here is a bad hack.
  5622. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5623. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5624. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5625. else
  5626. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5627. fi~
  5628. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5629. linknames='
  5630. # The linker will not automatically build a static lib if we build a DLL.
  5631. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5632. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5633. # Don't use ranlib
  5634. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5635. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5636. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5637. case $lt_outputfile in
  5638. *.exe|*.EXE) ;;
  5639. *)
  5640. lt_outputfile="$lt_outputfile.exe"
  5641. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5642. ;;
  5643. esac~
  5644. func_to_tool_file "$lt_outputfile"~
  5645. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5646. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5647. $RM "$lt_outputfile.manifest";
  5648. fi'
  5649. ;;
  5650. *)
  5651. # g++
  5652. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5653. # as there is no search path for DLLs.
  5654. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5655. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5656. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5657. _LT_TAGVAR(always_export_symbols, $1)=no
  5658. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5659. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5660. _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'
  5661. # If the export-symbols file already is a .def file (1st line
  5662. # is EXPORTS), use it as is; otherwise, prepend...
  5663. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5664. cp $export_symbols $output_objdir/$soname.def;
  5665. else
  5666. echo EXPORTS > $output_objdir/$soname.def;
  5667. cat $export_symbols >> $output_objdir/$soname.def;
  5668. fi~
  5669. $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'
  5670. else
  5671. _LT_TAGVAR(ld_shlibs, $1)=no
  5672. fi
  5673. ;;
  5674. esac
  5675. ;;
  5676. darwin* | rhapsody*)
  5677. _LT_DARWIN_LINKER_FEATURES($1)
  5678. ;;
  5679. dgux*)
  5680. case $cc_basename in
  5681. ec++*)
  5682. # FIXME: insert proper C++ library support
  5683. _LT_TAGVAR(ld_shlibs, $1)=no
  5684. ;;
  5685. ghcx*)
  5686. # Green Hills C++ Compiler
  5687. # FIXME: insert proper C++ library support
  5688. _LT_TAGVAR(ld_shlibs, $1)=no
  5689. ;;
  5690. *)
  5691. # FIXME: insert proper C++ library support
  5692. _LT_TAGVAR(ld_shlibs, $1)=no
  5693. ;;
  5694. esac
  5695. ;;
  5696. freebsd2.*)
  5697. # C++ shared libraries reported to be fairly broken before
  5698. # switch to ELF
  5699. _LT_TAGVAR(ld_shlibs, $1)=no
  5700. ;;
  5701. freebsd-elf*)
  5702. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5703. ;;
  5704. freebsd* | dragonfly*)
  5705. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5706. # conventions
  5707. _LT_TAGVAR(ld_shlibs, $1)=yes
  5708. ;;
  5709. gnu*)
  5710. ;;
  5711. haiku*)
  5712. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5713. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5714. ;;
  5715. hpux9*)
  5716. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5717. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5718. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5719. _LT_TAGVAR(hardcode_direct, $1)=yes
  5720. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5721. # but as the default
  5722. # location of the library.
  5723. case $cc_basename in
  5724. CC*)
  5725. # FIXME: insert proper C++ library support
  5726. _LT_TAGVAR(ld_shlibs, $1)=no
  5727. ;;
  5728. aCC*)
  5729. _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'
  5730. # Commands to make compiler produce verbose output that lists
  5731. # what "hidden" libraries, object files and flags are used when
  5732. # linking a shared library.
  5733. #
  5734. # There doesn't appear to be a way to prevent this compiler from
  5735. # explicitly linking system object files so we need to strip them
  5736. # from the output so that they don't get included in the library
  5737. # dependencies.
  5738. 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"'
  5739. ;;
  5740. *)
  5741. if test "$GXX" = yes; then
  5742. _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'
  5743. else
  5744. # FIXME: insert proper C++ library support
  5745. _LT_TAGVAR(ld_shlibs, $1)=no
  5746. fi
  5747. ;;
  5748. esac
  5749. ;;
  5750. hpux10*|hpux11*)
  5751. if test $with_gnu_ld = no; then
  5752. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5753. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5754. case $host_cpu in
  5755. hppa*64*|ia64*)
  5756. ;;
  5757. *)
  5758. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5759. ;;
  5760. esac
  5761. fi
  5762. case $host_cpu in
  5763. hppa*64*|ia64*)
  5764. _LT_TAGVAR(hardcode_direct, $1)=no
  5765. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5766. ;;
  5767. *)
  5768. _LT_TAGVAR(hardcode_direct, $1)=yes
  5769. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5770. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5771. # but as the default
  5772. # location of the library.
  5773. ;;
  5774. esac
  5775. case $cc_basename in
  5776. CC*)
  5777. # FIXME: insert proper C++ library support
  5778. _LT_TAGVAR(ld_shlibs, $1)=no
  5779. ;;
  5780. aCC*)
  5781. case $host_cpu in
  5782. hppa*64*)
  5783. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5784. ;;
  5785. ia64*)
  5786. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5787. ;;
  5788. *)
  5789. _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'
  5790. ;;
  5791. esac
  5792. # Commands to make compiler produce verbose output that lists
  5793. # what "hidden" libraries, object files and flags are used when
  5794. # linking a shared library.
  5795. #
  5796. # There doesn't appear to be a way to prevent this compiler from
  5797. # explicitly linking system object files so we need to strip them
  5798. # from the output so that they don't get included in the library
  5799. # dependencies.
  5800. 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"'
  5801. ;;
  5802. *)
  5803. if test "$GXX" = yes; then
  5804. if test $with_gnu_ld = no; then
  5805. case $host_cpu in
  5806. hppa*64*)
  5807. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5808. ;;
  5809. ia64*)
  5810. _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'
  5811. ;;
  5812. *)
  5813. _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'
  5814. ;;
  5815. esac
  5816. fi
  5817. else
  5818. # FIXME: insert proper C++ library support
  5819. _LT_TAGVAR(ld_shlibs, $1)=no
  5820. fi
  5821. ;;
  5822. esac
  5823. ;;
  5824. interix[[3-9]]*)
  5825. _LT_TAGVAR(hardcode_direct, $1)=no
  5826. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5827. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5828. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5829. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5830. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5831. # default) and relocated if they conflict, which is a slow very memory
  5832. # consuming and fragmenting process. To avoid this, we pick a random,
  5833. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5834. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5835. _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'
  5836. _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'
  5837. ;;
  5838. irix5* | irix6*)
  5839. case $cc_basename in
  5840. CC*)
  5841. # SGI C++
  5842. _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'
  5843. # Archives containing C++ object files must be created using
  5844. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5845. # necessary to make sure instantiated templates are included
  5846. # in the archive.
  5847. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5848. ;;
  5849. *)
  5850. if test "$GXX" = yes; then
  5851. if test "$with_gnu_ld" = no; then
  5852. _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'
  5853. else
  5854. _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'
  5855. fi
  5856. fi
  5857. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5858. ;;
  5859. esac
  5860. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5861. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5862. _LT_TAGVAR(inherit_rpath, $1)=yes
  5863. ;;
  5864. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5865. case $cc_basename in
  5866. KCC*)
  5867. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5868. # KCC will only create a shared library if the output file
  5869. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5870. # to its proper name (with version) after linking.
  5871. _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'
  5872. _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'
  5873. # Commands to make compiler produce verbose output that lists
  5874. # what "hidden" libraries, object files and flags are used when
  5875. # linking a shared library.
  5876. #
  5877. # There doesn't appear to be a way to prevent this compiler from
  5878. # explicitly linking system object files so we need to strip them
  5879. # from the output so that they don't get included in the library
  5880. # dependencies.
  5881. 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"'
  5882. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5883. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5884. # Archives containing C++ object files must be created using
  5885. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5886. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5887. ;;
  5888. icpc* | ecpc* )
  5889. # Intel C++
  5890. with_gnu_ld=yes
  5891. # version 8.0 and above of icpc choke on multiply defined symbols
  5892. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5893. # earlier do not add the objects themselves.
  5894. case `$CC -V 2>&1` in
  5895. *"Version 7."*)
  5896. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5897. _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'
  5898. ;;
  5899. *) # Version 8.0 or newer
  5900. tmp_idyn=
  5901. case $host_cpu in
  5902. ia64*) tmp_idyn=' -i_dynamic';;
  5903. esac
  5904. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5905. _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'
  5906. ;;
  5907. esac
  5908. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5909. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5910. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5911. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5912. ;;
  5913. pgCC* | pgcpp*)
  5914. # Portland Group C++ compiler
  5915. case `$CC -V` in
  5916. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  5917. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5918. rm -rf $tpldir~
  5919. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5920. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  5921. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5922. rm -rf $tpldir~
  5923. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5924. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  5925. $RANLIB $oldlib'
  5926. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5927. rm -rf $tpldir~
  5928. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5929. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5930. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5931. rm -rf $tpldir~
  5932. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5933. $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'
  5934. ;;
  5935. *) # Version 6 and above use weak symbols
  5936. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5937. _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'
  5938. ;;
  5939. esac
  5940. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5941. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5942. _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'
  5943. ;;
  5944. cxx*)
  5945. # Compaq C++
  5946. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5947. _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'
  5948. runpath_var=LD_RUN_PATH
  5949. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5950. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5951. # Commands to make compiler produce verbose output that lists
  5952. # what "hidden" libraries, object files and flags are used when
  5953. # linking a shared library.
  5954. #
  5955. # There doesn't appear to be a way to prevent this compiler from
  5956. # explicitly linking system object files so we need to strip them
  5957. # from the output so that they don't get included in the library
  5958. # dependencies.
  5959. 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'
  5960. ;;
  5961. xl* | mpixl* | bgxl*)
  5962. # IBM XL 8.0 on PPC, with GNU ld
  5963. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5964. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5965. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5966. if test "x$supports_anon_versioning" = xyes; then
  5967. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5968. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5969. echo "local: *; };" >> $output_objdir/$libname.ver~
  5970. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5971. fi
  5972. ;;
  5973. *)
  5974. case `$CC -V 2>&1 | sed 5q` in
  5975. *Sun\ C*)
  5976. # Sun C++ 5.9
  5977. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5978. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5979. _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'
  5980. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5981. _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'
  5982. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5983. # Not sure whether something based on
  5984. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5985. # would be better.
  5986. output_verbose_link_cmd='func_echo_all'
  5987. # Archives containing C++ object files must be created using
  5988. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5989. # necessary to make sure instantiated templates are included
  5990. # in the archive.
  5991. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5992. ;;
  5993. esac
  5994. ;;
  5995. esac
  5996. ;;
  5997. lynxos*)
  5998. # FIXME: insert proper C++ library support
  5999. _LT_TAGVAR(ld_shlibs, $1)=no
  6000. ;;
  6001. m88k*)
  6002. # FIXME: insert proper C++ library support
  6003. _LT_TAGVAR(ld_shlibs, $1)=no
  6004. ;;
  6005. mvs*)
  6006. case $cc_basename in
  6007. cxx*)
  6008. # FIXME: insert proper C++ library support
  6009. _LT_TAGVAR(ld_shlibs, $1)=no
  6010. ;;
  6011. *)
  6012. # FIXME: insert proper C++ library support
  6013. _LT_TAGVAR(ld_shlibs, $1)=no
  6014. ;;
  6015. esac
  6016. ;;
  6017. netbsd*)
  6018. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6019. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6020. wlarc=
  6021. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6022. _LT_TAGVAR(hardcode_direct, $1)=yes
  6023. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6024. fi
  6025. # Workaround some broken pre-1.5 toolchains
  6026. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6027. ;;
  6028. *nto* | *qnx*)
  6029. _LT_TAGVAR(ld_shlibs, $1)=yes
  6030. ;;
  6031. openbsd2*)
  6032. # C++ shared libraries are fairly broken
  6033. _LT_TAGVAR(ld_shlibs, $1)=no
  6034. ;;
  6035. openbsd*)
  6036. if test -f /usr/libexec/ld.so; then
  6037. _LT_TAGVAR(hardcode_direct, $1)=yes
  6038. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6039. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6040. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6041. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6042. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6043. _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'
  6044. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6045. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6046. fi
  6047. output_verbose_link_cmd=func_echo_all
  6048. else
  6049. _LT_TAGVAR(ld_shlibs, $1)=no
  6050. fi
  6051. ;;
  6052. osf3* | osf4* | osf5*)
  6053. case $cc_basename in
  6054. KCC*)
  6055. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6056. # KCC will only create a shared library if the output file
  6057. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6058. # to its proper name (with version) after linking.
  6059. _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'
  6060. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6061. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6062. # Archives containing C++ object files must be created using
  6063. # the KAI C++ compiler.
  6064. case $host in
  6065. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6066. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6067. esac
  6068. ;;
  6069. RCC*)
  6070. # Rational C++ 2.4.1
  6071. # FIXME: insert proper C++ library support
  6072. _LT_TAGVAR(ld_shlibs, $1)=no
  6073. ;;
  6074. cxx*)
  6075. case $host in
  6076. osf3*)
  6077. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6078. _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'
  6079. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6080. ;;
  6081. *)
  6082. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6083. _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'
  6084. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6085. echo "-hidden">> $lib.exp~
  6086. $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~
  6087. $RM $lib.exp'
  6088. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6089. ;;
  6090. esac
  6091. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6092. # Commands to make compiler produce verbose output that lists
  6093. # what "hidden" libraries, object files and flags are used when
  6094. # linking a shared library.
  6095. #
  6096. # There doesn't appear to be a way to prevent this compiler from
  6097. # explicitly linking system object files so we need to strip them
  6098. # from the output so that they don't get included in the library
  6099. # dependencies.
  6100. 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"'
  6101. ;;
  6102. *)
  6103. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6104. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6105. case $host in
  6106. osf3*)
  6107. _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'
  6108. ;;
  6109. *)
  6110. _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'
  6111. ;;
  6112. esac
  6113. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6114. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6115. # Commands to make compiler produce verbose output that lists
  6116. # what "hidden" libraries, object files and flags are used when
  6117. # linking a shared library.
  6118. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6119. else
  6120. # FIXME: insert proper C++ library support
  6121. _LT_TAGVAR(ld_shlibs, $1)=no
  6122. fi
  6123. ;;
  6124. esac
  6125. ;;
  6126. psos*)
  6127. # FIXME: insert proper C++ library support
  6128. _LT_TAGVAR(ld_shlibs, $1)=no
  6129. ;;
  6130. sunos4*)
  6131. case $cc_basename in
  6132. CC*)
  6133. # Sun C++ 4.x
  6134. # FIXME: insert proper C++ library support
  6135. _LT_TAGVAR(ld_shlibs, $1)=no
  6136. ;;
  6137. lcc*)
  6138. # Lucid
  6139. # FIXME: insert proper C++ library support
  6140. _LT_TAGVAR(ld_shlibs, $1)=no
  6141. ;;
  6142. *)
  6143. # FIXME: insert proper C++ library support
  6144. _LT_TAGVAR(ld_shlibs, $1)=no
  6145. ;;
  6146. esac
  6147. ;;
  6148. solaris*)
  6149. case $cc_basename in
  6150. CC* | sunCC*)
  6151. # Sun C++ 4.2, 5.x and Centerline C++
  6152. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6153. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6154. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6155. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6156. $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'
  6157. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6158. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6159. case $host_os in
  6160. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6161. *)
  6162. # The compiler driver will combine and reorder linker options,
  6163. # but understands `-z linker_flag'.
  6164. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6165. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6166. ;;
  6167. esac
  6168. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6169. output_verbose_link_cmd='func_echo_all'
  6170. # Archives containing C++ object files must be created using
  6171. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6172. # necessary to make sure instantiated templates are included
  6173. # in the archive.
  6174. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6175. ;;
  6176. gcx*)
  6177. # Green Hills C++ Compiler
  6178. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6179. # The C++ compiler must be used to create the archive.
  6180. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6181. ;;
  6182. *)
  6183. # GNU C++ compiler with Solaris linker
  6184. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6185. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6186. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6187. _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'
  6188. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6189. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6190. # Commands to make compiler produce verbose output that lists
  6191. # what "hidden" libraries, object files and flags are used when
  6192. # linking a shared library.
  6193. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6194. else
  6195. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6196. # platform.
  6197. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6198. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6199. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6200. # Commands to make compiler produce verbose output that lists
  6201. # what "hidden" libraries, object files and flags are used when
  6202. # linking a shared library.
  6203. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6204. fi
  6205. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6206. case $host_os in
  6207. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6208. *)
  6209. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6210. ;;
  6211. esac
  6212. fi
  6213. ;;
  6214. esac
  6215. ;;
  6216. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6217. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6218. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6219. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6220. runpath_var='LD_RUN_PATH'
  6221. case $cc_basename in
  6222. CC*)
  6223. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6224. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6225. ;;
  6226. *)
  6227. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6228. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6229. ;;
  6230. esac
  6231. ;;
  6232. sysv5* | sco3.2v5* | sco5v6*)
  6233. # Note: We can NOT use -z defs as we might desire, because we do not
  6234. # link with -lc, and that would cause any symbols used from libc to
  6235. # always be unresolved, which means just about no library would
  6236. # ever link correctly. If we're not using GNU ld we use -z text
  6237. # though, which does catch some bad symbols but isn't as heavy-handed
  6238. # as -z defs.
  6239. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6240. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6241. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6242. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6243. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6244. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6245. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6246. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6247. runpath_var='LD_RUN_PATH'
  6248. case $cc_basename in
  6249. CC*)
  6250. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6251. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6252. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6253. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6254. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6255. '"$_LT_TAGVAR(reload_cmds, $1)"
  6256. ;;
  6257. *)
  6258. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6259. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6260. ;;
  6261. esac
  6262. ;;
  6263. tandem*)
  6264. case $cc_basename in
  6265. NCC*)
  6266. # NonStop-UX NCC 3.20
  6267. # FIXME: insert proper C++ library support
  6268. _LT_TAGVAR(ld_shlibs, $1)=no
  6269. ;;
  6270. *)
  6271. # FIXME: insert proper C++ library support
  6272. _LT_TAGVAR(ld_shlibs, $1)=no
  6273. ;;
  6274. esac
  6275. ;;
  6276. vxworks*)
  6277. # FIXME: insert proper C++ library support
  6278. _LT_TAGVAR(ld_shlibs, $1)=no
  6279. ;;
  6280. *)
  6281. # FIXME: insert proper C++ library support
  6282. _LT_TAGVAR(ld_shlibs, $1)=no
  6283. ;;
  6284. esac
  6285. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6286. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6287. _LT_TAGVAR(GCC, $1)="$GXX"
  6288. _LT_TAGVAR(LD, $1)="$LD"
  6289. ## CAVEAT EMPTOR:
  6290. ## There is no encapsulation within the following macros, do not change
  6291. ## the running order or otherwise move them around unless you know exactly
  6292. ## what you are doing...
  6293. _LT_SYS_HIDDEN_LIBDEPS($1)
  6294. _LT_COMPILER_PIC($1)
  6295. _LT_COMPILER_C_O($1)
  6296. _LT_COMPILER_FILE_LOCKS($1)
  6297. _LT_LINKER_SHLIBS($1)
  6298. _LT_SYS_DYNAMIC_LINKER($1)
  6299. _LT_LINKER_HARDCODE_LIBPATH($1)
  6300. _LT_CONFIG($1)
  6301. fi # test -n "$compiler"
  6302. CC=$lt_save_CC
  6303. CFLAGS=$lt_save_CFLAGS
  6304. LDCXX=$LD
  6305. LD=$lt_save_LD
  6306. GCC=$lt_save_GCC
  6307. with_gnu_ld=$lt_save_with_gnu_ld
  6308. lt_cv_path_LDCXX=$lt_cv_path_LD
  6309. lt_cv_path_LD=$lt_save_path_LD
  6310. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6311. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6312. fi # test "$_lt_caught_CXX_error" != yes
  6313. AC_LANG_POP
  6314. ])# _LT_LANG_CXX_CONFIG
  6315. # _LT_FUNC_STRIPNAME_CNF
  6316. # ----------------------
  6317. # func_stripname_cnf prefix suffix name
  6318. # strip PREFIX and SUFFIX off of NAME.
  6319. # PREFIX and SUFFIX must not contain globbing or regex special
  6320. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6321. # dot (in which case that matches only a dot).
  6322. #
  6323. # This function is identical to the (non-XSI) version of func_stripname,
  6324. # except this one can be used by m4 code that may be executed by configure,
  6325. # rather than the libtool script.
  6326. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6327. AC_REQUIRE([_LT_DECL_SED])
  6328. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6329. func_stripname_cnf ()
  6330. {
  6331. case ${2} in
  6332. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6333. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6334. esac
  6335. } # func_stripname_cnf
  6336. ])# _LT_FUNC_STRIPNAME_CNF
  6337. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6338. # ---------------------------------
  6339. # Figure out "hidden" library dependencies from verbose
  6340. # compiler output when linking a shared library.
  6341. # Parse the compiler output and extract the necessary
  6342. # objects, libraries and library flags.
  6343. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6344. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6345. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6346. # Dependencies to place before and after the object being linked:
  6347. _LT_TAGVAR(predep_objects, $1)=
  6348. _LT_TAGVAR(postdep_objects, $1)=
  6349. _LT_TAGVAR(predeps, $1)=
  6350. _LT_TAGVAR(postdeps, $1)=
  6351. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6352. dnl we can't use the lt_simple_compile_test_code here,
  6353. dnl because it contains code intended for an executable,
  6354. dnl not a library. It's possible we should let each
  6355. dnl tag define a new lt_????_link_test_code variable,
  6356. dnl but it's only used here...
  6357. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6358. int a;
  6359. void foo (void) { a = 0; }
  6360. _LT_EOF
  6361. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6362. class Foo
  6363. {
  6364. public:
  6365. Foo (void) { a = 0; }
  6366. private:
  6367. int a;
  6368. };
  6369. _LT_EOF
  6370. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6371. subroutine foo
  6372. implicit none
  6373. integer*4 a
  6374. a=0
  6375. return
  6376. end
  6377. _LT_EOF
  6378. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6379. subroutine foo
  6380. implicit none
  6381. integer a
  6382. a=0
  6383. return
  6384. end
  6385. _LT_EOF
  6386. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6387. public class foo {
  6388. private int a;
  6389. public void bar (void) {
  6390. a = 0;
  6391. }
  6392. };
  6393. _LT_EOF
  6394. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6395. package foo
  6396. func foo() {
  6397. }
  6398. _LT_EOF
  6399. ])
  6400. _lt_libdeps_save_CFLAGS=$CFLAGS
  6401. case "$CC $CFLAGS " in #(
  6402. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6403. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6404. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6405. esac
  6406. dnl Parse the compiler output and extract the necessary
  6407. dnl objects, libraries and library flags.
  6408. if AC_TRY_EVAL(ac_compile); then
  6409. # Parse the compiler output and extract the necessary
  6410. # objects, libraries and library flags.
  6411. # Sentinel used to keep track of whether or not we are before
  6412. # the conftest object file.
  6413. pre_test_object_deps_done=no
  6414. for p in `eval "$output_verbose_link_cmd"`; do
  6415. case ${prev}${p} in
  6416. -L* | -R* | -l*)
  6417. # Some compilers place space between "-{L,R}" and the path.
  6418. # Remove the space.
  6419. if test $p = "-L" ||
  6420. test $p = "-R"; then
  6421. prev=$p
  6422. continue
  6423. fi
  6424. # Expand the sysroot to ease extracting the directories later.
  6425. if test -z "$prev"; then
  6426. case $p in
  6427. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6428. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6429. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6430. esac
  6431. fi
  6432. case $p in
  6433. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6434. esac
  6435. if test "$pre_test_object_deps_done" = no; then
  6436. case ${prev} in
  6437. -L | -R)
  6438. # Internal compiler library paths should come after those
  6439. # provided the user. The postdeps already come after the
  6440. # user supplied libs so there is no need to process them.
  6441. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6442. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6443. else
  6444. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6445. fi
  6446. ;;
  6447. # The "-l" case would never come before the object being
  6448. # linked, so don't bother handling this case.
  6449. esac
  6450. else
  6451. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6452. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6453. else
  6454. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6455. fi
  6456. fi
  6457. prev=
  6458. ;;
  6459. *.lto.$objext) ;; # Ignore GCC LTO objects
  6460. *.$objext)
  6461. # This assumes that the test object file only shows up
  6462. # once in the compiler output.
  6463. if test "$p" = "conftest.$objext"; then
  6464. pre_test_object_deps_done=yes
  6465. continue
  6466. fi
  6467. if test "$pre_test_object_deps_done" = no; then
  6468. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6469. _LT_TAGVAR(predep_objects, $1)="$p"
  6470. else
  6471. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6472. fi
  6473. else
  6474. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6475. _LT_TAGVAR(postdep_objects, $1)="$p"
  6476. else
  6477. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6478. fi
  6479. fi
  6480. ;;
  6481. *) ;; # Ignore the rest.
  6482. esac
  6483. done
  6484. # Clean up.
  6485. rm -f a.out a.exe
  6486. else
  6487. echo "libtool.m4: error: problem compiling $1 test program"
  6488. fi
  6489. $RM -f confest.$objext
  6490. CFLAGS=$_lt_libdeps_save_CFLAGS
  6491. # PORTME: override above test on systems where it is broken
  6492. m4_if([$1], [CXX],
  6493. [case $host_os in
  6494. interix[[3-9]]*)
  6495. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6496. # hack all around it, let's just trust "g++" to DTRT.
  6497. _LT_TAGVAR(predep_objects,$1)=
  6498. _LT_TAGVAR(postdep_objects,$1)=
  6499. _LT_TAGVAR(postdeps,$1)=
  6500. ;;
  6501. linux*)
  6502. case `$CC -V 2>&1 | sed 5q` in
  6503. *Sun\ C*)
  6504. # Sun C++ 5.9
  6505. # The more standards-conforming stlport4 library is
  6506. # incompatible with the Cstd library. Avoid specifying
  6507. # it if it's in CXXFLAGS. Ignore libCrun as
  6508. # -library=stlport4 depends on it.
  6509. case " $CXX $CXXFLAGS " in
  6510. *" -library=stlport4 "*)
  6511. solaris_use_stlport4=yes
  6512. ;;
  6513. esac
  6514. if test "$solaris_use_stlport4" != yes; then
  6515. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6516. fi
  6517. ;;
  6518. esac
  6519. ;;
  6520. solaris*)
  6521. case $cc_basename in
  6522. CC* | sunCC*)
  6523. # The more standards-conforming stlport4 library is
  6524. # incompatible with the Cstd library. Avoid specifying
  6525. # it if it's in CXXFLAGS. Ignore libCrun as
  6526. # -library=stlport4 depends on it.
  6527. case " $CXX $CXXFLAGS " in
  6528. *" -library=stlport4 "*)
  6529. solaris_use_stlport4=yes
  6530. ;;
  6531. esac
  6532. # Adding this requires a known-good setup of shared libraries for
  6533. # Sun compiler versions before 5.6, else PIC objects from an old
  6534. # archive will be linked into the output, leading to subtle bugs.
  6535. if test "$solaris_use_stlport4" != yes; then
  6536. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6537. fi
  6538. ;;
  6539. esac
  6540. ;;
  6541. esac
  6542. ])
  6543. case " $_LT_TAGVAR(postdeps, $1) " in
  6544. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6545. esac
  6546. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6547. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6548. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6549. fi
  6550. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6551. [The directories searched by this compiler when creating a shared library])
  6552. _LT_TAGDECL([], [predep_objects], [1],
  6553. [Dependencies to place before and after the objects being linked to
  6554. create a shared library])
  6555. _LT_TAGDECL([], [postdep_objects], [1])
  6556. _LT_TAGDECL([], [predeps], [1])
  6557. _LT_TAGDECL([], [postdeps], [1])
  6558. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6559. [The library search path used internally by the compiler when linking
  6560. a shared library])
  6561. ])# _LT_SYS_HIDDEN_LIBDEPS
  6562. # _LT_LANG_F77_CONFIG([TAG])
  6563. # --------------------------
  6564. # Ensure that the configuration variables for a Fortran 77 compiler are
  6565. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6566. # to write the compiler configuration to `libtool'.
  6567. m4_defun([_LT_LANG_F77_CONFIG],
  6568. [AC_LANG_PUSH(Fortran 77)
  6569. if test -z "$F77" || test "X$F77" = "Xno"; then
  6570. _lt_disable_F77=yes
  6571. fi
  6572. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6573. _LT_TAGVAR(allow_undefined_flag, $1)=
  6574. _LT_TAGVAR(always_export_symbols, $1)=no
  6575. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6576. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6577. _LT_TAGVAR(hardcode_direct, $1)=no
  6578. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6579. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6580. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6581. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6582. _LT_TAGVAR(hardcode_automatic, $1)=no
  6583. _LT_TAGVAR(inherit_rpath, $1)=no
  6584. _LT_TAGVAR(module_cmds, $1)=
  6585. _LT_TAGVAR(module_expsym_cmds, $1)=
  6586. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6587. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6588. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6589. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6590. _LT_TAGVAR(no_undefined_flag, $1)=
  6591. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6592. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6593. # Source file extension for f77 test sources.
  6594. ac_ext=f
  6595. # Object file extension for compiled f77 test sources.
  6596. objext=o
  6597. _LT_TAGVAR(objext, $1)=$objext
  6598. # No sense in running all these tests if we already determined that
  6599. # the F77 compiler isn't working. Some variables (like enable_shared)
  6600. # are currently assumed to apply to all compilers on this platform,
  6601. # and will be corrupted by setting them based on a non-working compiler.
  6602. if test "$_lt_disable_F77" != yes; then
  6603. # Code to be used in simple compile tests
  6604. lt_simple_compile_test_code="\
  6605. subroutine t
  6606. return
  6607. end
  6608. "
  6609. # Code to be used in simple link tests
  6610. lt_simple_link_test_code="\
  6611. program t
  6612. end
  6613. "
  6614. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6615. _LT_TAG_COMPILER
  6616. # save warnings/boilerplate of simple test code
  6617. _LT_COMPILER_BOILERPLATE
  6618. _LT_LINKER_BOILERPLATE
  6619. # Allow CC to be a program name with arguments.
  6620. lt_save_CC="$CC"
  6621. lt_save_GCC=$GCC
  6622. lt_save_CFLAGS=$CFLAGS
  6623. CC=${F77-"f77"}
  6624. CFLAGS=$FFLAGS
  6625. compiler=$CC
  6626. _LT_TAGVAR(compiler, $1)=$CC
  6627. _LT_CC_BASENAME([$compiler])
  6628. GCC=$G77
  6629. if test -n "$compiler"; then
  6630. AC_MSG_CHECKING([if libtool supports shared libraries])
  6631. AC_MSG_RESULT([$can_build_shared])
  6632. AC_MSG_CHECKING([whether to build shared libraries])
  6633. test "$can_build_shared" = "no" && enable_shared=no
  6634. # On AIX, shared libraries and static libraries use the same namespace, and
  6635. # are all built from PIC.
  6636. case $host_os in
  6637. aix3*)
  6638. test "$enable_shared" = yes && enable_static=no
  6639. if test -n "$RANLIB"; then
  6640. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6641. postinstall_cmds='$RANLIB $lib'
  6642. fi
  6643. ;;
  6644. aix[[4-9]]*)
  6645. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6646. test "$enable_shared" = yes && enable_static=no
  6647. fi
  6648. ;;
  6649. esac
  6650. AC_MSG_RESULT([$enable_shared])
  6651. AC_MSG_CHECKING([whether to build static libraries])
  6652. # Make sure either enable_shared or enable_static is yes.
  6653. test "$enable_shared" = yes || enable_static=yes
  6654. AC_MSG_RESULT([$enable_static])
  6655. _LT_TAGVAR(GCC, $1)="$G77"
  6656. _LT_TAGVAR(LD, $1)="$LD"
  6657. ## CAVEAT EMPTOR:
  6658. ## There is no encapsulation within the following macros, do not change
  6659. ## the running order or otherwise move them around unless you know exactly
  6660. ## what you are doing...
  6661. _LT_COMPILER_PIC($1)
  6662. _LT_COMPILER_C_O($1)
  6663. _LT_COMPILER_FILE_LOCKS($1)
  6664. _LT_LINKER_SHLIBS($1)
  6665. _LT_SYS_DYNAMIC_LINKER($1)
  6666. _LT_LINKER_HARDCODE_LIBPATH($1)
  6667. _LT_CONFIG($1)
  6668. fi # test -n "$compiler"
  6669. GCC=$lt_save_GCC
  6670. CC="$lt_save_CC"
  6671. CFLAGS="$lt_save_CFLAGS"
  6672. fi # test "$_lt_disable_F77" != yes
  6673. AC_LANG_POP
  6674. ])# _LT_LANG_F77_CONFIG
  6675. # _LT_LANG_FC_CONFIG([TAG])
  6676. # -------------------------
  6677. # Ensure that the configuration variables for a Fortran compiler are
  6678. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6679. # to write the compiler configuration to `libtool'.
  6680. m4_defun([_LT_LANG_FC_CONFIG],
  6681. [AC_LANG_PUSH(Fortran)
  6682. if test -z "$FC" || test "X$FC" = "Xno"; then
  6683. _lt_disable_FC=yes
  6684. fi
  6685. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6686. _LT_TAGVAR(allow_undefined_flag, $1)=
  6687. _LT_TAGVAR(always_export_symbols, $1)=no
  6688. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6689. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6690. _LT_TAGVAR(hardcode_direct, $1)=no
  6691. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6692. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6693. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6694. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6695. _LT_TAGVAR(hardcode_automatic, $1)=no
  6696. _LT_TAGVAR(inherit_rpath, $1)=no
  6697. _LT_TAGVAR(module_cmds, $1)=
  6698. _LT_TAGVAR(module_expsym_cmds, $1)=
  6699. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6700. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6701. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6702. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6703. _LT_TAGVAR(no_undefined_flag, $1)=
  6704. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6705. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6706. # Source file extension for fc test sources.
  6707. ac_ext=${ac_fc_srcext-f}
  6708. # Object file extension for compiled fc test sources.
  6709. objext=o
  6710. _LT_TAGVAR(objext, $1)=$objext
  6711. # No sense in running all these tests if we already determined that
  6712. # the FC compiler isn't working. Some variables (like enable_shared)
  6713. # are currently assumed to apply to all compilers on this platform,
  6714. # and will be corrupted by setting them based on a non-working compiler.
  6715. if test "$_lt_disable_FC" != yes; then
  6716. # Code to be used in simple compile tests
  6717. lt_simple_compile_test_code="\
  6718. subroutine t
  6719. return
  6720. end
  6721. "
  6722. # Code to be used in simple link tests
  6723. lt_simple_link_test_code="\
  6724. program t
  6725. end
  6726. "
  6727. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6728. _LT_TAG_COMPILER
  6729. # save warnings/boilerplate of simple test code
  6730. _LT_COMPILER_BOILERPLATE
  6731. _LT_LINKER_BOILERPLATE
  6732. # Allow CC to be a program name with arguments.
  6733. lt_save_CC="$CC"
  6734. lt_save_GCC=$GCC
  6735. lt_save_CFLAGS=$CFLAGS
  6736. CC=${FC-"f95"}
  6737. CFLAGS=$FCFLAGS
  6738. compiler=$CC
  6739. GCC=$ac_cv_fc_compiler_gnu
  6740. _LT_TAGVAR(compiler, $1)=$CC
  6741. _LT_CC_BASENAME([$compiler])
  6742. if test -n "$compiler"; then
  6743. AC_MSG_CHECKING([if libtool supports shared libraries])
  6744. AC_MSG_RESULT([$can_build_shared])
  6745. AC_MSG_CHECKING([whether to build shared libraries])
  6746. test "$can_build_shared" = "no" && enable_shared=no
  6747. # On AIX, shared libraries and static libraries use the same namespace, and
  6748. # are all built from PIC.
  6749. case $host_os in
  6750. aix3*)
  6751. test "$enable_shared" = yes && enable_static=no
  6752. if test -n "$RANLIB"; then
  6753. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6754. postinstall_cmds='$RANLIB $lib'
  6755. fi
  6756. ;;
  6757. aix[[4-9]]*)
  6758. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6759. test "$enable_shared" = yes && enable_static=no
  6760. fi
  6761. ;;
  6762. esac
  6763. AC_MSG_RESULT([$enable_shared])
  6764. AC_MSG_CHECKING([whether to build static libraries])
  6765. # Make sure either enable_shared or enable_static is yes.
  6766. test "$enable_shared" = yes || enable_static=yes
  6767. AC_MSG_RESULT([$enable_static])
  6768. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6769. _LT_TAGVAR(LD, $1)="$LD"
  6770. ## CAVEAT EMPTOR:
  6771. ## There is no encapsulation within the following macros, do not change
  6772. ## the running order or otherwise move them around unless you know exactly
  6773. ## what you are doing...
  6774. _LT_SYS_HIDDEN_LIBDEPS($1)
  6775. _LT_COMPILER_PIC($1)
  6776. _LT_COMPILER_C_O($1)
  6777. _LT_COMPILER_FILE_LOCKS($1)
  6778. _LT_LINKER_SHLIBS($1)
  6779. _LT_SYS_DYNAMIC_LINKER($1)
  6780. _LT_LINKER_HARDCODE_LIBPATH($1)
  6781. _LT_CONFIG($1)
  6782. fi # test -n "$compiler"
  6783. GCC=$lt_save_GCC
  6784. CC=$lt_save_CC
  6785. CFLAGS=$lt_save_CFLAGS
  6786. fi # test "$_lt_disable_FC" != yes
  6787. AC_LANG_POP
  6788. ])# _LT_LANG_FC_CONFIG
  6789. # _LT_LANG_GCJ_CONFIG([TAG])
  6790. # --------------------------
  6791. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6792. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6793. # to write the compiler configuration to `libtool'.
  6794. m4_defun([_LT_LANG_GCJ_CONFIG],
  6795. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6796. AC_LANG_SAVE
  6797. # Source file extension for Java test sources.
  6798. ac_ext=java
  6799. # Object file extension for compiled Java test sources.
  6800. objext=o
  6801. _LT_TAGVAR(objext, $1)=$objext
  6802. # Code to be used in simple compile tests
  6803. lt_simple_compile_test_code="class foo {}"
  6804. # Code to be used in simple link tests
  6805. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6806. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6807. _LT_TAG_COMPILER
  6808. # save warnings/boilerplate of simple test code
  6809. _LT_COMPILER_BOILERPLATE
  6810. _LT_LINKER_BOILERPLATE
  6811. # Allow CC to be a program name with arguments.
  6812. lt_save_CC=$CC
  6813. lt_save_CFLAGS=$CFLAGS
  6814. lt_save_GCC=$GCC
  6815. GCC=yes
  6816. CC=${GCJ-"gcj"}
  6817. CFLAGS=$GCJFLAGS
  6818. compiler=$CC
  6819. _LT_TAGVAR(compiler, $1)=$CC
  6820. _LT_TAGVAR(LD, $1)="$LD"
  6821. _LT_CC_BASENAME([$compiler])
  6822. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6823. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6824. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6825. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6826. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6827. if test -n "$compiler"; then
  6828. _LT_COMPILER_NO_RTTI($1)
  6829. _LT_COMPILER_PIC($1)
  6830. _LT_COMPILER_C_O($1)
  6831. _LT_COMPILER_FILE_LOCKS($1)
  6832. _LT_LINKER_SHLIBS($1)
  6833. _LT_LINKER_HARDCODE_LIBPATH($1)
  6834. _LT_CONFIG($1)
  6835. fi
  6836. AC_LANG_RESTORE
  6837. GCC=$lt_save_GCC
  6838. CC=$lt_save_CC
  6839. CFLAGS=$lt_save_CFLAGS
  6840. ])# _LT_LANG_GCJ_CONFIG
  6841. # _LT_LANG_GO_CONFIG([TAG])
  6842. # --------------------------
  6843. # Ensure that the configuration variables for the GNU Go compiler
  6844. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6845. # to write the compiler configuration to `libtool'.
  6846. m4_defun([_LT_LANG_GO_CONFIG],
  6847. [AC_REQUIRE([LT_PROG_GO])dnl
  6848. AC_LANG_SAVE
  6849. # Source file extension for Go test sources.
  6850. ac_ext=go
  6851. # Object file extension for compiled Go test sources.
  6852. objext=o
  6853. _LT_TAGVAR(objext, $1)=$objext
  6854. # Code to be used in simple compile tests
  6855. lt_simple_compile_test_code="package main; func main() { }"
  6856. # Code to be used in simple link tests
  6857. lt_simple_link_test_code='package main; func main() { }'
  6858. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6859. _LT_TAG_COMPILER
  6860. # save warnings/boilerplate of simple test code
  6861. _LT_COMPILER_BOILERPLATE
  6862. _LT_LINKER_BOILERPLATE
  6863. # Allow CC to be a program name with arguments.
  6864. lt_save_CC=$CC
  6865. lt_save_CFLAGS=$CFLAGS
  6866. lt_save_GCC=$GCC
  6867. GCC=yes
  6868. CC=${GOC-"gccgo"}
  6869. CFLAGS=$GOFLAGS
  6870. compiler=$CC
  6871. _LT_TAGVAR(compiler, $1)=$CC
  6872. _LT_TAGVAR(LD, $1)="$LD"
  6873. _LT_CC_BASENAME([$compiler])
  6874. # Go did not exist at the time GCC didn't implicitly link libc in.
  6875. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6876. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6877. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6878. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6879. if test -n "$compiler"; then
  6880. _LT_COMPILER_NO_RTTI($1)
  6881. _LT_COMPILER_PIC($1)
  6882. _LT_COMPILER_C_O($1)
  6883. _LT_COMPILER_FILE_LOCKS($1)
  6884. _LT_LINKER_SHLIBS($1)
  6885. _LT_LINKER_HARDCODE_LIBPATH($1)
  6886. _LT_CONFIG($1)
  6887. fi
  6888. AC_LANG_RESTORE
  6889. GCC=$lt_save_GCC
  6890. CC=$lt_save_CC
  6891. CFLAGS=$lt_save_CFLAGS
  6892. ])# _LT_LANG_GO_CONFIG
  6893. # _LT_LANG_RC_CONFIG([TAG])
  6894. # -------------------------
  6895. # Ensure that the configuration variables for the Windows resource compiler
  6896. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6897. # to write the compiler configuration to `libtool'.
  6898. m4_defun([_LT_LANG_RC_CONFIG],
  6899. [AC_REQUIRE([LT_PROG_RC])dnl
  6900. AC_LANG_SAVE
  6901. # Source file extension for RC test sources.
  6902. ac_ext=rc
  6903. # Object file extension for compiled RC test sources.
  6904. objext=o
  6905. _LT_TAGVAR(objext, $1)=$objext
  6906. # Code to be used in simple compile tests
  6907. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6908. # Code to be used in simple link tests
  6909. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6910. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6911. _LT_TAG_COMPILER
  6912. # save warnings/boilerplate of simple test code
  6913. _LT_COMPILER_BOILERPLATE
  6914. _LT_LINKER_BOILERPLATE
  6915. # Allow CC to be a program name with arguments.
  6916. lt_save_CC="$CC"
  6917. lt_save_CFLAGS=$CFLAGS
  6918. lt_save_GCC=$GCC
  6919. GCC=
  6920. CC=${RC-"windres"}
  6921. CFLAGS=
  6922. compiler=$CC
  6923. _LT_TAGVAR(compiler, $1)=$CC
  6924. _LT_CC_BASENAME([$compiler])
  6925. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6926. if test -n "$compiler"; then
  6927. :
  6928. _LT_CONFIG($1)
  6929. fi
  6930. GCC=$lt_save_GCC
  6931. AC_LANG_RESTORE
  6932. CC=$lt_save_CC
  6933. CFLAGS=$lt_save_CFLAGS
  6934. ])# _LT_LANG_RC_CONFIG
  6935. # LT_PROG_GCJ
  6936. # -----------
  6937. AC_DEFUN([LT_PROG_GCJ],
  6938. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6939. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6940. [AC_CHECK_TOOL(GCJ, gcj,)
  6941. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6942. AC_SUBST(GCJFLAGS)])])[]dnl
  6943. ])
  6944. # Old name:
  6945. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6946. dnl aclocal-1.4 backwards compatibility:
  6947. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6948. # LT_PROG_GO
  6949. # ----------
  6950. AC_DEFUN([LT_PROG_GO],
  6951. [AC_CHECK_TOOL(GOC, gccgo,)
  6952. ])
  6953. # LT_PROG_RC
  6954. # ----------
  6955. AC_DEFUN([LT_PROG_RC],
  6956. [AC_CHECK_TOOL(RC, windres,)
  6957. ])
  6958. # Old name:
  6959. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6960. dnl aclocal-1.4 backwards compatibility:
  6961. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6962. # _LT_DECL_EGREP
  6963. # --------------
  6964. # If we don't have a new enough Autoconf to choose the best grep
  6965. # available, choose the one first in the user's PATH.
  6966. m4_defun([_LT_DECL_EGREP],
  6967. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6968. AC_REQUIRE([AC_PROG_FGREP])dnl
  6969. test -z "$GREP" && GREP=grep
  6970. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6971. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6972. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6973. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6974. AC_SUBST([GREP])
  6975. ])
  6976. # _LT_DECL_OBJDUMP
  6977. # --------------
  6978. # If we don't have a new enough Autoconf to choose the best objdump
  6979. # available, choose the one first in the user's PATH.
  6980. m4_defun([_LT_DECL_OBJDUMP],
  6981. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6982. test -z "$OBJDUMP" && OBJDUMP=objdump
  6983. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6984. AC_SUBST([OBJDUMP])
  6985. ])
  6986. # _LT_DECL_DLLTOOL
  6987. # ----------------
  6988. # Ensure DLLTOOL variable is set.
  6989. m4_defun([_LT_DECL_DLLTOOL],
  6990. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6991. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6992. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  6993. AC_SUBST([DLLTOOL])
  6994. ])
  6995. # _LT_DECL_SED
  6996. # ------------
  6997. # Check for a fully-functional sed program, that truncates
  6998. # as few characters as possible. Prefer GNU sed if found.
  6999. m4_defun([_LT_DECL_SED],
  7000. [AC_PROG_SED
  7001. test -z "$SED" && SED=sed
  7002. Xsed="$SED -e 1s/^X//"
  7003. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  7004. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  7005. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  7006. ])# _LT_DECL_SED
  7007. m4_ifndef([AC_PROG_SED], [
  7008. # NOTE: This macro has been submitted for inclusion into #
  7009. # GNU Autoconf as AC_PROG_SED. When it is available in #
  7010. # a released version of Autoconf we should remove this #
  7011. # macro and use it instead. #
  7012. m4_defun([AC_PROG_SED],
  7013. [AC_MSG_CHECKING([for a sed that does not truncate output])
  7014. AC_CACHE_VAL(lt_cv_path_SED,
  7015. [# Loop through the user's path and test for sed and gsed.
  7016. # Then use that list of sed's as ones to test for truncation.
  7017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7018. for as_dir in $PATH
  7019. do
  7020. IFS=$as_save_IFS
  7021. test -z "$as_dir" && as_dir=.
  7022. for lt_ac_prog in sed gsed; do
  7023. for ac_exec_ext in '' $ac_executable_extensions; do
  7024. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7025. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7026. fi
  7027. done
  7028. done
  7029. done
  7030. IFS=$as_save_IFS
  7031. lt_ac_max=0
  7032. lt_ac_count=0
  7033. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7034. # along with /bin/sed that truncates output.
  7035. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7036. test ! -f $lt_ac_sed && continue
  7037. cat /dev/null > conftest.in
  7038. lt_ac_count=0
  7039. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7040. # Check for GNU sed and select it if it is found.
  7041. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7042. lt_cv_path_SED=$lt_ac_sed
  7043. break
  7044. fi
  7045. while true; do
  7046. cat conftest.in conftest.in >conftest.tmp
  7047. mv conftest.tmp conftest.in
  7048. cp conftest.in conftest.nl
  7049. echo >>conftest.nl
  7050. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7051. cmp -s conftest.out conftest.nl || break
  7052. # 10000 chars as input seems more than enough
  7053. test $lt_ac_count -gt 10 && break
  7054. lt_ac_count=`expr $lt_ac_count + 1`
  7055. if test $lt_ac_count -gt $lt_ac_max; then
  7056. lt_ac_max=$lt_ac_count
  7057. lt_cv_path_SED=$lt_ac_sed
  7058. fi
  7059. done
  7060. done
  7061. ])
  7062. SED=$lt_cv_path_SED
  7063. AC_SUBST([SED])
  7064. AC_MSG_RESULT([$SED])
  7065. ])#AC_PROG_SED
  7066. ])#m4_ifndef
  7067. # Old name:
  7068. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7069. dnl aclocal-1.4 backwards compatibility:
  7070. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7071. # _LT_CHECK_SHELL_FEATURES
  7072. # ------------------------
  7073. # Find out whether the shell is Bourne or XSI compatible,
  7074. # or has some other useful features.
  7075. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7076. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7077. # Try some XSI features
  7078. xsi_shell=no
  7079. ( _lt_dummy="a/b/c"
  7080. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7081. = c,a/b,b/c, \
  7082. && eval 'test $(( 1 + 1 )) -eq 2 \
  7083. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7084. && xsi_shell=yes
  7085. AC_MSG_RESULT([$xsi_shell])
  7086. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7087. AC_MSG_CHECKING([whether the shell understands "+="])
  7088. lt_shell_append=no
  7089. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7090. >/dev/null 2>&1 \
  7091. && lt_shell_append=yes
  7092. AC_MSG_RESULT([$lt_shell_append])
  7093. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7094. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7095. lt_unset=unset
  7096. else
  7097. lt_unset=false
  7098. fi
  7099. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7100. # test EBCDIC or ASCII
  7101. case `echo X|tr X '\101'` in
  7102. A) # ASCII based system
  7103. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7104. lt_SP2NL='tr \040 \012'
  7105. lt_NL2SP='tr \015\012 \040\040'
  7106. ;;
  7107. *) # EBCDIC based system
  7108. lt_SP2NL='tr \100 \n'
  7109. lt_NL2SP='tr \r\n \100\100'
  7110. ;;
  7111. esac
  7112. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7113. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7114. ])# _LT_CHECK_SHELL_FEATURES
  7115. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  7116. # ------------------------------------------------------
  7117. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  7118. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  7119. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  7120. [dnl {
  7121. sed -e '/^$1 ()$/,/^} # $1 /c\
  7122. $1 ()\
  7123. {\
  7124. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  7125. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  7126. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7127. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7128. test 0 -eq $? || _lt_function_replace_fail=:
  7129. ])
  7130. # _LT_PROG_REPLACE_SHELLFNS
  7131. # -------------------------
  7132. # Replace existing portable implementations of several shell functions with
  7133. # equivalent extended shell implementations where those features are available..
  7134. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  7135. [if test x"$xsi_shell" = xyes; then
  7136. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  7137. case ${1} in
  7138. */*) func_dirname_result="${1%/*}${2}" ;;
  7139. * ) func_dirname_result="${3}" ;;
  7140. esac])
  7141. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  7142. func_basename_result="${1##*/}"])
  7143. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  7144. case ${1} in
  7145. */*) func_dirname_result="${1%/*}${2}" ;;
  7146. * ) func_dirname_result="${3}" ;;
  7147. esac
  7148. func_basename_result="${1##*/}"])
  7149. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  7150. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7151. # positional parameters, so assign one to ordinary parameter first.
  7152. func_stripname_result=${3}
  7153. func_stripname_result=${func_stripname_result#"${1}"}
  7154. func_stripname_result=${func_stripname_result%"${2}"}])
  7155. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  7156. func_split_long_opt_name=${1%%=*}
  7157. func_split_long_opt_arg=${1#*=}])
  7158. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  7159. func_split_short_opt_arg=${1#??}
  7160. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  7161. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7162. case ${1} in
  7163. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7164. *) func_lo2o_result=${1} ;;
  7165. esac])
  7166. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7167. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7168. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7169. fi
  7170. if test x"$lt_shell_append" = xyes; then
  7171. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7172. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7173. func_quote_for_eval "${2}"
  7174. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7175. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7176. # Save a `func_append' function call where possible by direct use of '+='
  7177. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7178. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7179. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7180. test 0 -eq $? || _lt_function_replace_fail=:
  7181. else
  7182. # Save a `func_append' function call even when '+=' is not available
  7183. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7184. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7185. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7186. test 0 -eq $? || _lt_function_replace_fail=:
  7187. fi
  7188. if test x"$_lt_function_replace_fail" = x":"; then
  7189. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7190. fi
  7191. ])
  7192. # _LT_PATH_CONVERSION_FUNCTIONS
  7193. # -----------------------------
  7194. # Determine which file name conversion functions should be used by
  7195. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7196. # for certain cross-compile configurations and native mingw.
  7197. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7198. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7199. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7200. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7201. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7202. [case $host in
  7203. *-*-mingw* )
  7204. case $build in
  7205. *-*-mingw* ) # actually msys
  7206. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7207. ;;
  7208. *-*-cygwin* )
  7209. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7210. ;;
  7211. * ) # otherwise, assume *nix
  7212. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7213. ;;
  7214. esac
  7215. ;;
  7216. *-*-cygwin* )
  7217. case $build in
  7218. *-*-mingw* ) # actually msys
  7219. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7220. ;;
  7221. *-*-cygwin* )
  7222. lt_cv_to_host_file_cmd=func_convert_file_noop
  7223. ;;
  7224. * ) # otherwise, assume *nix
  7225. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7226. ;;
  7227. esac
  7228. ;;
  7229. * ) # unhandled hosts (and "normal" native builds)
  7230. lt_cv_to_host_file_cmd=func_convert_file_noop
  7231. ;;
  7232. esac
  7233. ])
  7234. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7235. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7236. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7237. [0], [convert $build file names to $host format])dnl
  7238. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7239. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7240. [#assume ordinary cross tools, or native build.
  7241. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7242. case $host in
  7243. *-*-mingw* )
  7244. case $build in
  7245. *-*-mingw* ) # actually msys
  7246. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7247. ;;
  7248. esac
  7249. ;;
  7250. esac
  7251. ])
  7252. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7253. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7254. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7255. [0], [convert $build files to toolchain format])dnl
  7256. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7257. # Helper functions for option handling. -*- Autoconf -*-
  7258. #
  7259. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7260. # Inc.
  7261. # Written by Gary V. Vaughan, 2004
  7262. #
  7263. # This file is free software; the Free Software Foundation gives
  7264. # unlimited permission to copy and/or distribute it, with or without
  7265. # modifications, as long as this notice is preserved.
  7266. # serial 7 ltoptions.m4
  7267. # This is to help aclocal find these macros, as it can't see m4_define.
  7268. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7269. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7270. # ------------------------------------------
  7271. m4_define([_LT_MANGLE_OPTION],
  7272. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7273. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7274. # ---------------------------------------
  7275. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7276. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7277. # saved as a flag.
  7278. m4_define([_LT_SET_OPTION],
  7279. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7280. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7281. _LT_MANGLE_DEFUN([$1], [$2]),
  7282. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7283. ])
  7284. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7285. # ------------------------------------------------------------
  7286. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7287. m4_define([_LT_IF_OPTION],
  7288. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7289. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7290. # -------------------------------------------------------
  7291. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7292. # are set.
  7293. m4_define([_LT_UNLESS_OPTIONS],
  7294. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7295. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7296. [m4_define([$0_found])])])[]dnl
  7297. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7298. ])[]dnl
  7299. ])
  7300. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7301. # ----------------------------------------
  7302. # OPTION-LIST is a space-separated list of Libtool options associated
  7303. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7304. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7305. # the unknown option and exit.
  7306. m4_defun([_LT_SET_OPTIONS],
  7307. [# Set options
  7308. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7309. [_LT_SET_OPTION([$1], _LT_Option)])
  7310. m4_if([$1],[LT_INIT],[
  7311. dnl
  7312. dnl Simply set some default values (i.e off) if boolean options were not
  7313. dnl specified:
  7314. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7315. ])
  7316. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7317. ])
  7318. dnl
  7319. dnl If no reference was made to various pairs of opposing options, then
  7320. dnl we run the default mode handler for the pair. For example, if neither
  7321. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7322. dnl archives by default:
  7323. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7324. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7325. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7326. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7327. [_LT_ENABLE_FAST_INSTALL])
  7328. ])
  7329. ])# _LT_SET_OPTIONS
  7330. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7331. # -----------------------------------------
  7332. m4_define([_LT_MANGLE_DEFUN],
  7333. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7334. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7335. # -----------------------------------------------
  7336. m4_define([LT_OPTION_DEFINE],
  7337. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7338. ])# LT_OPTION_DEFINE
  7339. # dlopen
  7340. # ------
  7341. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7342. ])
  7343. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7344. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7345. AC_DIAGNOSE([obsolete],
  7346. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7347. put the `dlopen' option into LT_INIT's first parameter.])
  7348. ])
  7349. dnl aclocal-1.4 backwards compatibility:
  7350. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7351. # win32-dll
  7352. # ---------
  7353. # Declare package support for building win32 dll's.
  7354. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7355. [enable_win32_dll=yes
  7356. case $host in
  7357. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7358. AC_CHECK_TOOL(AS, as, false)
  7359. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7360. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7361. ;;
  7362. esac
  7363. test -z "$AS" && AS=as
  7364. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7365. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7366. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7367. test -z "$OBJDUMP" && OBJDUMP=objdump
  7368. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7369. ])# win32-dll
  7370. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7371. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7372. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7373. AC_DIAGNOSE([obsolete],
  7374. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7375. put the `win32-dll' option into LT_INIT's first parameter.])
  7376. ])
  7377. dnl aclocal-1.4 backwards compatibility:
  7378. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7379. # _LT_ENABLE_SHARED([DEFAULT])
  7380. # ----------------------------
  7381. # implement the --enable-shared flag, and supports the `shared' and
  7382. # `disable-shared' LT_INIT options.
  7383. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7384. m4_define([_LT_ENABLE_SHARED],
  7385. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7386. AC_ARG_ENABLE([shared],
  7387. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7388. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7389. [p=${PACKAGE-default}
  7390. case $enableval in
  7391. yes) enable_shared=yes ;;
  7392. no) enable_shared=no ;;
  7393. *)
  7394. enable_shared=no
  7395. # Look at the argument we got. We use all the common list separators.
  7396. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7397. for pkg in $enableval; do
  7398. IFS="$lt_save_ifs"
  7399. if test "X$pkg" = "X$p"; then
  7400. enable_shared=yes
  7401. fi
  7402. done
  7403. IFS="$lt_save_ifs"
  7404. ;;
  7405. esac],
  7406. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7407. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7408. [Whether or not to build shared libraries])
  7409. ])# _LT_ENABLE_SHARED
  7410. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7411. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7412. # Old names:
  7413. AC_DEFUN([AC_ENABLE_SHARED],
  7414. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7415. ])
  7416. AC_DEFUN([AC_DISABLE_SHARED],
  7417. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7418. ])
  7419. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7420. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7421. dnl aclocal-1.4 backwards compatibility:
  7422. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7423. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7424. # _LT_ENABLE_STATIC([DEFAULT])
  7425. # ----------------------------
  7426. # implement the --enable-static flag, and support the `static' and
  7427. # `disable-static' LT_INIT options.
  7428. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7429. m4_define([_LT_ENABLE_STATIC],
  7430. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7431. AC_ARG_ENABLE([static],
  7432. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7433. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7434. [p=${PACKAGE-default}
  7435. case $enableval in
  7436. yes) enable_static=yes ;;
  7437. no) enable_static=no ;;
  7438. *)
  7439. enable_static=no
  7440. # Look at the argument we got. We use all the common list separators.
  7441. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7442. for pkg in $enableval; do
  7443. IFS="$lt_save_ifs"
  7444. if test "X$pkg" = "X$p"; then
  7445. enable_static=yes
  7446. fi
  7447. done
  7448. IFS="$lt_save_ifs"
  7449. ;;
  7450. esac],
  7451. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7452. _LT_DECL([build_old_libs], [enable_static], [0],
  7453. [Whether or not to build static libraries])
  7454. ])# _LT_ENABLE_STATIC
  7455. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7456. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7457. # Old names:
  7458. AC_DEFUN([AC_ENABLE_STATIC],
  7459. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7460. ])
  7461. AC_DEFUN([AC_DISABLE_STATIC],
  7462. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7463. ])
  7464. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7465. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7466. dnl aclocal-1.4 backwards compatibility:
  7467. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7468. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7469. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7470. # ----------------------------------
  7471. # implement the --enable-fast-install flag, and support the `fast-install'
  7472. # and `disable-fast-install' LT_INIT options.
  7473. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7474. m4_define([_LT_ENABLE_FAST_INSTALL],
  7475. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7476. AC_ARG_ENABLE([fast-install],
  7477. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7478. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7479. [p=${PACKAGE-default}
  7480. case $enableval in
  7481. yes) enable_fast_install=yes ;;
  7482. no) enable_fast_install=no ;;
  7483. *)
  7484. enable_fast_install=no
  7485. # Look at the argument we got. We use all the common list separators.
  7486. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7487. for pkg in $enableval; do
  7488. IFS="$lt_save_ifs"
  7489. if test "X$pkg" = "X$p"; then
  7490. enable_fast_install=yes
  7491. fi
  7492. done
  7493. IFS="$lt_save_ifs"
  7494. ;;
  7495. esac],
  7496. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7497. _LT_DECL([fast_install], [enable_fast_install], [0],
  7498. [Whether or not to optimize for fast installation])dnl
  7499. ])# _LT_ENABLE_FAST_INSTALL
  7500. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7501. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7502. # Old names:
  7503. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7504. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7505. AC_DIAGNOSE([obsolete],
  7506. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7507. the `fast-install' option into LT_INIT's first parameter.])
  7508. ])
  7509. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7510. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7511. AC_DIAGNOSE([obsolete],
  7512. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7513. the `disable-fast-install' option into LT_INIT's first parameter.])
  7514. ])
  7515. dnl aclocal-1.4 backwards compatibility:
  7516. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7517. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7518. # _LT_WITH_PIC([MODE])
  7519. # --------------------
  7520. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7521. # LT_INIT options.
  7522. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7523. m4_define([_LT_WITH_PIC],
  7524. [AC_ARG_WITH([pic],
  7525. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7526. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7527. [lt_p=${PACKAGE-default}
  7528. case $withval in
  7529. yes|no) pic_mode=$withval ;;
  7530. *)
  7531. pic_mode=default
  7532. # Look at the argument we got. We use all the common list separators.
  7533. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7534. for lt_pkg in $withval; do
  7535. IFS="$lt_save_ifs"
  7536. if test "X$lt_pkg" = "X$lt_p"; then
  7537. pic_mode=yes
  7538. fi
  7539. done
  7540. IFS="$lt_save_ifs"
  7541. ;;
  7542. esac],
  7543. [pic_mode=default])
  7544. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7545. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7546. ])# _LT_WITH_PIC
  7547. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7548. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7549. # Old name:
  7550. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7551. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7552. AC_DIAGNOSE([obsolete],
  7553. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7554. put the `pic-only' option into LT_INIT's first parameter.])
  7555. ])
  7556. dnl aclocal-1.4 backwards compatibility:
  7557. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7558. m4_define([_LTDL_MODE], [])
  7559. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7560. [m4_define([_LTDL_MODE], [nonrecursive])])
  7561. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7562. [m4_define([_LTDL_MODE], [recursive])])
  7563. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7564. [m4_define([_LTDL_MODE], [subproject])])
  7565. m4_define([_LTDL_TYPE], [])
  7566. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7567. [m4_define([_LTDL_TYPE], [installable])])
  7568. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7569. [m4_define([_LTDL_TYPE], [convenience])])
  7570. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7571. #
  7572. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7573. # Written by Gary V. Vaughan, 2004
  7574. #
  7575. # This file is free software; the Free Software Foundation gives
  7576. # unlimited permission to copy and/or distribute it, with or without
  7577. # modifications, as long as this notice is preserved.
  7578. # serial 6 ltsugar.m4
  7579. # This is to help aclocal find these macros, as it can't see m4_define.
  7580. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7581. # lt_join(SEP, ARG1, [ARG2...])
  7582. # -----------------------------
  7583. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7584. # associated separator.
  7585. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7586. # versions in m4sugar had bugs.
  7587. m4_define([lt_join],
  7588. [m4_if([$#], [1], [],
  7589. [$#], [2], [[$2]],
  7590. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7591. m4_define([_lt_join],
  7592. [m4_if([$#$2], [2], [],
  7593. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7594. # lt_car(LIST)
  7595. # lt_cdr(LIST)
  7596. # ------------
  7597. # Manipulate m4 lists.
  7598. # These macros are necessary as long as will still need to support
  7599. # Autoconf-2.59 which quotes differently.
  7600. m4_define([lt_car], [[$1]])
  7601. m4_define([lt_cdr],
  7602. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7603. [$#], 1, [],
  7604. [m4_dquote(m4_shift($@))])])
  7605. m4_define([lt_unquote], $1)
  7606. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7607. # ------------------------------------------
  7608. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7609. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7610. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7611. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7612. # than defined and empty).
  7613. #
  7614. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7615. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7616. m4_define([lt_append],
  7617. [m4_define([$1],
  7618. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7619. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7620. # ----------------------------------------------------------
  7621. # Produce a SEP delimited list of all paired combinations of elements of
  7622. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7623. # has the form PREFIXmINFIXSUFFIXn.
  7624. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7625. m4_define([lt_combine],
  7626. [m4_if(m4_eval([$# > 3]), [1],
  7627. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7628. [[m4_foreach([_Lt_prefix], [$2],
  7629. [m4_foreach([_Lt_suffix],
  7630. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7631. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7632. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7633. # -----------------------------------------------------------------------
  7634. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7635. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7636. m4_define([lt_if_append_uniq],
  7637. [m4_ifdef([$1],
  7638. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7639. [lt_append([$1], [$2], [$3])$4],
  7640. [$5])],
  7641. [lt_append([$1], [$2], [$3])$4])])
  7642. # lt_dict_add(DICT, KEY, VALUE)
  7643. # -----------------------------
  7644. m4_define([lt_dict_add],
  7645. [m4_define([$1($2)], [$3])])
  7646. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7647. # --------------------------------------------
  7648. m4_define([lt_dict_add_subkey],
  7649. [m4_define([$1($2:$3)], [$4])])
  7650. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7651. # ----------------------------------
  7652. m4_define([lt_dict_fetch],
  7653. [m4_ifval([$3],
  7654. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7655. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7656. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7657. # -----------------------------------------------------------------
  7658. m4_define([lt_if_dict_fetch],
  7659. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7660. [$5],
  7661. [$6])])
  7662. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7663. # --------------------------------------------------------------
  7664. m4_define([lt_dict_filter],
  7665. [m4_if([$5], [], [],
  7666. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7667. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7668. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7669. ])
  7670. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7671. #
  7672. # Copyright (C) 2004 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. # @configure_input@
  7679. # serial 3337 ltversion.m4
  7680. # This file is part of GNU Libtool
  7681. m4_define([LT_PACKAGE_VERSION], [2.4.2])
  7682. m4_define([LT_PACKAGE_REVISION], [1.3337])
  7683. AC_DEFUN([LTVERSION_VERSION],
  7684. [macro_version='2.4.2'
  7685. macro_revision='1.3337'
  7686. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7687. _LT_DECL(, macro_revision, 0)
  7688. ])
  7689. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7690. #
  7691. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  7692. # Written by Scott James Remnant, 2004.
  7693. #
  7694. # This file is free software; the Free Software Foundation gives
  7695. # unlimited permission to copy and/or distribute it, with or without
  7696. # modifications, as long as this notice is preserved.
  7697. # serial 5 lt~obsolete.m4
  7698. # These exist entirely to fool aclocal when bootstrapping libtool.
  7699. #
  7700. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7701. # which have later been changed to m4_define as they aren't part of the
  7702. # exported API, or moved to Autoconf or Automake where they belong.
  7703. #
  7704. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7705. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7706. # using a macro with the same name in our local m4/libtool.m4 it'll
  7707. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7708. # and doesn't know about Autoconf macros at all.)
  7709. #
  7710. # So we provide this file, which has a silly filename so it's always
  7711. # included after everything else. This provides aclocal with the
  7712. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7713. # because those macros already exist, or will be overwritten later.
  7714. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7715. #
  7716. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7717. # Yes, that means every name once taken will need to remain here until
  7718. # we give up compatibility with versions before 1.7, at which point
  7719. # we need to keep only those names which we still refer to.
  7720. # This is to help aclocal find these macros, as it can't see m4_define.
  7721. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7722. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7723. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7724. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7725. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7726. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7727. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7728. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7729. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7730. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7731. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7732. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7733. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7734. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7735. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7736. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7737. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7738. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7739. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7740. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7741. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7742. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7743. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7744. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7745. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7746. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7747. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7748. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7749. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7750. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7751. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7752. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7753. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7754. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7755. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7756. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7757. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7758. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7759. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7760. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7761. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7762. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7763. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7764. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7765. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7766. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7767. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7768. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7769. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7770. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7771. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7772. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7773. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7774. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7775. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7776. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7777. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7778. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7779. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7780. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7781. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7782. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7783. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
  7784. # Foundation, Inc.
  7785. #
  7786. # This file is free software; the Free Software Foundation
  7787. # gives unlimited permission to copy and/or distribute it,
  7788. # with or without modifications, as long as this notice is preserved.
  7789. # serial 1
  7790. # AM_AUTOMAKE_VERSION(VERSION)
  7791. # ----------------------------
  7792. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7793. # generated from the m4 files accompanying Automake X.Y.
  7794. # (This private macro should not be called outside this file.)
  7795. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7796. [am__api_version='1.11'
  7797. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7798. dnl require some minimum version. Point them to the right macro.
  7799. m4_if([$1], [1.11.3], [],
  7800. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7801. ])
  7802. # _AM_AUTOCONF_VERSION(VERSION)
  7803. # -----------------------------
  7804. # aclocal traces this macro to find the Autoconf version.
  7805. # This is a private macro too. Using m4_define simplifies
  7806. # the logic in aclocal, which can simply ignore this definition.
  7807. m4_define([_AM_AUTOCONF_VERSION], [])
  7808. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7809. # -------------------------------
  7810. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7811. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7812. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7813. [AM_AUTOMAKE_VERSION([1.11.3])dnl
  7814. m4_ifndef([AC_AUTOCONF_VERSION],
  7815. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7816. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7817. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7818. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
  7819. #
  7820. # This file is free software; the Free Software Foundation
  7821. # gives unlimited permission to copy and/or distribute it,
  7822. # with or without modifications, as long as this notice is preserved.
  7823. # serial 1
  7824. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7825. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  7826. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  7827. #
  7828. # Of course, Automake must honor this variable whenever it calls a
  7829. # tool from the auxiliary directory. The problem is that $srcdir (and
  7830. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7831. # depending on how configure is run. This is pretty annoying, since
  7832. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7833. # source directory, any form will work fine, but in subdirectories a
  7834. # relative path needs to be adjusted first.
  7835. #
  7836. # $ac_aux_dir/missing
  7837. # fails when called from a subdirectory if $ac_aux_dir is relative
  7838. # $top_srcdir/$ac_aux_dir/missing
  7839. # fails if $ac_aux_dir is absolute,
  7840. # fails when called from a subdirectory in a VPATH build with
  7841. # a relative $ac_aux_dir
  7842. #
  7843. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7844. # are both prefixed by $srcdir. In an in-source build this is usually
  7845. # harmless because $srcdir is `.', but things will broke when you
  7846. # start a VPATH build or use an absolute $srcdir.
  7847. #
  7848. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7849. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7850. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7851. # and then we would define $MISSING as
  7852. # MISSING="\${SHELL} $am_aux_dir/missing"
  7853. # This will work as long as MISSING is not called from configure, because
  7854. # unfortunately $(top_srcdir) has no meaning in configure.
  7855. # However there are other variables, like CC, which are often used in
  7856. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7857. #
  7858. # Another solution, used here, is to always expand $ac_aux_dir to an
  7859. # absolute PATH. The drawback is that using absolute paths prevent a
  7860. # configured tree to be moved without reconfiguration.
  7861. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7862. [dnl Rely on autoconf to set up CDPATH properly.
  7863. AC_PREREQ([2.50])dnl
  7864. # expand $ac_aux_dir to an absolute path
  7865. am_aux_dir=`cd $ac_aux_dir && pwd`
  7866. ])
  7867. # AM_CONDITIONAL -*- Autoconf -*-
  7868. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  7869. # Free Software Foundation, Inc.
  7870. #
  7871. # This file is free software; the Free Software Foundation
  7872. # gives unlimited permission to copy and/or distribute it,
  7873. # with or without modifications, as long as this notice is preserved.
  7874. # serial 9
  7875. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7876. # -------------------------------------
  7877. # Define a conditional.
  7878. AC_DEFUN([AM_CONDITIONAL],
  7879. [AC_PREREQ(2.52)dnl
  7880. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7881. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7882. AC_SUBST([$1_TRUE])dnl
  7883. AC_SUBST([$1_FALSE])dnl
  7884. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  7885. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  7886. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  7887. if $2; then
  7888. $1_TRUE=
  7889. $1_FALSE='#'
  7890. else
  7891. $1_TRUE='#'
  7892. $1_FALSE=
  7893. fi
  7894. AC_CONFIG_COMMANDS_PRE(
  7895. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  7896. AC_MSG_ERROR([[conditional "$1" was never defined.
  7897. Usually this means the macro was only invoked conditionally.]])
  7898. fi])])
  7899. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
  7900. # 2010, 2011 Free Software Foundation, Inc.
  7901. #
  7902. # This file is free software; the Free Software Foundation
  7903. # gives unlimited permission to copy and/or distribute it,
  7904. # with or without modifications, as long as this notice is preserved.
  7905. # serial 12
  7906. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  7907. # written in clear, in which case automake, when reading aclocal.m4,
  7908. # will think it sees a *use*, and therefore will trigger all it's
  7909. # C support machinery. Also note that it means that autoscan, seeing
  7910. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  7911. # _AM_DEPENDENCIES(NAME)
  7912. # ----------------------
  7913. # See how the compiler implements dependency checking.
  7914. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  7915. # We try a few techniques and use that to set a single cache variable.
  7916. #
  7917. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  7918. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  7919. # dependency, and given that the user is not expected to run this macro,
  7920. # just rely on AC_PROG_CC.
  7921. AC_DEFUN([_AM_DEPENDENCIES],
  7922. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  7923. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  7924. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  7925. AC_REQUIRE([AM_DEP_TRACK])dnl
  7926. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  7927. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  7928. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  7929. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  7930. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  7931. [depcc="$$1" am_compiler_list=])
  7932. AC_CACHE_CHECK([dependency style of $depcc],
  7933. [am_cv_$1_dependencies_compiler_type],
  7934. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7935. # We make a subdir and do the tests there. Otherwise we can end up
  7936. # making bogus files that we don't know about and never remove. For
  7937. # instance it was reported that on HP-UX the gcc test will end up
  7938. # making a dummy file named `D' -- because `-MD' means `put the output
  7939. # in D'.
  7940. rm -rf conftest.dir
  7941. mkdir conftest.dir
  7942. # Copy depcomp to subdir because otherwise we won't find it if we're
  7943. # using a relative directory.
  7944. cp "$am_depcomp" conftest.dir
  7945. cd conftest.dir
  7946. # We will build objects and dependencies in a subdirectory because
  7947. # it helps to detect inapplicable dependency modes. For instance
  7948. # both Tru64's cc and ICC support -MD to output dependencies as a
  7949. # side effect of compilation, but ICC will put the dependencies in
  7950. # the current directory while Tru64 will put them in the object
  7951. # directory.
  7952. mkdir sub
  7953. am_cv_$1_dependencies_compiler_type=none
  7954. if test "$am_compiler_list" = ""; then
  7955. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  7956. fi
  7957. am__universal=false
  7958. m4_case([$1], [CC],
  7959. [case " $depcc " in #(
  7960. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7961. esac],
  7962. [CXX],
  7963. [case " $depcc " in #(
  7964. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7965. esac])
  7966. for depmode in $am_compiler_list; do
  7967. # Setup a source with many dependencies, because some compilers
  7968. # like to wrap large dependency lists on column 80 (with \), and
  7969. # we should not choose a depcomp mode which is confused by this.
  7970. #
  7971. # We need to recreate these files for each test, as the compiler may
  7972. # overwrite some of them when testing with obscure command lines.
  7973. # This happens at least with the AIX C compiler.
  7974. : > sub/conftest.c
  7975. for i in 1 2 3 4 5 6; do
  7976. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7977. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7978. # Solaris 8's {/usr,}/bin/sh.
  7979. touch sub/conftst$i.h
  7980. done
  7981. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7982. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7983. # mode. It turns out that the SunPro C++ compiler does not properly
  7984. # handle `-M -o', and we need to detect this. Also, some Intel
  7985. # versions had trouble with output in subdirs
  7986. am__obj=sub/conftest.${OBJEXT-o}
  7987. am__minus_obj="-o $am__obj"
  7988. case $depmode in
  7989. gcc)
  7990. # This depmode causes a compiler race in universal mode.
  7991. test "$am__universal" = false || continue
  7992. ;;
  7993. nosideeffect)
  7994. # after this tag, mechanisms are not by side-effect, so they'll
  7995. # only be used when explicitly requested
  7996. if test "x$enable_dependency_tracking" = xyes; then
  7997. continue
  7998. else
  7999. break
  8000. fi
  8001. ;;
  8002. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  8003. # This compiler won't grok `-c -o', but also, the minuso test has
  8004. # not run yet. These depmodes are late enough in the game, and
  8005. # so weak that their functioning should not be impacted.
  8006. am__obj=conftest.${OBJEXT-o}
  8007. am__minus_obj=
  8008. ;;
  8009. none) break ;;
  8010. esac
  8011. if depmode=$depmode \
  8012. source=sub/conftest.c object=$am__obj \
  8013. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8014. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  8015. >/dev/null 2>conftest.err &&
  8016. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8017. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8018. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8019. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8020. # icc doesn't choke on unknown options, it will just issue warnings
  8021. # or remarks (even with -Werror). So we grep stderr for any message
  8022. # that says an option was ignored or not supported.
  8023. # When given -MP, icc 7.0 and 7.1 complain thusly:
  8024. # icc: Command line warning: ignoring option '-M'; no argument required
  8025. # The diagnosis changed in icc 8.0:
  8026. # icc: Command line remark: option '-MP' not supported
  8027. if (grep 'ignoring option' conftest.err ||
  8028. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8029. am_cv_$1_dependencies_compiler_type=$depmode
  8030. break
  8031. fi
  8032. fi
  8033. done
  8034. cd ..
  8035. rm -rf conftest.dir
  8036. else
  8037. am_cv_$1_dependencies_compiler_type=none
  8038. fi
  8039. ])
  8040. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8041. AM_CONDITIONAL([am__fastdep$1], [
  8042. test "x$enable_dependency_tracking" != xno \
  8043. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8044. ])
  8045. # AM_SET_DEPDIR
  8046. # -------------
  8047. # Choose a directory name for dependency files.
  8048. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  8049. AC_DEFUN([AM_SET_DEPDIR],
  8050. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8051. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8052. ])
  8053. # AM_DEP_TRACK
  8054. # ------------
  8055. AC_DEFUN([AM_DEP_TRACK],
  8056. [AC_ARG_ENABLE(dependency-tracking,
  8057. [ --disable-dependency-tracking speeds up one-time build
  8058. --enable-dependency-tracking do not reject slow dependency extractors])
  8059. if test "x$enable_dependency_tracking" != xno; then
  8060. am_depcomp="$ac_aux_dir/depcomp"
  8061. AMDEPBACKSLASH='\'
  8062. am__nodep='_no'
  8063. fi
  8064. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8065. AC_SUBST([AMDEPBACKSLASH])dnl
  8066. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8067. AC_SUBST([am__nodep])dnl
  8068. _AM_SUBST_NOTMAKE([am__nodep])dnl
  8069. ])
  8070. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8071. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  8072. # Free Software Foundation, Inc.
  8073. #
  8074. # This file is free software; the Free Software Foundation
  8075. # gives unlimited permission to copy and/or distribute it,
  8076. # with or without modifications, as long as this notice is preserved.
  8077. #serial 5
  8078. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8079. # ------------------------------
  8080. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8081. [{
  8082. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  8083. # are listed without --file. Let's play safe and only enable the eval
  8084. # if we detect the quoting.
  8085. case $CONFIG_FILES in
  8086. *\'*) eval set x "$CONFIG_FILES" ;;
  8087. *) set x $CONFIG_FILES ;;
  8088. esac
  8089. shift
  8090. for mf
  8091. do
  8092. # Strip MF so we end up with the name of the file.
  8093. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8094. # Check whether this is an Automake generated Makefile or not.
  8095. # We used to match only the files named `Makefile.in', but
  8096. # some people rename them; so instead we look at the file content.
  8097. # Grep'ing the first line is not enough: some people post-process
  8098. # each Makefile.in and add a new line on top of each file to say so.
  8099. # Grep'ing the whole file is not good either: AIX grep has a line
  8100. # limit of 2048, but all sed's we know have understand at least 4000.
  8101. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8102. dirpart=`AS_DIRNAME("$mf")`
  8103. else
  8104. continue
  8105. fi
  8106. # Extract the definition of DEPDIR, am__include, and am__quote
  8107. # from the Makefile without running `make'.
  8108. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8109. test -z "$DEPDIR" && continue
  8110. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8111. test -z "am__include" && continue
  8112. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8113. # When using ansi2knr, U may be empty or an underscore; expand it
  8114. U=`sed -n 's/^U = //p' < "$mf"`
  8115. # Find all dependency output files, they are included files with
  8116. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8117. # simplest approach to changing $(DEPDIR) to its actual value in the
  8118. # expansion.
  8119. for file in `sed -n "
  8120. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8121. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8122. # Make sure the directory exists.
  8123. test -f "$dirpart/$file" && continue
  8124. fdir=`AS_DIRNAME(["$file"])`
  8125. AS_MKDIR_P([$dirpart/$fdir])
  8126. # echo "creating $dirpart/$file"
  8127. echo '# dummy' > "$dirpart/$file"
  8128. done
  8129. done
  8130. }
  8131. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8132. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8133. # -----------------------------
  8134. # This macro should only be invoked once -- use via AC_REQUIRE.
  8135. #
  8136. # This code is only required when automatic dependency tracking
  8137. # is enabled. FIXME. This creates each `.P' file that we will
  8138. # need in order to bootstrap the dependency handling code.
  8139. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8140. [AC_CONFIG_COMMANDS([depfiles],
  8141. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8142. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8143. ])
  8144. # Do all the work for Automake. -*- Autoconf -*-
  8145. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8146. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  8147. #
  8148. # This file is free software; the Free Software Foundation
  8149. # gives unlimited permission to copy and/or distribute it,
  8150. # with or without modifications, as long as this notice is preserved.
  8151. # serial 16
  8152. # This macro actually does too much. Some checks are only needed if
  8153. # your package does certain things. But this isn't really a big deal.
  8154. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8155. # AM_INIT_AUTOMAKE([OPTIONS])
  8156. # -----------------------------------------------
  8157. # The call with PACKAGE and VERSION arguments is the old style
  8158. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8159. # and VERSION should now be passed to AC_INIT and removed from
  8160. # the call to AM_INIT_AUTOMAKE.
  8161. # We support both call styles for the transition. After
  8162. # the next Automake release, Autoconf can make the AC_INIT
  8163. # arguments mandatory, and then we can depend on a new Autoconf
  8164. # release and drop the old call support.
  8165. AC_DEFUN([AM_INIT_AUTOMAKE],
  8166. [AC_PREREQ([2.62])dnl
  8167. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8168. dnl the ones we care about.
  8169. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8170. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8171. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8172. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8173. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8174. # is not polluted with repeated "-I."
  8175. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8176. # test to see if srcdir already configured
  8177. if test -f $srcdir/config.status; then
  8178. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8179. fi
  8180. fi
  8181. # test whether we have cygpath
  8182. if test -z "$CYGPATH_W"; then
  8183. if (cygpath --version) >/dev/null 2>/dev/null; then
  8184. CYGPATH_W='cygpath -w'
  8185. else
  8186. CYGPATH_W=echo
  8187. fi
  8188. fi
  8189. AC_SUBST([CYGPATH_W])
  8190. # Define the identity of the package.
  8191. dnl Distinguish between old-style and new-style calls.
  8192. m4_ifval([$2],
  8193. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8194. AC_SUBST([PACKAGE], [$1])dnl
  8195. AC_SUBST([VERSION], [$2])],
  8196. [_AM_SET_OPTIONS([$1])dnl
  8197. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8198. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  8199. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8200. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8201. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8202. _AM_IF_OPTION([no-define],,
  8203. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8204. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8205. # Some tools Automake needs.
  8206. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8207. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8208. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8209. AM_MISSING_PROG(AUTOCONF, autoconf)
  8210. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8211. AM_MISSING_PROG(AUTOHEADER, autoheader)
  8212. AM_MISSING_PROG(MAKEINFO, makeinfo)
  8213. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8214. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8215. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8216. # We need awk for the "check" target. The system "awk" is bad on
  8217. # some platforms.
  8218. AC_REQUIRE([AC_PROG_AWK])dnl
  8219. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8220. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8221. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8222. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8223. [_AM_PROG_TAR([v7])])])
  8224. _AM_IF_OPTION([no-dependencies],,
  8225. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8226. [_AM_DEPENDENCIES(CC)],
  8227. [define([AC_PROG_CC],
  8228. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8229. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8230. [_AM_DEPENDENCIES(CXX)],
  8231. [define([AC_PROG_CXX],
  8232. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8233. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8234. [_AM_DEPENDENCIES(OBJC)],
  8235. [define([AC_PROG_OBJC],
  8236. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  8237. ])
  8238. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  8239. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  8240. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  8241. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8242. AC_CONFIG_COMMANDS_PRE(dnl
  8243. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8244. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8245. ])
  8246. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8247. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8248. dnl mangled by Autoconf and run in a shell conditional statement.
  8249. m4_define([_AC_COMPILER_EXEEXT],
  8250. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8251. # When config.status generates a header, we must update the stamp-h file.
  8252. # This file resides in the same directory as the config header
  8253. # that is generated. The stamp files are numbered to have different names.
  8254. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8255. # loop where config.status creates the headers, so we can generate
  8256. # our stamp files there.
  8257. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8258. [# Compute $1's index in $config_headers.
  8259. _am_arg=$1
  8260. _am_stamp_count=1
  8261. for _am_header in $config_headers :; do
  8262. case $_am_header in
  8263. $_am_arg | $_am_arg:* )
  8264. break ;;
  8265. * )
  8266. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8267. esac
  8268. done
  8269. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8270. # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
  8271. # Inc.
  8272. #
  8273. # This file is free software; the Free Software Foundation
  8274. # gives unlimited permission to copy and/or distribute it,
  8275. # with or without modifications, as long as this notice is preserved.
  8276. # serial 1
  8277. # AM_PROG_INSTALL_SH
  8278. # ------------------
  8279. # Define $install_sh.
  8280. AC_DEFUN([AM_PROG_INSTALL_SH],
  8281. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8282. if test x"${install_sh}" != xset; then
  8283. case $am_aux_dir in
  8284. *\ * | *\ *)
  8285. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8286. *)
  8287. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8288. esac
  8289. fi
  8290. AC_SUBST(install_sh)])
  8291. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  8292. #
  8293. # This file is free software; the Free Software Foundation
  8294. # gives unlimited permission to copy and/or distribute it,
  8295. # with or without modifications, as long as this notice is preserved.
  8296. # serial 2
  8297. # Check whether the underlying file-system supports filenames
  8298. # with a leading dot. For instance MS-DOS doesn't.
  8299. AC_DEFUN([AM_SET_LEADING_DOT],
  8300. [rm -rf .tst 2>/dev/null
  8301. mkdir .tst 2>/dev/null
  8302. if test -d .tst; then
  8303. am__leading_dot=.
  8304. else
  8305. am__leading_dot=_
  8306. fi
  8307. rmdir .tst 2>/dev/null
  8308. AC_SUBST([am__leading_dot])])
  8309. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8310. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  8311. #
  8312. # This file is free software; the Free Software Foundation
  8313. # gives unlimited permission to copy and/or distribute it,
  8314. # with or without modifications, as long as this notice is preserved.
  8315. # serial 4
  8316. # AM_MAKE_INCLUDE()
  8317. # -----------------
  8318. # Check to see how make treats includes.
  8319. AC_DEFUN([AM_MAKE_INCLUDE],
  8320. [am_make=${MAKE-make}
  8321. cat > confinc << 'END'
  8322. am__doit:
  8323. @echo this is the am__doit target
  8324. .PHONY: am__doit
  8325. END
  8326. # If we don't find an include directive, just comment out the code.
  8327. AC_MSG_CHECKING([for style of include used by $am_make])
  8328. am__include="#"
  8329. am__quote=
  8330. _am_result=none
  8331. # First try GNU make style include.
  8332. echo "include confinc" > confmf
  8333. # Ignore all kinds of additional output from `make'.
  8334. case `$am_make -s -f confmf 2> /dev/null` in #(
  8335. *the\ am__doit\ target*)
  8336. am__include=include
  8337. am__quote=
  8338. _am_result=GNU
  8339. ;;
  8340. esac
  8341. # Now try BSD make style include.
  8342. if test "$am__include" = "#"; then
  8343. echo '.include "confinc"' > confmf
  8344. case `$am_make -s -f confmf 2> /dev/null` in #(
  8345. *the\ am__doit\ target*)
  8346. am__include=.include
  8347. am__quote="\""
  8348. _am_result=BSD
  8349. ;;
  8350. esac
  8351. fi
  8352. AC_SUBST([am__include])
  8353. AC_SUBST([am__quote])
  8354. AC_MSG_RESULT([$_am_result])
  8355. rm -f confinc confmf
  8356. ])
  8357. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8358. # Free Software Foundation, Inc.
  8359. #
  8360. # This file is free software; the Free Software Foundation
  8361. # gives unlimited permission to copy and/or distribute it,
  8362. # with or without modifications, as long as this notice is preserved.
  8363. # serial 6
  8364. # AM_PROG_CC_C_O
  8365. # --------------
  8366. # Like AC_PROG_CC_C_O, but changed for automake.
  8367. AC_DEFUN([AM_PROG_CC_C_O],
  8368. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  8369. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8370. AC_REQUIRE_AUX_FILE([compile])dnl
  8371. # FIXME: we rely on the cache variable name because
  8372. # there is no other way.
  8373. set dummy $CC
  8374. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  8375. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  8376. if test "$am_t" != yes; then
  8377. # Losing compiler, so override with the script.
  8378. # FIXME: It is wrong to rewrite CC.
  8379. # But if we don't then we get into trouble of one sort or another.
  8380. # A longer-term fix would be to have automake use am__CC in this case,
  8381. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  8382. CC="$am_aux_dir/compile $CC"
  8383. fi
  8384. dnl Make sure AC_PROG_CC is never called again, or it will override our
  8385. dnl setting of CC.
  8386. m4_define([AC_PROG_CC],
  8387. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  8388. ])
  8389. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8390. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8391. # Free Software Foundation, Inc.
  8392. #
  8393. # This file is free software; the Free Software Foundation
  8394. # gives unlimited permission to copy and/or distribute it,
  8395. # with or without modifications, as long as this notice is preserved.
  8396. # serial 6
  8397. # AM_MISSING_PROG(NAME, PROGRAM)
  8398. # ------------------------------
  8399. AC_DEFUN([AM_MISSING_PROG],
  8400. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8401. $1=${$1-"${am_missing_run}$2"}
  8402. AC_SUBST($1)])
  8403. # AM_MISSING_HAS_RUN
  8404. # ------------------
  8405. # Define MISSING if not defined so far and test if it supports --run.
  8406. # If it does, set am_missing_run to use it, otherwise, to nothing.
  8407. AC_DEFUN([AM_MISSING_HAS_RUN],
  8408. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8409. AC_REQUIRE_AUX_FILE([missing])dnl
  8410. if test x"${MISSING+set}" != xset; then
  8411. case $am_aux_dir in
  8412. *\ * | *\ *)
  8413. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8414. *)
  8415. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8416. esac
  8417. fi
  8418. # Use eval to expand $SHELL
  8419. if eval "$MISSING --run true"; then
  8420. am_missing_run="$MISSING --run "
  8421. else
  8422. am_missing_run=
  8423. AC_MSG_WARN([`missing' script is too old or missing])
  8424. fi
  8425. ])
  8426. # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
  8427. # Inc.
  8428. #
  8429. # This file is free software; the Free Software Foundation
  8430. # gives unlimited permission to copy and/or distribute it,
  8431. # with or without modifications, as long as this notice is preserved.
  8432. # serial 1
  8433. # AM_PROG_MKDIR_P
  8434. # ---------------
  8435. # Check for `mkdir -p'.
  8436. AC_DEFUN([AM_PROG_MKDIR_P],
  8437. [AC_PREREQ([2.60])dnl
  8438. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8439. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  8440. dnl while keeping a definition of mkdir_p for backward compatibility.
  8441. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  8442. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  8443. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  8444. dnl adjustment using top_builddir (which is defined more often than
  8445. dnl MKDIR_P).
  8446. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  8447. case $mkdir_p in
  8448. [[\\/$]]* | ?:[[\\/]]*) ;;
  8449. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8450. esac
  8451. ])
  8452. # Helper functions for option handling. -*- Autoconf -*-
  8453. # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
  8454. # Foundation, Inc.
  8455. #
  8456. # This file is free software; the Free Software Foundation
  8457. # gives unlimited permission to copy and/or distribute it,
  8458. # with or without modifications, as long as this notice is preserved.
  8459. # serial 5
  8460. # _AM_MANGLE_OPTION(NAME)
  8461. # -----------------------
  8462. AC_DEFUN([_AM_MANGLE_OPTION],
  8463. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8464. # _AM_SET_OPTION(NAME)
  8465. # --------------------
  8466. # Set option NAME. Presently that only means defining a flag for this option.
  8467. AC_DEFUN([_AM_SET_OPTION],
  8468. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  8469. # _AM_SET_OPTIONS(OPTIONS)
  8470. # ------------------------
  8471. # OPTIONS is a space-separated list of Automake options.
  8472. AC_DEFUN([_AM_SET_OPTIONS],
  8473. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8474. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8475. # -------------------------------------------
  8476. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8477. AC_DEFUN([_AM_IF_OPTION],
  8478. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8479. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8480. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  8481. # Free Software Foundation, Inc.
  8482. #
  8483. # This file is free software; the Free Software Foundation
  8484. # gives unlimited permission to copy and/or distribute it,
  8485. # with or without modifications, as long as this notice is preserved.
  8486. # serial 5
  8487. # AM_SANITY_CHECK
  8488. # ---------------
  8489. AC_DEFUN([AM_SANITY_CHECK],
  8490. [AC_MSG_CHECKING([whether build environment is sane])
  8491. # Just in case
  8492. sleep 1
  8493. echo timestamp > conftest.file
  8494. # Reject unsafe characters in $srcdir or the absolute working directory
  8495. # name. Accept space and tab only in the latter.
  8496. am_lf='
  8497. '
  8498. case `pwd` in
  8499. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8500. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8501. esac
  8502. case $srcdir in
  8503. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8504. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  8505. esac
  8506. # Do `set' in a subshell so we don't clobber the current shell's
  8507. # arguments. Must try -L first in case configure is actually a
  8508. # symlink; some systems play weird games with the mod time of symlinks
  8509. # (eg FreeBSD returns the mod time of the symlink's containing
  8510. # directory).
  8511. if (
  8512. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8513. if test "$[*]" = "X"; then
  8514. # -L didn't work.
  8515. set X `ls -t "$srcdir/configure" conftest.file`
  8516. fi
  8517. rm -f conftest.file
  8518. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8519. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8520. # If neither matched, then we have a broken ls. This can happen
  8521. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8522. # broken ls alias from the environment. This has actually
  8523. # happened. Such a system could not be considered "sane".
  8524. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8525. alias in your environment])
  8526. fi
  8527. test "$[2]" = conftest.file
  8528. )
  8529. then
  8530. # Ok.
  8531. :
  8532. else
  8533. AC_MSG_ERROR([newly created file is older than distributed files!
  8534. Check your system clock])
  8535. fi
  8536. AC_MSG_RESULT(yes)])
  8537. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
  8538. #
  8539. # This file is free software; the Free Software Foundation
  8540. # gives unlimited permission to copy and/or distribute it,
  8541. # with or without modifications, as long as this notice is preserved.
  8542. # serial 1
  8543. # AM_PROG_INSTALL_STRIP
  8544. # ---------------------
  8545. # One issue with vendor `install' (even GNU) is that you can't
  8546. # specify the program used to strip binaries. This is especially
  8547. # annoying in cross-compiling environments, where the build's strip
  8548. # is unlikely to handle the host's binaries.
  8549. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8550. # always use install-sh in `make install-strip', and initialize
  8551. # STRIPPROG with the value of the STRIP variable (set by the user).
  8552. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8553. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8554. # Installed binaries are usually stripped using `strip' when the user
  8555. # run `make install-strip'. However `strip' might not be the right
  8556. # tool to use in cross-compilation environments, therefore Automake
  8557. # will honor the `STRIP' environment variable to overrule this program.
  8558. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  8559. if test "$cross_compiling" != no; then
  8560. AC_CHECK_TOOL([STRIP], [strip], :)
  8561. fi
  8562. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8563. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8564. # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
  8565. #
  8566. # This file is free software; the Free Software Foundation
  8567. # gives unlimited permission to copy and/or distribute it,
  8568. # with or without modifications, as long as this notice is preserved.
  8569. # serial 3
  8570. # _AM_SUBST_NOTMAKE(VARIABLE)
  8571. # ---------------------------
  8572. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8573. # This macro is traced by Automake.
  8574. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8575. # AM_SUBST_NOTMAKE(VARIABLE)
  8576. # --------------------------
  8577. # Public sister of _AM_SUBST_NOTMAKE.
  8578. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8579. # Check how to create a tarball. -*- Autoconf -*-
  8580. # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
  8581. #
  8582. # This file is free software; the Free Software Foundation
  8583. # gives unlimited permission to copy and/or distribute it,
  8584. # with or without modifications, as long as this notice is preserved.
  8585. # serial 2
  8586. # _AM_PROG_TAR(FORMAT)
  8587. # --------------------
  8588. # Check how to create a tarball in format FORMAT.
  8589. # FORMAT should be one of `v7', `ustar', or `pax'.
  8590. #
  8591. # Substitute a variable $(am__tar) that is a command
  8592. # writing to stdout a FORMAT-tarball containing the directory
  8593. # $tardir.
  8594. # tardir=directory && $(am__tar) > result.tar
  8595. #
  8596. # Substitute a variable $(am__untar) that extract such
  8597. # a tarball read from stdin.
  8598. # $(am__untar) < result.tar
  8599. AC_DEFUN([_AM_PROG_TAR],
  8600. [# Always define AMTAR for backward compatibility. Yes, it's still used
  8601. # in the wild :-( We should find a proper way to deprecate it ...
  8602. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  8603. m4_if([$1], [v7],
  8604. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  8605. [m4_case([$1], [ustar],, [pax],,
  8606. [m4_fatal([Unknown tar format])])
  8607. AC_MSG_CHECKING([how to create a $1 tar archive])
  8608. # Loop over all known methods to create a tar archive until one works.
  8609. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8610. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8611. # Do not fold the above two line into one, because Tru64 sh and
  8612. # Solaris sh will not grok spaces in the rhs of `-'.
  8613. for _am_tool in $_am_tools
  8614. do
  8615. case $_am_tool in
  8616. gnutar)
  8617. for _am_tar in tar gnutar gtar;
  8618. do
  8619. AM_RUN_LOG([$_am_tar --version]) && break
  8620. done
  8621. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8622. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8623. am__untar="$_am_tar -xf -"
  8624. ;;
  8625. plaintar)
  8626. # Must skip GNU tar: if it does not support --format= it doesn't create
  8627. # ustar tarball either.
  8628. (tar --version) >/dev/null 2>&1 && continue
  8629. am__tar='tar chf - "$$tardir"'
  8630. am__tar_='tar chf - "$tardir"'
  8631. am__untar='tar xf -'
  8632. ;;
  8633. pax)
  8634. am__tar='pax -L -x $1 -w "$$tardir"'
  8635. am__tar_='pax -L -x $1 -w "$tardir"'
  8636. am__untar='pax -r'
  8637. ;;
  8638. cpio)
  8639. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8640. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8641. am__untar='cpio -i -H $1 -d'
  8642. ;;
  8643. none)
  8644. am__tar=false
  8645. am__tar_=false
  8646. am__untar=false
  8647. ;;
  8648. esac
  8649. # If the value was cached, stop now. We just wanted to have am__tar
  8650. # and am__untar set.
  8651. test -n "${am_cv_prog_tar_$1}" && break
  8652. # tar/untar a dummy directory, and stop if the command works
  8653. rm -rf conftest.dir
  8654. mkdir conftest.dir
  8655. echo GrepMe > conftest.dir/file
  8656. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8657. rm -rf conftest.dir
  8658. if test -s conftest.tar; then
  8659. AM_RUN_LOG([$am__untar <conftest.tar])
  8660. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8661. fi
  8662. done
  8663. rm -rf conftest.dir
  8664. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8665. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8666. AC_SUBST([am__tar])
  8667. AC_SUBST([am__untar])
  8668. ]) # _AM_PROG_TAR