aclocal.m4 396 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183
  1. # generated automatically by aclocal 1.11 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
  14. [m4_warning([this file was generated for autoconf 2.63.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  18. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  19. #
  20. # This file is free software; the Free Software Foundation
  21. # gives unlimited permission to copy and/or distribute it,
  22. # with or without modifications, as long as this notice is preserved.
  23. # AM_AUTOMAKE_VERSION(VERSION)
  24. # ----------------------------
  25. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  26. # generated from the m4 files accompanying Automake X.Y.
  27. # (This private macro should not be called outside this file.)
  28. AC_DEFUN([AM_AUTOMAKE_VERSION],
  29. [am__api_version='1.11'
  30. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  31. dnl require some minimum version. Point them to the right macro.
  32. m4_if([$1], [1.11], [],
  33. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  34. ])
  35. # _AM_AUTOCONF_VERSION(VERSION)
  36. # -----------------------------
  37. # aclocal traces this macro to find the Autoconf version.
  38. # This is a private macro too. Using m4_define simplifies
  39. # the logic in aclocal, which can simply ignore this definition.
  40. m4_define([_AM_AUTOCONF_VERSION], [])
  41. # AM_SET_CURRENT_AUTOMAKE_VERSION
  42. # -------------------------------
  43. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  44. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  45. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  46. [AM_AUTOMAKE_VERSION([1.11])dnl
  47. m4_ifndef([AC_AUTOCONF_VERSION],
  48. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  49. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  50. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  51. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  52. #
  53. # This file is free software; the Free Software Foundation
  54. # gives unlimited permission to copy and/or distribute it,
  55. # with or without modifications, as long as this notice is preserved.
  56. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  57. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  58. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  59. #
  60. # Of course, Automake must honor this variable whenever it calls a
  61. # tool from the auxiliary directory. The problem is that $srcdir (and
  62. # therefore $ac_aux_dir as well) can be either absolute or relative,
  63. # depending on how configure is run. This is pretty annoying, since
  64. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  65. # source directory, any form will work fine, but in subdirectories a
  66. # relative path needs to be adjusted first.
  67. #
  68. # $ac_aux_dir/missing
  69. # fails when called from a subdirectory if $ac_aux_dir is relative
  70. # $top_srcdir/$ac_aux_dir/missing
  71. # fails if $ac_aux_dir is absolute,
  72. # fails when called from a subdirectory in a VPATH build with
  73. # a relative $ac_aux_dir
  74. #
  75. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  76. # are both prefixed by $srcdir. In an in-source build this is usually
  77. # harmless because $srcdir is `.', but things will broke when you
  78. # start a VPATH build or use an absolute $srcdir.
  79. #
  80. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  81. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  82. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  83. # and then we would define $MISSING as
  84. # MISSING="\${SHELL} $am_aux_dir/missing"
  85. # This will work as long as MISSING is not called from configure, because
  86. # unfortunately $(top_srcdir) has no meaning in configure.
  87. # However there are other variables, like CC, which are often used in
  88. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  89. #
  90. # Another solution, used here, is to always expand $ac_aux_dir to an
  91. # absolute PATH. The drawback is that using absolute paths prevent a
  92. # configured tree to be moved without reconfiguration.
  93. AC_DEFUN([AM_AUX_DIR_EXPAND],
  94. [dnl Rely on autoconf to set up CDPATH properly.
  95. AC_PREREQ([2.50])dnl
  96. # expand $ac_aux_dir to an absolute path
  97. am_aux_dir=`cd $ac_aux_dir && pwd`
  98. ])
  99. # AM_CONDITIONAL -*- Autoconf -*-
  100. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  101. # Free Software Foundation, Inc.
  102. #
  103. # This file is free software; the Free Software Foundation
  104. # gives unlimited permission to copy and/or distribute it,
  105. # with or without modifications, as long as this notice is preserved.
  106. # serial 9
  107. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  108. # -------------------------------------
  109. # Define a conditional.
  110. AC_DEFUN([AM_CONDITIONAL],
  111. [AC_PREREQ(2.52)dnl
  112. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  113. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  114. AC_SUBST([$1_TRUE])dnl
  115. AC_SUBST([$1_FALSE])dnl
  116. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  117. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  118. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  119. if $2; then
  120. $1_TRUE=
  121. $1_FALSE='#'
  122. else
  123. $1_TRUE='#'
  124. $1_FALSE=
  125. fi
  126. AC_CONFIG_COMMANDS_PRE(
  127. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  128. AC_MSG_ERROR([[conditional "$1" was never defined.
  129. Usually this means the macro was only invoked conditionally.]])
  130. fi])])
  131. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  132. # Free Software Foundation, Inc.
  133. #
  134. # This file is free software; the Free Software Foundation
  135. # gives unlimited permission to copy and/or distribute it,
  136. # with or without modifications, as long as this notice is preserved.
  137. # serial 10
  138. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  139. # written in clear, in which case automake, when reading aclocal.m4,
  140. # will think it sees a *use*, and therefore will trigger all it's
  141. # C support machinery. Also note that it means that autoscan, seeing
  142. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  143. # _AM_DEPENDENCIES(NAME)
  144. # ----------------------
  145. # See how the compiler implements dependency checking.
  146. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  147. # We try a few techniques and use that to set a single cache variable.
  148. #
  149. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  150. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  151. # dependency, and given that the user is not expected to run this macro,
  152. # just rely on AC_PROG_CC.
  153. AC_DEFUN([_AM_DEPENDENCIES],
  154. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  155. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  156. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  157. AC_REQUIRE([AM_DEP_TRACK])dnl
  158. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  159. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  160. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  161. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  162. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  163. [depcc="$$1" am_compiler_list=])
  164. AC_CACHE_CHECK([dependency style of $depcc],
  165. [am_cv_$1_dependencies_compiler_type],
  166. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  167. # We make a subdir and do the tests there. Otherwise we can end up
  168. # making bogus files that we don't know about and never remove. For
  169. # instance it was reported that on HP-UX the gcc test will end up
  170. # making a dummy file named `D' -- because `-MD' means `put the output
  171. # in D'.
  172. mkdir conftest.dir
  173. # Copy depcomp to subdir because otherwise we won't find it if we're
  174. # using a relative directory.
  175. cp "$am_depcomp" conftest.dir
  176. cd conftest.dir
  177. # We will build objects and dependencies in a subdirectory because
  178. # it helps to detect inapplicable dependency modes. For instance
  179. # both Tru64's cc and ICC support -MD to output dependencies as a
  180. # side effect of compilation, but ICC will put the dependencies in
  181. # the current directory while Tru64 will put them in the object
  182. # directory.
  183. mkdir sub
  184. am_cv_$1_dependencies_compiler_type=none
  185. if test "$am_compiler_list" = ""; then
  186. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  187. fi
  188. am__universal=false
  189. m4_case([$1], [CC],
  190. [case " $depcc " in #(
  191. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  192. esac],
  193. [CXX],
  194. [case " $depcc " in #(
  195. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  196. esac])
  197. for depmode in $am_compiler_list; do
  198. # Setup a source with many dependencies, because some compilers
  199. # like to wrap large dependency lists on column 80 (with \), and
  200. # we should not choose a depcomp mode which is confused by this.
  201. #
  202. # We need to recreate these files for each test, as the compiler may
  203. # overwrite some of them when testing with obscure command lines.
  204. # This happens at least with the AIX C compiler.
  205. : > sub/conftest.c
  206. for i in 1 2 3 4 5 6; do
  207. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  208. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  209. # Solaris 8's {/usr,}/bin/sh.
  210. touch sub/conftst$i.h
  211. done
  212. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  213. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  214. # mode. It turns out that the SunPro C++ compiler does not properly
  215. # handle `-M -o', and we need to detect this. Also, some Intel
  216. # versions had trouble with output in subdirs
  217. am__obj=sub/conftest.${OBJEXT-o}
  218. am__minus_obj="-o $am__obj"
  219. case $depmode in
  220. gcc)
  221. # This depmode causes a compiler race in universal mode.
  222. test "$am__universal" = false || continue
  223. ;;
  224. nosideeffect)
  225. # after this tag, mechanisms are not by side-effect, so they'll
  226. # only be used when explicitly requested
  227. if test "x$enable_dependency_tracking" = xyes; then
  228. continue
  229. else
  230. break
  231. fi
  232. ;;
  233. msvisualcpp | msvcmsys)
  234. # This compiler won't grok `-c -o', but also, the minuso test has
  235. # not run yet. These depmodes are late enough in the game, and
  236. # so weak that their functioning should not be impacted.
  237. am__obj=conftest.${OBJEXT-o}
  238. am__minus_obj=
  239. ;;
  240. none) break ;;
  241. esac
  242. if depmode=$depmode \
  243. source=sub/conftest.c object=$am__obj \
  244. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  245. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  246. >/dev/null 2>conftest.err &&
  247. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  248. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  249. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  250. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  251. # icc doesn't choke on unknown options, it will just issue warnings
  252. # or remarks (even with -Werror). So we grep stderr for any message
  253. # that says an option was ignored or not supported.
  254. # When given -MP, icc 7.0 and 7.1 complain thusly:
  255. # icc: Command line warning: ignoring option '-M'; no argument required
  256. # The diagnosis changed in icc 8.0:
  257. # icc: Command line remark: option '-MP' not supported
  258. if (grep 'ignoring option' conftest.err ||
  259. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  260. am_cv_$1_dependencies_compiler_type=$depmode
  261. break
  262. fi
  263. fi
  264. done
  265. cd ..
  266. rm -rf conftest.dir
  267. else
  268. am_cv_$1_dependencies_compiler_type=none
  269. fi
  270. ])
  271. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  272. AM_CONDITIONAL([am__fastdep$1], [
  273. test "x$enable_dependency_tracking" != xno \
  274. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  275. ])
  276. # AM_SET_DEPDIR
  277. # -------------
  278. # Choose a directory name for dependency files.
  279. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  280. AC_DEFUN([AM_SET_DEPDIR],
  281. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  282. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  283. ])
  284. # AM_DEP_TRACK
  285. # ------------
  286. AC_DEFUN([AM_DEP_TRACK],
  287. [AC_ARG_ENABLE(dependency-tracking,
  288. [ --disable-dependency-tracking speeds up one-time build
  289. --enable-dependency-tracking do not reject slow dependency extractors])
  290. if test "x$enable_dependency_tracking" != xno; then
  291. am_depcomp="$ac_aux_dir/depcomp"
  292. AMDEPBACKSLASH='\'
  293. fi
  294. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  295. AC_SUBST([AMDEPBACKSLASH])dnl
  296. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  297. ])
  298. # Generate code to set up dependency tracking. -*- Autoconf -*-
  299. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  300. # Free Software Foundation, Inc.
  301. #
  302. # This file is free software; the Free Software Foundation
  303. # gives unlimited permission to copy and/or distribute it,
  304. # with or without modifications, as long as this notice is preserved.
  305. #serial 5
  306. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  307. # ------------------------------
  308. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  309. [{
  310. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  311. # are listed without --file. Let's play safe and only enable the eval
  312. # if we detect the quoting.
  313. case $CONFIG_FILES in
  314. *\'*) eval set x "$CONFIG_FILES" ;;
  315. *) set x $CONFIG_FILES ;;
  316. esac
  317. shift
  318. for mf
  319. do
  320. # Strip MF so we end up with the name of the file.
  321. mf=`echo "$mf" | sed -e 's/:.*$//'`
  322. # Check whether this is an Automake generated Makefile or not.
  323. # We used to match only the files named `Makefile.in', but
  324. # some people rename them; so instead we look at the file content.
  325. # Grep'ing the first line is not enough: some people post-process
  326. # each Makefile.in and add a new line on top of each file to say so.
  327. # Grep'ing the whole file is not good either: AIX grep has a line
  328. # limit of 2048, but all sed's we know have understand at least 4000.
  329. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  330. dirpart=`AS_DIRNAME("$mf")`
  331. else
  332. continue
  333. fi
  334. # Extract the definition of DEPDIR, am__include, and am__quote
  335. # from the Makefile without running `make'.
  336. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  337. test -z "$DEPDIR" && continue
  338. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  339. test -z "am__include" && continue
  340. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  341. # When using ansi2knr, U may be empty or an underscore; expand it
  342. U=`sed -n 's/^U = //p' < "$mf"`
  343. # Find all dependency output files, they are included files with
  344. # $(DEPDIR) in their names. We invoke sed twice because it is the
  345. # simplest approach to changing $(DEPDIR) to its actual value in the
  346. # expansion.
  347. for file in `sed -n "
  348. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  349. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  350. # Make sure the directory exists.
  351. test -f "$dirpart/$file" && continue
  352. fdir=`AS_DIRNAME(["$file"])`
  353. AS_MKDIR_P([$dirpart/$fdir])
  354. # echo "creating $dirpart/$file"
  355. echo '# dummy' > "$dirpart/$file"
  356. done
  357. done
  358. }
  359. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  360. # AM_OUTPUT_DEPENDENCY_COMMANDS
  361. # -----------------------------
  362. # This macro should only be invoked once -- use via AC_REQUIRE.
  363. #
  364. # This code is only required when automatic dependency tracking
  365. # is enabled. FIXME. This creates each `.P' file that we will
  366. # need in order to bootstrap the dependency handling code.
  367. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  368. [AC_CONFIG_COMMANDS([depfiles],
  369. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  370. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  371. ])
  372. # Do all the work for Automake. -*- Autoconf -*-
  373. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  374. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  375. #
  376. # This file is free software; the Free Software Foundation
  377. # gives unlimited permission to copy and/or distribute it,
  378. # with or without modifications, as long as this notice is preserved.
  379. # serial 16
  380. # This macro actually does too much. Some checks are only needed if
  381. # your package does certain things. But this isn't really a big deal.
  382. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  383. # AM_INIT_AUTOMAKE([OPTIONS])
  384. # -----------------------------------------------
  385. # The call with PACKAGE and VERSION arguments is the old style
  386. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  387. # and VERSION should now be passed to AC_INIT and removed from
  388. # the call to AM_INIT_AUTOMAKE.
  389. # We support both call styles for the transition. After
  390. # the next Automake release, Autoconf can make the AC_INIT
  391. # arguments mandatory, and then we can depend on a new Autoconf
  392. # release and drop the old call support.
  393. AC_DEFUN([AM_INIT_AUTOMAKE],
  394. [AC_PREREQ([2.62])dnl
  395. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  396. dnl the ones we care about.
  397. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  398. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  399. AC_REQUIRE([AC_PROG_INSTALL])dnl
  400. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  401. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  402. # is not polluted with repeated "-I."
  403. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  404. # test to see if srcdir already configured
  405. if test -f $srcdir/config.status; then
  406. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  407. fi
  408. fi
  409. # test whether we have cygpath
  410. if test -z "$CYGPATH_W"; then
  411. if (cygpath --version) >/dev/null 2>/dev/null; then
  412. CYGPATH_W='cygpath -w'
  413. else
  414. CYGPATH_W=echo
  415. fi
  416. fi
  417. AC_SUBST([CYGPATH_W])
  418. # Define the identity of the package.
  419. dnl Distinguish between old-style and new-style calls.
  420. m4_ifval([$2],
  421. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  422. AC_SUBST([PACKAGE], [$1])dnl
  423. AC_SUBST([VERSION], [$2])],
  424. [_AM_SET_OPTIONS([$1])dnl
  425. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  426. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  427. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  428. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  429. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  430. _AM_IF_OPTION([no-define],,
  431. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  432. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  433. # Some tools Automake needs.
  434. AC_REQUIRE([AM_SANITY_CHECK])dnl
  435. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  436. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  437. AM_MISSING_PROG(AUTOCONF, autoconf)
  438. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  439. AM_MISSING_PROG(AUTOHEADER, autoheader)
  440. AM_MISSING_PROG(MAKEINFO, makeinfo)
  441. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  442. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  443. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  444. # We need awk for the "check" target. The system "awk" is bad on
  445. # some platforms.
  446. AC_REQUIRE([AC_PROG_AWK])dnl
  447. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  448. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  449. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  450. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  451. [_AM_PROG_TAR([v7])])])
  452. _AM_IF_OPTION([no-dependencies],,
  453. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  454. [_AM_DEPENDENCIES(CC)],
  455. [define([AC_PROG_CC],
  456. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  457. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  458. [_AM_DEPENDENCIES(CXX)],
  459. [define([AC_PROG_CXX],
  460. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  461. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  462. [_AM_DEPENDENCIES(OBJC)],
  463. [define([AC_PROG_OBJC],
  464. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  465. ])
  466. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  467. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  468. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  469. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  470. AC_CONFIG_COMMANDS_PRE(dnl
  471. [m4_provide_if([_AM_COMPILER_EXEEXT],
  472. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  473. ])
  474. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  475. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  476. dnl mangled by Autoconf and run in a shell conditional statement.
  477. m4_define([_AC_COMPILER_EXEEXT],
  478. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  479. # When config.status generates a header, we must update the stamp-h file.
  480. # This file resides in the same directory as the config header
  481. # that is generated. The stamp files are numbered to have different names.
  482. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  483. # loop where config.status creates the headers, so we can generate
  484. # our stamp files there.
  485. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  486. [# Compute $1's index in $config_headers.
  487. _am_arg=$1
  488. _am_stamp_count=1
  489. for _am_header in $config_headers :; do
  490. case $_am_header in
  491. $_am_arg | $_am_arg:* )
  492. break ;;
  493. * )
  494. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  495. esac
  496. done
  497. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  498. # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  499. #
  500. # This file is free software; the Free Software Foundation
  501. # gives unlimited permission to copy and/or distribute it,
  502. # with or without modifications, as long as this notice is preserved.
  503. # AM_PROG_INSTALL_SH
  504. # ------------------
  505. # Define $install_sh.
  506. AC_DEFUN([AM_PROG_INSTALL_SH],
  507. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  508. if test x"${install_sh}" != xset; then
  509. case $am_aux_dir in
  510. *\ * | *\ *)
  511. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  512. *)
  513. install_sh="\${SHELL} $am_aux_dir/install-sh"
  514. esac
  515. fi
  516. AC_SUBST(install_sh)])
  517. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  518. #
  519. # This file is free software; the Free Software Foundation
  520. # gives unlimited permission to copy and/or distribute it,
  521. # with or without modifications, as long as this notice is preserved.
  522. # serial 2
  523. # Check whether the underlying file-system supports filenames
  524. # with a leading dot. For instance MS-DOS doesn't.
  525. AC_DEFUN([AM_SET_LEADING_DOT],
  526. [rm -rf .tst 2>/dev/null
  527. mkdir .tst 2>/dev/null
  528. if test -d .tst; then
  529. am__leading_dot=.
  530. else
  531. am__leading_dot=_
  532. fi
  533. rmdir .tst 2>/dev/null
  534. AC_SUBST([am__leading_dot])])
  535. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
  536. # 2006 Free Software Foundation, Inc.
  537. #
  538. # This file is free software; the Free Software Foundation
  539. # gives unlimited permission to copy and/or distribute it,
  540. # with or without modifications, as long as this notice is preserved.
  541. # serial 10
  542. # AM_PATH_LISPDIR
  543. # ---------------
  544. AC_DEFUN([AM_PATH_LISPDIR],
  545. [AC_PREREQ([2.60])dnl
  546. # If set to t, that means we are running in a shell under Emacs.
  547. # If you have an Emacs named "t", then use the full path.
  548. test x"$EMACS" = xt && EMACS=
  549. AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
  550. AC_ARG_VAR([EMACS], [the Emacs editor command])
  551. AC_ARG_VAR([EMACSLOADPATH], [the Emacs library search path])
  552. AC_ARG_WITH([lispdir],
  553. [ --with-lispdir override the default lisp directory],
  554. [ lispdir="$withval"
  555. AC_MSG_CHECKING([where .elc files should go])
  556. AC_MSG_RESULT([$lispdir])],
  557. [
  558. AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir], [
  559. if test $EMACS != "no"; then
  560. if test x${lispdir+set} != xset; then
  561. # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
  562. # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
  563. # which is non-obvious for non-emacs users.
  564. # Redirecting /dev/null should help a bit; pity we can't detect "broken"
  565. # emacsen earlier and avoid running this altogether.
  566. AC_RUN_LOG([$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out])
  567. am_cv_lispdir=`sed -n \
  568. -e 's,/$,,' \
  569. -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
  570. -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
  571. conftest.out`
  572. rm conftest.out
  573. fi
  574. fi
  575. test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
  576. ])
  577. lispdir="$am_cv_lispdir"
  578. ])
  579. AC_SUBST([lispdir])
  580. ])# AM_PATH_LISPDIR
  581. AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
  582. # Check to see how 'make' treats includes. -*- Autoconf -*-
  583. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  584. #
  585. # This file is free software; the Free Software Foundation
  586. # gives unlimited permission to copy and/or distribute it,
  587. # with or without modifications, as long as this notice is preserved.
  588. # serial 4
  589. # AM_MAKE_INCLUDE()
  590. # -----------------
  591. # Check to see how make treats includes.
  592. AC_DEFUN([AM_MAKE_INCLUDE],
  593. [am_make=${MAKE-make}
  594. cat > confinc << 'END'
  595. am__doit:
  596. @echo this is the am__doit target
  597. .PHONY: am__doit
  598. END
  599. # If we don't find an include directive, just comment out the code.
  600. AC_MSG_CHECKING([for style of include used by $am_make])
  601. am__include="#"
  602. am__quote=
  603. _am_result=none
  604. # First try GNU make style include.
  605. echo "include confinc" > confmf
  606. # Ignore all kinds of additional output from `make'.
  607. case `$am_make -s -f confmf 2> /dev/null` in #(
  608. *the\ am__doit\ target*)
  609. am__include=include
  610. am__quote=
  611. _am_result=GNU
  612. ;;
  613. esac
  614. # Now try BSD make style include.
  615. if test "$am__include" = "#"; then
  616. echo '.include "confinc"' > confmf
  617. case `$am_make -s -f confmf 2> /dev/null` in #(
  618. *the\ am__doit\ target*)
  619. am__include=.include
  620. am__quote="\""
  621. _am_result=BSD
  622. ;;
  623. esac
  624. fi
  625. AC_SUBST([am__include])
  626. AC_SUBST([am__quote])
  627. AC_MSG_RESULT([$_am_result])
  628. rm -f confinc confmf
  629. ])
  630. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  631. # Free Software Foundation, Inc.
  632. #
  633. # This file is free software; the Free Software Foundation
  634. # gives unlimited permission to copy and/or distribute it,
  635. # with or without modifications, as long as this notice is preserved.
  636. # serial 6
  637. # AM_PROG_CC_C_O
  638. # --------------
  639. # Like AC_PROG_CC_C_O, but changed for automake.
  640. AC_DEFUN([AM_PROG_CC_C_O],
  641. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  642. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  643. AC_REQUIRE_AUX_FILE([compile])dnl
  644. # FIXME: we rely on the cache variable name because
  645. # there is no other way.
  646. set dummy $CC
  647. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  648. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  649. if test "$am_t" != yes; then
  650. # Losing compiler, so override with the script.
  651. # FIXME: It is wrong to rewrite CC.
  652. # But if we don't then we get into trouble of one sort or another.
  653. # A longer-term fix would be to have automake use am__CC in this case,
  654. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  655. CC="$am_aux_dir/compile $CC"
  656. fi
  657. dnl Make sure AC_PROG_CC is never called again, or it will override our
  658. dnl setting of CC.
  659. m4_define([AC_PROG_CC],
  660. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  661. ])
  662. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  663. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  664. # Free Software Foundation, Inc.
  665. #
  666. # This file is free software; the Free Software Foundation
  667. # gives unlimited permission to copy and/or distribute it,
  668. # with or without modifications, as long as this notice is preserved.
  669. # serial 6
  670. # AM_MISSING_PROG(NAME, PROGRAM)
  671. # ------------------------------
  672. AC_DEFUN([AM_MISSING_PROG],
  673. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  674. $1=${$1-"${am_missing_run}$2"}
  675. AC_SUBST($1)])
  676. # AM_MISSING_HAS_RUN
  677. # ------------------
  678. # Define MISSING if not defined so far and test if it supports --run.
  679. # If it does, set am_missing_run to use it, otherwise, to nothing.
  680. AC_DEFUN([AM_MISSING_HAS_RUN],
  681. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  682. AC_REQUIRE_AUX_FILE([missing])dnl
  683. if test x"${MISSING+set}" != xset; then
  684. case $am_aux_dir in
  685. *\ * | *\ *)
  686. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  687. *)
  688. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  689. esac
  690. fi
  691. # Use eval to expand $SHELL
  692. if eval "$MISSING --run true"; then
  693. am_missing_run="$MISSING --run "
  694. else
  695. am_missing_run=
  696. AC_MSG_WARN([`missing' script is too old or missing])
  697. fi
  698. ])
  699. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  700. #
  701. # This file is free software; the Free Software Foundation
  702. # gives unlimited permission to copy and/or distribute it,
  703. # with or without modifications, as long as this notice is preserved.
  704. # AM_PROG_MKDIR_P
  705. # ---------------
  706. # Check for `mkdir -p'.
  707. AC_DEFUN([AM_PROG_MKDIR_P],
  708. [AC_PREREQ([2.60])dnl
  709. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  710. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  711. dnl while keeping a definition of mkdir_p for backward compatibility.
  712. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  713. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  714. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  715. dnl adjustment using top_builddir (which is defined more often than
  716. dnl MKDIR_P).
  717. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  718. case $mkdir_p in
  719. [[\\/$]]* | ?:[[\\/]]*) ;;
  720. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  721. esac
  722. ])
  723. # Helper functions for option handling. -*- Autoconf -*-
  724. # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  725. #
  726. # This file is free software; the Free Software Foundation
  727. # gives unlimited permission to copy and/or distribute it,
  728. # with or without modifications, as long as this notice is preserved.
  729. # serial 4
  730. # _AM_MANGLE_OPTION(NAME)
  731. # -----------------------
  732. AC_DEFUN([_AM_MANGLE_OPTION],
  733. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  734. # _AM_SET_OPTION(NAME)
  735. # ------------------------------
  736. # Set option NAME. Presently that only means defining a flag for this option.
  737. AC_DEFUN([_AM_SET_OPTION],
  738. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  739. # _AM_SET_OPTIONS(OPTIONS)
  740. # ----------------------------------
  741. # OPTIONS is a space-separated list of Automake options.
  742. AC_DEFUN([_AM_SET_OPTIONS],
  743. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  744. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  745. # -------------------------------------------
  746. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  747. AC_DEFUN([_AM_IF_OPTION],
  748. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  749. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  750. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  751. # Free Software Foundation, Inc.
  752. #
  753. # This file is free software; the Free Software Foundation
  754. # gives unlimited permission to copy and/or distribute it,
  755. # with or without modifications, as long as this notice is preserved.
  756. # serial 5
  757. # AM_SANITY_CHECK
  758. # ---------------
  759. AC_DEFUN([AM_SANITY_CHECK],
  760. [AC_MSG_CHECKING([whether build environment is sane])
  761. # Just in case
  762. sleep 1
  763. echo timestamp > conftest.file
  764. # Reject unsafe characters in $srcdir or the absolute working directory
  765. # name. Accept space and tab only in the latter.
  766. am_lf='
  767. '
  768. case `pwd` in
  769. *[[\\\"\#\$\&\'\`$am_lf]]*)
  770. AC_MSG_ERROR([unsafe absolute working directory name]);;
  771. esac
  772. case $srcdir in
  773. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  774. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  775. esac
  776. # Do `set' in a subshell so we don't clobber the current shell's
  777. # arguments. Must try -L first in case configure is actually a
  778. # symlink; some systems play weird games with the mod time of symlinks
  779. # (eg FreeBSD returns the mod time of the symlink's containing
  780. # directory).
  781. if (
  782. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  783. if test "$[*]" = "X"; then
  784. # -L didn't work.
  785. set X `ls -t "$srcdir/configure" conftest.file`
  786. fi
  787. rm -f conftest.file
  788. if test "$[*]" != "X $srcdir/configure conftest.file" \
  789. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  790. # If neither matched, then we have a broken ls. This can happen
  791. # if, for instance, CONFIG_SHELL is bash and it inherits a
  792. # broken ls alias from the environment. This has actually
  793. # happened. Such a system could not be considered "sane".
  794. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  795. alias in your environment])
  796. fi
  797. test "$[2]" = conftest.file
  798. )
  799. then
  800. # Ok.
  801. :
  802. else
  803. AC_MSG_ERROR([newly created file is older than distributed files!
  804. Check your system clock])
  805. fi
  806. AC_MSG_RESULT(yes)])
  807. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  808. #
  809. # This file is free software; the Free Software Foundation
  810. # gives unlimited permission to copy and/or distribute it,
  811. # with or without modifications, as long as this notice is preserved.
  812. # AM_PROG_INSTALL_STRIP
  813. # ---------------------
  814. # One issue with vendor `install' (even GNU) is that you can't
  815. # specify the program used to strip binaries. This is especially
  816. # annoying in cross-compiling environments, where the build's strip
  817. # is unlikely to handle the host's binaries.
  818. # Fortunately install-sh will honor a STRIPPROG variable, so we
  819. # always use install-sh in `make install-strip', and initialize
  820. # STRIPPROG with the value of the STRIP variable (set by the user).
  821. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  822. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  823. # Installed binaries are usually stripped using `strip' when the user
  824. # run `make install-strip'. However `strip' might not be the right
  825. # tool to use in cross-compilation environments, therefore Automake
  826. # will honor the `STRIP' environment variable to overrule this program.
  827. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  828. if test "$cross_compiling" != no; then
  829. AC_CHECK_TOOL([STRIP], [strip], :)
  830. fi
  831. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  832. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  833. # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  834. #
  835. # This file is free software; the Free Software Foundation
  836. # gives unlimited permission to copy and/or distribute it,
  837. # with or without modifications, as long as this notice is preserved.
  838. # serial 2
  839. # _AM_SUBST_NOTMAKE(VARIABLE)
  840. # ---------------------------
  841. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  842. # This macro is traced by Automake.
  843. AC_DEFUN([_AM_SUBST_NOTMAKE])
  844. # AM_SUBST_NOTMAKE(VARIABLE)
  845. # ---------------------------
  846. # Public sister of _AM_SUBST_NOTMAKE.
  847. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  848. # Check how to create a tarball. -*- Autoconf -*-
  849. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  850. #
  851. # This file is free software; the Free Software Foundation
  852. # gives unlimited permission to copy and/or distribute it,
  853. # with or without modifications, as long as this notice is preserved.
  854. # serial 2
  855. # _AM_PROG_TAR(FORMAT)
  856. # --------------------
  857. # Check how to create a tarball in format FORMAT.
  858. # FORMAT should be one of `v7', `ustar', or `pax'.
  859. #
  860. # Substitute a variable $(am__tar) that is a command
  861. # writing to stdout a FORMAT-tarball containing the directory
  862. # $tardir.
  863. # tardir=directory && $(am__tar) > result.tar
  864. #
  865. # Substitute a variable $(am__untar) that extract such
  866. # a tarball read from stdin.
  867. # $(am__untar) < result.tar
  868. AC_DEFUN([_AM_PROG_TAR],
  869. [# Always define AMTAR for backward compatibility.
  870. AM_MISSING_PROG([AMTAR], [tar])
  871. m4_if([$1], [v7],
  872. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  873. [m4_case([$1], [ustar],, [pax],,
  874. [m4_fatal([Unknown tar format])])
  875. AC_MSG_CHECKING([how to create a $1 tar archive])
  876. # Loop over all known methods to create a tar archive until one works.
  877. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  878. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  879. # Do not fold the above two line into one, because Tru64 sh and
  880. # Solaris sh will not grok spaces in the rhs of `-'.
  881. for _am_tool in $_am_tools
  882. do
  883. case $_am_tool in
  884. gnutar)
  885. for _am_tar in tar gnutar gtar;
  886. do
  887. AM_RUN_LOG([$_am_tar --version]) && break
  888. done
  889. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  890. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  891. am__untar="$_am_tar -xf -"
  892. ;;
  893. plaintar)
  894. # Must skip GNU tar: if it does not support --format= it doesn't create
  895. # ustar tarball either.
  896. (tar --version) >/dev/null 2>&1 && continue
  897. am__tar='tar chf - "$$tardir"'
  898. am__tar_='tar chf - "$tardir"'
  899. am__untar='tar xf -'
  900. ;;
  901. pax)
  902. am__tar='pax -L -x $1 -w "$$tardir"'
  903. am__tar_='pax -L -x $1 -w "$tardir"'
  904. am__untar='pax -r'
  905. ;;
  906. cpio)
  907. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  908. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  909. am__untar='cpio -i -H $1 -d'
  910. ;;
  911. none)
  912. am__tar=false
  913. am__tar_=false
  914. am__untar=false
  915. ;;
  916. esac
  917. # If the value was cached, stop now. We just wanted to have am__tar
  918. # and am__untar set.
  919. test -n "${am_cv_prog_tar_$1}" && break
  920. # tar/untar a dummy directory, and stop if the command works
  921. rm -rf conftest.dir
  922. mkdir conftest.dir
  923. echo GrepMe > conftest.dir/file
  924. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  925. rm -rf conftest.dir
  926. if test -s conftest.tar; then
  927. AM_RUN_LOG([$am__untar <conftest.tar])
  928. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  929. fi
  930. done
  931. rm -rf conftest.dir
  932. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  933. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  934. AC_SUBST([am__tar])
  935. AC_SUBST([am__untar])
  936. ]) # _AM_PROG_TAR
  937. m4_include([m4/autobuild.m4])
  938. # gettext.m4 serial 60 (gettext-0.17)
  939. dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
  940. dnl This file is free software; the Free Software Foundation
  941. dnl gives unlimited permission to copy and/or distribute it,
  942. dnl with or without modifications, as long as this notice is preserved.
  943. dnl
  944. dnl This file can can be used in projects which are not available under
  945. dnl the GNU General Public License or the GNU Library General Public
  946. dnl License but which still want to provide support for the GNU gettext
  947. dnl functionality.
  948. dnl Please note that the actual code of the GNU gettext library is covered
  949. dnl by the GNU Library General Public License, and the rest of the GNU
  950. dnl gettext package package is covered by the GNU General Public License.
  951. dnl They are *not* in the public domain.
  952. dnl Authors:
  953. dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  954. dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.
  955. dnl Macro to add for using GNU gettext.
  956. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
  957. dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
  958. dnl default (if it is not specified or empty) is 'no-libtool'.
  959. dnl INTLSYMBOL should be 'external' for packages with no intl directory,
  960. dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
  961. dnl If INTLSYMBOL is 'use-libtool', then a libtool library
  962. dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
  963. dnl depending on --{enable,disable}-{shared,static} and on the presence of
  964. dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
  965. dnl $(top_builddir)/intl/libintl.a will be created.
  966. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
  967. dnl implementations (in libc or libintl) without the ngettext() function
  968. dnl will be ignored. If NEEDSYMBOL is specified and is
  969. dnl 'need-formatstring-macros', then GNU gettext implementations that don't
  970. dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
  971. dnl INTLDIR is used to find the intl libraries. If empty,
  972. dnl the value `$(top_builddir)/intl/' is used.
  973. dnl
  974. dnl The result of the configuration is one of three cases:
  975. dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
  976. dnl and used.
  977. dnl Catalog format: GNU --> install in $(datadir)
  978. dnl Catalog extension: .mo after installation, .gmo in source tree
  979. dnl 2) GNU gettext has been found in the system's C library.
  980. dnl Catalog format: GNU --> install in $(datadir)
  981. dnl Catalog extension: .mo after installation, .gmo in source tree
  982. dnl 3) No internationalization, always use English msgid.
  983. dnl Catalog format: none
  984. dnl Catalog extension: none
  985. dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
  986. dnl The use of .gmo is historical (it was needed to avoid overwriting the
  987. dnl GNU format catalogs when building on a platform with an X/Open gettext),
  988. dnl but we keep it in order not to force irrelevant filename changes on the
  989. dnl maintainers.
  990. dnl
  991. AC_DEFUN([AM_GNU_GETTEXT],
  992. [
  993. dnl Argument checking.
  994. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
  995. [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
  996. ])])])])])
  997. ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
  998. [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
  999. ])])])])
  1000. define([gt_included_intl],
  1001. ifelse([$1], [external],
  1002. ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
  1003. [yes]))
  1004. define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
  1005. gt_NEEDS_INIT
  1006. AM_GNU_GETTEXT_NEED([$2])
  1007. AC_REQUIRE([AM_PO_SUBDIRS])dnl
  1008. ifelse(gt_included_intl, yes, [
  1009. AC_REQUIRE([AM_INTL_SUBDIR])dnl
  1010. ])
  1011. dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
  1012. AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  1013. AC_REQUIRE([AC_LIB_RPATH])
  1014. dnl Sometimes libintl requires libiconv, so first search for libiconv.
  1015. dnl Ideally we would do this search only after the
  1016. dnl if test "$USE_NLS" = "yes"; then
  1017. dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  1018. dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
  1019. dnl the configure script would need to contain the same shell code
  1020. dnl again, outside any 'if'. There are two solutions:
  1021. dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
  1022. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
  1023. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
  1024. dnl documented, we avoid it.
  1025. ifelse(gt_included_intl, yes, , [
  1026. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
  1027. ])
  1028. dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
  1029. gt_INTL_MACOSX
  1030. dnl Set USE_NLS.
  1031. AC_REQUIRE([AM_NLS])
  1032. ifelse(gt_included_intl, yes, [
  1033. BUILD_INCLUDED_LIBINTL=no
  1034. USE_INCLUDED_LIBINTL=no
  1035. ])
  1036. LIBINTL=
  1037. LTLIBINTL=
  1038. POSUB=
  1039. dnl Add a version number to the cache macros.
  1040. case " $gt_needs " in
  1041. *" need-formatstring-macros "*) gt_api_version=3 ;;
  1042. *" need-ngettext "*) gt_api_version=2 ;;
  1043. *) gt_api_version=1 ;;
  1044. esac
  1045. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  1046. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  1047. dnl If we use NLS figure out what method
  1048. if test "$USE_NLS" = "yes"; then
  1049. gt_use_preinstalled_gnugettext=no
  1050. ifelse(gt_included_intl, yes, [
  1051. AC_MSG_CHECKING([whether included gettext is requested])
  1052. AC_ARG_WITH(included-gettext,
  1053. [ --with-included-gettext use the GNU gettext library included here],
  1054. nls_cv_force_use_gnu_gettext=$withval,
  1055. nls_cv_force_use_gnu_gettext=no)
  1056. AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
  1057. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  1058. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  1059. ])
  1060. dnl User does not insist on using GNU NLS library. Figure out what
  1061. dnl to use. If GNU gettext is available we use this. Else we have
  1062. dnl to fall back to GNU NLS library.
  1063. if test $gt_api_version -ge 3; then
  1064. gt_revision_test_code='
  1065. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  1066. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  1067. #endif
  1068. changequote(,)dnl
  1069. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  1070. changequote([,])dnl
  1071. '
  1072. else
  1073. gt_revision_test_code=
  1074. fi
  1075. if test $gt_api_version -ge 2; then
  1076. gt_expression_test_code=' + * ngettext ("", "", 0)'
  1077. else
  1078. gt_expression_test_code=
  1079. fi
  1080. AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
  1081. [AC_TRY_LINK([#include <libintl.h>
  1082. $gt_revision_test_code
  1083. extern int _nl_msg_cat_cntr;
  1084. extern int *_nl_domain_bindings;],
  1085. [bindtextdomain ("", "");
  1086. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
  1087. [eval "$gt_func_gnugettext_libc=yes"],
  1088. [eval "$gt_func_gnugettext_libc=no"])])
  1089. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  1090. dnl Sometimes libintl requires libiconv, so first search for libiconv.
  1091. ifelse(gt_included_intl, yes, , [
  1092. AM_ICONV_LINK
  1093. ])
  1094. dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
  1095. dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
  1096. dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
  1097. dnl even if libiconv doesn't exist.
  1098. AC_LIB_LINKFLAGS_BODY([intl])
  1099. AC_CACHE_CHECK([for GNU gettext in libintl],
  1100. [$gt_func_gnugettext_libintl],
  1101. [gt_save_CPPFLAGS="$CPPFLAGS"
  1102. CPPFLAGS="$CPPFLAGS $INCINTL"
  1103. gt_save_LIBS="$LIBS"
  1104. LIBS="$LIBS $LIBINTL"
  1105. dnl Now see whether libintl exists and does not depend on libiconv.
  1106. AC_TRY_LINK([#include <libintl.h>
  1107. $gt_revision_test_code
  1108. extern int _nl_msg_cat_cntr;
  1109. extern
  1110. #ifdef __cplusplus
  1111. "C"
  1112. #endif
  1113. const char *_nl_expand_alias (const char *);],
  1114. [bindtextdomain ("", "");
  1115. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
  1116. [eval "$gt_func_gnugettext_libintl=yes"],
  1117. [eval "$gt_func_gnugettext_libintl=no"])
  1118. dnl Now see whether libintl exists and depends on libiconv.
  1119. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  1120. LIBS="$LIBS $LIBICONV"
  1121. AC_TRY_LINK([#include <libintl.h>
  1122. $gt_revision_test_code
  1123. extern int _nl_msg_cat_cntr;
  1124. extern
  1125. #ifdef __cplusplus
  1126. "C"
  1127. #endif
  1128. const char *_nl_expand_alias (const char *);],
  1129. [bindtextdomain ("", "");
  1130. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
  1131. [LIBINTL="$LIBINTL $LIBICONV"
  1132. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  1133. eval "$gt_func_gnugettext_libintl=yes"
  1134. ])
  1135. fi
  1136. CPPFLAGS="$gt_save_CPPFLAGS"
  1137. LIBS="$gt_save_LIBS"])
  1138. fi
  1139. dnl If an already present or preinstalled GNU gettext() is found,
  1140. dnl use it. But if this macro is used in GNU gettext, and GNU
  1141. dnl gettext is already preinstalled in libintl, we update this
  1142. dnl libintl. (Cf. the install rule in intl/Makefile.in.)
  1143. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  1144. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  1145. && test "$PACKAGE" != gettext-runtime \
  1146. && test "$PACKAGE" != gettext-tools; }; then
  1147. gt_use_preinstalled_gnugettext=yes
  1148. else
  1149. dnl Reset the values set by searching for libintl.
  1150. LIBINTL=
  1151. LTLIBINTL=
  1152. INCINTL=
  1153. fi
  1154. ifelse(gt_included_intl, yes, [
  1155. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  1156. dnl GNU gettext is not found in the C library.
  1157. dnl Fall back on included GNU gettext library.
  1158. nls_cv_use_gnu_gettext=yes
  1159. fi
  1160. fi
  1161. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  1162. dnl Mark actions used to generate GNU NLS library.
  1163. BUILD_INCLUDED_LIBINTL=yes
  1164. USE_INCLUDED_LIBINTL=yes
  1165. LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
  1166. LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
  1167. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  1168. fi
  1169. CATOBJEXT=
  1170. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  1171. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  1172. dnl Mark actions to use GNU gettext tools.
  1173. CATOBJEXT=.gmo
  1174. fi
  1175. ])
  1176. if test -n "$INTL_MACOSX_LIBS"; then
  1177. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  1178. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  1179. dnl Some extra flags are needed during linking.
  1180. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  1181. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  1182. fi
  1183. fi
  1184. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  1185. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  1186. AC_DEFINE(ENABLE_NLS, 1,
  1187. [Define to 1 if translation of program messages to the user's native language
  1188. is requested.])
  1189. else
  1190. USE_NLS=no
  1191. fi
  1192. fi
  1193. AC_MSG_CHECKING([whether to use NLS])
  1194. AC_MSG_RESULT([$USE_NLS])
  1195. if test "$USE_NLS" = "yes"; then
  1196. AC_MSG_CHECKING([where the gettext function comes from])
  1197. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  1198. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  1199. gt_source="external libintl"
  1200. else
  1201. gt_source="libc"
  1202. fi
  1203. else
  1204. gt_source="included intl directory"
  1205. fi
  1206. AC_MSG_RESULT([$gt_source])
  1207. fi
  1208. if test "$USE_NLS" = "yes"; then
  1209. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  1210. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  1211. AC_MSG_CHECKING([how to link with libintl])
  1212. AC_MSG_RESULT([$LIBINTL])
  1213. AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
  1214. fi
  1215. dnl For backward compatibility. Some packages may be using this.
  1216. AC_DEFINE(HAVE_GETTEXT, 1,
  1217. [Define if the GNU gettext() function is already present or preinstalled.])
  1218. AC_DEFINE(HAVE_DCGETTEXT, 1,
  1219. [Define if the GNU dcgettext() function is already present or preinstalled.])
  1220. fi
  1221. dnl We need to process the po/ directory.
  1222. POSUB=po
  1223. fi
  1224. ifelse(gt_included_intl, yes, [
  1225. dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
  1226. dnl to 'yes' because some of the testsuite requires it.
  1227. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  1228. BUILD_INCLUDED_LIBINTL=yes
  1229. fi
  1230. dnl Make all variables we use known to autoconf.
  1231. AC_SUBST(BUILD_INCLUDED_LIBINTL)
  1232. AC_SUBST(USE_INCLUDED_LIBINTL)
  1233. AC_SUBST(CATOBJEXT)
  1234. dnl For backward compatibility. Some configure.ins may be using this.
  1235. nls_cv_header_intl=
  1236. nls_cv_header_libgt=
  1237. dnl For backward compatibility. Some Makefiles may be using this.
  1238. DATADIRNAME=share
  1239. AC_SUBST(DATADIRNAME)
  1240. dnl For backward compatibility. Some Makefiles may be using this.
  1241. INSTOBJEXT=.mo
  1242. AC_SUBST(INSTOBJEXT)
  1243. dnl For backward compatibility. Some Makefiles may be using this.
  1244. GENCAT=gencat
  1245. AC_SUBST(GENCAT)
  1246. dnl For backward compatibility. Some Makefiles may be using this.
  1247. INTLOBJS=
  1248. if test "$USE_INCLUDED_LIBINTL" = yes; then
  1249. INTLOBJS="\$(GETTOBJS)"
  1250. fi
  1251. AC_SUBST(INTLOBJS)
  1252. dnl Enable libtool support if the surrounding package wishes it.
  1253. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
  1254. AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
  1255. ])
  1256. dnl For backward compatibility. Some Makefiles may be using this.
  1257. INTLLIBS="$LIBINTL"
  1258. AC_SUBST(INTLLIBS)
  1259. dnl Make all documented variables known to autoconf.
  1260. AC_SUBST(LIBINTL)
  1261. AC_SUBST(LTLIBINTL)
  1262. AC_SUBST(POSUB)
  1263. ])
  1264. dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
  1265. m4_define([gt_NEEDS_INIT],
  1266. [
  1267. m4_divert_text([DEFAULTS], [gt_needs=])
  1268. m4_define([gt_NEEDS_INIT], [])
  1269. ])
  1270. dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
  1271. AC_DEFUN([AM_GNU_GETTEXT_NEED],
  1272. [
  1273. m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
  1274. ])
  1275. dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
  1276. AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
  1277. # iconv.m4 serial AM6 (gettext-0.17)
  1278. dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc.
  1279. dnl This file is free software; the Free Software Foundation
  1280. dnl gives unlimited permission to copy and/or distribute it,
  1281. dnl with or without modifications, as long as this notice is preserved.
  1282. dnl From Bruno Haible.
  1283. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
  1284. [
  1285. dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
  1286. AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  1287. AC_REQUIRE([AC_LIB_RPATH])
  1288. dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
  1289. dnl accordingly.
  1290. AC_LIB_LINKFLAGS_BODY([iconv])
  1291. ])
  1292. AC_DEFUN([AM_ICONV_LINK],
  1293. [
  1294. dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
  1295. dnl those with the standalone portable GNU libiconv installed).
  1296. AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
  1297. dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
  1298. dnl accordingly.
  1299. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
  1300. dnl Add $INCICONV to CPPFLAGS before performing the following checks,
  1301. dnl because if the user has installed libiconv and not disabled its use
  1302. dnl via --without-libiconv-prefix, he wants to use it. The first
  1303. dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
  1304. am_save_CPPFLAGS="$CPPFLAGS"
  1305. AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
  1306. AC_CACHE_CHECK([for iconv], am_cv_func_iconv, [
  1307. am_cv_func_iconv="no, consider installing GNU libiconv"
  1308. am_cv_lib_iconv=no
  1309. AC_TRY_LINK([#include <stdlib.h>
  1310. #include <iconv.h>],
  1311. [iconv_t cd = iconv_open("","");
  1312. iconv(cd,NULL,NULL,NULL,NULL);
  1313. iconv_close(cd);],
  1314. am_cv_func_iconv=yes)
  1315. if test "$am_cv_func_iconv" != yes; then
  1316. am_save_LIBS="$LIBS"
  1317. LIBS="$LIBS $LIBICONV"
  1318. AC_TRY_LINK([#include <stdlib.h>
  1319. #include <iconv.h>],
  1320. [iconv_t cd = iconv_open("","");
  1321. iconv(cd,NULL,NULL,NULL,NULL);
  1322. iconv_close(cd);],
  1323. am_cv_lib_iconv=yes
  1324. am_cv_func_iconv=yes)
  1325. LIBS="$am_save_LIBS"
  1326. fi
  1327. ])
  1328. if test "$am_cv_func_iconv" = yes; then
  1329. AC_CACHE_CHECK([for working iconv], am_cv_func_iconv_works, [
  1330. dnl This tests against bugs in AIX 5.1 and HP-UX 11.11.
  1331. am_save_LIBS="$LIBS"
  1332. if test $am_cv_lib_iconv = yes; then
  1333. LIBS="$LIBS $LIBICONV"
  1334. fi
  1335. AC_TRY_RUN([
  1336. #include <iconv.h>
  1337. #include <string.h>
  1338. int main ()
  1339. {
  1340. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  1341. returns. */
  1342. {
  1343. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  1344. if (cd_utf8_to_88591 != (iconv_t)(-1))
  1345. {
  1346. static const char input[] = "\342\202\254"; /* EURO SIGN */
  1347. char buf[10];
  1348. const char *inptr = input;
  1349. size_t inbytesleft = strlen (input);
  1350. char *outptr = buf;
  1351. size_t outbytesleft = sizeof (buf);
  1352. size_t res = iconv (cd_utf8_to_88591,
  1353. (char **) &inptr, &inbytesleft,
  1354. &outptr, &outbytesleft);
  1355. if (res == 0)
  1356. return 1;
  1357. }
  1358. }
  1359. #if 0 /* This bug could be worked around by the caller. */
  1360. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  1361. {
  1362. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  1363. if (cd_88591_to_utf8 != (iconv_t)(-1))
  1364. {
  1365. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  1366. char buf[50];
  1367. const char *inptr = input;
  1368. size_t inbytesleft = strlen (input);
  1369. char *outptr = buf;
  1370. size_t outbytesleft = sizeof (buf);
  1371. size_t res = iconv (cd_88591_to_utf8,
  1372. (char **) &inptr, &inbytesleft,
  1373. &outptr, &outbytesleft);
  1374. if ((int)res > 0)
  1375. return 1;
  1376. }
  1377. }
  1378. #endif
  1379. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  1380. provided. */
  1381. if (/* Try standardized names. */
  1382. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  1383. /* Try IRIX, OSF/1 names. */
  1384. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  1385. /* Try AIX names. */
  1386. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  1387. /* Try HP-UX names. */
  1388. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  1389. return 1;
  1390. return 0;
  1391. }], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
  1392. [case "$host_os" in
  1393. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  1394. *) am_cv_func_iconv_works="guessing yes" ;;
  1395. esac])
  1396. LIBS="$am_save_LIBS"
  1397. ])
  1398. case "$am_cv_func_iconv_works" in
  1399. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  1400. *) am_func_iconv=yes ;;
  1401. esac
  1402. else
  1403. am_func_iconv=no am_cv_lib_iconv=no
  1404. fi
  1405. if test "$am_func_iconv" = yes; then
  1406. AC_DEFINE(HAVE_ICONV, 1,
  1407. [Define if you have the iconv() function and it works.])
  1408. fi
  1409. if test "$am_cv_lib_iconv" = yes; then
  1410. AC_MSG_CHECKING([how to link with libiconv])
  1411. AC_MSG_RESULT([$LIBICONV])
  1412. else
  1413. dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
  1414. dnl either.
  1415. CPPFLAGS="$am_save_CPPFLAGS"
  1416. LIBICONV=
  1417. LTLIBICONV=
  1418. fi
  1419. AC_SUBST(LIBICONV)
  1420. AC_SUBST(LTLIBICONV)
  1421. ])
  1422. AC_DEFUN([AM_ICONV],
  1423. [
  1424. AM_ICONV_LINK
  1425. if test "$am_cv_func_iconv" = yes; then
  1426. AC_MSG_CHECKING([for iconv declaration])
  1427. AC_CACHE_VAL(am_cv_proto_iconv, [
  1428. AC_TRY_COMPILE([
  1429. #include <stdlib.h>
  1430. #include <iconv.h>
  1431. extern
  1432. #ifdef __cplusplus
  1433. "C"
  1434. #endif
  1435. #if defined(__STDC__) || defined(__cplusplus)
  1436. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  1437. #else
  1438. size_t iconv();
  1439. #endif
  1440. ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
  1441. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
  1442. am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  1443. AC_MSG_RESULT([$]{ac_t:-
  1444. }[$]am_cv_proto_iconv)
  1445. AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
  1446. [Define as const if the declaration of iconv() needs const.])
  1447. fi
  1448. ])
  1449. # intlmacosx.m4 serial 1 (gettext-0.17)
  1450. dnl Copyright (C) 2004-2007 Free Software Foundation, Inc.
  1451. dnl This file is free software; the Free Software Foundation
  1452. dnl gives unlimited permission to copy and/or distribute it,
  1453. dnl with or without modifications, as long as this notice is preserved.
  1454. dnl
  1455. dnl This file can can be used in projects which are not available under
  1456. dnl the GNU General Public License or the GNU Library General Public
  1457. dnl License but which still want to provide support for the GNU gettext
  1458. dnl functionality.
  1459. dnl Please note that the actual code of the GNU gettext library is covered
  1460. dnl by the GNU Library General Public License, and the rest of the GNU
  1461. dnl gettext package package is covered by the GNU General Public License.
  1462. dnl They are *not* in the public domain.
  1463. dnl Checks for special options needed on MacOS X.
  1464. dnl Defines INTL_MACOSX_LIBS.
  1465. AC_DEFUN([gt_INTL_MACOSX],
  1466. [
  1467. dnl Check for API introduced in MacOS X 10.2.
  1468. AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
  1469. gt_cv_func_CFPreferencesCopyAppValue,
  1470. [gt_save_LIBS="$LIBS"
  1471. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  1472. AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
  1473. [CFPreferencesCopyAppValue(NULL, NULL)],
  1474. [gt_cv_func_CFPreferencesCopyAppValue=yes],
  1475. [gt_cv_func_CFPreferencesCopyAppValue=no])
  1476. LIBS="$gt_save_LIBS"])
  1477. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  1478. AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
  1479. [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
  1480. fi
  1481. dnl Check for API introduced in MacOS X 10.3.
  1482. AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
  1483. [gt_save_LIBS="$LIBS"
  1484. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  1485. AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
  1486. [gt_cv_func_CFLocaleCopyCurrent=yes],
  1487. [gt_cv_func_CFLocaleCopyCurrent=no])
  1488. LIBS="$gt_save_LIBS"])
  1489. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  1490. AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
  1491. [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
  1492. fi
  1493. INTL_MACOSX_LIBS=
  1494. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  1495. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  1496. fi
  1497. AC_SUBST([INTL_MACOSX_LIBS])
  1498. ])
  1499. # lib-ld.m4 serial 3 (gettext-0.13)
  1500. dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
  1501. dnl This file is free software; the Free Software Foundation
  1502. dnl gives unlimited permission to copy and/or distribute it,
  1503. dnl with or without modifications, as long as this notice is preserved.
  1504. dnl Subroutines of libtool.m4,
  1505. dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
  1506. dnl with libtool.m4.
  1507. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
  1508. AC_DEFUN([AC_LIB_PROG_LD_GNU],
  1509. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
  1510. [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1511. case `$LD -v 2>&1 </dev/null` in
  1512. *GNU* | *'with BFD'*)
  1513. acl_cv_prog_gnu_ld=yes ;;
  1514. *)
  1515. acl_cv_prog_gnu_ld=no ;;
  1516. esac])
  1517. with_gnu_ld=$acl_cv_prog_gnu_ld
  1518. ])
  1519. dnl From libtool-1.4. Sets the variable LD.
  1520. AC_DEFUN([AC_LIB_PROG_LD],
  1521. [AC_ARG_WITH(gnu-ld,
  1522. [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  1523. test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  1524. AC_REQUIRE([AC_PROG_CC])dnl
  1525. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1526. # Prepare PATH_SEPARATOR.
  1527. # The user is always right.
  1528. if test "${PATH_SEPARATOR+set}" != set; then
  1529. echo "#! /bin/sh" >conf$$.sh
  1530. echo "exit 0" >>conf$$.sh
  1531. chmod +x conf$$.sh
  1532. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1533. PATH_SEPARATOR=';'
  1534. else
  1535. PATH_SEPARATOR=:
  1536. fi
  1537. rm -f conf$$.sh
  1538. fi
  1539. ac_prog=ld
  1540. if test "$GCC" = yes; then
  1541. # Check if gcc -print-prog-name=ld gives a path.
  1542. AC_MSG_CHECKING([for ld used by GCC])
  1543. case $host in
  1544. *-*-mingw*)
  1545. # gcc leaves a trailing carriage return which upsets mingw
  1546. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1547. *)
  1548. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1549. esac
  1550. case $ac_prog in
  1551. # Accept absolute paths.
  1552. [[\\/]* | [A-Za-z]:[\\/]*)]
  1553. [re_direlt='/[^/][^/]*/\.\./']
  1554. # Canonicalize the path of ld
  1555. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1556. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1557. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1558. done
  1559. test -z "$LD" && LD="$ac_prog"
  1560. ;;
  1561. "")
  1562. # If it fails, then pretend we aren't using GCC.
  1563. ac_prog=ld
  1564. ;;
  1565. *)
  1566. # If it is relative, then search for the first ld in PATH.
  1567. with_gnu_ld=unknown
  1568. ;;
  1569. esac
  1570. elif test "$with_gnu_ld" = yes; then
  1571. AC_MSG_CHECKING([for GNU ld])
  1572. else
  1573. AC_MSG_CHECKING([for non-GNU ld])
  1574. fi
  1575. AC_CACHE_VAL(acl_cv_path_LD,
  1576. [if test -z "$LD"; then
  1577. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1578. for ac_dir in $PATH; do
  1579. test -z "$ac_dir" && ac_dir=.
  1580. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1581. acl_cv_path_LD="$ac_dir/$ac_prog"
  1582. # Check to see if the program is GNU ld. I'd rather use --version,
  1583. # but apparently some GNU ld's only accept -v.
  1584. # Break only if it was the GNU/non-GNU ld that we prefer.
  1585. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  1586. *GNU* | *'with BFD'*)
  1587. test "$with_gnu_ld" != no && break ;;
  1588. *)
  1589. test "$with_gnu_ld" != yes && break ;;
  1590. esac
  1591. fi
  1592. done
  1593. IFS="$ac_save_ifs"
  1594. else
  1595. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  1596. fi])
  1597. LD="$acl_cv_path_LD"
  1598. if test -n "$LD"; then
  1599. AC_MSG_RESULT($LD)
  1600. else
  1601. AC_MSG_RESULT(no)
  1602. fi
  1603. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  1604. AC_LIB_PROG_LD_GNU
  1605. ])
  1606. # lib-link.m4 serial 13 (gettext-0.17)
  1607. dnl Copyright (C) 2001-2007 Free Software Foundation, Inc.
  1608. dnl This file is free software; the Free Software Foundation
  1609. dnl gives unlimited permission to copy and/or distribute it,
  1610. dnl with or without modifications, as long as this notice is preserved.
  1611. dnl From Bruno Haible.
  1612. AC_PREREQ(2.54)
  1613. dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
  1614. dnl the libraries corresponding to explicit and implicit dependencies.
  1615. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
  1616. dnl augments the CPPFLAGS variable.
  1617. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
  1618. dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
  1619. AC_DEFUN([AC_LIB_LINKFLAGS],
  1620. [
  1621. AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  1622. AC_REQUIRE([AC_LIB_RPATH])
  1623. define([Name],[translit([$1],[./-], [___])])
  1624. define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  1625. [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  1626. AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
  1627. AC_LIB_LINKFLAGS_BODY([$1], [$2])
  1628. ac_cv_lib[]Name[]_libs="$LIB[]NAME"
  1629. ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
  1630. ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
  1631. ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
  1632. ])
  1633. LIB[]NAME="$ac_cv_lib[]Name[]_libs"
  1634. LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
  1635. INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
  1636. LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
  1637. AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  1638. AC_SUBST([LIB]NAME)
  1639. AC_SUBST([LTLIB]NAME)
  1640. AC_SUBST([LIB]NAME[_PREFIX])
  1641. dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
  1642. dnl results of this search when this library appears as a dependency.
  1643. HAVE_LIB[]NAME=yes
  1644. undefine([Name])
  1645. undefine([NAME])
  1646. ])
  1647. dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
  1648. dnl searches for libname and the libraries corresponding to explicit and
  1649. dnl implicit dependencies, together with the specified include files and
  1650. dnl the ability to compile and link the specified testcode. If found, it
  1651. dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
  1652. dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
  1653. dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
  1654. dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
  1655. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
  1656. dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
  1657. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
  1658. [
  1659. AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  1660. AC_REQUIRE([AC_LIB_RPATH])
  1661. define([Name],[translit([$1],[./-], [___])])
  1662. define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  1663. [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  1664. dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
  1665. dnl accordingly.
  1666. AC_LIB_LINKFLAGS_BODY([$1], [$2])
  1667. dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
  1668. dnl because if the user has installed lib[]Name and not disabled its use
  1669. dnl via --without-lib[]Name-prefix, he wants to use it.
  1670. ac_save_CPPFLAGS="$CPPFLAGS"
  1671. AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  1672. AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
  1673. ac_save_LIBS="$LIBS"
  1674. LIBS="$LIBS $LIB[]NAME"
  1675. AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
  1676. LIBS="$ac_save_LIBS"
  1677. ])
  1678. if test "$ac_cv_lib[]Name" = yes; then
  1679. HAVE_LIB[]NAME=yes
  1680. AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
  1681. AC_MSG_CHECKING([how to link with lib[]$1])
  1682. AC_MSG_RESULT([$LIB[]NAME])
  1683. else
  1684. HAVE_LIB[]NAME=no
  1685. dnl If $LIB[]NAME didn't lead to a usable library, we don't need
  1686. dnl $INC[]NAME either.
  1687. CPPFLAGS="$ac_save_CPPFLAGS"
  1688. LIB[]NAME=
  1689. LTLIB[]NAME=
  1690. LIB[]NAME[]_PREFIX=
  1691. fi
  1692. AC_SUBST([HAVE_LIB]NAME)
  1693. AC_SUBST([LIB]NAME)
  1694. AC_SUBST([LTLIB]NAME)
  1695. AC_SUBST([LIB]NAME[_PREFIX])
  1696. undefine([Name])
  1697. undefine([NAME])
  1698. ])
  1699. dnl Determine the platform dependent parameters needed to use rpath:
  1700. dnl acl_libext,
  1701. dnl acl_shlibext,
  1702. dnl acl_hardcode_libdir_flag_spec,
  1703. dnl acl_hardcode_libdir_separator,
  1704. dnl acl_hardcode_direct,
  1705. dnl acl_hardcode_minus_L.
  1706. AC_DEFUN([AC_LIB_RPATH],
  1707. [
  1708. dnl Tell automake >= 1.10 to complain if config.rpath is missing.
  1709. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
  1710. AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
  1711. AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
  1712. AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
  1713. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
  1714. AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
  1715. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  1716. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  1717. . ./conftest.sh
  1718. rm -f ./conftest.sh
  1719. acl_cv_rpath=done
  1720. ])
  1721. wl="$acl_cv_wl"
  1722. acl_libext="$acl_cv_libext"
  1723. acl_shlibext="$acl_cv_shlibext"
  1724. acl_libname_spec="$acl_cv_libname_spec"
  1725. acl_library_names_spec="$acl_cv_library_names_spec"
  1726. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  1727. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  1728. acl_hardcode_direct="$acl_cv_hardcode_direct"
  1729. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  1730. dnl Determine whether the user wants rpath handling at all.
  1731. AC_ARG_ENABLE(rpath,
  1732. [ --disable-rpath do not hardcode runtime library paths],
  1733. :, enable_rpath=yes)
  1734. ])
  1735. dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
  1736. dnl the libraries corresponding to explicit and implicit dependencies.
  1737. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
  1738. dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
  1739. dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
  1740. AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
  1741. [
  1742. AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  1743. define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  1744. [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  1745. dnl Autoconf >= 2.61 supports dots in --with options.
  1746. define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])])
  1747. dnl By default, look in $includedir and $libdir.
  1748. use_additional=yes
  1749. AC_LIB_WITH_FINAL_PREFIX([
  1750. eval additional_includedir=\"$includedir\"
  1751. eval additional_libdir=\"$libdir\"
  1752. ])
  1753. AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix],
  1754. [ --with-lib]N_A_M_E[-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
  1755. --without-lib]N_A_M_E[-prefix don't search for lib$1 in includedir and libdir],
  1756. [
  1757. if test "X$withval" = "Xno"; then
  1758. use_additional=no
  1759. else
  1760. if test "X$withval" = "X"; then
  1761. AC_LIB_WITH_FINAL_PREFIX([
  1762. eval additional_includedir=\"$includedir\"
  1763. eval additional_libdir=\"$libdir\"
  1764. ])
  1765. else
  1766. additional_includedir="$withval/include"
  1767. additional_libdir="$withval/$acl_libdirstem"
  1768. fi
  1769. fi
  1770. ])
  1771. dnl Search the library and its dependencies in $additional_libdir and
  1772. dnl $LDFLAGS. Using breadth-first-seach.
  1773. LIB[]NAME=
  1774. LTLIB[]NAME=
  1775. INC[]NAME=
  1776. LIB[]NAME[]_PREFIX=
  1777. rpathdirs=
  1778. ltrpathdirs=
  1779. names_already_handled=
  1780. names_next_round='$1 $2'
  1781. while test -n "$names_next_round"; do
  1782. names_this_round="$names_next_round"
  1783. names_next_round=
  1784. for name in $names_this_round; do
  1785. already_handled=
  1786. for n in $names_already_handled; do
  1787. if test "$n" = "$name"; then
  1788. already_handled=yes
  1789. break
  1790. fi
  1791. done
  1792. if test -z "$already_handled"; then
  1793. names_already_handled="$names_already_handled $name"
  1794. dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
  1795. dnl or AC_LIB_HAVE_LINKFLAGS call.
  1796. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  1797. eval value=\"\$HAVE_LIB$uppername\"
  1798. if test -n "$value"; then
  1799. if test "$value" = yes; then
  1800. eval value=\"\$LIB$uppername\"
  1801. test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
  1802. eval value=\"\$LTLIB$uppername\"
  1803. test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
  1804. else
  1805. dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
  1806. dnl that this library doesn't exist. So just drop it.
  1807. :
  1808. fi
  1809. else
  1810. dnl Search the library lib$name in $additional_libdir and $LDFLAGS
  1811. dnl and the already constructed $LIBNAME/$LTLIBNAME.
  1812. found_dir=
  1813. found_la=
  1814. found_so=
  1815. found_a=
  1816. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  1817. if test -n "$acl_shlibext"; then
  1818. shrext=".$acl_shlibext" # typically: shrext=.so
  1819. else
  1820. shrext=
  1821. fi
  1822. if test $use_additional = yes; then
  1823. dir="$additional_libdir"
  1824. dnl The same code as in the loop below:
  1825. dnl First look for a shared library.
  1826. if test -n "$acl_shlibext"; then
  1827. if test -f "$dir/$libname$shrext"; then
  1828. found_dir="$dir"
  1829. found_so="$dir/$libname$shrext"
  1830. else
  1831. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  1832. ver=`(cd "$dir" && \
  1833. for f in "$libname$shrext".*; do echo "$f"; done \
  1834. | sed -e "s,^$libname$shrext\\\\.,," \
  1835. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  1836. | sed 1q ) 2>/dev/null`
  1837. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  1838. found_dir="$dir"
  1839. found_so="$dir/$libname$shrext.$ver"
  1840. fi
  1841. else
  1842. eval library_names=\"$acl_library_names_spec\"
  1843. for f in $library_names; do
  1844. if test -f "$dir/$f"; then
  1845. found_dir="$dir"
  1846. found_so="$dir/$f"
  1847. break
  1848. fi
  1849. done
  1850. fi
  1851. fi
  1852. fi
  1853. dnl Then look for a static library.
  1854. if test "X$found_dir" = "X"; then
  1855. if test -f "$dir/$libname.$acl_libext"; then
  1856. found_dir="$dir"
  1857. found_a="$dir/$libname.$acl_libext"
  1858. fi
  1859. fi
  1860. if test "X$found_dir" != "X"; then
  1861. if test -f "$dir/$libname.la"; then
  1862. found_la="$dir/$libname.la"
  1863. fi
  1864. fi
  1865. fi
  1866. if test "X$found_dir" = "X"; then
  1867. for x in $LDFLAGS $LTLIB[]NAME; do
  1868. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1869. case "$x" in
  1870. -L*)
  1871. dir=`echo "X$x" | sed -e 's/^X-L//'`
  1872. dnl First look for a shared library.
  1873. if test -n "$acl_shlibext"; then
  1874. if test -f "$dir/$libname$shrext"; then
  1875. found_dir="$dir"
  1876. found_so="$dir/$libname$shrext"
  1877. else
  1878. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  1879. ver=`(cd "$dir" && \
  1880. for f in "$libname$shrext".*; do echo "$f"; done \
  1881. | sed -e "s,^$libname$shrext\\\\.,," \
  1882. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  1883. | sed 1q ) 2>/dev/null`
  1884. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  1885. found_dir="$dir"
  1886. found_so="$dir/$libname$shrext.$ver"
  1887. fi
  1888. else
  1889. eval library_names=\"$acl_library_names_spec\"
  1890. for f in $library_names; do
  1891. if test -f "$dir/$f"; then
  1892. found_dir="$dir"
  1893. found_so="$dir/$f"
  1894. break
  1895. fi
  1896. done
  1897. fi
  1898. fi
  1899. fi
  1900. dnl Then look for a static library.
  1901. if test "X$found_dir" = "X"; then
  1902. if test -f "$dir/$libname.$acl_libext"; then
  1903. found_dir="$dir"
  1904. found_a="$dir/$libname.$acl_libext"
  1905. fi
  1906. fi
  1907. if test "X$found_dir" != "X"; then
  1908. if test -f "$dir/$libname.la"; then
  1909. found_la="$dir/$libname.la"
  1910. fi
  1911. fi
  1912. ;;
  1913. esac
  1914. if test "X$found_dir" != "X"; then
  1915. break
  1916. fi
  1917. done
  1918. fi
  1919. if test "X$found_dir" != "X"; then
  1920. dnl Found the library.
  1921. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
  1922. if test "X$found_so" != "X"; then
  1923. dnl Linking with a shared library. We attempt to hardcode its
  1924. dnl directory into the executable's runpath, unless it's the
  1925. dnl standard /usr/lib.
  1926. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  1927. dnl No hardcoding is needed.
  1928. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  1929. else
  1930. dnl Use an explicit option to hardcode DIR into the resulting
  1931. dnl binary.
  1932. dnl Potentially add DIR to ltrpathdirs.
  1933. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  1934. haveit=
  1935. for x in $ltrpathdirs; do
  1936. if test "X$x" = "X$found_dir"; then
  1937. haveit=yes
  1938. break
  1939. fi
  1940. done
  1941. if test -z "$haveit"; then
  1942. ltrpathdirs="$ltrpathdirs $found_dir"
  1943. fi
  1944. dnl The hardcoding into $LIBNAME is system dependent.
  1945. if test "$acl_hardcode_direct" = yes; then
  1946. dnl Using DIR/libNAME.so during linking hardcodes DIR into the
  1947. dnl resulting binary.
  1948. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  1949. else
  1950. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  1951. dnl Use an explicit option to hardcode DIR into the resulting
  1952. dnl binary.
  1953. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  1954. dnl Potentially add DIR to rpathdirs.
  1955. dnl The rpathdirs will be appended to $LIBNAME at the end.
  1956. haveit=
  1957. for x in $rpathdirs; do
  1958. if test "X$x" = "X$found_dir"; then
  1959. haveit=yes
  1960. break
  1961. fi
  1962. done
  1963. if test -z "$haveit"; then
  1964. rpathdirs="$rpathdirs $found_dir"
  1965. fi
  1966. else
  1967. dnl Rely on "-L$found_dir".
  1968. dnl But don't add it if it's already contained in the LDFLAGS
  1969. dnl or the already constructed $LIBNAME
  1970. haveit=
  1971. for x in $LDFLAGS $LIB[]NAME; do
  1972. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1973. if test "X$x" = "X-L$found_dir"; then
  1974. haveit=yes
  1975. break
  1976. fi
  1977. done
  1978. if test -z "$haveit"; then
  1979. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
  1980. fi
  1981. if test "$acl_hardcode_minus_L" != no; then
  1982. dnl FIXME: Not sure whether we should use
  1983. dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  1984. dnl here.
  1985. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  1986. else
  1987. dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
  1988. dnl here, because this doesn't fit in flags passed to the
  1989. dnl compiler. So give up. No hardcoding. This affects only
  1990. dnl very old systems.
  1991. dnl FIXME: Not sure whether we should use
  1992. dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  1993. dnl here.
  1994. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  1995. fi
  1996. fi
  1997. fi
  1998. fi
  1999. else
  2000. if test "X$found_a" != "X"; then
  2001. dnl Linking with a static library.
  2002. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
  2003. else
  2004. dnl We shouldn't come here, but anyway it's good to have a
  2005. dnl fallback.
  2006. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
  2007. fi
  2008. fi
  2009. dnl Assume the include files are nearby.
  2010. additional_includedir=
  2011. case "$found_dir" in
  2012. */$acl_libdirstem | */$acl_libdirstem/)
  2013. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  2014. LIB[]NAME[]_PREFIX="$basedir"
  2015. additional_includedir="$basedir/include"
  2016. ;;
  2017. esac
  2018. if test "X$additional_includedir" != "X"; then
  2019. dnl Potentially add $additional_includedir to $INCNAME.
  2020. dnl But don't add it
  2021. dnl 1. if it's the standard /usr/include,
  2022. dnl 2. if it's /usr/local/include and we are using GCC on Linux,
  2023. dnl 3. if it's already present in $CPPFLAGS or the already
  2024. dnl constructed $INCNAME,
  2025. dnl 4. if it doesn't exist as a directory.
  2026. if test "X$additional_includedir" != "X/usr/include"; then
  2027. haveit=
  2028. if test "X$additional_includedir" = "X/usr/local/include"; then
  2029. if test -n "$GCC"; then
  2030. case $host_os in
  2031. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  2032. esac
  2033. fi
  2034. fi
  2035. if test -z "$haveit"; then
  2036. for x in $CPPFLAGS $INC[]NAME; do
  2037. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  2038. if test "X$x" = "X-I$additional_includedir"; then
  2039. haveit=yes
  2040. break
  2041. fi
  2042. done
  2043. if test -z "$haveit"; then
  2044. if test -d "$additional_includedir"; then
  2045. dnl Really add $additional_includedir to $INCNAME.
  2046. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
  2047. fi
  2048. fi
  2049. fi
  2050. fi
  2051. fi
  2052. dnl Look for dependencies.
  2053. if test -n "$found_la"; then
  2054. dnl Read the .la file. It defines the variables
  2055. dnl dlname, library_names, old_library, dependency_libs, current,
  2056. dnl age, revision, installed, dlopen, dlpreopen, libdir.
  2057. save_libdir="$libdir"
  2058. case "$found_la" in
  2059. */* | *\\*) . "$found_la" ;;
  2060. *) . "./$found_la" ;;
  2061. esac
  2062. libdir="$save_libdir"
  2063. dnl We use only dependency_libs.
  2064. for dep in $dependency_libs; do
  2065. case "$dep" in
  2066. -L*)
  2067. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  2068. dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
  2069. dnl But don't add it
  2070. dnl 1. if it's the standard /usr/lib,
  2071. dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
  2072. dnl 3. if it's already present in $LDFLAGS or the already
  2073. dnl constructed $LIBNAME,
  2074. dnl 4. if it doesn't exist as a directory.
  2075. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  2076. haveit=
  2077. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  2078. if test -n "$GCC"; then
  2079. case $host_os in
  2080. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  2081. esac
  2082. fi
  2083. fi
  2084. if test -z "$haveit"; then
  2085. haveit=
  2086. for x in $LDFLAGS $LIB[]NAME; do
  2087. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  2088. if test "X$x" = "X-L$additional_libdir"; then
  2089. haveit=yes
  2090. break
  2091. fi
  2092. done
  2093. if test -z "$haveit"; then
  2094. if test -d "$additional_libdir"; then
  2095. dnl Really add $additional_libdir to $LIBNAME.
  2096. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
  2097. fi
  2098. fi
  2099. haveit=
  2100. for x in $LDFLAGS $LTLIB[]NAME; do
  2101. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  2102. if test "X$x" = "X-L$additional_libdir"; then
  2103. haveit=yes
  2104. break
  2105. fi
  2106. done
  2107. if test -z "$haveit"; then
  2108. if test -d "$additional_libdir"; then
  2109. dnl Really add $additional_libdir to $LTLIBNAME.
  2110. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
  2111. fi
  2112. fi
  2113. fi
  2114. fi
  2115. ;;
  2116. -R*)
  2117. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  2118. if test "$enable_rpath" != no; then
  2119. dnl Potentially add DIR to rpathdirs.
  2120. dnl The rpathdirs will be appended to $LIBNAME at the end.
  2121. haveit=
  2122. for x in $rpathdirs; do
  2123. if test "X$x" = "X$dir"; then
  2124. haveit=yes
  2125. break
  2126. fi
  2127. done
  2128. if test -z "$haveit"; then
  2129. rpathdirs="$rpathdirs $dir"
  2130. fi
  2131. dnl Potentially add DIR to ltrpathdirs.
  2132. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  2133. haveit=
  2134. for x in $ltrpathdirs; do
  2135. if test "X$x" = "X$dir"; then
  2136. haveit=yes
  2137. break
  2138. fi
  2139. done
  2140. if test -z "$haveit"; then
  2141. ltrpathdirs="$ltrpathdirs $dir"
  2142. fi
  2143. fi
  2144. ;;
  2145. -l*)
  2146. dnl Handle this in the next round.
  2147. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  2148. ;;
  2149. *.la)
  2150. dnl Handle this in the next round. Throw away the .la's
  2151. dnl directory; it is already contained in a preceding -L
  2152. dnl option.
  2153. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  2154. ;;
  2155. *)
  2156. dnl Most likely an immediate library name.
  2157. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
  2158. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
  2159. ;;
  2160. esac
  2161. done
  2162. fi
  2163. else
  2164. dnl Didn't find the library; assume it is in the system directories
  2165. dnl known to the linker and runtime loader. (All the system
  2166. dnl directories known to the linker should also be known to the
  2167. dnl runtime loader, otherwise the system is severely misconfigured.)
  2168. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  2169. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
  2170. fi
  2171. fi
  2172. fi
  2173. done
  2174. done
  2175. if test "X$rpathdirs" != "X"; then
  2176. if test -n "$acl_hardcode_libdir_separator"; then
  2177. dnl Weird platform: only the last -rpath option counts, the user must
  2178. dnl pass all path elements in one option. We can arrange that for a
  2179. dnl single library, but not when more than one $LIBNAMEs are used.
  2180. alldirs=
  2181. for found_dir in $rpathdirs; do
  2182. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  2183. done
  2184. dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
  2185. acl_save_libdir="$libdir"
  2186. libdir="$alldirs"
  2187. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  2188. libdir="$acl_save_libdir"
  2189. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  2190. else
  2191. dnl The -rpath options are cumulative.
  2192. for found_dir in $rpathdirs; do
  2193. acl_save_libdir="$libdir"
  2194. libdir="$found_dir"
  2195. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  2196. libdir="$acl_save_libdir"
  2197. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  2198. done
  2199. fi
  2200. fi
  2201. if test "X$ltrpathdirs" != "X"; then
  2202. dnl When using libtool, the option that works for both libraries and
  2203. dnl executables is -R. The -R options are cumulative.
  2204. for found_dir in $ltrpathdirs; do
  2205. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
  2206. done
  2207. fi
  2208. ])
  2209. dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
  2210. dnl unless already present in VAR.
  2211. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
  2212. dnl contains two or three consecutive elements that belong together.
  2213. AC_DEFUN([AC_LIB_APPENDTOVAR],
  2214. [
  2215. for element in [$2]; do
  2216. haveit=
  2217. for x in $[$1]; do
  2218. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  2219. if test "X$x" = "X$element"; then
  2220. haveit=yes
  2221. break
  2222. fi
  2223. done
  2224. if test -z "$haveit"; then
  2225. [$1]="${[$1]}${[$1]:+ }$element"
  2226. fi
  2227. done
  2228. ])
  2229. dnl For those cases where a variable contains several -L and -l options
  2230. dnl referring to unknown libraries and directories, this macro determines the
  2231. dnl necessary additional linker options for the runtime path.
  2232. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
  2233. dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
  2234. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
  2235. dnl otherwise linking without libtool is assumed.
  2236. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
  2237. [
  2238. AC_REQUIRE([AC_LIB_RPATH])
  2239. AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  2240. $1=
  2241. if test "$enable_rpath" != no; then
  2242. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  2243. dnl Use an explicit option to hardcode directories into the resulting
  2244. dnl binary.
  2245. rpathdirs=
  2246. next=
  2247. for opt in $2; do
  2248. if test -n "$next"; then
  2249. dir="$next"
  2250. dnl No need to hardcode the standard /usr/lib.
  2251. if test "X$dir" != "X/usr/$acl_libdirstem"; then
  2252. rpathdirs="$rpathdirs $dir"
  2253. fi
  2254. next=
  2255. else
  2256. case $opt in
  2257. -L) next=yes ;;
  2258. -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
  2259. dnl No need to hardcode the standard /usr/lib.
  2260. if test "X$dir" != "X/usr/$acl_libdirstem"; then
  2261. rpathdirs="$rpathdirs $dir"
  2262. fi
  2263. next= ;;
  2264. *) next= ;;
  2265. esac
  2266. fi
  2267. done
  2268. if test "X$rpathdirs" != "X"; then
  2269. if test -n ""$3""; then
  2270. dnl libtool is used for linking. Use -R options.
  2271. for dir in $rpathdirs; do
  2272. $1="${$1}${$1:+ }-R$dir"
  2273. done
  2274. else
  2275. dnl The linker is used for linking directly.
  2276. if test -n "$acl_hardcode_libdir_separator"; then
  2277. dnl Weird platform: only the last -rpath option counts, the user
  2278. dnl must pass all path elements in one option.
  2279. alldirs=
  2280. for dir in $rpathdirs; do
  2281. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
  2282. done
  2283. acl_save_libdir="$libdir"
  2284. libdir="$alldirs"
  2285. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  2286. libdir="$acl_save_libdir"
  2287. $1="$flag"
  2288. else
  2289. dnl The -rpath options are cumulative.
  2290. for dir in $rpathdirs; do
  2291. acl_save_libdir="$libdir"
  2292. libdir="$dir"
  2293. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  2294. libdir="$acl_save_libdir"
  2295. $1="${$1}${$1:+ }$flag"
  2296. done
  2297. fi
  2298. fi
  2299. fi
  2300. fi
  2301. fi
  2302. AC_SUBST([$1])
  2303. ])
  2304. # lib-prefix.m4 serial 5 (gettext-0.15)
  2305. dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  2306. dnl This file is free software; the Free Software Foundation
  2307. dnl gives unlimited permission to copy and/or distribute it,
  2308. dnl with or without modifications, as long as this notice is preserved.
  2309. dnl From Bruno Haible.
  2310. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
  2311. dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
  2312. dnl require excessive bracketing.
  2313. ifdef([AC_HELP_STRING],
  2314. [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
  2315. [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
  2316. dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
  2317. dnl to access previously installed libraries. The basic assumption is that
  2318. dnl a user will want packages to use other packages he previously installed
  2319. dnl with the same --prefix option.
  2320. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
  2321. dnl libraries, but is otherwise very convenient.
  2322. AC_DEFUN([AC_LIB_PREFIX],
  2323. [
  2324. AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
  2325. AC_REQUIRE([AC_PROG_CC])
  2326. AC_REQUIRE([AC_CANONICAL_HOST])
  2327. AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  2328. AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  2329. dnl By default, look in $includedir and $libdir.
  2330. use_additional=yes
  2331. AC_LIB_WITH_FINAL_PREFIX([
  2332. eval additional_includedir=\"$includedir\"
  2333. eval additional_libdir=\"$libdir\"
  2334. ])
  2335. AC_LIB_ARG_WITH([lib-prefix],
  2336. [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
  2337. --without-lib-prefix don't search for libraries in includedir and libdir],
  2338. [
  2339. if test "X$withval" = "Xno"; then
  2340. use_additional=no
  2341. else
  2342. if test "X$withval" = "X"; then
  2343. AC_LIB_WITH_FINAL_PREFIX([
  2344. eval additional_includedir=\"$includedir\"
  2345. eval additional_libdir=\"$libdir\"
  2346. ])
  2347. else
  2348. additional_includedir="$withval/include"
  2349. additional_libdir="$withval/$acl_libdirstem"
  2350. fi
  2351. fi
  2352. ])
  2353. if test $use_additional = yes; then
  2354. dnl Potentially add $additional_includedir to $CPPFLAGS.
  2355. dnl But don't add it
  2356. dnl 1. if it's the standard /usr/include,
  2357. dnl 2. if it's already present in $CPPFLAGS,
  2358. dnl 3. if it's /usr/local/include and we are using GCC on Linux,
  2359. dnl 4. if it doesn't exist as a directory.
  2360. if test "X$additional_includedir" != "X/usr/include"; then
  2361. haveit=
  2362. for x in $CPPFLAGS; do
  2363. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  2364. if test "X$x" = "X-I$additional_includedir"; then
  2365. haveit=yes
  2366. break
  2367. fi
  2368. done
  2369. if test -z "$haveit"; then
  2370. if test "X$additional_includedir" = "X/usr/local/include"; then
  2371. if test -n "$GCC"; then
  2372. case $host_os in
  2373. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  2374. esac
  2375. fi
  2376. fi
  2377. if test -z "$haveit"; then
  2378. if test -d "$additional_includedir"; then
  2379. dnl Really add $additional_includedir to $CPPFLAGS.
  2380. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
  2381. fi
  2382. fi
  2383. fi
  2384. fi
  2385. dnl Potentially add $additional_libdir to $LDFLAGS.
  2386. dnl But don't add it
  2387. dnl 1. if it's the standard /usr/lib,
  2388. dnl 2. if it's already present in $LDFLAGS,
  2389. dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
  2390. dnl 4. if it doesn't exist as a directory.
  2391. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  2392. haveit=
  2393. for x in $LDFLAGS; do
  2394. AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  2395. if test "X$x" = "X-L$additional_libdir"; then
  2396. haveit=yes
  2397. break
  2398. fi
  2399. done
  2400. if test -z "$haveit"; then
  2401. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  2402. if test -n "$GCC"; then
  2403. case $host_os in
  2404. linux*) haveit=yes;;
  2405. esac
  2406. fi
  2407. fi
  2408. if test -z "$haveit"; then
  2409. if test -d "$additional_libdir"; then
  2410. dnl Really add $additional_libdir to $LDFLAGS.
  2411. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
  2412. fi
  2413. fi
  2414. fi
  2415. fi
  2416. fi
  2417. ])
  2418. dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
  2419. dnl acl_final_exec_prefix, containing the values to which $prefix and
  2420. dnl $exec_prefix will expand at the end of the configure script.
  2421. AC_DEFUN([AC_LIB_PREPARE_PREFIX],
  2422. [
  2423. dnl Unfortunately, prefix and exec_prefix get only finally determined
  2424. dnl at the end of configure.
  2425. if test "X$prefix" = "XNONE"; then
  2426. acl_final_prefix="$ac_default_prefix"
  2427. else
  2428. acl_final_prefix="$prefix"
  2429. fi
  2430. if test "X$exec_prefix" = "XNONE"; then
  2431. acl_final_exec_prefix='${prefix}'
  2432. else
  2433. acl_final_exec_prefix="$exec_prefix"
  2434. fi
  2435. acl_save_prefix="$prefix"
  2436. prefix="$acl_final_prefix"
  2437. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  2438. prefix="$acl_save_prefix"
  2439. ])
  2440. dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
  2441. dnl variables prefix and exec_prefix bound to the values they will have
  2442. dnl at the end of the configure script.
  2443. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
  2444. [
  2445. acl_save_prefix="$prefix"
  2446. prefix="$acl_final_prefix"
  2447. acl_save_exec_prefix="$exec_prefix"
  2448. exec_prefix="$acl_final_exec_prefix"
  2449. $1
  2450. exec_prefix="$acl_save_exec_prefix"
  2451. prefix="$acl_save_prefix"
  2452. ])
  2453. dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
  2454. dnl the basename of the libdir, either "lib" or "lib64".
  2455. AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
  2456. [
  2457. dnl There is no formal standard regarding lib and lib64. The current
  2458. dnl practice is that on a system supporting 32-bit and 64-bit instruction
  2459. dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
  2460. dnl libraries go under $prefix/lib. We determine the compiler's default
  2461. dnl mode by looking at the compiler's library search path. If at least
  2462. dnl of its elements ends in /lib64 or points to a directory whose absolute
  2463. dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
  2464. dnl default, namely "lib".
  2465. acl_libdirstem=lib
  2466. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  2467. if test -n "$searchpath"; then
  2468. acl_save_IFS="${IFS= }"; IFS=":"
  2469. for searchdir in $searchpath; do
  2470. if test -d "$searchdir"; then
  2471. case "$searchdir" in
  2472. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  2473. *) searchdir=`cd "$searchdir" && pwd`
  2474. case "$searchdir" in
  2475. */lib64 ) acl_libdirstem=lib64 ;;
  2476. esac ;;
  2477. esac
  2478. fi
  2479. done
  2480. IFS="$acl_save_IFS"
  2481. fi
  2482. ])
  2483. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  2484. #
  2485. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  2486. # 2006, 2007, 2008 Free Software Foundation, Inc.
  2487. # Written by Gordon Matzigkeit, 1996
  2488. #
  2489. # This file is free software; the Free Software Foundation gives
  2490. # unlimited permission to copy and/or distribute it, with or without
  2491. # modifications, as long as this notice is preserved.
  2492. m4_define([_LT_COPYING], [dnl
  2493. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  2494. # 2006, 2007, 2008 Free Software Foundation, Inc.
  2495. # Written by Gordon Matzigkeit, 1996
  2496. #
  2497. # This file is part of GNU Libtool.
  2498. #
  2499. # GNU Libtool is free software; you can redistribute it and/or
  2500. # modify it under the terms of the GNU General Public License as
  2501. # published by the Free Software Foundation; either version 2 of
  2502. # the License, or (at your option) any later version.
  2503. #
  2504. # As a special exception to the GNU General Public License,
  2505. # if you distribute this file as part of a program or library that
  2506. # is built using GNU Libtool, you may include this file under the
  2507. # same distribution terms that you use for the rest of that program.
  2508. #
  2509. # GNU Libtool is distributed in the hope that it will be useful,
  2510. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  2511. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  2512. # GNU General Public License for more details.
  2513. #
  2514. # You should have received a copy of the GNU General Public License
  2515. # along with GNU Libtool; see the file COPYING. If not, a copy
  2516. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  2517. # obtained by writing to the Free Software Foundation, Inc.,
  2518. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  2519. ])
  2520. # serial 56 LT_INIT
  2521. # LT_PREREQ(VERSION)
  2522. # ------------------
  2523. # Complain and exit if this libtool version is less that VERSION.
  2524. m4_defun([LT_PREREQ],
  2525. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  2526. [m4_default([$3],
  2527. [m4_fatal([Libtool version $1 or higher is required],
  2528. 63)])],
  2529. [$2])])
  2530. # _LT_CHECK_BUILDDIR
  2531. # ------------------
  2532. # Complain if the absolute build directory name contains unusual characters
  2533. m4_defun([_LT_CHECK_BUILDDIR],
  2534. [case `pwd` in
  2535. *\ * | *\ *)
  2536. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  2537. esac
  2538. ])
  2539. # LT_INIT([OPTIONS])
  2540. # ------------------
  2541. AC_DEFUN([LT_INIT],
  2542. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  2543. AC_BEFORE([$0], [LT_LANG])dnl
  2544. AC_BEFORE([$0], [LT_OUTPUT])dnl
  2545. AC_BEFORE([$0], [LTDL_INIT])dnl
  2546. m4_require([_LT_CHECK_BUILDDIR])dnl
  2547. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  2548. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  2549. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  2550. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  2551. dnl unless we require an AC_DEFUNed macro:
  2552. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  2553. AC_REQUIRE([LTSUGAR_VERSION])dnl
  2554. AC_REQUIRE([LTVERSION_VERSION])dnl
  2555. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  2556. m4_require([_LT_PROG_LTMAIN])dnl
  2557. dnl Parse OPTIONS
  2558. _LT_SET_OPTIONS([$0], [$1])
  2559. # This can be used to rebuild libtool when needed
  2560. LIBTOOL_DEPS="$ltmain"
  2561. # Always use our own libtool.
  2562. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  2563. AC_SUBST(LIBTOOL)dnl
  2564. _LT_SETUP
  2565. # Only expand once:
  2566. m4_define([LT_INIT])
  2567. ])# LT_INIT
  2568. # Old names:
  2569. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  2570. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  2571. dnl aclocal-1.4 backwards compatibility:
  2572. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  2573. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  2574. # _LT_CC_BASENAME(CC)
  2575. # -------------------
  2576. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  2577. m4_defun([_LT_CC_BASENAME],
  2578. [for cc_temp in $1""; do
  2579. case $cc_temp in
  2580. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  2581. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  2582. \-*) ;;
  2583. *) break;;
  2584. esac
  2585. done
  2586. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  2587. ])
  2588. # _LT_FILEUTILS_DEFAULTS
  2589. # ----------------------
  2590. # It is okay to use these file commands and assume they have been set
  2591. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  2592. m4_defun([_LT_FILEUTILS_DEFAULTS],
  2593. [: ${CP="cp -f"}
  2594. : ${MV="mv -f"}
  2595. : ${RM="rm -f"}
  2596. ])# _LT_FILEUTILS_DEFAULTS
  2597. # _LT_SETUP
  2598. # ---------
  2599. m4_defun([_LT_SETUP],
  2600. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2601. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2602. _LT_DECL([], [host_alias], [0], [The host system])dnl
  2603. _LT_DECL([], [host], [0])dnl
  2604. _LT_DECL([], [host_os], [0])dnl
  2605. dnl
  2606. _LT_DECL([], [build_alias], [0], [The build system])dnl
  2607. _LT_DECL([], [build], [0])dnl
  2608. _LT_DECL([], [build_os], [0])dnl
  2609. dnl
  2610. AC_REQUIRE([AC_PROG_CC])dnl
  2611. AC_REQUIRE([LT_PATH_LD])dnl
  2612. AC_REQUIRE([LT_PATH_NM])dnl
  2613. dnl
  2614. AC_REQUIRE([AC_PROG_LN_S])dnl
  2615. test -z "$LN_S" && LN_S="ln -s"
  2616. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  2617. dnl
  2618. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  2619. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  2620. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  2621. dnl
  2622. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2623. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  2624. m4_require([_LT_CMD_RELOAD])dnl
  2625. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  2626. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  2627. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  2628. _LT_CONFIG_LIBTOOL_INIT([
  2629. # See if we are running on zsh, and set the options which allow our
  2630. # commands through without removal of \ escapes INIT.
  2631. if test -n "\${ZSH_VERSION+set}" ; then
  2632. setopt NO_GLOB_SUBST
  2633. fi
  2634. ])
  2635. if test -n "${ZSH_VERSION+set}" ; then
  2636. setopt NO_GLOB_SUBST
  2637. fi
  2638. _LT_CHECK_OBJDIR
  2639. m4_require([_LT_TAG_COMPILER])dnl
  2640. _LT_PROG_ECHO_BACKSLASH
  2641. case $host_os in
  2642. aix3*)
  2643. # AIX sometimes has problems with the GCC collect2 program. For some
  2644. # reason, if we set the COLLECT_NAMES environment variable, the problems
  2645. # vanish in a puff of smoke.
  2646. if test "X${COLLECT_NAMES+set}" != Xset; then
  2647. COLLECT_NAMES=
  2648. export COLLECT_NAMES
  2649. fi
  2650. ;;
  2651. esac
  2652. # Sed substitution that helps us do robust quoting. It backslashifies
  2653. # metacharacters that are still active within double-quoted strings.
  2654. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  2655. # Same as above, but do not quote variable references.
  2656. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  2657. # Sed substitution to delay expansion of an escaped shell variable in a
  2658. # double_quote_subst'ed string.
  2659. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2660. # Sed substitution to delay expansion of an escaped single quote.
  2661. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2662. # Sed substitution to avoid accidental globbing in evaled expressions
  2663. no_glob_subst='s/\*/\\\*/g'
  2664. # Global variables:
  2665. ofile=libtool
  2666. can_build_shared=yes
  2667. # All known linkers require a `.a' archive for static linking (except MSVC,
  2668. # which needs '.lib').
  2669. libext=a
  2670. with_gnu_ld="$lt_cv_prog_gnu_ld"
  2671. old_CC="$CC"
  2672. old_CFLAGS="$CFLAGS"
  2673. # Set sane defaults for various variables
  2674. test -z "$CC" && CC=cc
  2675. test -z "$LTCC" && LTCC=$CC
  2676. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  2677. test -z "$LD" && LD=ld
  2678. test -z "$ac_objext" && ac_objext=o
  2679. _LT_CC_BASENAME([$compiler])
  2680. # Only perform the check for file, if the check method requires it
  2681. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  2682. case $deplibs_check_method in
  2683. file_magic*)
  2684. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  2685. _LT_PATH_MAGIC
  2686. fi
  2687. ;;
  2688. esac
  2689. # Use C for the default configuration in the libtool script
  2690. LT_SUPPORTED_TAG([CC])
  2691. _LT_LANG_C_CONFIG
  2692. _LT_LANG_DEFAULT_CONFIG
  2693. _LT_CONFIG_COMMANDS
  2694. ])# _LT_SETUP
  2695. # _LT_PROG_LTMAIN
  2696. # ---------------
  2697. # Note that this code is called both from `configure', and `config.status'
  2698. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  2699. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  2700. # so we pass a copy along to make sure it has a sensible value anyway.
  2701. m4_defun([_LT_PROG_LTMAIN],
  2702. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  2703. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  2704. ltmain="$ac_aux_dir/ltmain.sh"
  2705. ])# _LT_PROG_LTMAIN
  2706. # So that we can recreate a full libtool script including additional
  2707. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  2708. # in macros and then make a single call at the end using the `libtool'
  2709. # label.
  2710. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  2711. # ----------------------------------------
  2712. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2713. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  2714. [m4_ifval([$1],
  2715. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  2716. [$1
  2717. ])])])
  2718. # Initialize.
  2719. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  2720. # _LT_CONFIG_LIBTOOL([COMMANDS])
  2721. # ------------------------------
  2722. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2723. m4_define([_LT_CONFIG_LIBTOOL],
  2724. [m4_ifval([$1],
  2725. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  2726. [$1
  2727. ])])])
  2728. # Initialize.
  2729. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  2730. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  2731. # -----------------------------------------------------
  2732. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  2733. [_LT_CONFIG_LIBTOOL([$1])
  2734. _LT_CONFIG_LIBTOOL_INIT([$2])
  2735. ])
  2736. # _LT_FORMAT_COMMENT([COMMENT])
  2737. # -----------------------------
  2738. # Add leading comment marks to the start of each line, and a trailing
  2739. # full-stop to the whole comment if one is not present already.
  2740. m4_define([_LT_FORMAT_COMMENT],
  2741. [m4_ifval([$1], [
  2742. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  2743. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  2744. )])
  2745. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  2746. # -------------------------------------------------------------------
  2747. # CONFIGNAME is the name given to the value in the libtool script.
  2748. # VARNAME is the (base) name used in the configure script.
  2749. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  2750. # VARNAME. Any other value will be used directly.
  2751. m4_define([_LT_DECL],
  2752. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  2753. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  2754. [m4_ifval([$1], [$1], [$2])])
  2755. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  2756. m4_ifval([$4],
  2757. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  2758. lt_dict_add_subkey([lt_decl_dict], [$2],
  2759. [tagged?], [m4_ifval([$5], [yes], [no])])])
  2760. ])
  2761. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  2762. # --------------------------------------------------------
  2763. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  2764. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  2765. # ------------------------------------------------
  2766. m4_define([lt_decl_tag_varnames],
  2767. [_lt_decl_filter([tagged?], [yes], $@)])
  2768. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  2769. # ---------------------------------------------------------
  2770. m4_define([_lt_decl_filter],
  2771. [m4_case([$#],
  2772. [0], [m4_fatal([$0: too few arguments: $#])],
  2773. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  2774. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  2775. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  2776. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  2777. ])
  2778. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  2779. # --------------------------------------------------
  2780. m4_define([lt_decl_quote_varnames],
  2781. [_lt_decl_filter([value], [1], $@)])
  2782. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  2783. # ---------------------------------------------------
  2784. m4_define([lt_decl_dquote_varnames],
  2785. [_lt_decl_filter([value], [2], $@)])
  2786. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  2787. # ---------------------------------------------------
  2788. m4_define([lt_decl_varnames_tagged],
  2789. [m4_assert([$# <= 2])dnl
  2790. _$0(m4_quote(m4_default([$1], [[, ]])),
  2791. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  2792. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  2793. m4_define([_lt_decl_varnames_tagged],
  2794. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  2795. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  2796. # ------------------------------------------------
  2797. m4_define([lt_decl_all_varnames],
  2798. [_$0(m4_quote(m4_default([$1], [[, ]])),
  2799. m4_if([$2], [],
  2800. m4_quote(lt_decl_varnames),
  2801. m4_quote(m4_shift($@))))[]dnl
  2802. ])
  2803. m4_define([_lt_decl_all_varnames],
  2804. [lt_join($@, lt_decl_varnames_tagged([$1],
  2805. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  2806. ])
  2807. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  2808. # ------------------------------------
  2809. # Quote a variable value, and forward it to `config.status' so that its
  2810. # declaration there will have the same value as in `configure'. VARNAME
  2811. # must have a single quote delimited value for this to work.
  2812. m4_define([_LT_CONFIG_STATUS_DECLARE],
  2813. [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  2814. # _LT_CONFIG_STATUS_DECLARATIONS
  2815. # ------------------------------
  2816. # We delimit libtool config variables with single quotes, so when
  2817. # we write them to config.status, we have to be sure to quote all
  2818. # embedded single quotes properly. In configure, this macro expands
  2819. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  2820. #
  2821. # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  2822. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  2823. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  2824. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  2825. # _LT_LIBTOOL_TAGS
  2826. # ----------------
  2827. # Output comment and list of tags supported by the script
  2828. m4_defun([_LT_LIBTOOL_TAGS],
  2829. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  2830. available_tags="_LT_TAGS"dnl
  2831. ])
  2832. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  2833. # -----------------------------------
  2834. # Extract the dictionary values for VARNAME (optionally with TAG) and
  2835. # expand to a commented shell variable setting:
  2836. #
  2837. # # Some comment about what VAR is for.
  2838. # visible_name=$lt_internal_name
  2839. m4_define([_LT_LIBTOOL_DECLARE],
  2840. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  2841. [description])))[]dnl
  2842. m4_pushdef([_libtool_name],
  2843. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  2844. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  2845. [0], [_libtool_name=[$]$1],
  2846. [1], [_libtool_name=$lt_[]$1],
  2847. [2], [_libtool_name=$lt_[]$1],
  2848. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  2849. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  2850. ])
  2851. # _LT_LIBTOOL_CONFIG_VARS
  2852. # -----------------------
  2853. # Produce commented declarations of non-tagged libtool config variables
  2854. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  2855. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  2856. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  2857. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  2858. [m4_foreach([_lt_var],
  2859. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  2860. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  2861. # _LT_LIBTOOL_TAG_VARS(TAG)
  2862. # -------------------------
  2863. m4_define([_LT_LIBTOOL_TAG_VARS],
  2864. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  2865. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  2866. # _LT_TAGVAR(VARNAME, [TAGNAME])
  2867. # ------------------------------
  2868. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  2869. # _LT_CONFIG_COMMANDS
  2870. # -------------------
  2871. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  2872. # variables for single and double quote escaping we saved from calls
  2873. # to _LT_DECL, we can put quote escaped variables declarations
  2874. # into `config.status', and then the shell code to quote escape them in
  2875. # for loops in `config.status'. Finally, any additional code accumulated
  2876. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  2877. m4_defun([_LT_CONFIG_COMMANDS],
  2878. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  2879. dnl If the libtool generation code has been placed in $CONFIG_LT,
  2880. dnl instead of duplicating it all over again into config.status,
  2881. dnl then we will have config.status run $CONFIG_LT later, so it
  2882. dnl needs to know what name is stored there:
  2883. [AC_CONFIG_COMMANDS([libtool],
  2884. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  2885. dnl If the libtool generation code is destined for config.status,
  2886. dnl expand the accumulated commands and init code now:
  2887. [AC_CONFIG_COMMANDS([libtool],
  2888. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  2889. ])#_LT_CONFIG_COMMANDS
  2890. # Initialize.
  2891. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  2892. [
  2893. # The HP-UX ksh and POSIX shell print the target directory to stdout
  2894. # if CDPATH is set.
  2895. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2896. sed_quote_subst='$sed_quote_subst'
  2897. double_quote_subst='$double_quote_subst'
  2898. delay_variable_subst='$delay_variable_subst'
  2899. _LT_CONFIG_STATUS_DECLARATIONS
  2900. LTCC='$LTCC'
  2901. LTCFLAGS='$LTCFLAGS'
  2902. compiler='$compiler_DEFAULT'
  2903. # Quote evaled strings.
  2904. for var in lt_decl_all_varnames([[ \
  2905. ]], lt_decl_quote_varnames); do
  2906. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  2907. *[[\\\\\\\`\\"\\\$]]*)
  2908. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  2909. ;;
  2910. *)
  2911. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  2912. ;;
  2913. esac
  2914. done
  2915. # Double-quote double-evaled strings.
  2916. for var in lt_decl_all_varnames([[ \
  2917. ]], lt_decl_dquote_varnames); do
  2918. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  2919. *[[\\\\\\\`\\"\\\$]]*)
  2920. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  2921. ;;
  2922. *)
  2923. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  2924. ;;
  2925. esac
  2926. done
  2927. # Fix-up fallback echo if it was mangled by the above quoting rules.
  2928. case \$lt_ECHO in
  2929. *'\\\[$]0 --fallback-echo"')dnl "
  2930. lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  2931. ;;
  2932. esac
  2933. _LT_OUTPUT_LIBTOOL_INIT
  2934. ])
  2935. # LT_OUTPUT
  2936. # ---------
  2937. # This macro allows early generation of the libtool script (before
  2938. # AC_OUTPUT is called), incase it is used in configure for compilation
  2939. # tests.
  2940. AC_DEFUN([LT_OUTPUT],
  2941. [: ${CONFIG_LT=./config.lt}
  2942. AC_MSG_NOTICE([creating $CONFIG_LT])
  2943. cat >"$CONFIG_LT" <<_LTEOF
  2944. #! $SHELL
  2945. # Generated by $as_me.
  2946. # Run this file to recreate a libtool stub with the current configuration.
  2947. lt_cl_silent=false
  2948. SHELL=\${CONFIG_SHELL-$SHELL}
  2949. _LTEOF
  2950. cat >>"$CONFIG_LT" <<\_LTEOF
  2951. AS_SHELL_SANITIZE
  2952. _AS_PREPARE
  2953. exec AS_MESSAGE_FD>&1
  2954. exec AS_MESSAGE_LOG_FD>>config.log
  2955. {
  2956. echo
  2957. AS_BOX([Running $as_me.])
  2958. } >&AS_MESSAGE_LOG_FD
  2959. lt_cl_help="\
  2960. \`$as_me' creates a local libtool stub from the current configuration,
  2961. for use in further configure time tests before the real libtool is
  2962. generated.
  2963. Usage: $[0] [[OPTIONS]]
  2964. -h, --help print this help, then exit
  2965. -V, --version print version number, then exit
  2966. -q, --quiet do not print progress messages
  2967. -d, --debug don't remove temporary files
  2968. Report bugs to <bug-libtool@gnu.org>."
  2969. lt_cl_version="\
  2970. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  2971. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  2972. configured by $[0], generated by m4_PACKAGE_STRING.
  2973. Copyright (C) 2008 Free Software Foundation, Inc.
  2974. This config.lt script is free software; the Free Software Foundation
  2975. gives unlimited permision to copy, distribute and modify it."
  2976. while test $[#] != 0
  2977. do
  2978. case $[1] in
  2979. --version | --v* | -V )
  2980. echo "$lt_cl_version"; exit 0 ;;
  2981. --help | --h* | -h )
  2982. echo "$lt_cl_help"; exit 0 ;;
  2983. --debug | --d* | -d )
  2984. debug=: ;;
  2985. --quiet | --q* | --silent | --s* | -q )
  2986. lt_cl_silent=: ;;
  2987. -*) AC_MSG_ERROR([unrecognized option: $[1]
  2988. Try \`$[0] --help' for more information.]) ;;
  2989. *) AC_MSG_ERROR([unrecognized argument: $[1]
  2990. Try \`$[0] --help' for more information.]) ;;
  2991. esac
  2992. shift
  2993. done
  2994. if $lt_cl_silent; then
  2995. exec AS_MESSAGE_FD>/dev/null
  2996. fi
  2997. _LTEOF
  2998. cat >>"$CONFIG_LT" <<_LTEOF
  2999. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  3000. _LTEOF
  3001. cat >>"$CONFIG_LT" <<\_LTEOF
  3002. AC_MSG_NOTICE([creating $ofile])
  3003. _LT_OUTPUT_LIBTOOL_COMMANDS
  3004. AS_EXIT(0)
  3005. _LTEOF
  3006. chmod +x "$CONFIG_LT"
  3007. # configure is writing to config.log, but config.lt does its own redirection,
  3008. # appending to config.log, which fails on DOS, as config.log is still kept
  3009. # open by configure. Here we exec the FD to /dev/null, effectively closing
  3010. # config.log, so it can be properly (re)opened and appended to by config.lt.
  3011. if test "$no_create" != yes; then
  3012. lt_cl_success=:
  3013. test "$silent" = yes &&
  3014. lt_config_lt_args="$lt_config_lt_args --quiet"
  3015. exec AS_MESSAGE_LOG_FD>/dev/null
  3016. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  3017. exec AS_MESSAGE_LOG_FD>>config.log
  3018. $lt_cl_success || AS_EXIT(1)
  3019. fi
  3020. ])# LT_OUTPUT
  3021. # _LT_CONFIG(TAG)
  3022. # ---------------
  3023. # If TAG is the built-in tag, create an initial libtool script with a
  3024. # default configuration from the untagged config vars. Otherwise add code
  3025. # to config.status for appending the configuration named by TAG from the
  3026. # matching tagged config vars.
  3027. m4_defun([_LT_CONFIG],
  3028. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3029. _LT_CONFIG_SAVE_COMMANDS([
  3030. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  3031. m4_if(_LT_TAG, [C], [
  3032. # See if we are running on zsh, and set the options which allow our
  3033. # commands through without removal of \ escapes.
  3034. if test -n "${ZSH_VERSION+set}" ; then
  3035. setopt NO_GLOB_SUBST
  3036. fi
  3037. cfgfile="${ofile}T"
  3038. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  3039. $RM "$cfgfile"
  3040. cat <<_LT_EOF >> "$cfgfile"
  3041. #! $SHELL
  3042. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  3043. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  3044. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3045. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  3046. #
  3047. _LT_COPYING
  3048. _LT_LIBTOOL_TAGS
  3049. # ### BEGIN LIBTOOL CONFIG
  3050. _LT_LIBTOOL_CONFIG_VARS
  3051. _LT_LIBTOOL_TAG_VARS
  3052. # ### END LIBTOOL CONFIG
  3053. _LT_EOF
  3054. case $host_os in
  3055. aix3*)
  3056. cat <<\_LT_EOF >> "$cfgfile"
  3057. # AIX sometimes has problems with the GCC collect2 program. For some
  3058. # reason, if we set the COLLECT_NAMES environment variable, the problems
  3059. # vanish in a puff of smoke.
  3060. if test "X${COLLECT_NAMES+set}" != Xset; then
  3061. COLLECT_NAMES=
  3062. export COLLECT_NAMES
  3063. fi
  3064. _LT_EOF
  3065. ;;
  3066. esac
  3067. _LT_PROG_LTMAIN
  3068. # We use sed instead of cat because bash on DJGPP gets confused if
  3069. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  3070. # text mode, it properly converts lines to CR/LF. This bash problem
  3071. # is reportedly fixed, but why not run on old versions too?
  3072. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  3073. || (rm -f "$cfgfile"; exit 1)
  3074. _LT_PROG_XSI_SHELLFNS
  3075. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  3076. || (rm -f "$cfgfile"; exit 1)
  3077. mv -f "$cfgfile" "$ofile" ||
  3078. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  3079. chmod +x "$ofile"
  3080. ],
  3081. [cat <<_LT_EOF >> "$ofile"
  3082. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  3083. dnl in a comment (ie after a #).
  3084. # ### BEGIN LIBTOOL TAG CONFIG: $1
  3085. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  3086. # ### END LIBTOOL TAG CONFIG: $1
  3087. _LT_EOF
  3088. ])dnl /m4_if
  3089. ],
  3090. [m4_if([$1], [], [
  3091. PACKAGE='$PACKAGE'
  3092. VERSION='$VERSION'
  3093. TIMESTAMP='$TIMESTAMP'
  3094. RM='$RM'
  3095. ofile='$ofile'], [])
  3096. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  3097. ])# _LT_CONFIG
  3098. # LT_SUPPORTED_TAG(TAG)
  3099. # ---------------------
  3100. # Trace this macro to discover what tags are supported by the libtool
  3101. # --tag option, using:
  3102. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  3103. AC_DEFUN([LT_SUPPORTED_TAG], [])
  3104. # C support is built-in for now
  3105. m4_define([_LT_LANG_C_enabled], [])
  3106. m4_define([_LT_TAGS], [])
  3107. # LT_LANG(LANG)
  3108. # -------------
  3109. # Enable libtool support for the given language if not already enabled.
  3110. AC_DEFUN([LT_LANG],
  3111. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  3112. m4_case([$1],
  3113. [C], [_LT_LANG(C)],
  3114. [C++], [_LT_LANG(CXX)],
  3115. [Java], [_LT_LANG(GCJ)],
  3116. [Fortran 77], [_LT_LANG(F77)],
  3117. [Fortran], [_LT_LANG(FC)],
  3118. [Windows Resource], [_LT_LANG(RC)],
  3119. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  3120. [_LT_LANG($1)],
  3121. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  3122. ])# LT_LANG
  3123. # _LT_LANG(LANGNAME)
  3124. # ------------------
  3125. m4_defun([_LT_LANG],
  3126. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  3127. [LT_SUPPORTED_TAG([$1])dnl
  3128. m4_append([_LT_TAGS], [$1 ])dnl
  3129. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  3130. _LT_LANG_$1_CONFIG($1)])dnl
  3131. ])# _LT_LANG
  3132. # _LT_LANG_DEFAULT_CONFIG
  3133. # -----------------------
  3134. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  3135. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  3136. [LT_LANG(CXX)],
  3137. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  3138. AC_PROVIDE_IFELSE([AC_PROG_F77],
  3139. [LT_LANG(F77)],
  3140. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  3141. AC_PROVIDE_IFELSE([AC_PROG_FC],
  3142. [LT_LANG(FC)],
  3143. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  3144. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  3145. dnl pulling things in needlessly.
  3146. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  3147. [LT_LANG(GCJ)],
  3148. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  3149. [LT_LANG(GCJ)],
  3150. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  3151. [LT_LANG(GCJ)],
  3152. [m4_ifdef([AC_PROG_GCJ],
  3153. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  3154. m4_ifdef([A][M_PROG_GCJ],
  3155. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  3156. m4_ifdef([LT_PROG_GCJ],
  3157. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  3158. AC_PROVIDE_IFELSE([LT_PROG_RC],
  3159. [LT_LANG(RC)],
  3160. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  3161. ])# _LT_LANG_DEFAULT_CONFIG
  3162. # Obsolete macros:
  3163. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  3164. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  3165. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  3166. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  3167. dnl aclocal-1.4 backwards compatibility:
  3168. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  3169. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  3170. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  3171. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  3172. # _LT_TAG_COMPILER
  3173. # ----------------
  3174. m4_defun([_LT_TAG_COMPILER],
  3175. [AC_REQUIRE([AC_PROG_CC])dnl
  3176. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  3177. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  3178. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  3179. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  3180. # If no C compiler was specified, use CC.
  3181. LTCC=${LTCC-"$CC"}
  3182. # If no C compiler flags were specified, use CFLAGS.
  3183. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3184. # Allow CC to be a program name with arguments.
  3185. compiler=$CC
  3186. ])# _LT_TAG_COMPILER
  3187. # _LT_COMPILER_BOILERPLATE
  3188. # ------------------------
  3189. # Check for compiler boilerplate output or warnings with
  3190. # the simple compiler test code.
  3191. m4_defun([_LT_COMPILER_BOILERPLATE],
  3192. [m4_require([_LT_DECL_SED])dnl
  3193. ac_outfile=conftest.$ac_objext
  3194. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  3195. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  3196. _lt_compiler_boilerplate=`cat conftest.err`
  3197. $RM conftest*
  3198. ])# _LT_COMPILER_BOILERPLATE
  3199. # _LT_LINKER_BOILERPLATE
  3200. # ----------------------
  3201. # Check for linker boilerplate output or warnings with
  3202. # the simple link test code.
  3203. m4_defun([_LT_LINKER_BOILERPLATE],
  3204. [m4_require([_LT_DECL_SED])dnl
  3205. ac_outfile=conftest.$ac_objext
  3206. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  3207. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  3208. _lt_linker_boilerplate=`cat conftest.err`
  3209. $RM -r conftest*
  3210. ])# _LT_LINKER_BOILERPLATE
  3211. # _LT_REQUIRED_DARWIN_CHECKS
  3212. # -------------------------
  3213. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  3214. case $host_os in
  3215. rhapsody* | darwin*)
  3216. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  3217. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  3218. AC_CHECK_TOOL([LIPO], [lipo], [:])
  3219. AC_CHECK_TOOL([OTOOL], [otool], [:])
  3220. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  3221. _LT_DECL([], [DSYMUTIL], [1],
  3222. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  3223. _LT_DECL([], [NMEDIT], [1],
  3224. [Tool to change global to local symbols on Mac OS X])
  3225. _LT_DECL([], [LIPO], [1],
  3226. [Tool to manipulate fat objects and archives on Mac OS X])
  3227. _LT_DECL([], [OTOOL], [1],
  3228. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  3229. _LT_DECL([], [OTOOL64], [1],
  3230. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  3231. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  3232. [lt_cv_apple_cc_single_mod=no
  3233. if test -z "${LT_MULTI_MODULE}"; then
  3234. # By default we will add the -single_module flag. You can override
  3235. # by either setting the environment variable LT_MULTI_MODULE
  3236. # non-empty at configure time, or by adding -multi_module to the
  3237. # link flags.
  3238. rm -rf libconftest.dylib*
  3239. echo "int foo(void){return 1;}" > conftest.c
  3240. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  3241. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  3242. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  3243. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  3244. _lt_result=$?
  3245. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  3246. lt_cv_apple_cc_single_mod=yes
  3247. else
  3248. cat conftest.err >&AS_MESSAGE_LOG_FD
  3249. fi
  3250. rm -rf libconftest.dylib*
  3251. rm -f conftest.*
  3252. fi])
  3253. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  3254. [lt_cv_ld_exported_symbols_list],
  3255. [lt_cv_ld_exported_symbols_list=no
  3256. save_LDFLAGS=$LDFLAGS
  3257. echo "_main" > conftest.sym
  3258. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  3259. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  3260. [lt_cv_ld_exported_symbols_list=yes],
  3261. [lt_cv_ld_exported_symbols_list=no])
  3262. LDFLAGS="$save_LDFLAGS"
  3263. ])
  3264. case $host_os in
  3265. rhapsody* | darwin1.[[012]])
  3266. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  3267. darwin1.*)
  3268. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  3269. darwin*) # darwin 5.x on
  3270. # if running on 10.5 or later, the deployment target defaults
  3271. # to the OS version, if on x86, and 10.4, the deployment
  3272. # target defaults to 10.4. Don't you love it?
  3273. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  3274. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  3275. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  3276. 10.[[012]]*)
  3277. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  3278. 10.*)
  3279. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  3280. esac
  3281. ;;
  3282. esac
  3283. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  3284. _lt_dar_single_mod='$single_module'
  3285. fi
  3286. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  3287. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  3288. else
  3289. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3290. fi
  3291. if test "$DSYMUTIL" != ":"; then
  3292. _lt_dsymutil='~$DSYMUTIL $lib || :'
  3293. else
  3294. _lt_dsymutil=
  3295. fi
  3296. ;;
  3297. esac
  3298. ])
  3299. # _LT_DARWIN_LINKER_FEATURES
  3300. # --------------------------
  3301. # Checks for linker and compiler features on darwin
  3302. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  3303. [
  3304. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  3305. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  3306. _LT_TAGVAR(hardcode_direct, $1)=no
  3307. _LT_TAGVAR(hardcode_automatic, $1)=yes
  3308. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3309. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  3310. _LT_TAGVAR(link_all_deplibs, $1)=yes
  3311. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  3312. case $cc_basename in
  3313. ifort*) _lt_dar_can_shared=yes ;;
  3314. *) _lt_dar_can_shared=$GCC ;;
  3315. esac
  3316. if test "$_lt_dar_can_shared" = "yes"; then
  3317. output_verbose_link_cmd=echo
  3318. _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}"
  3319. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  3320. _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}"
  3321. _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}"
  3322. m4_if([$1], [CXX],
  3323. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  3324. _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}"
  3325. _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}"
  3326. fi
  3327. ],[])
  3328. else
  3329. _LT_TAGVAR(ld_shlibs, $1)=no
  3330. fi
  3331. ])
  3332. # _LT_SYS_MODULE_PATH_AIX
  3333. # -----------------------
  3334. # Links a minimal program and checks the executable
  3335. # for the system default hardcoded library path. In most cases,
  3336. # this is /usr/lib:/lib, but when the MPI compilers are used
  3337. # the location of the communication and MPI libs are included too.
  3338. # If we don't find anything, use the default library path according
  3339. # to the aix ld manual.
  3340. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  3341. [m4_require([_LT_DECL_SED])dnl
  3342. AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  3343. lt_aix_libpath_sed='
  3344. /Import File Strings/,/^$/ {
  3345. /^0/ {
  3346. s/^0 *\(.*\)$/\1/
  3347. p
  3348. }
  3349. }'
  3350. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  3351. # Check for a 64-bit object if we didn't find anything.
  3352. if test -z "$aix_libpath"; then
  3353. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  3354. fi],[])
  3355. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  3356. ])# _LT_SYS_MODULE_PATH_AIX
  3357. # _LT_SHELL_INIT(ARG)
  3358. # -------------------
  3359. m4_define([_LT_SHELL_INIT],
  3360. [ifdef([AC_DIVERSION_NOTICE],
  3361. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  3362. [AC_DIVERT_PUSH(NOTICE)])
  3363. $1
  3364. AC_DIVERT_POP
  3365. ])# _LT_SHELL_INIT
  3366. # _LT_PROG_ECHO_BACKSLASH
  3367. # -----------------------
  3368. # Add some code to the start of the generated configure script which
  3369. # will find an echo command which doesn't interpret backslashes.
  3370. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  3371. [_LT_SHELL_INIT([
  3372. # Check that we are running under the correct shell.
  3373. SHELL=${CONFIG_SHELL-/bin/sh}
  3374. case X$lt_ECHO in
  3375. X*--fallback-echo)
  3376. # Remove one level of quotation (which was required for Make).
  3377. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  3378. ;;
  3379. esac
  3380. ECHO=${lt_ECHO-echo}
  3381. if test "X[$]1" = X--no-reexec; then
  3382. # Discard the --no-reexec flag, and continue.
  3383. shift
  3384. elif test "X[$]1" = X--fallback-echo; then
  3385. # Avoid inline document here, it may be left over
  3386. :
  3387. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  3388. # Yippee, $ECHO works!
  3389. :
  3390. else
  3391. # Restart under the correct shell.
  3392. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  3393. fi
  3394. if test "X[$]1" = X--fallback-echo; then
  3395. # used as fallback echo
  3396. shift
  3397. cat <<_LT_EOF
  3398. [$]*
  3399. _LT_EOF
  3400. exit 0
  3401. fi
  3402. # The HP-UX ksh and POSIX shell print the target directory to stdout
  3403. # if CDPATH is set.
  3404. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  3405. if test -z "$lt_ECHO"; then
  3406. if test "X${echo_test_string+set}" != Xset; then
  3407. # find a string as large as possible, as long as the shell can cope with it
  3408. for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  3409. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  3410. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  3411. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  3412. then
  3413. break
  3414. fi
  3415. done
  3416. fi
  3417. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  3418. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  3419. test "X$echo_testing_string" = "X$echo_test_string"; then
  3420. :
  3421. else
  3422. # The Solaris, AIX, and Digital Unix default echo programs unquote
  3423. # backslashes. This makes it impossible to quote backslashes using
  3424. # echo "$something" | sed 's/\\/\\\\/g'
  3425. #
  3426. # So, first we look for a working echo in the user's PATH.
  3427. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3428. for dir in $PATH /usr/ucb; do
  3429. IFS="$lt_save_ifs"
  3430. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  3431. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  3432. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  3433. test "X$echo_testing_string" = "X$echo_test_string"; then
  3434. ECHO="$dir/echo"
  3435. break
  3436. fi
  3437. done
  3438. IFS="$lt_save_ifs"
  3439. if test "X$ECHO" = Xecho; then
  3440. # We didn't find a better echo, so look for alternatives.
  3441. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  3442. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  3443. test "X$echo_testing_string" = "X$echo_test_string"; then
  3444. # This shell has a builtin print -r that does the trick.
  3445. ECHO='print -r'
  3446. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  3447. test "X$CONFIG_SHELL" != X/bin/ksh; then
  3448. # If we have ksh, try running configure again with it.
  3449. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  3450. export ORIGINAL_CONFIG_SHELL
  3451. CONFIG_SHELL=/bin/ksh
  3452. export CONFIG_SHELL
  3453. exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  3454. else
  3455. # Try using printf.
  3456. ECHO='printf %s\n'
  3457. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  3458. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  3459. test "X$echo_testing_string" = "X$echo_test_string"; then
  3460. # Cool, printf works
  3461. :
  3462. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  3463. test "X$echo_testing_string" = 'X\t' &&
  3464. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  3465. test "X$echo_testing_string" = "X$echo_test_string"; then
  3466. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  3467. export CONFIG_SHELL
  3468. SHELL="$CONFIG_SHELL"
  3469. export SHELL
  3470. ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  3471. elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  3472. test "X$echo_testing_string" = 'X\t' &&
  3473. echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  3474. test "X$echo_testing_string" = "X$echo_test_string"; then
  3475. ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  3476. else
  3477. # maybe with a smaller string...
  3478. prev=:
  3479. for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  3480. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  3481. then
  3482. break
  3483. fi
  3484. prev="$cmd"
  3485. done
  3486. if test "$prev" != 'sed 50q "[$]0"'; then
  3487. echo_test_string=`eval $prev`
  3488. export echo_test_string
  3489. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  3490. else
  3491. # Oops. We lost completely, so just stick with echo.
  3492. ECHO=echo
  3493. fi
  3494. fi
  3495. fi
  3496. fi
  3497. fi
  3498. fi
  3499. # Copy echo and quote the copy suitably for passing to libtool from
  3500. # the Makefile, instead of quoting the original, which is used later.
  3501. lt_ECHO=$ECHO
  3502. if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  3503. lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  3504. fi
  3505. AC_SUBST(lt_ECHO)
  3506. ])
  3507. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  3508. _LT_DECL([], [ECHO], [1],
  3509. [An echo program that does not interpret backslashes])
  3510. ])# _LT_PROG_ECHO_BACKSLASH
  3511. # _LT_ENABLE_LOCK
  3512. # ---------------
  3513. m4_defun([_LT_ENABLE_LOCK],
  3514. [AC_ARG_ENABLE([libtool-lock],
  3515. [AS_HELP_STRING([--disable-libtool-lock],
  3516. [avoid locking (might break parallel builds)])])
  3517. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3518. # Some flags need to be propagated to the compiler or linker for good
  3519. # libtool support.
  3520. case $host in
  3521. ia64-*-hpux*)
  3522. # Find out which ABI we are using.
  3523. echo 'int i;' > conftest.$ac_ext
  3524. if AC_TRY_EVAL(ac_compile); then
  3525. case `/usr/bin/file conftest.$ac_objext` in
  3526. *ELF-32*)
  3527. HPUX_IA64_MODE="32"
  3528. ;;
  3529. *ELF-64*)
  3530. HPUX_IA64_MODE="64"
  3531. ;;
  3532. esac
  3533. fi
  3534. rm -rf conftest*
  3535. ;;
  3536. *-*-irix6*)
  3537. # Find out which ABI we are using.
  3538. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  3539. if AC_TRY_EVAL(ac_compile); then
  3540. if test "$lt_cv_prog_gnu_ld" = yes; then
  3541. case `/usr/bin/file conftest.$ac_objext` in
  3542. *32-bit*)
  3543. LD="${LD-ld} -melf32bsmip"
  3544. ;;
  3545. *N32*)
  3546. LD="${LD-ld} -melf32bmipn32"
  3547. ;;
  3548. *64-bit*)
  3549. LD="${LD-ld} -melf64bmip"
  3550. ;;
  3551. esac
  3552. else
  3553. case `/usr/bin/file conftest.$ac_objext` in
  3554. *32-bit*)
  3555. LD="${LD-ld} -32"
  3556. ;;
  3557. *N32*)
  3558. LD="${LD-ld} -n32"
  3559. ;;
  3560. *64-bit*)
  3561. LD="${LD-ld} -64"
  3562. ;;
  3563. esac
  3564. fi
  3565. fi
  3566. rm -rf conftest*
  3567. ;;
  3568. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  3569. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  3570. # Find out which ABI we are using.
  3571. echo 'int i;' > conftest.$ac_ext
  3572. if AC_TRY_EVAL(ac_compile); then
  3573. case `/usr/bin/file conftest.o` in
  3574. *32-bit*)
  3575. case $host in
  3576. x86_64-*kfreebsd*-gnu)
  3577. LD="${LD-ld} -m elf_i386_fbsd"
  3578. ;;
  3579. x86_64-*linux*)
  3580. LD="${LD-ld} -m elf_i386"
  3581. ;;
  3582. ppc64-*linux*|powerpc64-*linux*)
  3583. LD="${LD-ld} -m elf32ppclinux"
  3584. ;;
  3585. s390x-*linux*)
  3586. LD="${LD-ld} -m elf_s390"
  3587. ;;
  3588. sparc64-*linux*)
  3589. LD="${LD-ld} -m elf32_sparc"
  3590. ;;
  3591. esac
  3592. ;;
  3593. *64-bit*)
  3594. case $host in
  3595. x86_64-*kfreebsd*-gnu)
  3596. LD="${LD-ld} -m elf_x86_64_fbsd"
  3597. ;;
  3598. x86_64-*linux*)
  3599. LD="${LD-ld} -m elf_x86_64"
  3600. ;;
  3601. ppc*-*linux*|powerpc*-*linux*)
  3602. LD="${LD-ld} -m elf64ppc"
  3603. ;;
  3604. s390*-*linux*|s390*-*tpf*)
  3605. LD="${LD-ld} -m elf64_s390"
  3606. ;;
  3607. sparc*-*linux*)
  3608. LD="${LD-ld} -m elf64_sparc"
  3609. ;;
  3610. esac
  3611. ;;
  3612. esac
  3613. fi
  3614. rm -rf conftest*
  3615. ;;
  3616. *-*-sco3.2v5*)
  3617. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3618. SAVE_CFLAGS="$CFLAGS"
  3619. CFLAGS="$CFLAGS -belf"
  3620. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  3621. [AC_LANG_PUSH(C)
  3622. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  3623. AC_LANG_POP])
  3624. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  3625. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  3626. CFLAGS="$SAVE_CFLAGS"
  3627. fi
  3628. ;;
  3629. sparc*-*solaris*)
  3630. # Find out which ABI we are using.
  3631. echo 'int i;' > conftest.$ac_ext
  3632. if AC_TRY_EVAL(ac_compile); then
  3633. case `/usr/bin/file conftest.o` in
  3634. *64-bit*)
  3635. case $lt_cv_prog_gnu_ld in
  3636. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  3637. *)
  3638. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  3639. LD="${LD-ld} -64"
  3640. fi
  3641. ;;
  3642. esac
  3643. ;;
  3644. esac
  3645. fi
  3646. rm -rf conftest*
  3647. ;;
  3648. esac
  3649. need_locks="$enable_libtool_lock"
  3650. ])# _LT_ENABLE_LOCK
  3651. # _LT_CMD_OLD_ARCHIVE
  3652. # -------------------
  3653. m4_defun([_LT_CMD_OLD_ARCHIVE],
  3654. [AC_CHECK_TOOL(AR, ar, false)
  3655. test -z "$AR" && AR=ar
  3656. test -z "$AR_FLAGS" && AR_FLAGS=cru
  3657. _LT_DECL([], [AR], [1], [The archiver])
  3658. _LT_DECL([], [AR_FLAGS], [1])
  3659. AC_CHECK_TOOL(STRIP, strip, :)
  3660. test -z "$STRIP" && STRIP=:
  3661. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  3662. AC_CHECK_TOOL(RANLIB, ranlib, :)
  3663. test -z "$RANLIB" && RANLIB=:
  3664. _LT_DECL([], [RANLIB], [1],
  3665. [Commands used to install an old-style archive])
  3666. # Determine commands to create old-style static archives.
  3667. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  3668. old_postinstall_cmds='chmod 644 $oldlib'
  3669. old_postuninstall_cmds=
  3670. if test -n "$RANLIB"; then
  3671. case $host_os in
  3672. openbsd*)
  3673. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  3674. ;;
  3675. *)
  3676. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  3677. ;;
  3678. esac
  3679. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  3680. fi
  3681. _LT_DECL([], [old_postinstall_cmds], [2])
  3682. _LT_DECL([], [old_postuninstall_cmds], [2])
  3683. _LT_TAGDECL([], [old_archive_cmds], [2],
  3684. [Commands used to build an old-style archive])
  3685. ])# _LT_CMD_OLD_ARCHIVE
  3686. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  3687. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  3688. # ----------------------------------------------------------------
  3689. # Check whether the given compiler option works
  3690. AC_DEFUN([_LT_COMPILER_OPTION],
  3691. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3692. m4_require([_LT_DECL_SED])dnl
  3693. AC_CACHE_CHECK([$1], [$2],
  3694. [$2=no
  3695. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  3696. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  3697. lt_compiler_flag="$3"
  3698. # Insert the option either (1) after the last *FLAGS variable, or
  3699. # (2) before a word containing "conftest.", or (3) at the end.
  3700. # Note that $ac_compile itself does not contain backslashes and begins
  3701. # with a dollar sign (not a hyphen), so the echo should work correctly.
  3702. # The option is referenced via a variable to avoid confusing sed.
  3703. lt_compile=`echo "$ac_compile" | $SED \
  3704. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3705. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3706. -e 's:$: $lt_compiler_flag:'`
  3707. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3708. (eval "$lt_compile" 2>conftest.err)
  3709. ac_status=$?
  3710. cat conftest.err >&AS_MESSAGE_LOG_FD
  3711. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3712. if (exit $ac_status) && test -s "$ac_outfile"; then
  3713. # The compiler can only warn and ignore the option if not recognized
  3714. # So say no if there are warnings other than the usual output.
  3715. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  3716. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  3717. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  3718. $2=yes
  3719. fi
  3720. fi
  3721. $RM conftest*
  3722. ])
  3723. if test x"[$]$2" = xyes; then
  3724. m4_if([$5], , :, [$5])
  3725. else
  3726. m4_if([$6], , :, [$6])
  3727. fi
  3728. ])# _LT_COMPILER_OPTION
  3729. # Old name:
  3730. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  3731. dnl aclocal-1.4 backwards compatibility:
  3732. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  3733. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  3734. # [ACTION-SUCCESS], [ACTION-FAILURE])
  3735. # ----------------------------------------------------
  3736. # Check whether the given linker option works
  3737. AC_DEFUN([_LT_LINKER_OPTION],
  3738. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3739. m4_require([_LT_DECL_SED])dnl
  3740. AC_CACHE_CHECK([$1], [$2],
  3741. [$2=no
  3742. save_LDFLAGS="$LDFLAGS"
  3743. LDFLAGS="$LDFLAGS $3"
  3744. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  3745. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  3746. # The linker can only warn and ignore the option if not recognized
  3747. # So say no if there are warnings
  3748. if test -s conftest.err; then
  3749. # Append any errors to the config.log.
  3750. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  3751. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  3752. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  3753. if diff conftest.exp conftest.er2 >/dev/null; then
  3754. $2=yes
  3755. fi
  3756. else
  3757. $2=yes
  3758. fi
  3759. fi
  3760. $RM -r conftest*
  3761. LDFLAGS="$save_LDFLAGS"
  3762. ])
  3763. if test x"[$]$2" = xyes; then
  3764. m4_if([$4], , :, [$4])
  3765. else
  3766. m4_if([$5], , :, [$5])
  3767. fi
  3768. ])# _LT_LINKER_OPTION
  3769. # Old name:
  3770. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  3771. dnl aclocal-1.4 backwards compatibility:
  3772. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  3773. # LT_CMD_MAX_LEN
  3774. #---------------
  3775. AC_DEFUN([LT_CMD_MAX_LEN],
  3776. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3777. # find the maximum length of command line arguments
  3778. AC_MSG_CHECKING([the maximum length of command line arguments])
  3779. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  3780. i=0
  3781. teststring="ABCD"
  3782. case $build_os in
  3783. msdosdjgpp*)
  3784. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3785. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3786. # during glob expansion). Even if it were fixed, the result of this
  3787. # check would be larger than it should be.
  3788. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3789. ;;
  3790. gnu*)
  3791. # Under GNU Hurd, this test is not required because there is
  3792. # no limit to the length of command line arguments.
  3793. # Libtool will interpret -1 as no limit whatsoever
  3794. lt_cv_sys_max_cmd_len=-1;
  3795. ;;
  3796. cygwin* | mingw* | cegcc*)
  3797. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3798. # about 5 minutes as the teststring grows exponentially.
  3799. # Worse, since 9x/ME are not pre-emptively multitasking,
  3800. # you end up with a "frozen" computer, even though with patience
  3801. # the test eventually succeeds (with a max line length of 256k).
  3802. # Instead, let's just punt: use the minimum linelength reported by
  3803. # all of the supported platforms: 8192 (on NT/2K/XP).
  3804. lt_cv_sys_max_cmd_len=8192;
  3805. ;;
  3806. amigaos*)
  3807. # On AmigaOS with pdksh, this test takes hours, literally.
  3808. # So we just punt and use a minimum line length of 8192.
  3809. lt_cv_sys_max_cmd_len=8192;
  3810. ;;
  3811. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3812. # This has been around since 386BSD, at least. Likely further.
  3813. if test -x /sbin/sysctl; then
  3814. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3815. elif test -x /usr/sbin/sysctl; then
  3816. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3817. else
  3818. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3819. fi
  3820. # And add a safety zone
  3821. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3822. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3823. ;;
  3824. interix*)
  3825. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3826. lt_cv_sys_max_cmd_len=196608
  3827. ;;
  3828. osf*)
  3829. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3830. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3831. # nice to cause kernel panics so lets avoid the loop below.
  3832. # First set a reasonable default.
  3833. lt_cv_sys_max_cmd_len=16384
  3834. #
  3835. if test -x /sbin/sysconfig; then
  3836. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3837. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3838. esac
  3839. fi
  3840. ;;
  3841. sco3.2v5*)
  3842. lt_cv_sys_max_cmd_len=102400
  3843. ;;
  3844. sysv5* | sco5v6* | sysv4.2uw2*)
  3845. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3846. if test -n "$kargmax"; then
  3847. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  3848. else
  3849. lt_cv_sys_max_cmd_len=32768
  3850. fi
  3851. ;;
  3852. *)
  3853. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3854. if test -n "$lt_cv_sys_max_cmd_len"; then
  3855. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3856. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3857. else
  3858. # Make teststring a little bigger before we do anything with it.
  3859. # a 1K string should be a reasonable start.
  3860. for i in 1 2 3 4 5 6 7 8 ; do
  3861. teststring=$teststring$teststring
  3862. done
  3863. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3864. # If test is not a shell built-in, we'll probably end up computing a
  3865. # maximum length that is only half of the actual maximum length, but
  3866. # we can't tell.
  3867. while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  3868. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  3869. test $i != 17 # 1/2 MB should be enough
  3870. do
  3871. i=`expr $i + 1`
  3872. teststring=$teststring$teststring
  3873. done
  3874. # Only check the string length outside the loop.
  3875. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3876. teststring=
  3877. # Add a significant safety factor because C++ compilers can tack on
  3878. # massive amounts of additional arguments before passing them to the
  3879. # linker. It appears as though 1/2 is a usable value.
  3880. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3881. fi
  3882. ;;
  3883. esac
  3884. ])
  3885. if test -n $lt_cv_sys_max_cmd_len ; then
  3886. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  3887. else
  3888. AC_MSG_RESULT(none)
  3889. fi
  3890. max_cmd_len=$lt_cv_sys_max_cmd_len
  3891. _LT_DECL([], [max_cmd_len], [0],
  3892. [What is the maximum length of a command?])
  3893. ])# LT_CMD_MAX_LEN
  3894. # Old name:
  3895. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  3896. dnl aclocal-1.4 backwards compatibility:
  3897. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  3898. # _LT_HEADER_DLFCN
  3899. # ----------------
  3900. m4_defun([_LT_HEADER_DLFCN],
  3901. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  3902. ])# _LT_HEADER_DLFCN
  3903. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  3904. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  3905. # ----------------------------------------------------------------
  3906. m4_defun([_LT_TRY_DLOPEN_SELF],
  3907. [m4_require([_LT_HEADER_DLFCN])dnl
  3908. if test "$cross_compiling" = yes; then :
  3909. [$4]
  3910. else
  3911. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  3912. lt_status=$lt_dlunknown
  3913. cat > conftest.$ac_ext <<_LT_EOF
  3914. [#line __oline__ "configure"
  3915. #include "confdefs.h"
  3916. #if HAVE_DLFCN_H
  3917. #include <dlfcn.h>
  3918. #endif
  3919. #include <stdio.h>
  3920. #ifdef RTLD_GLOBAL
  3921. # define LT_DLGLOBAL RTLD_GLOBAL
  3922. #else
  3923. # ifdef DL_GLOBAL
  3924. # define LT_DLGLOBAL DL_GLOBAL
  3925. # else
  3926. # define LT_DLGLOBAL 0
  3927. # endif
  3928. #endif
  3929. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  3930. find out it does not work in some platform. */
  3931. #ifndef LT_DLLAZY_OR_NOW
  3932. # ifdef RTLD_LAZY
  3933. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  3934. # else
  3935. # ifdef DL_LAZY
  3936. # define LT_DLLAZY_OR_NOW DL_LAZY
  3937. # else
  3938. # ifdef RTLD_NOW
  3939. # define LT_DLLAZY_OR_NOW RTLD_NOW
  3940. # else
  3941. # ifdef DL_NOW
  3942. # define LT_DLLAZY_OR_NOW DL_NOW
  3943. # else
  3944. # define LT_DLLAZY_OR_NOW 0
  3945. # endif
  3946. # endif
  3947. # endif
  3948. # endif
  3949. #endif
  3950. void fnord() { int i=42;}
  3951. int main ()
  3952. {
  3953. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  3954. int status = $lt_dlunknown;
  3955. if (self)
  3956. {
  3957. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  3958. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  3959. /* dlclose (self); */
  3960. }
  3961. else
  3962. puts (dlerror ());
  3963. return status;
  3964. }]
  3965. _LT_EOF
  3966. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  3967. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  3968. lt_status=$?
  3969. case x$lt_status in
  3970. x$lt_dlno_uscore) $1 ;;
  3971. x$lt_dlneed_uscore) $2 ;;
  3972. x$lt_dlunknown|x*) $3 ;;
  3973. esac
  3974. else :
  3975. # compilation failed
  3976. $3
  3977. fi
  3978. fi
  3979. rm -fr conftest*
  3980. ])# _LT_TRY_DLOPEN_SELF
  3981. # LT_SYS_DLOPEN_SELF
  3982. # ------------------
  3983. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  3984. [m4_require([_LT_HEADER_DLFCN])dnl
  3985. if test "x$enable_dlopen" != xyes; then
  3986. enable_dlopen=unknown
  3987. enable_dlopen_self=unknown
  3988. enable_dlopen_self_static=unknown
  3989. else
  3990. lt_cv_dlopen=no
  3991. lt_cv_dlopen_libs=
  3992. case $host_os in
  3993. beos*)
  3994. lt_cv_dlopen="load_add_on"
  3995. lt_cv_dlopen_libs=
  3996. lt_cv_dlopen_self=yes
  3997. ;;
  3998. mingw* | pw32* | cegcc*)
  3999. lt_cv_dlopen="LoadLibrary"
  4000. lt_cv_dlopen_libs=
  4001. ;;
  4002. cygwin*)
  4003. lt_cv_dlopen="dlopen"
  4004. lt_cv_dlopen_libs=
  4005. ;;
  4006. darwin*)
  4007. # if libdl is installed we need to link against it
  4008. AC_CHECK_LIB([dl], [dlopen],
  4009. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  4010. lt_cv_dlopen="dyld"
  4011. lt_cv_dlopen_libs=
  4012. lt_cv_dlopen_self=yes
  4013. ])
  4014. ;;
  4015. *)
  4016. AC_CHECK_FUNC([shl_load],
  4017. [lt_cv_dlopen="shl_load"],
  4018. [AC_CHECK_LIB([dld], [shl_load],
  4019. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  4020. [AC_CHECK_FUNC([dlopen],
  4021. [lt_cv_dlopen="dlopen"],
  4022. [AC_CHECK_LIB([dl], [dlopen],
  4023. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  4024. [AC_CHECK_LIB([svld], [dlopen],
  4025. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  4026. [AC_CHECK_LIB([dld], [dld_link],
  4027. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  4028. ])
  4029. ])
  4030. ])
  4031. ])
  4032. ])
  4033. ;;
  4034. esac
  4035. if test "x$lt_cv_dlopen" != xno; then
  4036. enable_dlopen=yes
  4037. else
  4038. enable_dlopen=no
  4039. fi
  4040. case $lt_cv_dlopen in
  4041. dlopen)
  4042. save_CPPFLAGS="$CPPFLAGS"
  4043. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  4044. save_LDFLAGS="$LDFLAGS"
  4045. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  4046. save_LIBS="$LIBS"
  4047. LIBS="$lt_cv_dlopen_libs $LIBS"
  4048. AC_CACHE_CHECK([whether a program can dlopen itself],
  4049. lt_cv_dlopen_self, [dnl
  4050. _LT_TRY_DLOPEN_SELF(
  4051. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  4052. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  4053. ])
  4054. if test "x$lt_cv_dlopen_self" = xyes; then
  4055. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  4056. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  4057. lt_cv_dlopen_self_static, [dnl
  4058. _LT_TRY_DLOPEN_SELF(
  4059. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  4060. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  4061. ])
  4062. fi
  4063. CPPFLAGS="$save_CPPFLAGS"
  4064. LDFLAGS="$save_LDFLAGS"
  4065. LIBS="$save_LIBS"
  4066. ;;
  4067. esac
  4068. case $lt_cv_dlopen_self in
  4069. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  4070. *) enable_dlopen_self=unknown ;;
  4071. esac
  4072. case $lt_cv_dlopen_self_static in
  4073. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  4074. *) enable_dlopen_self_static=unknown ;;
  4075. esac
  4076. fi
  4077. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  4078. [Whether dlopen is supported])
  4079. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  4080. [Whether dlopen of programs is supported])
  4081. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  4082. [Whether dlopen of statically linked programs is supported])
  4083. ])# LT_SYS_DLOPEN_SELF
  4084. # Old name:
  4085. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  4086. dnl aclocal-1.4 backwards compatibility:
  4087. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  4088. # _LT_COMPILER_C_O([TAGNAME])
  4089. # ---------------------------
  4090. # Check to see if options -c and -o are simultaneously supported by compiler.
  4091. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  4092. m4_defun([_LT_COMPILER_C_O],
  4093. [m4_require([_LT_DECL_SED])dnl
  4094. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4095. m4_require([_LT_TAG_COMPILER])dnl
  4096. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  4097. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  4098. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  4099. $RM -r conftest 2>/dev/null
  4100. mkdir conftest
  4101. cd conftest
  4102. mkdir out
  4103. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  4104. lt_compiler_flag="-o out/conftest2.$ac_objext"
  4105. # Insert the option either (1) after the last *FLAGS variable, or
  4106. # (2) before a word containing "conftest.", or (3) at the end.
  4107. # Note that $ac_compile itself does not contain backslashes and begins
  4108. # with a dollar sign (not a hyphen), so the echo should work correctly.
  4109. lt_compile=`echo "$ac_compile" | $SED \
  4110. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  4111. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  4112. -e 's:$: $lt_compiler_flag:'`
  4113. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  4114. (eval "$lt_compile" 2>out/conftest.err)
  4115. ac_status=$?
  4116. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  4117. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  4118. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  4119. then
  4120. # The compiler can only warn and ignore the option if not recognized
  4121. # So say no if there are warnings
  4122. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  4123. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  4124. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  4125. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  4126. fi
  4127. fi
  4128. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  4129. $RM conftest*
  4130. # SGI C++ compiler will create directory out/ii_files/ for
  4131. # template instantiation
  4132. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  4133. $RM out/* && rmdir out
  4134. cd ..
  4135. $RM -r conftest
  4136. $RM conftest*
  4137. ])
  4138. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  4139. [Does compiler simultaneously support -c and -o options?])
  4140. ])# _LT_COMPILER_C_O
  4141. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  4142. # ----------------------------------
  4143. # Check to see if we can do hard links to lock some files if needed
  4144. m4_defun([_LT_COMPILER_FILE_LOCKS],
  4145. [m4_require([_LT_ENABLE_LOCK])dnl
  4146. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4147. _LT_COMPILER_C_O([$1])
  4148. hard_links="nottested"
  4149. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  4150. # do not overwrite the value of need_locks provided by the user
  4151. AC_MSG_CHECKING([if we can lock with hard links])
  4152. hard_links=yes
  4153. $RM conftest*
  4154. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  4155. touch conftest.a
  4156. ln conftest.a conftest.b 2>&5 || hard_links=no
  4157. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  4158. AC_MSG_RESULT([$hard_links])
  4159. if test "$hard_links" = no; then
  4160. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  4161. need_locks=warn
  4162. fi
  4163. else
  4164. need_locks=no
  4165. fi
  4166. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  4167. ])# _LT_COMPILER_FILE_LOCKS
  4168. # _LT_CHECK_OBJDIR
  4169. # ----------------
  4170. m4_defun([_LT_CHECK_OBJDIR],
  4171. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  4172. [rm -f .libs 2>/dev/null
  4173. mkdir .libs 2>/dev/null
  4174. if test -d .libs; then
  4175. lt_cv_objdir=.libs
  4176. else
  4177. # MS-DOS does not allow filenames that begin with a dot.
  4178. lt_cv_objdir=_libs
  4179. fi
  4180. rmdir .libs 2>/dev/null])
  4181. objdir=$lt_cv_objdir
  4182. _LT_DECL([], [objdir], [0],
  4183. [The name of the directory that contains temporary libtool files])dnl
  4184. m4_pattern_allow([LT_OBJDIR])dnl
  4185. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  4186. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  4187. ])# _LT_CHECK_OBJDIR
  4188. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  4189. # --------------------------------------
  4190. # Check hardcoding attributes.
  4191. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  4192. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  4193. _LT_TAGVAR(hardcode_action, $1)=
  4194. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  4195. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  4196. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  4197. # We can hardcode non-existent directories.
  4198. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  4199. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  4200. # have to relink, otherwise we might link with an installed library
  4201. # when we should be linking with a yet-to-be-installed one
  4202. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  4203. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  4204. # Linking always hardcodes the temporary library directory.
  4205. _LT_TAGVAR(hardcode_action, $1)=relink
  4206. else
  4207. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  4208. _LT_TAGVAR(hardcode_action, $1)=immediate
  4209. fi
  4210. else
  4211. # We cannot hardcode anything, or else we can only hardcode existing
  4212. # directories.
  4213. _LT_TAGVAR(hardcode_action, $1)=unsupported
  4214. fi
  4215. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  4216. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  4217. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  4218. # Fast installation is not supported
  4219. enable_fast_install=no
  4220. elif test "$shlibpath_overrides_runpath" = yes ||
  4221. test "$enable_shared" = no; then
  4222. # Fast installation is not necessary
  4223. enable_fast_install=needless
  4224. fi
  4225. _LT_TAGDECL([], [hardcode_action], [0],
  4226. [How to hardcode a shared library path into an executable])
  4227. ])# _LT_LINKER_HARDCODE_LIBPATH
  4228. # _LT_CMD_STRIPLIB
  4229. # ----------------
  4230. m4_defun([_LT_CMD_STRIPLIB],
  4231. [m4_require([_LT_DECL_EGREP])
  4232. striplib=
  4233. old_striplib=
  4234. AC_MSG_CHECKING([whether stripping libraries is possible])
  4235. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  4236. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  4237. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  4238. AC_MSG_RESULT([yes])
  4239. else
  4240. # FIXME - insert some real tests, host_os isn't really good enough
  4241. case $host_os in
  4242. darwin*)
  4243. if test -n "$STRIP" ; then
  4244. striplib="$STRIP -x"
  4245. old_striplib="$STRIP -S"
  4246. AC_MSG_RESULT([yes])
  4247. else
  4248. AC_MSG_RESULT([no])
  4249. fi
  4250. ;;
  4251. *)
  4252. AC_MSG_RESULT([no])
  4253. ;;
  4254. esac
  4255. fi
  4256. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  4257. _LT_DECL([], [striplib], [1])
  4258. ])# _LT_CMD_STRIPLIB
  4259. # _LT_SYS_DYNAMIC_LINKER([TAG])
  4260. # -----------------------------
  4261. # PORTME Fill in your ld.so characteristics
  4262. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  4263. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4264. m4_require([_LT_DECL_EGREP])dnl
  4265. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4266. m4_require([_LT_DECL_OBJDUMP])dnl
  4267. m4_require([_LT_DECL_SED])dnl
  4268. AC_MSG_CHECKING([dynamic linker characteristics])
  4269. m4_if([$1],
  4270. [], [
  4271. if test "$GCC" = yes; then
  4272. case $host_os in
  4273. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  4274. *) lt_awk_arg="/^libraries:/" ;;
  4275. esac
  4276. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  4277. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  4278. # if the path contains ";" then we assume it to be the separator
  4279. # otherwise default to the standard path separator (i.e. ":") - it is
  4280. # assumed that no part of a normal pathname contains ";" but that should
  4281. # okay in the real world where ";" in dirpaths is itself problematic.
  4282. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  4283. else
  4284. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4285. fi
  4286. # Ok, now we have the path, separated by spaces, we can step through it
  4287. # and add multilib dir if necessary.
  4288. lt_tmp_lt_search_path_spec=
  4289. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  4290. for lt_sys_path in $lt_search_path_spec; do
  4291. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  4292. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  4293. else
  4294. test -d "$lt_sys_path" && \
  4295. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  4296. fi
  4297. done
  4298. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  4299. BEGIN {RS=" "; FS="/|\n";} {
  4300. lt_foo="";
  4301. lt_count=0;
  4302. for (lt_i = NF; lt_i > 0; lt_i--) {
  4303. if ($lt_i != "" && $lt_i != ".") {
  4304. if ($lt_i == "..") {
  4305. lt_count++;
  4306. } else {
  4307. if (lt_count == 0) {
  4308. lt_foo="/" $lt_i lt_foo;
  4309. } else {
  4310. lt_count--;
  4311. }
  4312. }
  4313. }
  4314. }
  4315. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  4316. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  4317. }'`
  4318. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  4319. else
  4320. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  4321. fi])
  4322. library_names_spec=
  4323. libname_spec='lib$name'
  4324. soname_spec=
  4325. shrext_cmds=".so"
  4326. postinstall_cmds=
  4327. postuninstall_cmds=
  4328. finish_cmds=
  4329. finish_eval=
  4330. shlibpath_var=
  4331. shlibpath_overrides_runpath=unknown
  4332. version_type=none
  4333. dynamic_linker="$host_os ld.so"
  4334. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  4335. need_lib_prefix=unknown
  4336. hardcode_into_libs=no
  4337. # when you set need_version to no, make sure it does not cause -set_version
  4338. # flags to be left without arguments
  4339. need_version=unknown
  4340. case $host_os in
  4341. aix3*)
  4342. version_type=linux
  4343. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  4344. shlibpath_var=LIBPATH
  4345. # AIX 3 has no versioning support, so we append a major version to the name.
  4346. soname_spec='${libname}${release}${shared_ext}$major'
  4347. ;;
  4348. aix[[4-9]]*)
  4349. version_type=linux
  4350. need_lib_prefix=no
  4351. need_version=no
  4352. hardcode_into_libs=yes
  4353. if test "$host_cpu" = ia64; then
  4354. # AIX 5 supports IA64
  4355. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  4356. shlibpath_var=LD_LIBRARY_PATH
  4357. else
  4358. # With GCC up to 2.95.x, collect2 would create an import file
  4359. # for dependence libraries. The import file would start with
  4360. # the line `#! .'. This would cause the generated library to
  4361. # depend on `.', always an invalid library. This was fixed in
  4362. # development snapshots of GCC prior to 3.0.
  4363. case $host_os in
  4364. aix4 | aix4.[[01]] | aix4.[[01]].*)
  4365. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  4366. echo ' yes '
  4367. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  4368. :
  4369. else
  4370. can_build_shared=no
  4371. fi
  4372. ;;
  4373. esac
  4374. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  4375. # soname into executable. Probably we can add versioning support to
  4376. # collect2, so additional links can be useful in future.
  4377. if test "$aix_use_runtimelinking" = yes; then
  4378. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  4379. # instead of lib<name>.a to let people know that these are not
  4380. # typical AIX shared libraries.
  4381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4382. else
  4383. # We preserve .a as extension for shared libraries through AIX4.2
  4384. # and later when we are not doing run time linking.
  4385. library_names_spec='${libname}${release}.a $libname.a'
  4386. soname_spec='${libname}${release}${shared_ext}$major'
  4387. fi
  4388. shlibpath_var=LIBPATH
  4389. fi
  4390. ;;
  4391. amigaos*)
  4392. case $host_cpu in
  4393. powerpc)
  4394. # Since July 2007 AmigaOS4 officially supports .so libraries.
  4395. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  4396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4397. ;;
  4398. m68k)
  4399. library_names_spec='$libname.ixlibrary $libname.a'
  4400. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  4401. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  4402. ;;
  4403. esac
  4404. ;;
  4405. beos*)
  4406. library_names_spec='${libname}${shared_ext}'
  4407. dynamic_linker="$host_os ld.so"
  4408. shlibpath_var=LIBRARY_PATH
  4409. ;;
  4410. bsdi[[45]]*)
  4411. version_type=linux
  4412. need_version=no
  4413. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4414. soname_spec='${libname}${release}${shared_ext}$major'
  4415. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  4416. shlibpath_var=LD_LIBRARY_PATH
  4417. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  4418. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  4419. # the default ld.so.conf also contains /usr/contrib/lib and
  4420. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  4421. # libtool to hard-code these into programs
  4422. ;;
  4423. cygwin* | mingw* | pw32* | cegcc*)
  4424. version_type=windows
  4425. shrext_cmds=".dll"
  4426. need_version=no
  4427. need_lib_prefix=no
  4428. case $GCC,$host_os in
  4429. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  4430. library_names_spec='$libname.dll.a'
  4431. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  4432. postinstall_cmds='base_file=`basename \${file}`~
  4433. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  4434. dldir=$destdir/`dirname \$dlpath`~
  4435. test -d \$dldir || mkdir -p \$dldir~
  4436. $install_prog $dir/$dlname \$dldir/$dlname~
  4437. chmod a+x \$dldir/$dlname~
  4438. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  4439. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  4440. fi'
  4441. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  4442. dlpath=$dir/\$dldll~
  4443. $RM \$dlpath'
  4444. shlibpath_overrides_runpath=yes
  4445. case $host_os in
  4446. cygwin*)
  4447. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  4448. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4449. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  4450. ;;
  4451. mingw* | cegcc*)
  4452. # MinGW DLLs use traditional 'lib' prefix
  4453. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4454. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  4455. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  4456. # It is most probably a Windows format PATH printed by
  4457. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  4458. # path with ; separators, and with drive letters. We can handle the
  4459. # drive letters (cygwin fileutils understands them), so leave them,
  4460. # especially as we might pass files found there to a mingw objdump,
  4461. # which wouldn't understand a cygwinified path. Ahh.
  4462. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  4463. else
  4464. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4465. fi
  4466. ;;
  4467. pw32*)
  4468. # pw32 DLLs use 'pw' prefix rather than 'lib'
  4469. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4470. ;;
  4471. esac
  4472. ;;
  4473. *)
  4474. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  4475. ;;
  4476. esac
  4477. dynamic_linker='Win32 ld.exe'
  4478. # FIXME: first we should search . and the directory the executable is in
  4479. shlibpath_var=PATH
  4480. ;;
  4481. darwin* | rhapsody*)
  4482. dynamic_linker="$host_os dyld"
  4483. version_type=darwin
  4484. need_lib_prefix=no
  4485. need_version=no
  4486. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  4487. soname_spec='${libname}${release}${major}$shared_ext'
  4488. shlibpath_overrides_runpath=yes
  4489. shlibpath_var=DYLD_LIBRARY_PATH
  4490. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  4491. m4_if([$1], [],[
  4492. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  4493. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  4494. ;;
  4495. dgux*)
  4496. version_type=linux
  4497. need_lib_prefix=no
  4498. need_version=no
  4499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  4500. soname_spec='${libname}${release}${shared_ext}$major'
  4501. shlibpath_var=LD_LIBRARY_PATH
  4502. ;;
  4503. freebsd1*)
  4504. dynamic_linker=no
  4505. ;;
  4506. freebsd* | dragonfly*)
  4507. # DragonFly does not have aout. When/if they implement a new
  4508. # versioning mechanism, adjust this.
  4509. if test -x /usr/bin/objformat; then
  4510. objformat=`/usr/bin/objformat`
  4511. else
  4512. case $host_os in
  4513. freebsd[[123]]*) objformat=aout ;;
  4514. *) objformat=elf ;;
  4515. esac
  4516. fi
  4517. version_type=freebsd-$objformat
  4518. case $version_type in
  4519. freebsd-elf*)
  4520. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4521. need_version=no
  4522. need_lib_prefix=no
  4523. ;;
  4524. freebsd-*)
  4525. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4526. need_version=yes
  4527. ;;
  4528. esac
  4529. shlibpath_var=LD_LIBRARY_PATH
  4530. case $host_os in
  4531. freebsd2*)
  4532. shlibpath_overrides_runpath=yes
  4533. ;;
  4534. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4535. shlibpath_overrides_runpath=yes
  4536. hardcode_into_libs=yes
  4537. ;;
  4538. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4539. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4540. shlibpath_overrides_runpath=no
  4541. hardcode_into_libs=yes
  4542. ;;
  4543. *) # from 4.6 on, and DragonFly
  4544. shlibpath_overrides_runpath=yes
  4545. hardcode_into_libs=yes
  4546. ;;
  4547. esac
  4548. ;;
  4549. gnu*)
  4550. version_type=linux
  4551. need_lib_prefix=no
  4552. need_version=no
  4553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4554. soname_spec='${libname}${release}${shared_ext}$major'
  4555. shlibpath_var=LD_LIBRARY_PATH
  4556. hardcode_into_libs=yes
  4557. ;;
  4558. hpux9* | hpux10* | hpux11*)
  4559. # Give a soname corresponding to the major version so that dld.sl refuses to
  4560. # link against other versions.
  4561. version_type=sunos
  4562. need_lib_prefix=no
  4563. need_version=no
  4564. case $host_cpu in
  4565. ia64*)
  4566. shrext_cmds='.so'
  4567. hardcode_into_libs=yes
  4568. dynamic_linker="$host_os dld.so"
  4569. shlibpath_var=LD_LIBRARY_PATH
  4570. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4572. soname_spec='${libname}${release}${shared_ext}$major'
  4573. if test "X$HPUX_IA64_MODE" = X32; then
  4574. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4575. else
  4576. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4577. fi
  4578. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4579. ;;
  4580. hppa*64*)
  4581. shrext_cmds='.sl'
  4582. hardcode_into_libs=yes
  4583. dynamic_linker="$host_os dld.sl"
  4584. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4585. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4586. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4587. soname_spec='${libname}${release}${shared_ext}$major'
  4588. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4589. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4590. ;;
  4591. *)
  4592. shrext_cmds='.sl'
  4593. dynamic_linker="$host_os dld.sl"
  4594. shlibpath_var=SHLIB_PATH
  4595. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4597. soname_spec='${libname}${release}${shared_ext}$major'
  4598. ;;
  4599. esac
  4600. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4601. postinstall_cmds='chmod 555 $lib'
  4602. ;;
  4603. interix[[3-9]]*)
  4604. version_type=linux
  4605. need_lib_prefix=no
  4606. need_version=no
  4607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4608. soname_spec='${libname}${release}${shared_ext}$major'
  4609. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4610. shlibpath_var=LD_LIBRARY_PATH
  4611. shlibpath_overrides_runpath=no
  4612. hardcode_into_libs=yes
  4613. ;;
  4614. irix5* | irix6* | nonstopux*)
  4615. case $host_os in
  4616. nonstopux*) version_type=nonstopux ;;
  4617. *)
  4618. if test "$lt_cv_prog_gnu_ld" = yes; then
  4619. version_type=linux
  4620. else
  4621. version_type=irix
  4622. fi ;;
  4623. esac
  4624. need_lib_prefix=no
  4625. need_version=no
  4626. soname_spec='${libname}${release}${shared_ext}$major'
  4627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  4628. case $host_os in
  4629. irix5* | nonstopux*)
  4630. libsuff= shlibsuff=
  4631. ;;
  4632. *)
  4633. case $LD in # libtool.m4 will add one of these switches to LD
  4634. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  4635. libsuff= shlibsuff= libmagic=32-bit;;
  4636. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  4637. libsuff=32 shlibsuff=N32 libmagic=N32;;
  4638. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  4639. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  4640. *) libsuff= shlibsuff= libmagic=never-match;;
  4641. esac
  4642. ;;
  4643. esac
  4644. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  4645. shlibpath_overrides_runpath=no
  4646. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  4647. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  4648. hardcode_into_libs=yes
  4649. ;;
  4650. # No shared lib support for Linux oldld, aout, or coff.
  4651. linux*oldld* | linux*aout* | linux*coff*)
  4652. dynamic_linker=no
  4653. ;;
  4654. # This must be Linux ELF.
  4655. linux* | k*bsd*-gnu)
  4656. version_type=linux
  4657. need_lib_prefix=no
  4658. need_version=no
  4659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4660. soname_spec='${libname}${release}${shared_ext}$major'
  4661. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  4662. shlibpath_var=LD_LIBRARY_PATH
  4663. shlibpath_overrides_runpath=no
  4664. # Some binutils ld are patched to set DT_RUNPATH
  4665. save_LDFLAGS=$LDFLAGS
  4666. save_libdir=$libdir
  4667. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  4668. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  4669. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4670. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  4671. [shlibpath_overrides_runpath=yes])])
  4672. LDFLAGS=$save_LDFLAGS
  4673. libdir=$save_libdir
  4674. # This implies no fast_install, which is unacceptable.
  4675. # Some rework will be needed to allow for fast_install
  4676. # before this can be enabled.
  4677. hardcode_into_libs=yes
  4678. # Append ld.so.conf contents to the search path
  4679. if test -f /etc/ld.so.conf; then
  4680. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  4681. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  4682. fi
  4683. # We used to test for /lib/ld.so.1 and disable shared libraries on
  4684. # powerpc, because MkLinux only supported shared libraries with the
  4685. # GNU dynamic linker. Since this was broken with cross compilers,
  4686. # most powerpc-linux boxes support dynamic linking these days and
  4687. # people can always --disable-shared, the test was removed, and we
  4688. # assume the GNU/Linux dynamic linker is in use.
  4689. dynamic_linker='GNU/Linux ld.so'
  4690. ;;
  4691. netbsd*)
  4692. version_type=sunos
  4693. need_lib_prefix=no
  4694. need_version=no
  4695. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4697. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4698. dynamic_linker='NetBSD (a.out) ld.so'
  4699. else
  4700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4701. soname_spec='${libname}${release}${shared_ext}$major'
  4702. dynamic_linker='NetBSD ld.elf_so'
  4703. fi
  4704. shlibpath_var=LD_LIBRARY_PATH
  4705. shlibpath_overrides_runpath=yes
  4706. hardcode_into_libs=yes
  4707. ;;
  4708. newsos6)
  4709. version_type=linux
  4710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4711. shlibpath_var=LD_LIBRARY_PATH
  4712. shlibpath_overrides_runpath=yes
  4713. ;;
  4714. *nto* | *qnx*)
  4715. version_type=qnx
  4716. need_lib_prefix=no
  4717. need_version=no
  4718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4719. soname_spec='${libname}${release}${shared_ext}$major'
  4720. shlibpath_var=LD_LIBRARY_PATH
  4721. shlibpath_overrides_runpath=no
  4722. hardcode_into_libs=yes
  4723. dynamic_linker='ldqnx.so'
  4724. ;;
  4725. openbsd*)
  4726. version_type=sunos
  4727. sys_lib_dlsearch_path_spec="/usr/lib"
  4728. need_lib_prefix=no
  4729. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4730. case $host_os in
  4731. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4732. *) need_version=no ;;
  4733. esac
  4734. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4735. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4736. shlibpath_var=LD_LIBRARY_PATH
  4737. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4738. case $host_os in
  4739. openbsd2.[[89]] | openbsd2.[[89]].*)
  4740. shlibpath_overrides_runpath=no
  4741. ;;
  4742. *)
  4743. shlibpath_overrides_runpath=yes
  4744. ;;
  4745. esac
  4746. else
  4747. shlibpath_overrides_runpath=yes
  4748. fi
  4749. ;;
  4750. os2*)
  4751. libname_spec='$name'
  4752. shrext_cmds=".dll"
  4753. need_lib_prefix=no
  4754. library_names_spec='$libname${shared_ext} $libname.a'
  4755. dynamic_linker='OS/2 ld.exe'
  4756. shlibpath_var=LIBPATH
  4757. ;;
  4758. osf3* | osf4* | osf5*)
  4759. version_type=osf
  4760. need_lib_prefix=no
  4761. need_version=no
  4762. soname_spec='${libname}${release}${shared_ext}$major'
  4763. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4764. shlibpath_var=LD_LIBRARY_PATH
  4765. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4766. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4767. ;;
  4768. rdos*)
  4769. dynamic_linker=no
  4770. ;;
  4771. solaris*)
  4772. version_type=linux
  4773. need_lib_prefix=no
  4774. need_version=no
  4775. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4776. soname_spec='${libname}${release}${shared_ext}$major'
  4777. shlibpath_var=LD_LIBRARY_PATH
  4778. shlibpath_overrides_runpath=yes
  4779. hardcode_into_libs=yes
  4780. # ldd complains unless libraries are executable
  4781. postinstall_cmds='chmod +x $lib'
  4782. ;;
  4783. sunos4*)
  4784. version_type=sunos
  4785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4786. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4787. shlibpath_var=LD_LIBRARY_PATH
  4788. shlibpath_overrides_runpath=yes
  4789. if test "$with_gnu_ld" = yes; then
  4790. need_lib_prefix=no
  4791. fi
  4792. need_version=yes
  4793. ;;
  4794. sysv4 | sysv4.3*)
  4795. version_type=linux
  4796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4797. soname_spec='${libname}${release}${shared_ext}$major'
  4798. shlibpath_var=LD_LIBRARY_PATH
  4799. case $host_vendor in
  4800. sni)
  4801. shlibpath_overrides_runpath=no
  4802. need_lib_prefix=no
  4803. runpath_var=LD_RUN_PATH
  4804. ;;
  4805. siemens)
  4806. need_lib_prefix=no
  4807. ;;
  4808. motorola)
  4809. need_lib_prefix=no
  4810. need_version=no
  4811. shlibpath_overrides_runpath=no
  4812. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4813. ;;
  4814. esac
  4815. ;;
  4816. sysv4*MP*)
  4817. if test -d /usr/nec ;then
  4818. version_type=linux
  4819. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  4820. soname_spec='$libname${shared_ext}.$major'
  4821. shlibpath_var=LD_LIBRARY_PATH
  4822. fi
  4823. ;;
  4824. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4825. version_type=freebsd-elf
  4826. need_lib_prefix=no
  4827. need_version=no
  4828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4829. soname_spec='${libname}${release}${shared_ext}$major'
  4830. shlibpath_var=LD_LIBRARY_PATH
  4831. shlibpath_overrides_runpath=yes
  4832. hardcode_into_libs=yes
  4833. if test "$with_gnu_ld" = yes; then
  4834. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4835. else
  4836. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4837. case $host_os in
  4838. sco3.2v5*)
  4839. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4840. ;;
  4841. esac
  4842. fi
  4843. sys_lib_dlsearch_path_spec='/usr/lib'
  4844. ;;
  4845. tpf*)
  4846. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4847. version_type=linux
  4848. need_lib_prefix=no
  4849. need_version=no
  4850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4851. shlibpath_var=LD_LIBRARY_PATH
  4852. shlibpath_overrides_runpath=no
  4853. hardcode_into_libs=yes
  4854. ;;
  4855. uts4*)
  4856. version_type=linux
  4857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4858. soname_spec='${libname}${release}${shared_ext}$major'
  4859. shlibpath_var=LD_LIBRARY_PATH
  4860. ;;
  4861. *)
  4862. dynamic_linker=no
  4863. ;;
  4864. esac
  4865. AC_MSG_RESULT([$dynamic_linker])
  4866. test "$dynamic_linker" = no && can_build_shared=no
  4867. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4868. if test "$GCC" = yes; then
  4869. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4870. fi
  4871. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  4872. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  4873. fi
  4874. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  4875. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  4876. fi
  4877. _LT_DECL([], [variables_saved_for_relink], [1],
  4878. [Variables whose values should be saved in libtool wrapper scripts and
  4879. restored at link time])
  4880. _LT_DECL([], [need_lib_prefix], [0],
  4881. [Do we need the "lib" prefix for modules?])
  4882. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  4883. _LT_DECL([], [version_type], [0], [Library versioning type])
  4884. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  4885. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  4886. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  4887. [Is shlibpath searched before the hard-coded library search path?])
  4888. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  4889. _LT_DECL([], [library_names_spec], [1],
  4890. [[List of archive names. First name is the real one, the rest are links.
  4891. The last name is the one that the linker finds with -lNAME]])
  4892. _LT_DECL([], [soname_spec], [1],
  4893. [[The coded name of the library, if different from the real name]])
  4894. _LT_DECL([], [postinstall_cmds], [2],
  4895. [Command to use after installation of a shared archive])
  4896. _LT_DECL([], [postuninstall_cmds], [2],
  4897. [Command to use after uninstallation of a shared archive])
  4898. _LT_DECL([], [finish_cmds], [2],
  4899. [Commands used to finish a libtool library installation in a directory])
  4900. _LT_DECL([], [finish_eval], [1],
  4901. [[As "finish_cmds", except a single script fragment to be evaled but
  4902. not shown]])
  4903. _LT_DECL([], [hardcode_into_libs], [0],
  4904. [Whether we should hardcode library paths into libraries])
  4905. _LT_DECL([], [sys_lib_search_path_spec], [2],
  4906. [Compile-time system search path for libraries])
  4907. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  4908. [Run-time system search path for libraries])
  4909. ])# _LT_SYS_DYNAMIC_LINKER
  4910. # _LT_PATH_TOOL_PREFIX(TOOL)
  4911. # --------------------------
  4912. # find a file program which can recognize shared library
  4913. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  4914. [m4_require([_LT_DECL_EGREP])dnl
  4915. AC_MSG_CHECKING([for $1])
  4916. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  4917. [case $MAGIC_CMD in
  4918. [[\\/*] | ?:[\\/]*])
  4919. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4920. ;;
  4921. *)
  4922. lt_save_MAGIC_CMD="$MAGIC_CMD"
  4923. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4924. dnl $ac_dummy forces splitting on constant user-supplied paths.
  4925. dnl POSIX.2 word splitting is done only on the output of word expansions,
  4926. dnl not every word. This closes a longstanding sh security hole.
  4927. ac_dummy="m4_if([$2], , $PATH, [$2])"
  4928. for ac_dir in $ac_dummy; do
  4929. IFS="$lt_save_ifs"
  4930. test -z "$ac_dir" && ac_dir=.
  4931. if test -f $ac_dir/$1; then
  4932. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  4933. if test -n "$file_magic_test_file"; then
  4934. case $deplibs_check_method in
  4935. "file_magic "*)
  4936. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  4937. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4938. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4939. $EGREP "$file_magic_regex" > /dev/null; then
  4940. :
  4941. else
  4942. cat <<_LT_EOF 1>&2
  4943. *** Warning: the command libtool uses to detect shared libraries,
  4944. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4945. *** The result is that libtool may fail to recognize shared libraries
  4946. *** as such. This will affect the creation of libtool libraries that
  4947. *** depend on shared libraries, but programs linked with such libtool
  4948. *** libraries will work regardless of this problem. Nevertheless, you
  4949. *** may want to report the problem to your system manager and/or to
  4950. *** bug-libtool@gnu.org
  4951. _LT_EOF
  4952. fi ;;
  4953. esac
  4954. fi
  4955. break
  4956. fi
  4957. done
  4958. IFS="$lt_save_ifs"
  4959. MAGIC_CMD="$lt_save_MAGIC_CMD"
  4960. ;;
  4961. esac])
  4962. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4963. if test -n "$MAGIC_CMD"; then
  4964. AC_MSG_RESULT($MAGIC_CMD)
  4965. else
  4966. AC_MSG_RESULT(no)
  4967. fi
  4968. _LT_DECL([], [MAGIC_CMD], [0],
  4969. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  4970. ])# _LT_PATH_TOOL_PREFIX
  4971. # Old name:
  4972. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  4973. dnl aclocal-1.4 backwards compatibility:
  4974. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  4975. # _LT_PATH_MAGIC
  4976. # --------------
  4977. # find a file program which can recognize a shared library
  4978. m4_defun([_LT_PATH_MAGIC],
  4979. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  4980. if test -z "$lt_cv_path_MAGIC_CMD"; then
  4981. if test -n "$ac_tool_prefix"; then
  4982. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  4983. else
  4984. MAGIC_CMD=:
  4985. fi
  4986. fi
  4987. ])# _LT_PATH_MAGIC
  4988. # LT_PATH_LD
  4989. # ----------
  4990. # find the pathname to the GNU or non-GNU linker
  4991. AC_DEFUN([LT_PATH_LD],
  4992. [AC_REQUIRE([AC_PROG_CC])dnl
  4993. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4994. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  4995. m4_require([_LT_DECL_SED])dnl
  4996. m4_require([_LT_DECL_EGREP])dnl
  4997. AC_ARG_WITH([gnu-ld],
  4998. [AS_HELP_STRING([--with-gnu-ld],
  4999. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  5000. [test "$withval" = no || with_gnu_ld=yes],
  5001. [with_gnu_ld=no])dnl
  5002. ac_prog=ld
  5003. if test "$GCC" = yes; then
  5004. # Check if gcc -print-prog-name=ld gives a path.
  5005. AC_MSG_CHECKING([for ld used by $CC])
  5006. case $host in
  5007. *-*-mingw*)
  5008. # gcc leaves a trailing carriage return which upsets mingw
  5009. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5010. *)
  5011. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5012. esac
  5013. case $ac_prog in
  5014. # Accept absolute paths.
  5015. [[\\/]]* | ?:[[\\/]]*)
  5016. re_direlt='/[[^/]][[^/]]*/\.\./'
  5017. # Canonicalize the pathname of ld
  5018. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5019. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5020. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5021. done
  5022. test -z "$LD" && LD="$ac_prog"
  5023. ;;
  5024. "")
  5025. # If it fails, then pretend we aren't using GCC.
  5026. ac_prog=ld
  5027. ;;
  5028. *)
  5029. # If it is relative, then search for the first ld in PATH.
  5030. with_gnu_ld=unknown
  5031. ;;
  5032. esac
  5033. elif test "$with_gnu_ld" = yes; then
  5034. AC_MSG_CHECKING([for GNU ld])
  5035. else
  5036. AC_MSG_CHECKING([for non-GNU ld])
  5037. fi
  5038. AC_CACHE_VAL(lt_cv_path_LD,
  5039. [if test -z "$LD"; then
  5040. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5041. for ac_dir in $PATH; do
  5042. IFS="$lt_save_ifs"
  5043. test -z "$ac_dir" && ac_dir=.
  5044. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5045. lt_cv_path_LD="$ac_dir/$ac_prog"
  5046. # Check to see if the program is GNU ld. I'd rather use --version,
  5047. # but apparently some variants of GNU ld only accept -v.
  5048. # Break only if it was the GNU/non-GNU ld that we prefer.
  5049. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5050. *GNU* | *'with BFD'*)
  5051. test "$with_gnu_ld" != no && break
  5052. ;;
  5053. *)
  5054. test "$with_gnu_ld" != yes && break
  5055. ;;
  5056. esac
  5057. fi
  5058. done
  5059. IFS="$lt_save_ifs"
  5060. else
  5061. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5062. fi])
  5063. LD="$lt_cv_path_LD"
  5064. if test -n "$LD"; then
  5065. AC_MSG_RESULT($LD)
  5066. else
  5067. AC_MSG_RESULT(no)
  5068. fi
  5069. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  5070. _LT_PATH_LD_GNU
  5071. AC_SUBST([LD])
  5072. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  5073. ])# LT_PATH_LD
  5074. # Old names:
  5075. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  5076. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  5077. dnl aclocal-1.4 backwards compatibility:
  5078. dnl AC_DEFUN([AM_PROG_LD], [])
  5079. dnl AC_DEFUN([AC_PROG_LD], [])
  5080. # _LT_PATH_LD_GNU
  5081. #- --------------
  5082. m4_defun([_LT_PATH_LD_GNU],
  5083. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  5084. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  5085. case `$LD -v 2>&1 </dev/null` in
  5086. *GNU* | *'with BFD'*)
  5087. lt_cv_prog_gnu_ld=yes
  5088. ;;
  5089. *)
  5090. lt_cv_prog_gnu_ld=no
  5091. ;;
  5092. esac])
  5093. with_gnu_ld=$lt_cv_prog_gnu_ld
  5094. ])# _LT_PATH_LD_GNU
  5095. # _LT_CMD_RELOAD
  5096. # --------------
  5097. # find reload flag for linker
  5098. # -- PORTME Some linkers may need a different reload flag.
  5099. m4_defun([_LT_CMD_RELOAD],
  5100. [AC_CACHE_CHECK([for $LD option to reload object files],
  5101. lt_cv_ld_reload_flag,
  5102. [lt_cv_ld_reload_flag='-r'])
  5103. reload_flag=$lt_cv_ld_reload_flag
  5104. case $reload_flag in
  5105. "" | " "*) ;;
  5106. *) reload_flag=" $reload_flag" ;;
  5107. esac
  5108. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5109. case $host_os in
  5110. darwin*)
  5111. if test "$GCC" = yes; then
  5112. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5113. else
  5114. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5115. fi
  5116. ;;
  5117. esac
  5118. _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  5119. _LT_DECL([], [reload_cmds], [2])dnl
  5120. ])# _LT_CMD_RELOAD
  5121. # _LT_CHECK_MAGIC_METHOD
  5122. # ----------------------
  5123. # how to check for library dependencies
  5124. # -- PORTME fill in with the dynamic library characteristics
  5125. m4_defun([_LT_CHECK_MAGIC_METHOD],
  5126. [m4_require([_LT_DECL_EGREP])
  5127. m4_require([_LT_DECL_OBJDUMP])
  5128. AC_CACHE_CHECK([how to recognize dependent libraries],
  5129. lt_cv_deplibs_check_method,
  5130. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  5131. lt_cv_file_magic_test_file=
  5132. lt_cv_deplibs_check_method='unknown'
  5133. # Need to set the preceding variable on all platforms that support
  5134. # interlibrary dependencies.
  5135. # 'none' -- dependencies not supported.
  5136. # `unknown' -- same as none, but documents that we really don't know.
  5137. # 'pass_all' -- all dependencies passed with no checks.
  5138. # 'test_compile' -- check by making test program.
  5139. # 'file_magic [[regex]]' -- check by looking for files in library path
  5140. # which responds to the $file_magic_cmd with a given extended regex.
  5141. # If you have `file' or equivalent on your system and you're not sure
  5142. # whether `pass_all' will *always* work, you probably want this one.
  5143. case $host_os in
  5144. aix[[4-9]]*)
  5145. lt_cv_deplibs_check_method=pass_all
  5146. ;;
  5147. beos*)
  5148. lt_cv_deplibs_check_method=pass_all
  5149. ;;
  5150. bsdi[[45]]*)
  5151. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  5152. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5153. lt_cv_file_magic_test_file=/shlib/libc.so
  5154. ;;
  5155. cygwin*)
  5156. # func_win32_libid is a shell function defined in ltmain.sh
  5157. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5158. lt_cv_file_magic_cmd='func_win32_libid'
  5159. ;;
  5160. mingw* | pw32*)
  5161. # Base MSYS/MinGW do not provide the 'file' command needed by
  5162. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5163. # unless we find 'file', for example because we are cross-compiling.
  5164. if ( file / ) >/dev/null 2>&1; then
  5165. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5166. lt_cv_file_magic_cmd='func_win32_libid'
  5167. else
  5168. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5169. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5170. fi
  5171. ;;
  5172. cegcc)
  5173. # use the weaker test based on 'objdump'. See mingw*.
  5174. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5175. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5176. ;;
  5177. darwin* | rhapsody*)
  5178. lt_cv_deplibs_check_method=pass_all
  5179. ;;
  5180. freebsd* | dragonfly*)
  5181. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5182. case $host_cpu in
  5183. i*86 )
  5184. # Not sure whether the presence of OpenBSD here was a mistake.
  5185. # Let's accept both of them until this is cleared up.
  5186. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  5187. lt_cv_file_magic_cmd=/usr/bin/file
  5188. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5189. ;;
  5190. esac
  5191. else
  5192. lt_cv_deplibs_check_method=pass_all
  5193. fi
  5194. ;;
  5195. gnu*)
  5196. lt_cv_deplibs_check_method=pass_all
  5197. ;;
  5198. hpux10.20* | hpux11*)
  5199. lt_cv_file_magic_cmd=/usr/bin/file
  5200. case $host_cpu in
  5201. ia64*)
  5202. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  5203. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5204. ;;
  5205. hppa*64*)
  5206. [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  5207. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5208. ;;
  5209. *)
  5210. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  5211. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5212. ;;
  5213. esac
  5214. ;;
  5215. interix[[3-9]]*)
  5216. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5217. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  5218. ;;
  5219. irix5* | irix6* | nonstopux*)
  5220. case $LD in
  5221. *-32|*"-32 ") libmagic=32-bit;;
  5222. *-n32|*"-n32 ") libmagic=N32;;
  5223. *-64|*"-64 ") libmagic=64-bit;;
  5224. *) libmagic=never-match;;
  5225. esac
  5226. lt_cv_deplibs_check_method=pass_all
  5227. ;;
  5228. # This must be Linux ELF.
  5229. linux* | k*bsd*-gnu)
  5230. lt_cv_deplibs_check_method=pass_all
  5231. ;;
  5232. netbsd*)
  5233. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5234. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5235. else
  5236. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  5237. fi
  5238. ;;
  5239. newos6*)
  5240. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  5241. lt_cv_file_magic_cmd=/usr/bin/file
  5242. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5243. ;;
  5244. *nto* | *qnx*)
  5245. lt_cv_deplibs_check_method=pass_all
  5246. ;;
  5247. openbsd*)
  5248. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5249. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  5250. else
  5251. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5252. fi
  5253. ;;
  5254. osf3* | osf4* | osf5*)
  5255. lt_cv_deplibs_check_method=pass_all
  5256. ;;
  5257. rdos*)
  5258. lt_cv_deplibs_check_method=pass_all
  5259. ;;
  5260. solaris*)
  5261. lt_cv_deplibs_check_method=pass_all
  5262. ;;
  5263. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5264. lt_cv_deplibs_check_method=pass_all
  5265. ;;
  5266. sysv4 | sysv4.3*)
  5267. case $host_vendor in
  5268. motorola)
  5269. 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]]'
  5270. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5271. ;;
  5272. ncr)
  5273. lt_cv_deplibs_check_method=pass_all
  5274. ;;
  5275. sequent)
  5276. lt_cv_file_magic_cmd='/bin/file'
  5277. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  5278. ;;
  5279. sni)
  5280. lt_cv_file_magic_cmd='/bin/file'
  5281. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  5282. lt_cv_file_magic_test_file=/lib/libc.so
  5283. ;;
  5284. siemens)
  5285. lt_cv_deplibs_check_method=pass_all
  5286. ;;
  5287. pc)
  5288. lt_cv_deplibs_check_method=pass_all
  5289. ;;
  5290. esac
  5291. ;;
  5292. tpf*)
  5293. lt_cv_deplibs_check_method=pass_all
  5294. ;;
  5295. esac
  5296. ])
  5297. file_magic_cmd=$lt_cv_file_magic_cmd
  5298. deplibs_check_method=$lt_cv_deplibs_check_method
  5299. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5300. _LT_DECL([], [deplibs_check_method], [1],
  5301. [Method to check whether dependent libraries are shared objects])
  5302. _LT_DECL([], [file_magic_cmd], [1],
  5303. [Command to use when deplibs_check_method == "file_magic"])
  5304. ])# _LT_CHECK_MAGIC_METHOD
  5305. # LT_PATH_NM
  5306. # ----------
  5307. # find the pathname to a BSD- or MS-compatible name lister
  5308. AC_DEFUN([LT_PATH_NM],
  5309. [AC_REQUIRE([AC_PROG_CC])dnl
  5310. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  5311. [if test -n "$NM"; then
  5312. # Let the user override the test.
  5313. lt_cv_path_NM="$NM"
  5314. else
  5315. lt_nm_to_check="${ac_tool_prefix}nm"
  5316. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5317. lt_nm_to_check="$lt_nm_to_check nm"
  5318. fi
  5319. for lt_tmp_nm in $lt_nm_to_check; do
  5320. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5321. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5322. IFS="$lt_save_ifs"
  5323. test -z "$ac_dir" && ac_dir=.
  5324. tmp_nm="$ac_dir/$lt_tmp_nm"
  5325. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5326. # Check to see if the nm accepts a BSD-compat flag.
  5327. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5328. # nm: unknown option "B" ignored
  5329. # Tru64's nm complains that /dev/null is an invalid object file
  5330. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5331. */dev/null* | *'Invalid file or object type'*)
  5332. lt_cv_path_NM="$tmp_nm -B"
  5333. break
  5334. ;;
  5335. *)
  5336. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5337. */dev/null*)
  5338. lt_cv_path_NM="$tmp_nm -p"
  5339. break
  5340. ;;
  5341. *)
  5342. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5343. continue # so that we can try to find one that supports BSD flags
  5344. ;;
  5345. esac
  5346. ;;
  5347. esac
  5348. fi
  5349. done
  5350. IFS="$lt_save_ifs"
  5351. done
  5352. : ${lt_cv_path_NM=no}
  5353. fi])
  5354. if test "$lt_cv_path_NM" != "no"; then
  5355. NM="$lt_cv_path_NM"
  5356. else
  5357. # Didn't find any BSD compatible name lister, look for dumpbin.
  5358. AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  5359. AC_SUBST([DUMPBIN])
  5360. if test "$DUMPBIN" != ":"; then
  5361. NM="$DUMPBIN"
  5362. fi
  5363. fi
  5364. test -z "$NM" && NM=nm
  5365. AC_SUBST([NM])
  5366. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  5367. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  5368. [lt_cv_nm_interface="BSD nm"
  5369. echo "int some_variable = 0;" > conftest.$ac_ext
  5370. (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  5371. (eval "$ac_compile" 2>conftest.err)
  5372. cat conftest.err >&AS_MESSAGE_LOG_FD
  5373. (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  5374. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5375. cat conftest.err >&AS_MESSAGE_LOG_FD
  5376. (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  5377. cat conftest.out >&AS_MESSAGE_LOG_FD
  5378. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5379. lt_cv_nm_interface="MS dumpbin"
  5380. fi
  5381. rm -f conftest*])
  5382. ])# LT_PATH_NM
  5383. # Old names:
  5384. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  5385. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  5386. dnl aclocal-1.4 backwards compatibility:
  5387. dnl AC_DEFUN([AM_PROG_NM], [])
  5388. dnl AC_DEFUN([AC_PROG_NM], [])
  5389. # LT_LIB_M
  5390. # --------
  5391. # check for math library
  5392. AC_DEFUN([LT_LIB_M],
  5393. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5394. LIBM=
  5395. case $host in
  5396. *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  5397. # These system don't have libm, or don't need it
  5398. ;;
  5399. *-ncr-sysv4.3*)
  5400. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  5401. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  5402. ;;
  5403. *)
  5404. AC_CHECK_LIB(m, cos, LIBM="-lm")
  5405. ;;
  5406. esac
  5407. AC_SUBST([LIBM])
  5408. ])# LT_LIB_M
  5409. # Old name:
  5410. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  5411. dnl aclocal-1.4 backwards compatibility:
  5412. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  5413. # _LT_COMPILER_NO_RTTI([TAGNAME])
  5414. # -------------------------------
  5415. m4_defun([_LT_COMPILER_NO_RTTI],
  5416. [m4_require([_LT_TAG_COMPILER])dnl
  5417. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5418. if test "$GCC" = yes; then
  5419. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5420. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  5421. lt_cv_prog_compiler_rtti_exceptions,
  5422. [-fno-rtti -fno-exceptions], [],
  5423. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  5424. fi
  5425. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  5426. [Compiler flag to turn off builtin functions])
  5427. ])# _LT_COMPILER_NO_RTTI
  5428. # _LT_CMD_GLOBAL_SYMBOLS
  5429. # ----------------------
  5430. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  5431. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5432. AC_REQUIRE([AC_PROG_CC])dnl
  5433. AC_REQUIRE([LT_PATH_NM])dnl
  5434. AC_REQUIRE([LT_PATH_LD])dnl
  5435. m4_require([_LT_DECL_SED])dnl
  5436. m4_require([_LT_DECL_EGREP])dnl
  5437. m4_require([_LT_TAG_COMPILER])dnl
  5438. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5439. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  5440. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  5441. [
  5442. # These are sane defaults that work on at least a few old systems.
  5443. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5444. # Character class describing NM global symbol codes.
  5445. symcode='[[BCDEGRST]]'
  5446. # Regexp to match symbols that can be accessed directly from C.
  5447. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  5448. # Define system-specific variables.
  5449. case $host_os in
  5450. aix*)
  5451. symcode='[[BCDT]]'
  5452. ;;
  5453. cygwin* | mingw* | pw32* | cegcc*)
  5454. symcode='[[ABCDGISTW]]'
  5455. ;;
  5456. hpux*)
  5457. if test "$host_cpu" = ia64; then
  5458. symcode='[[ABCDEGRST]]'
  5459. fi
  5460. ;;
  5461. irix* | nonstopux*)
  5462. symcode='[[BCDEGRST]]'
  5463. ;;
  5464. osf*)
  5465. symcode='[[BCDEGQRST]]'
  5466. ;;
  5467. solaris*)
  5468. symcode='[[BDRT]]'
  5469. ;;
  5470. sco3.2v5*)
  5471. symcode='[[DT]]'
  5472. ;;
  5473. sysv4.2uw2*)
  5474. symcode='[[DT]]'
  5475. ;;
  5476. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5477. symcode='[[ABDT]]'
  5478. ;;
  5479. sysv4)
  5480. symcode='[[DFNSTU]]'
  5481. ;;
  5482. esac
  5483. # If we're using GNU nm, then use its standard symbol codes.
  5484. case `$NM -V 2>&1` in
  5485. *GNU* | *'with BFD'*)
  5486. symcode='[[ABCDGIRSTW]]' ;;
  5487. esac
  5488. # Transform an extracted symbol line into a proper C declaration.
  5489. # Some systems (esp. on ia64) link data and code symbols differently,
  5490. # so use this general approach.
  5491. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5492. # Transform an extracted symbol line into symbol name and symbol address
  5493. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5494. 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'"
  5495. # Handle CRLF in mingw tool chain
  5496. opt_cr=
  5497. case $build_os in
  5498. mingw*)
  5499. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5500. ;;
  5501. esac
  5502. # Try without a prefix underscore, then with it.
  5503. for ac_symprfx in "" "_"; do
  5504. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5505. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5506. # Write the raw and C identifiers.
  5507. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5508. # Fake it for dumpbin and say T for any non-static function
  5509. # and D for any global variable.
  5510. # Also find C++ and __fastcall symbols from MSVC++,
  5511. # which start with @ or ?.
  5512. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  5513. " {last_section=section; section=\$ 3};"\
  5514. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5515. " \$ 0!~/External *\|/{next};"\
  5516. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5517. " {if(hide[section]) next};"\
  5518. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5519. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5520. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5521. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5522. " ' prfx=^$ac_symprfx]"
  5523. else
  5524. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5525. fi
  5526. # Check to see that the pipe works correctly.
  5527. pipe_works=no
  5528. rm -f conftest*
  5529. cat > conftest.$ac_ext <<_LT_EOF
  5530. #ifdef __cplusplus
  5531. extern "C" {
  5532. #endif
  5533. char nm_test_var;
  5534. void nm_test_func(void);
  5535. void nm_test_func(void){}
  5536. #ifdef __cplusplus
  5537. }
  5538. #endif
  5539. int main(){nm_test_var='a';nm_test_func();return(0);}
  5540. _LT_EOF
  5541. if AC_TRY_EVAL(ac_compile); then
  5542. # Now try to grab the symbols.
  5543. nlist=conftest.nm
  5544. if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  5545. # Try sorting and uniquifying the output.
  5546. if sort "$nlist" | uniq > "$nlist"T; then
  5547. mv -f "$nlist"T "$nlist"
  5548. else
  5549. rm -f "$nlist"T
  5550. fi
  5551. # Make sure that we snagged all the symbols we need.
  5552. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5553. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5554. cat <<_LT_EOF > conftest.$ac_ext
  5555. #ifdef __cplusplus
  5556. extern "C" {
  5557. #endif
  5558. _LT_EOF
  5559. # Now generate the symbol file.
  5560. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5561. cat <<_LT_EOF >> conftest.$ac_ext
  5562. /* The mapping between symbol names and symbols. */
  5563. const struct {
  5564. const char *name;
  5565. void *address;
  5566. }
  5567. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  5568. {
  5569. { "@PROGRAM@", (void *) 0 },
  5570. _LT_EOF
  5571. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5572. cat <<\_LT_EOF >> conftest.$ac_ext
  5573. {0, (void *) 0}
  5574. };
  5575. /* This works around a problem in FreeBSD linker */
  5576. #ifdef FREEBSD_WORKAROUND
  5577. static const void *lt_preloaded_setup() {
  5578. return lt__PROGRAM__LTX_preloaded_symbols;
  5579. }
  5580. #endif
  5581. #ifdef __cplusplus
  5582. }
  5583. #endif
  5584. _LT_EOF
  5585. # Now try linking the two files.
  5586. mv conftest.$ac_objext conftstm.$ac_objext
  5587. lt_save_LIBS="$LIBS"
  5588. lt_save_CFLAGS="$CFLAGS"
  5589. LIBS="conftstm.$ac_objext"
  5590. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  5591. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  5592. pipe_works=yes
  5593. fi
  5594. LIBS="$lt_save_LIBS"
  5595. CFLAGS="$lt_save_CFLAGS"
  5596. else
  5597. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  5598. fi
  5599. else
  5600. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  5601. fi
  5602. else
  5603. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  5604. fi
  5605. else
  5606. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  5607. cat conftest.$ac_ext >&5
  5608. fi
  5609. rm -rf conftest* conftst*
  5610. # Do not use the global_symbol_pipe unless it works.
  5611. if test "$pipe_works" = yes; then
  5612. break
  5613. else
  5614. lt_cv_sys_global_symbol_pipe=
  5615. fi
  5616. done
  5617. ])
  5618. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5619. lt_cv_sys_global_symbol_to_cdecl=
  5620. fi
  5621. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5622. AC_MSG_RESULT(failed)
  5623. else
  5624. AC_MSG_RESULT(ok)
  5625. fi
  5626. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  5627. [Take the output of nm and produce a listing of raw symbols and C names])
  5628. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  5629. [Transform the output of nm in a proper C declaration])
  5630. _LT_DECL([global_symbol_to_c_name_address],
  5631. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  5632. [Transform the output of nm in a C name address pair])
  5633. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  5634. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  5635. [Transform the output of nm in a C name address pair when lib prefix is needed])
  5636. ]) # _LT_CMD_GLOBAL_SYMBOLS
  5637. # _LT_COMPILER_PIC([TAGNAME])
  5638. # ---------------------------
  5639. m4_defun([_LT_COMPILER_PIC],
  5640. [m4_require([_LT_TAG_COMPILER])dnl
  5641. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  5642. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5643. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  5644. AC_MSG_CHECKING([for $compiler option to produce PIC])
  5645. m4_if([$1], [CXX], [
  5646. # C++ specific cases for pic, static, wl, etc.
  5647. if test "$GXX" = yes; then
  5648. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5649. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5650. case $host_os in
  5651. aix*)
  5652. # All AIX code is PIC.
  5653. if test "$host_cpu" = ia64; then
  5654. # AIX 5 now supports IA64 processor
  5655. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5656. fi
  5657. ;;
  5658. amigaos*)
  5659. case $host_cpu in
  5660. powerpc)
  5661. # see comment about AmigaOS4 .so support
  5662. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5663. ;;
  5664. m68k)
  5665. # FIXME: we need at least 68020 code to build shared libraries, but
  5666. # adding the `-m68020' flag to GCC prevents building anything better,
  5667. # like `-m68040'.
  5668. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5669. ;;
  5670. esac
  5671. ;;
  5672. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5673. # PIC is the default for these OSes.
  5674. ;;
  5675. mingw* | cygwin* | os2* | pw32* | cegcc*)
  5676. # This hack is so that the source file can tell whether it is being
  5677. # built for inclusion in a dll (and should export symbols for example).
  5678. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5679. # (--disable-auto-import) libraries
  5680. m4_if([$1], [GCJ], [],
  5681. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5682. ;;
  5683. darwin* | rhapsody*)
  5684. # PIC is the default on this platform
  5685. # Common symbols not allowed in MH_DYLIB files
  5686. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5687. ;;
  5688. *djgpp*)
  5689. # DJGPP does not support shared libraries at all
  5690. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5691. ;;
  5692. interix[[3-9]]*)
  5693. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5694. # Instead, we relocate shared libraries at runtime.
  5695. ;;
  5696. sysv4*MP*)
  5697. if test -d /usr/nec; then
  5698. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5699. fi
  5700. ;;
  5701. hpux*)
  5702. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  5703. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  5704. # sets the default TLS model and affects inlining.
  5705. case $host_cpu in
  5706. hppa*64*)
  5707. ;;
  5708. *)
  5709. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5710. ;;
  5711. esac
  5712. ;;
  5713. *qnx* | *nto*)
  5714. # QNX uses GNU C++, but need to define -shared option too, otherwise
  5715. # it will coredump.
  5716. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5717. ;;
  5718. *)
  5719. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5720. ;;
  5721. esac
  5722. else
  5723. case $host_os in
  5724. aix[[4-9]]*)
  5725. # All AIX code is PIC.
  5726. if test "$host_cpu" = ia64; then
  5727. # AIX 5 now supports IA64 processor
  5728. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5729. else
  5730. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5731. fi
  5732. ;;
  5733. chorus*)
  5734. case $cc_basename in
  5735. cxch68*)
  5736. # Green Hills C++ Compiler
  5737. # _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"
  5738. ;;
  5739. esac
  5740. ;;
  5741. dgux*)
  5742. case $cc_basename in
  5743. ec++*)
  5744. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5745. ;;
  5746. ghcx*)
  5747. # Green Hills C++ Compiler
  5748. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5749. ;;
  5750. *)
  5751. ;;
  5752. esac
  5753. ;;
  5754. freebsd* | dragonfly*)
  5755. # FreeBSD uses GNU C++
  5756. ;;
  5757. hpux9* | hpux10* | hpux11*)
  5758. case $cc_basename in
  5759. CC*)
  5760. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5761. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5762. if test "$host_cpu" != ia64; then
  5763. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5764. fi
  5765. ;;
  5766. aCC*)
  5767. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5768. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5769. case $host_cpu in
  5770. hppa*64*|ia64*)
  5771. # +Z the default
  5772. ;;
  5773. *)
  5774. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5775. ;;
  5776. esac
  5777. ;;
  5778. *)
  5779. ;;
  5780. esac
  5781. ;;
  5782. interix*)
  5783. # This is c89, which is MS Visual C++ (no shared libs)
  5784. # Anyone wants to do a port?
  5785. ;;
  5786. irix5* | irix6* | nonstopux*)
  5787. case $cc_basename in
  5788. CC*)
  5789. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5790. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5791. # CC pic flag -KPIC is the default.
  5792. ;;
  5793. *)
  5794. ;;
  5795. esac
  5796. ;;
  5797. linux* | k*bsd*-gnu)
  5798. case $cc_basename in
  5799. KCC*)
  5800. # KAI C++ Compiler
  5801. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5802. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5803. ;;
  5804. ecpc* )
  5805. # old Intel C++ for x86_64 which still supported -KPIC.
  5806. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5807. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5808. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5809. ;;
  5810. icpc* )
  5811. # Intel C++, used to be incompatible with GCC.
  5812. # ICC 10 doesn't accept -KPIC any more.
  5813. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5814. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5815. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5816. ;;
  5817. pgCC* | pgcpp*)
  5818. # Portland Group C++ compiler
  5819. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5820. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5821. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5822. ;;
  5823. cxx*)
  5824. # Compaq C++
  5825. # Make sure the PIC flag is empty. It appears that all Alpha
  5826. # Linux and Compaq Tru64 Unix objects are PIC.
  5827. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5828. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5829. ;;
  5830. xlc* | xlC*)
  5831. # IBM XL 8.0 on PPC
  5832. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5833. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  5834. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  5835. ;;
  5836. *)
  5837. case `$CC -V 2>&1 | sed 5q` in
  5838. *Sun\ C*)
  5839. # Sun C++ 5.9
  5840. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5841. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5842. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5843. ;;
  5844. esac
  5845. ;;
  5846. esac
  5847. ;;
  5848. lynxos*)
  5849. ;;
  5850. m88k*)
  5851. ;;
  5852. mvs*)
  5853. case $cc_basename in
  5854. cxx*)
  5855. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  5856. ;;
  5857. *)
  5858. ;;
  5859. esac
  5860. ;;
  5861. netbsd*)
  5862. ;;
  5863. *qnx* | *nto*)
  5864. # QNX uses GNU C++, but need to define -shared option too, otherwise
  5865. # it will coredump.
  5866. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5867. ;;
  5868. osf3* | osf4* | osf5*)
  5869. case $cc_basename in
  5870. KCC*)
  5871. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5872. ;;
  5873. RCC*)
  5874. # Rational C++ 2.4.1
  5875. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5876. ;;
  5877. cxx*)
  5878. # Digital/Compaq C++
  5879. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5880. # Make sure the PIC flag is empty. It appears that all Alpha
  5881. # Linux and Compaq Tru64 Unix objects are PIC.
  5882. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5883. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5884. ;;
  5885. *)
  5886. ;;
  5887. esac
  5888. ;;
  5889. psos*)
  5890. ;;
  5891. solaris*)
  5892. case $cc_basename in
  5893. CC*)
  5894. # Sun C++ 4.2, 5.x and Centerline C++
  5895. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5896. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5897. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5898. ;;
  5899. gcx*)
  5900. # Green Hills C++ Compiler
  5901. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5902. ;;
  5903. *)
  5904. ;;
  5905. esac
  5906. ;;
  5907. sunos4*)
  5908. case $cc_basename in
  5909. CC*)
  5910. # Sun C++ 4.x
  5911. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5912. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5913. ;;
  5914. lcc*)
  5915. # Lucid
  5916. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5917. ;;
  5918. *)
  5919. ;;
  5920. esac
  5921. ;;
  5922. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5923. case $cc_basename in
  5924. CC*)
  5925. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5926. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5927. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5928. ;;
  5929. esac
  5930. ;;
  5931. tandem*)
  5932. case $cc_basename in
  5933. NCC*)
  5934. # NonStop-UX NCC 3.20
  5935. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5936. ;;
  5937. *)
  5938. ;;
  5939. esac
  5940. ;;
  5941. vxworks*)
  5942. ;;
  5943. *)
  5944. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5945. ;;
  5946. esac
  5947. fi
  5948. ],
  5949. [
  5950. if test "$GCC" = yes; then
  5951. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5952. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5953. case $host_os in
  5954. aix*)
  5955. # All AIX code is PIC.
  5956. if test "$host_cpu" = ia64; then
  5957. # AIX 5 now supports IA64 processor
  5958. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5959. fi
  5960. ;;
  5961. amigaos*)
  5962. case $host_cpu in
  5963. powerpc)
  5964. # see comment about AmigaOS4 .so support
  5965. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5966. ;;
  5967. m68k)
  5968. # FIXME: we need at least 68020 code to build shared libraries, but
  5969. # adding the `-m68020' flag to GCC prevents building anything better,
  5970. # like `-m68040'.
  5971. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5972. ;;
  5973. esac
  5974. ;;
  5975. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5976. # PIC is the default for these OSes.
  5977. ;;
  5978. mingw* | cygwin* | pw32* | os2* | cegcc*)
  5979. # This hack is so that the source file can tell whether it is being
  5980. # built for inclusion in a dll (and should export symbols for example).
  5981. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5982. # (--disable-auto-import) libraries
  5983. m4_if([$1], [GCJ], [],
  5984. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5985. ;;
  5986. darwin* | rhapsody*)
  5987. # PIC is the default on this platform
  5988. # Common symbols not allowed in MH_DYLIB files
  5989. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5990. ;;
  5991. hpux*)
  5992. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  5993. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  5994. # sets the default TLS model and affects inlining.
  5995. case $host_cpu in
  5996. hppa*64*)
  5997. # +Z the default
  5998. ;;
  5999. *)
  6000. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6001. ;;
  6002. esac
  6003. ;;
  6004. interix[[3-9]]*)
  6005. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6006. # Instead, we relocate shared libraries at runtime.
  6007. ;;
  6008. msdosdjgpp*)
  6009. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6010. # on systems that don't support them.
  6011. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6012. enable_shared=no
  6013. ;;
  6014. *nto* | *qnx*)
  6015. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6016. # it will coredump.
  6017. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6018. ;;
  6019. sysv4*MP*)
  6020. if test -d /usr/nec; then
  6021. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6022. fi
  6023. ;;
  6024. *)
  6025. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6026. ;;
  6027. esac
  6028. else
  6029. # PORTME Check for flag to pass linker flags through the system compiler.
  6030. case $host_os in
  6031. aix*)
  6032. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6033. if test "$host_cpu" = ia64; then
  6034. # AIX 5 now supports IA64 processor
  6035. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6036. else
  6037. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6038. fi
  6039. ;;
  6040. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6041. # This hack is so that the source file can tell whether it is being
  6042. # built for inclusion in a dll (and should export symbols for example).
  6043. m4_if([$1], [GCJ], [],
  6044. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6045. ;;
  6046. hpux9* | hpux10* | hpux11*)
  6047. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6048. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6049. # not for PA HP-UX.
  6050. case $host_cpu in
  6051. hppa*64*|ia64*)
  6052. # +Z the default
  6053. ;;
  6054. *)
  6055. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6056. ;;
  6057. esac
  6058. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6059. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6060. ;;
  6061. irix5* | irix6* | nonstopux*)
  6062. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6063. # PIC (with -KPIC) is the default.
  6064. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6065. ;;
  6066. linux* | k*bsd*-gnu)
  6067. case $cc_basename in
  6068. # old Intel for x86_64 which still supported -KPIC.
  6069. ecc*)
  6070. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6071. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6072. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6073. ;;
  6074. # icc used to be incompatible with GCC.
  6075. # ICC 10 doesn't accept -KPIC any more.
  6076. icc* | ifort*)
  6077. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6078. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6079. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6080. ;;
  6081. # Lahey Fortran 8.1.
  6082. lf95*)
  6083. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6084. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  6085. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  6086. ;;
  6087. pgcc* | pgf77* | pgf90* | pgf95*)
  6088. # Portland Group compilers (*not* the Pentium gcc compiler,
  6089. # which looks to be a dead project)
  6090. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6091. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  6092. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6093. ;;
  6094. ccc*)
  6095. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6096. # All Alpha code is PIC.
  6097. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6098. ;;
  6099. xl*)
  6100. # IBM XL C 8.0/Fortran 10.1 on PPC
  6101. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6102. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  6103. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  6104. ;;
  6105. *)
  6106. case `$CC -V 2>&1 | sed 5q` in
  6107. *Sun\ C*)
  6108. # Sun C 5.9
  6109. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6110. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6111. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6112. ;;
  6113. *Sun\ F*)
  6114. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6115. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6116. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6117. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  6118. ;;
  6119. esac
  6120. ;;
  6121. esac
  6122. ;;
  6123. newsos6)
  6124. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6125. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6126. ;;
  6127. *nto* | *qnx*)
  6128. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6129. # it will coredump.
  6130. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6131. ;;
  6132. osf3* | osf4* | osf5*)
  6133. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6134. # All OSF/1 code is PIC.
  6135. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6136. ;;
  6137. rdos*)
  6138. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6139. ;;
  6140. solaris*)
  6141. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6142. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6143. case $cc_basename in
  6144. f77* | f90* | f95*)
  6145. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  6146. *)
  6147. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  6148. esac
  6149. ;;
  6150. sunos4*)
  6151. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6152. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  6153. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6154. ;;
  6155. sysv4 | sysv4.2uw2* | sysv4.3*)
  6156. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6157. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6158. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6159. ;;
  6160. sysv4*MP*)
  6161. if test -d /usr/nec ;then
  6162. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  6163. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6164. fi
  6165. ;;
  6166. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6167. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6168. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6169. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6170. ;;
  6171. unicos*)
  6172. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6173. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6174. ;;
  6175. uts4*)
  6176. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6177. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6178. ;;
  6179. *)
  6180. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6181. ;;
  6182. esac
  6183. fi
  6184. ])
  6185. case $host_os in
  6186. # For platforms which do not support PIC, -DPIC is meaningless:
  6187. *djgpp*)
  6188. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6189. ;;
  6190. *)
  6191. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  6192. ;;
  6193. esac
  6194. AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  6195. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  6196. [How to pass a linker flag through the compiler])
  6197. #
  6198. # Check to make sure the PIC flag actually works.
  6199. #
  6200. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  6201. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  6202. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  6203. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  6204. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  6205. "" | " "*) ;;
  6206. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  6207. esac],
  6208. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6209. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  6210. fi
  6211. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  6212. [Additional compiler flags for building library objects])
  6213. #
  6214. # Check to make sure the static flag actually works.
  6215. #
  6216. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  6217. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  6218. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  6219. $lt_tmp_static_flag,
  6220. [],
  6221. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  6222. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  6223. [Compiler flag to prevent dynamic linking])
  6224. ])# _LT_COMPILER_PIC
  6225. # _LT_LINKER_SHLIBS([TAGNAME])
  6226. # ----------------------------
  6227. # See if the linker supports building shared libraries.
  6228. m4_defun([_LT_LINKER_SHLIBS],
  6229. [AC_REQUIRE([LT_PATH_LD])dnl
  6230. AC_REQUIRE([LT_PATH_NM])dnl
  6231. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6232. m4_require([_LT_DECL_EGREP])dnl
  6233. m4_require([_LT_DECL_SED])dnl
  6234. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  6235. m4_require([_LT_TAG_COMPILER])dnl
  6236. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  6237. m4_if([$1], [CXX], [
  6238. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6239. case $host_os in
  6240. aix[[4-9]]*)
  6241. # If we're using GNU nm, then we don't want the "-C" option.
  6242. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6243. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6244. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6245. else
  6246. _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'
  6247. fi
  6248. ;;
  6249. pw32*)
  6250. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  6251. ;;
  6252. cygwin* | mingw* | cegcc*)
  6253. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  6254. ;;
  6255. *)
  6256. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6257. ;;
  6258. esac
  6259. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  6260. ], [
  6261. runpath_var=
  6262. _LT_TAGVAR(allow_undefined_flag, $1)=
  6263. _LT_TAGVAR(always_export_symbols, $1)=no
  6264. _LT_TAGVAR(archive_cmds, $1)=
  6265. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6266. _LT_TAGVAR(compiler_needs_object, $1)=no
  6267. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6268. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6269. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6270. _LT_TAGVAR(hardcode_automatic, $1)=no
  6271. _LT_TAGVAR(hardcode_direct, $1)=no
  6272. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6273. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6274. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6275. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6276. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6277. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6278. _LT_TAGVAR(inherit_rpath, $1)=no
  6279. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6280. _LT_TAGVAR(module_cmds, $1)=
  6281. _LT_TAGVAR(module_expsym_cmds, $1)=
  6282. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  6283. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  6284. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  6285. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6286. # include_expsyms should be a list of space-separated symbols to be *always*
  6287. # included in the symbol list
  6288. _LT_TAGVAR(include_expsyms, $1)=
  6289. # exclude_expsyms can be an extended regexp of symbols to exclude
  6290. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6291. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6292. # as well as any symbol that contains `d'.
  6293. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  6294. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6295. # platforms (ab)use it in PIC code, but their linkers get confused if
  6296. # the symbol is explicitly referenced. Since portable code cannot
  6297. # rely on this symbol name, it's probably fine to never include it in
  6298. # preloaded symbol tables.
  6299. # Exclude shared library initialization/finalization symbols.
  6300. dnl Note also adjust exclude_expsyms for C++ above.
  6301. extract_expsyms_cmds=
  6302. case $host_os in
  6303. cygwin* | mingw* | pw32* | cegcc*)
  6304. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6305. # When not using gcc, we currently assume that we are using
  6306. # Microsoft Visual C++.
  6307. if test "$GCC" != yes; then
  6308. with_gnu_ld=no
  6309. fi
  6310. ;;
  6311. interix*)
  6312. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6313. with_gnu_ld=yes
  6314. ;;
  6315. openbsd*)
  6316. with_gnu_ld=no
  6317. ;;
  6318. esac
  6319. _LT_TAGVAR(ld_shlibs, $1)=yes
  6320. if test "$with_gnu_ld" = yes; then
  6321. # If archive_cmds runs LD, not CC, wlarc should be empty
  6322. wlarc='${wl}'
  6323. # Set some defaults for GNU ld with shared library support. These
  6324. # are reset later if shared libraries are not supported. Putting them
  6325. # here allows them to be overridden if necessary.
  6326. runpath_var=LD_RUN_PATH
  6327. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6328. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6329. # ancient GNU ld didn't support --whole-archive et. al.
  6330. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6331. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6332. else
  6333. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6334. fi
  6335. supports_anon_versioning=no
  6336. case `$LD -v 2>&1` in
  6337. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  6338. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6339. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6340. *\ 2.11.*) ;; # other 2.11 versions
  6341. *) supports_anon_versioning=yes ;;
  6342. esac
  6343. # See if GNU ld supports shared libraries.
  6344. case $host_os in
  6345. aix[[3-9]]*)
  6346. # On AIX/PPC, the GNU linker is very broken
  6347. if test "$host_cpu" != ia64; then
  6348. _LT_TAGVAR(ld_shlibs, $1)=no
  6349. cat <<_LT_EOF 1>&2
  6350. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6351. *** to be unable to reliably create shared libraries on AIX.
  6352. *** Therefore, libtool is disabling shared libraries support. If you
  6353. *** really care for shared libraries, you may want to modify your PATH
  6354. *** so that a non-GNU linker is found, and then restart.
  6355. _LT_EOF
  6356. fi
  6357. ;;
  6358. amigaos*)
  6359. case $host_cpu in
  6360. powerpc)
  6361. # see comment about AmigaOS4 .so support
  6362. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6363. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  6364. ;;
  6365. m68k)
  6366. _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)'
  6367. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6368. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6369. ;;
  6370. esac
  6371. ;;
  6372. beos*)
  6373. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6374. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6375. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6376. # support --undefined. This deserves some investigation. FIXME
  6377. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6378. else
  6379. _LT_TAGVAR(ld_shlibs, $1)=no
  6380. fi
  6381. ;;
  6382. cygwin* | mingw* | pw32* | cegcc*)
  6383. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6384. # as there is no search path for DLLs.
  6385. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6386. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6387. _LT_TAGVAR(always_export_symbols, $1)=no
  6388. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6389. _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'
  6390. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6391. _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'
  6392. # If the export-symbols file already is a .def file (1st line
  6393. # is EXPORTS), use it as is; otherwise, prepend...
  6394. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6395. cp $export_symbols $output_objdir/$soname.def;
  6396. else
  6397. echo EXPORTS > $output_objdir/$soname.def;
  6398. cat $export_symbols >> $output_objdir/$soname.def;
  6399. fi~
  6400. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6401. else
  6402. _LT_TAGVAR(ld_shlibs, $1)=no
  6403. fi
  6404. ;;
  6405. interix[[3-9]]*)
  6406. _LT_TAGVAR(hardcode_direct, $1)=no
  6407. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6408. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6409. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6410. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6411. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6412. # default) and relocated if they conflict, which is a slow very memory
  6413. # consuming and fragmenting process. To avoid this, we pick a random,
  6414. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6415. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6416. _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'
  6417. _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'
  6418. ;;
  6419. gnu* | linux* | tpf* | k*bsd*-gnu)
  6420. tmp_diet=no
  6421. if test "$host_os" = linux-dietlibc; then
  6422. case $cc_basename in
  6423. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  6424. esac
  6425. fi
  6426. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  6427. && test "$tmp_diet" = no
  6428. then
  6429. tmp_addflag=
  6430. tmp_sharedflag='-shared'
  6431. case $cc_basename,$host_cpu in
  6432. pgcc*) # Portland Group C compiler
  6433. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6434. tmp_addflag=' $pic_flag'
  6435. ;;
  6436. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6437. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6438. tmp_addflag=' $pic_flag -Mnomain' ;;
  6439. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6440. tmp_addflag=' -i_dynamic' ;;
  6441. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6442. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6443. ifc* | ifort*) # Intel Fortran compiler
  6444. tmp_addflag=' -nofor_main' ;;
  6445. lf95*) # Lahey Fortran 8.1
  6446. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6447. tmp_sharedflag='--shared' ;;
  6448. xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  6449. tmp_sharedflag='-qmkshrobj'
  6450. tmp_addflag= ;;
  6451. esac
  6452. case `$CC -V 2>&1 | sed 5q` in
  6453. *Sun\ C*) # Sun C 5.9
  6454. _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6455. _LT_TAGVAR(compiler_needs_object, $1)=yes
  6456. tmp_sharedflag='-G' ;;
  6457. *Sun\ F*) # Sun Fortran 8.3
  6458. tmp_sharedflag='-G' ;;
  6459. esac
  6460. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6461. if test "x$supports_anon_versioning" = xyes; then
  6462. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6463. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6464. echo "local: *; };" >> $output_objdir/$libname.ver~
  6465. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6466. fi
  6467. case $cc_basename in
  6468. xlf*)
  6469. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  6470. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  6471. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6472. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  6473. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  6474. if test "x$supports_anon_versioning" = xyes; then
  6475. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6476. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6477. echo "local: *; };" >> $output_objdir/$libname.ver~
  6478. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  6479. fi
  6480. ;;
  6481. esac
  6482. else
  6483. _LT_TAGVAR(ld_shlibs, $1)=no
  6484. fi
  6485. ;;
  6486. netbsd*)
  6487. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6488. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6489. wlarc=
  6490. else
  6491. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6492. _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'
  6493. fi
  6494. ;;
  6495. solaris*)
  6496. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  6497. _LT_TAGVAR(ld_shlibs, $1)=no
  6498. cat <<_LT_EOF 1>&2
  6499. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6500. *** create shared libraries on Solaris systems. Therefore, libtool
  6501. *** is disabling shared libraries support. We urge you to upgrade GNU
  6502. *** binutils to release 2.9.1 or newer. Another option is to modify
  6503. *** your PATH or compiler configuration so that the native linker is
  6504. *** used, and then restart.
  6505. _LT_EOF
  6506. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6507. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6508. _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'
  6509. else
  6510. _LT_TAGVAR(ld_shlibs, $1)=no
  6511. fi
  6512. ;;
  6513. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6514. case `$LD -v 2>&1` in
  6515. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  6516. _LT_TAGVAR(ld_shlibs, $1)=no
  6517. cat <<_LT_EOF 1>&2
  6518. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6519. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6520. *** is disabling shared libraries support. We urge you to upgrade GNU
  6521. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6522. *** your PATH or compiler configuration so that the native linker is
  6523. *** used, and then restart.
  6524. _LT_EOF
  6525. ;;
  6526. *)
  6527. # For security reasons, it is highly recommended that you always
  6528. # use absolute paths for naming shared libraries, and exclude the
  6529. # DT_RUNPATH tag from executables and libraries. But doing so
  6530. # requires that you compile everything twice, which is a pain.
  6531. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6532. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6533. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6534. _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'
  6535. else
  6536. _LT_TAGVAR(ld_shlibs, $1)=no
  6537. fi
  6538. ;;
  6539. esac
  6540. ;;
  6541. sunos4*)
  6542. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6543. wlarc=
  6544. _LT_TAGVAR(hardcode_direct, $1)=yes
  6545. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6546. ;;
  6547. *)
  6548. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6549. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6550. _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'
  6551. else
  6552. _LT_TAGVAR(ld_shlibs, $1)=no
  6553. fi
  6554. ;;
  6555. esac
  6556. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  6557. runpath_var=
  6558. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6559. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6560. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6561. fi
  6562. else
  6563. # PORTME fill in a description of your system's linker (not GNU ld)
  6564. case $host_os in
  6565. aix3*)
  6566. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6567. _LT_TAGVAR(always_export_symbols, $1)=yes
  6568. _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'
  6569. # Note: this linker hardcodes the directories in LIBPATH if there
  6570. # are no directories specified by -L.
  6571. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6572. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6573. # Neither direct hardcoding nor static linking is supported with a
  6574. # broken collect2.
  6575. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6576. fi
  6577. ;;
  6578. aix[[4-9]]*)
  6579. if test "$host_cpu" = ia64; then
  6580. # On IA64, the linker does run time linking by default, so we don't
  6581. # have to do anything special.
  6582. aix_use_runtimelinking=no
  6583. exp_sym_flag='-Bexport'
  6584. no_entry_flag=""
  6585. else
  6586. # If we're using GNU nm, then we don't want the "-C" option.
  6587. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6588. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6589. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6590. else
  6591. _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'
  6592. fi
  6593. aix_use_runtimelinking=no
  6594. # Test if we are trying to use run time linking or normal
  6595. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6596. # need to do runtime linking.
  6597. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  6598. for ld_flag in $LDFLAGS; do
  6599. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6600. aix_use_runtimelinking=yes
  6601. break
  6602. fi
  6603. done
  6604. ;;
  6605. esac
  6606. exp_sym_flag='-bexport'
  6607. no_entry_flag='-bnoentry'
  6608. fi
  6609. # When large executables or shared objects are built, AIX ld can
  6610. # have problems creating the table of contents. If linking a library
  6611. # or program results in "error TOC overflow" add -mminimal-toc to
  6612. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6613. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6614. _LT_TAGVAR(archive_cmds, $1)=''
  6615. _LT_TAGVAR(hardcode_direct, $1)=yes
  6616. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6617. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6618. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6619. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  6620. if test "$GCC" = yes; then
  6621. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6622. # We only want to do this on AIX 4.2 and lower, the check
  6623. # below for broken collect2 doesn't work under 4.3+
  6624. collect2name=`${CC} -print-prog-name=collect2`
  6625. if test -f "$collect2name" &&
  6626. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6627. then
  6628. # We have reworked collect2
  6629. :
  6630. else
  6631. # We have old collect2
  6632. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6633. # It fails to find uninstalled libraries when the uninstalled
  6634. # path is not listed in the libpath. Setting hardcode_minus_L
  6635. # to unsupported forces relinking
  6636. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6637. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6638. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6639. fi
  6640. ;;
  6641. esac
  6642. shared_flag='-shared'
  6643. if test "$aix_use_runtimelinking" = yes; then
  6644. shared_flag="$shared_flag "'${wl}-G'
  6645. fi
  6646. else
  6647. # not using gcc
  6648. if test "$host_cpu" = ia64; then
  6649. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6650. # chokes on -Wl,-G. The following line is correct:
  6651. shared_flag='-G'
  6652. else
  6653. if test "$aix_use_runtimelinking" = yes; then
  6654. shared_flag='${wl}-G'
  6655. else
  6656. shared_flag='${wl}-bM:SRE'
  6657. fi
  6658. fi
  6659. fi
  6660. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  6661. # It seems that -bexpall does not export symbols beginning with
  6662. # underscore (_), so it is better to generate a list of symbols to export.
  6663. _LT_TAGVAR(always_export_symbols, $1)=yes
  6664. if test "$aix_use_runtimelinking" = yes; then
  6665. # Warning - without using the other runtime loading flags (-brtl),
  6666. # -berok will link without error, but may produce a broken library.
  6667. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6668. # Determine the default libpath from the value encoded in an
  6669. # empty executable.
  6670. _LT_SYS_MODULE_PATH_AIX
  6671. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6672. _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6673. else
  6674. if test "$host_cpu" = ia64; then
  6675. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6676. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6677. _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"
  6678. else
  6679. # Determine the default libpath from the value encoded in an
  6680. # empty executable.
  6681. _LT_SYS_MODULE_PATH_AIX
  6682. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6683. # Warning - without using the other run time loading flags,
  6684. # -berok will link without error, but may produce a broken library.
  6685. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6686. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6687. # Exported symbols can be pulled into shared objects from archives
  6688. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6689. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6690. # This is similar to how AIX traditionally builds its shared libraries.
  6691. _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'
  6692. fi
  6693. fi
  6694. ;;
  6695. amigaos*)
  6696. case $host_cpu in
  6697. powerpc)
  6698. # see comment about AmigaOS4 .so support
  6699. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6700. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  6701. ;;
  6702. m68k)
  6703. _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)'
  6704. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6705. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6706. ;;
  6707. esac
  6708. ;;
  6709. bsdi[[45]]*)
  6710. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  6711. ;;
  6712. cygwin* | mingw* | pw32* | cegcc*)
  6713. # When not using gcc, we currently assume that we are using
  6714. # Microsoft Visual C++.
  6715. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6716. # no search path for DLLs.
  6717. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6718. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6719. # Tell ltmain to make .lib files, not .a files.
  6720. libext=lib
  6721. # Tell ltmain to make .dll files, not .so files.
  6722. shrext_cmds=".dll"
  6723. # FIXME: Setting linknames here is a bad hack.
  6724. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6725. # The linker will automatically build a .lib file if we build a DLL.
  6726. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6727. # FIXME: Should let the user specify the lib program.
  6728. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6729. _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  6730. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6731. ;;
  6732. darwin* | rhapsody*)
  6733. _LT_DARWIN_LINKER_FEATURES($1)
  6734. ;;
  6735. dgux*)
  6736. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6737. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6738. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6739. ;;
  6740. freebsd1*)
  6741. _LT_TAGVAR(ld_shlibs, $1)=no
  6742. ;;
  6743. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6744. # support. Future versions do this automatically, but an explicit c++rt0.o
  6745. # does not break anything, and helps significantly (at the cost of a little
  6746. # extra space).
  6747. freebsd2.2*)
  6748. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6749. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6750. _LT_TAGVAR(hardcode_direct, $1)=yes
  6751. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6752. ;;
  6753. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6754. freebsd2*)
  6755. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6756. _LT_TAGVAR(hardcode_direct, $1)=yes
  6757. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6758. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6759. ;;
  6760. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6761. freebsd* | dragonfly*)
  6762. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6763. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6764. _LT_TAGVAR(hardcode_direct, $1)=yes
  6765. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6766. ;;
  6767. hpux9*)
  6768. if test "$GCC" = yes; then
  6769. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6770. else
  6771. _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'
  6772. fi
  6773. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6774. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6775. _LT_TAGVAR(hardcode_direct, $1)=yes
  6776. # hardcode_minus_L: Not really in the search PATH,
  6777. # but as the default location of the library.
  6778. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6779. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6780. ;;
  6781. hpux10*)
  6782. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6783. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6784. else
  6785. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6786. fi
  6787. if test "$with_gnu_ld" = no; then
  6788. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6789. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  6790. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6791. _LT_TAGVAR(hardcode_direct, $1)=yes
  6792. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6793. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6794. # hardcode_minus_L: Not really in the search PATH,
  6795. # but as the default location of the library.
  6796. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6797. fi
  6798. ;;
  6799. hpux11*)
  6800. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6801. case $host_cpu in
  6802. hppa*64*)
  6803. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6804. ;;
  6805. ia64*)
  6806. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6807. ;;
  6808. *)
  6809. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6810. ;;
  6811. esac
  6812. else
  6813. case $host_cpu in
  6814. hppa*64*)
  6815. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6816. ;;
  6817. ia64*)
  6818. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6819. ;;
  6820. *)
  6821. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6822. ;;
  6823. esac
  6824. fi
  6825. if test "$with_gnu_ld" = no; then
  6826. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6827. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6828. case $host_cpu in
  6829. hppa*64*|ia64*)
  6830. _LT_TAGVAR(hardcode_direct, $1)=no
  6831. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6832. ;;
  6833. *)
  6834. _LT_TAGVAR(hardcode_direct, $1)=yes
  6835. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6836. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6837. # hardcode_minus_L: Not really in the search PATH,
  6838. # but as the default location of the library.
  6839. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6840. ;;
  6841. esac
  6842. fi
  6843. ;;
  6844. irix5* | irix6* | nonstopux*)
  6845. if test "$GCC" = yes; then
  6846. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6847. # Try to use the -exported_symbol ld option, if it does not
  6848. # work, assume that -exports_file does not work either and
  6849. # implicitly export all symbols.
  6850. save_LDFLAGS="$LDFLAGS"
  6851. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  6852. AC_LINK_IFELSE(int foo(void) {},
  6853. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  6854. )
  6855. LDFLAGS="$save_LDFLAGS"
  6856. else
  6857. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6858. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  6859. fi
  6860. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6861. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6862. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6863. _LT_TAGVAR(inherit_rpath, $1)=yes
  6864. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6865. ;;
  6866. netbsd*)
  6867. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6868. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6869. else
  6870. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6871. fi
  6872. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6873. _LT_TAGVAR(hardcode_direct, $1)=yes
  6874. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6875. ;;
  6876. newsos6)
  6877. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6878. _LT_TAGVAR(hardcode_direct, $1)=yes
  6879. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6880. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6881. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6882. ;;
  6883. *nto* | *qnx*)
  6884. ;;
  6885. openbsd*)
  6886. if test -f /usr/libexec/ld.so; then
  6887. _LT_TAGVAR(hardcode_direct, $1)=yes
  6888. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6889. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6890. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6891. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6892. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6893. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6894. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6895. else
  6896. case $host_os in
  6897. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  6898. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6899. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6900. ;;
  6901. *)
  6902. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6903. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6904. ;;
  6905. esac
  6906. fi
  6907. else
  6908. _LT_TAGVAR(ld_shlibs, $1)=no
  6909. fi
  6910. ;;
  6911. os2*)
  6912. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6913. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6914. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6915. _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'
  6916. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6917. ;;
  6918. osf3*)
  6919. if test "$GCC" = yes; then
  6920. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6921. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6922. else
  6923. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6924. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6925. fi
  6926. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6927. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6928. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6929. ;;
  6930. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6931. if test "$GCC" = yes; then
  6932. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6933. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6934. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6935. else
  6936. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6937. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6938. _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~
  6939. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  6940. # Both c and cxx compiler support -rpath directly
  6941. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6942. fi
  6943. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6944. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6945. ;;
  6946. solaris*)
  6947. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  6948. if test "$GCC" = yes; then
  6949. wlarc='${wl}'
  6950. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6951. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6952. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6953. else
  6954. case `$CC -V 2>&1` in
  6955. *"Compilers 5.0"*)
  6956. wlarc=''
  6957. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6958. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6959. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  6960. ;;
  6961. *)
  6962. wlarc='${wl}'
  6963. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6964. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6965. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6966. ;;
  6967. esac
  6968. fi
  6969. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6970. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6971. case $host_os in
  6972. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6973. *)
  6974. # The compiler driver will combine and reorder linker options,
  6975. # but understands `-z linker_flag'. GCC discards it without `$wl',
  6976. # but is careful enough not to reorder.
  6977. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6978. if test "$GCC" = yes; then
  6979. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6980. else
  6981. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6982. fi
  6983. ;;
  6984. esac
  6985. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6986. ;;
  6987. sunos4*)
  6988. if test "x$host_vendor" = xsequent; then
  6989. # Use $CC to link under sequent, because it throws in some extra .o
  6990. # files that make .init and .fini sections work.
  6991. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6992. else
  6993. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6994. fi
  6995. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6996. _LT_TAGVAR(hardcode_direct, $1)=yes
  6997. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6998. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6999. ;;
  7000. sysv4)
  7001. case $host_vendor in
  7002. sni)
  7003. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7004. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  7005. ;;
  7006. siemens)
  7007. ## LD is ld it makes a PLAMLIB
  7008. ## CC just makes a GrossModule.
  7009. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7010. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  7011. _LT_TAGVAR(hardcode_direct, $1)=no
  7012. ;;
  7013. motorola)
  7014. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7015. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  7016. ;;
  7017. esac
  7018. runpath_var='LD_RUN_PATH'
  7019. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7020. ;;
  7021. sysv4.3*)
  7022. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7023. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7024. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  7025. ;;
  7026. sysv4*MP*)
  7027. if test -d /usr/nec; then
  7028. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7029. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7030. runpath_var=LD_RUN_PATH
  7031. hardcode_runpath_var=yes
  7032. _LT_TAGVAR(ld_shlibs, $1)=yes
  7033. fi
  7034. ;;
  7035. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  7036. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7037. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7038. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7039. runpath_var='LD_RUN_PATH'
  7040. if test "$GCC" = yes; then
  7041. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7042. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7043. else
  7044. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7045. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7046. fi
  7047. ;;
  7048. sysv5* | sco3.2v5* | sco5v6*)
  7049. # Note: We can NOT use -z defs as we might desire, because we do not
  7050. # link with -lc, and that would cause any symbols used from libc to
  7051. # always be unresolved, which means just about no library would
  7052. # ever link correctly. If we're not using GNU ld we use -z text
  7053. # though, which does catch some bad symbols but isn't as heavy-handed
  7054. # as -z defs.
  7055. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7056. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  7057. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7058. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7059. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  7060. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7061. _LT_TAGVAR(link_all_deplibs, $1)=yes
  7062. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  7063. runpath_var='LD_RUN_PATH'
  7064. if test "$GCC" = yes; then
  7065. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7066. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7067. else
  7068. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7069. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7070. fi
  7071. ;;
  7072. uts4*)
  7073. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7074. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7075. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7076. ;;
  7077. *)
  7078. _LT_TAGVAR(ld_shlibs, $1)=no
  7079. ;;
  7080. esac
  7081. if test x$host_vendor = xsni; then
  7082. case $host in
  7083. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7084. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  7085. ;;
  7086. esac
  7087. fi
  7088. fi
  7089. ])
  7090. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  7091. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  7092. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  7093. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  7094. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  7095. _LT_DECL([], [extract_expsyms_cmds], [2],
  7096. [The commands to extract the exported symbol list from a shared archive])
  7097. #
  7098. # Do we need to explicitly link libc?
  7099. #
  7100. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  7101. x|xyes)
  7102. # Assume -lc should be added
  7103. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7104. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7105. case $_LT_TAGVAR(archive_cmds, $1) in
  7106. *'~'*)
  7107. # FIXME: we may have to deal with multi-command sequences.
  7108. ;;
  7109. '$CC '*)
  7110. # Test whether the compiler implicitly links with -lc since on some
  7111. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7112. # to ld, don't add -lc before -lgcc.
  7113. AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  7114. $RM conftest*
  7115. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7116. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  7117. soname=conftest
  7118. lib=conftest
  7119. libobjs=conftest.$ac_objext
  7120. deplibs=
  7121. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  7122. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  7123. compiler_flags=-v
  7124. linker_flags=-v
  7125. verstring=
  7126. output_objdir=.
  7127. libname=conftest
  7128. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  7129. _LT_TAGVAR(allow_undefined_flag, $1)=
  7130. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  7131. then
  7132. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7133. else
  7134. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7135. fi
  7136. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  7137. else
  7138. cat conftest.err 1>&5
  7139. fi
  7140. $RM conftest*
  7141. AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  7142. ;;
  7143. esac
  7144. fi
  7145. ;;
  7146. esac
  7147. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  7148. [Whether or not to add -lc for building shared libraries])
  7149. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  7150. [enable_shared_with_static_runtimes], [0],
  7151. [Whether or not to disallow shared libs when runtime libs are static])
  7152. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  7153. [Compiler flag to allow reflexive dlopens])
  7154. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  7155. [Compiler flag to generate shared objects directly from archives])
  7156. _LT_TAGDECL([], [compiler_needs_object], [1],
  7157. [Whether the compiler copes with passing no objects directly])
  7158. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  7159. [Create an old-style archive from a shared archive])
  7160. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  7161. [Create a temporary old-style archive to link instead of a shared archive])
  7162. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  7163. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  7164. _LT_TAGDECL([], [module_cmds], [2],
  7165. [Commands used to build a loadable module if different from building
  7166. a shared archive.])
  7167. _LT_TAGDECL([], [module_expsym_cmds], [2])
  7168. _LT_TAGDECL([], [with_gnu_ld], [1],
  7169. [Whether we are building with GNU ld or not])
  7170. _LT_TAGDECL([], [allow_undefined_flag], [1],
  7171. [Flag that allows shared libraries with undefined symbols to be built])
  7172. _LT_TAGDECL([], [no_undefined_flag], [1],
  7173. [Flag that enforces no undefined symbols])
  7174. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  7175. [Flag to hardcode $libdir into a binary during linking.
  7176. This must work even if $libdir does not exist])
  7177. _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  7178. [[If ld is used when linking, flag to hardcode $libdir into a binary
  7179. during linking. This must work even if $libdir does not exist]])
  7180. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  7181. [Whether we need a single "-rpath" flag with a separated argument])
  7182. _LT_TAGDECL([], [hardcode_direct], [0],
  7183. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  7184. DIR into the resulting binary])
  7185. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  7186. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  7187. DIR into the resulting binary and the resulting library dependency is
  7188. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  7189. library is relocated])
  7190. _LT_TAGDECL([], [hardcode_minus_L], [0],
  7191. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  7192. into the resulting binary])
  7193. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  7194. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  7195. into the resulting binary])
  7196. _LT_TAGDECL([], [hardcode_automatic], [0],
  7197. [Set to "yes" if building a shared library automatically hardcodes DIR
  7198. into the library and all subsequent libraries and executables linked
  7199. against it])
  7200. _LT_TAGDECL([], [inherit_rpath], [0],
  7201. [Set to yes if linker adds runtime paths of dependent libraries
  7202. to runtime path list])
  7203. _LT_TAGDECL([], [link_all_deplibs], [0],
  7204. [Whether libtool must link a program against all its dependency libraries])
  7205. _LT_TAGDECL([], [fix_srcfile_path], [1],
  7206. [Fix the shell variable $srcfile for the compiler])
  7207. _LT_TAGDECL([], [always_export_symbols], [0],
  7208. [Set to "yes" if exported symbols are required])
  7209. _LT_TAGDECL([], [export_symbols_cmds], [2],
  7210. [The commands to list exported symbols])
  7211. _LT_TAGDECL([], [exclude_expsyms], [1],
  7212. [Symbols that should not be listed in the preloaded symbols])
  7213. _LT_TAGDECL([], [include_expsyms], [1],
  7214. [Symbols that must always be exported])
  7215. _LT_TAGDECL([], [prelink_cmds], [2],
  7216. [Commands necessary for linking programs (against libraries) with templates])
  7217. _LT_TAGDECL([], [file_list_spec], [1],
  7218. [Specify filename containing input files])
  7219. dnl FIXME: Not yet implemented
  7220. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  7221. dnl [Compiler flag to generate thread safe objects])
  7222. ])# _LT_LINKER_SHLIBS
  7223. # _LT_LANG_C_CONFIG([TAG])
  7224. # ------------------------
  7225. # Ensure that the configuration variables for a C compiler are suitably
  7226. # defined. These variables are subsequently used by _LT_CONFIG to write
  7227. # the compiler configuration to `libtool'.
  7228. m4_defun([_LT_LANG_C_CONFIG],
  7229. [m4_require([_LT_DECL_EGREP])dnl
  7230. lt_save_CC="$CC"
  7231. AC_LANG_PUSH(C)
  7232. # Source file extension for C test sources.
  7233. ac_ext=c
  7234. # Object file extension for compiled C test sources.
  7235. objext=o
  7236. _LT_TAGVAR(objext, $1)=$objext
  7237. # Code to be used in simple compile tests
  7238. lt_simple_compile_test_code="int some_variable = 0;"
  7239. # Code to be used in simple link tests
  7240. lt_simple_link_test_code='int main(){return(0);}'
  7241. _LT_TAG_COMPILER
  7242. # Save the default compiler, since it gets overwritten when the other
  7243. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7244. compiler_DEFAULT=$CC
  7245. # save warnings/boilerplate of simple test code
  7246. _LT_COMPILER_BOILERPLATE
  7247. _LT_LINKER_BOILERPLATE
  7248. if test -n "$compiler"; then
  7249. _LT_COMPILER_NO_RTTI($1)
  7250. _LT_COMPILER_PIC($1)
  7251. _LT_COMPILER_C_O($1)
  7252. _LT_COMPILER_FILE_LOCKS($1)
  7253. _LT_LINKER_SHLIBS($1)
  7254. _LT_SYS_DYNAMIC_LINKER($1)
  7255. _LT_LINKER_HARDCODE_LIBPATH($1)
  7256. LT_SYS_DLOPEN_SELF
  7257. _LT_CMD_STRIPLIB
  7258. # Report which library types will actually be built
  7259. AC_MSG_CHECKING([if libtool supports shared libraries])
  7260. AC_MSG_RESULT([$can_build_shared])
  7261. AC_MSG_CHECKING([whether to build shared libraries])
  7262. test "$can_build_shared" = "no" && enable_shared=no
  7263. # On AIX, shared libraries and static libraries use the same namespace, and
  7264. # are all built from PIC.
  7265. case $host_os in
  7266. aix3*)
  7267. test "$enable_shared" = yes && enable_static=no
  7268. if test -n "$RANLIB"; then
  7269. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7270. postinstall_cmds='$RANLIB $lib'
  7271. fi
  7272. ;;
  7273. aix[[4-9]]*)
  7274. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7275. test "$enable_shared" = yes && enable_static=no
  7276. fi
  7277. ;;
  7278. esac
  7279. AC_MSG_RESULT([$enable_shared])
  7280. AC_MSG_CHECKING([whether to build static libraries])
  7281. # Make sure either enable_shared or enable_static is yes.
  7282. test "$enable_shared" = yes || enable_static=yes
  7283. AC_MSG_RESULT([$enable_static])
  7284. _LT_CONFIG($1)
  7285. fi
  7286. AC_LANG_POP
  7287. CC="$lt_save_CC"
  7288. ])# _LT_LANG_C_CONFIG
  7289. # _LT_PROG_CXX
  7290. # ------------
  7291. # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  7292. # compiler, we have our own version here.
  7293. m4_defun([_LT_PROG_CXX],
  7294. [
  7295. pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  7296. AC_PROG_CXX
  7297. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7298. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7299. (test "X$CXX" != "Xg++"))) ; then
  7300. AC_PROG_CXXCPP
  7301. else
  7302. _lt_caught_CXX_error=yes
  7303. fi
  7304. popdef([AC_MSG_ERROR])
  7305. ])# _LT_PROG_CXX
  7306. dnl aclocal-1.4 backwards compatibility:
  7307. dnl AC_DEFUN([_LT_PROG_CXX], [])
  7308. # _LT_LANG_CXX_CONFIG([TAG])
  7309. # --------------------------
  7310. # Ensure that the configuration variables for a C++ compiler are suitably
  7311. # defined. These variables are subsequently used by _LT_CONFIG to write
  7312. # the compiler configuration to `libtool'.
  7313. m4_defun([_LT_LANG_CXX_CONFIG],
  7314. [AC_REQUIRE([_LT_PROG_CXX])dnl
  7315. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7316. m4_require([_LT_DECL_EGREP])dnl
  7317. AC_LANG_PUSH(C++)
  7318. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7319. _LT_TAGVAR(allow_undefined_flag, $1)=
  7320. _LT_TAGVAR(always_export_symbols, $1)=no
  7321. _LT_TAGVAR(archive_expsym_cmds, $1)=
  7322. _LT_TAGVAR(compiler_needs_object, $1)=no
  7323. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7324. _LT_TAGVAR(hardcode_direct, $1)=no
  7325. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7326. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7327. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7328. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7329. _LT_TAGVAR(hardcode_minus_L, $1)=no
  7330. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7331. _LT_TAGVAR(hardcode_automatic, $1)=no
  7332. _LT_TAGVAR(inherit_rpath, $1)=no
  7333. _LT_TAGVAR(module_cmds, $1)=
  7334. _LT_TAGVAR(module_expsym_cmds, $1)=
  7335. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7336. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7337. _LT_TAGVAR(no_undefined_flag, $1)=
  7338. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7339. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7340. # Source file extension for C++ test sources.
  7341. ac_ext=cpp
  7342. # Object file extension for compiled C++ test sources.
  7343. objext=o
  7344. _LT_TAGVAR(objext, $1)=$objext
  7345. # No sense in running all these tests if we already determined that
  7346. # the CXX compiler isn't working. Some variables (like enable_shared)
  7347. # are currently assumed to apply to all compilers on this platform,
  7348. # and will be corrupted by setting them based on a non-working compiler.
  7349. if test "$_lt_caught_CXX_error" != yes; then
  7350. # Code to be used in simple compile tests
  7351. lt_simple_compile_test_code="int some_variable = 0;"
  7352. # Code to be used in simple link tests
  7353. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  7354. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7355. _LT_TAG_COMPILER
  7356. # save warnings/boilerplate of simple test code
  7357. _LT_COMPILER_BOILERPLATE
  7358. _LT_LINKER_BOILERPLATE
  7359. # Allow CC to be a program name with arguments.
  7360. lt_save_CC=$CC
  7361. lt_save_LD=$LD
  7362. lt_save_GCC=$GCC
  7363. GCC=$GXX
  7364. lt_save_with_gnu_ld=$with_gnu_ld
  7365. lt_save_path_LD=$lt_cv_path_LD
  7366. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  7367. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  7368. else
  7369. $as_unset lt_cv_prog_gnu_ld
  7370. fi
  7371. if test -n "${lt_cv_path_LDCXX+set}"; then
  7372. lt_cv_path_LD=$lt_cv_path_LDCXX
  7373. else
  7374. $as_unset lt_cv_path_LD
  7375. fi
  7376. test -z "${LDCXX+set}" || LD=$LDCXX
  7377. CC=${CXX-"c++"}
  7378. compiler=$CC
  7379. _LT_TAGVAR(compiler, $1)=$CC
  7380. _LT_CC_BASENAME([$compiler])
  7381. if test -n "$compiler"; then
  7382. # We don't want -fno-exception when compiling C++ code, so set the
  7383. # no_builtin_flag separately
  7384. if test "$GXX" = yes; then
  7385. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7386. else
  7387. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7388. fi
  7389. if test "$GXX" = yes; then
  7390. # Set up default GNU C++ configuration
  7391. LT_PATH_LD
  7392. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  7393. # archiving commands below assume that GNU ld is being used.
  7394. if test "$with_gnu_ld" = yes; then
  7395. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7396. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7397. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7398. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7399. # If archive_cmds runs LD, not CC, wlarc should be empty
  7400. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  7401. # investigate it a little bit more. (MM)
  7402. wlarc='${wl}'
  7403. # ancient GNU ld didn't support --whole-archive et. al.
  7404. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  7405. $GREP 'no-whole-archive' > /dev/null; then
  7406. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7407. else
  7408. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7409. fi
  7410. else
  7411. with_gnu_ld=no
  7412. wlarc=
  7413. # A generic and very simple default shared library creation
  7414. # command for GNU C++ for the case where it uses the native
  7415. # linker, instead of GNU ld. If possible, this setting should
  7416. # overridden to take advantage of the native linker features on
  7417. # the platform it is being used on.
  7418. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7419. fi
  7420. # Commands to make compiler produce verbose output that lists
  7421. # what "hidden" libraries, object files and flags are used when
  7422. # linking a shared library.
  7423. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7424. else
  7425. GXX=no
  7426. with_gnu_ld=no
  7427. wlarc=
  7428. fi
  7429. # PORTME: fill in a description of your system's C++ link characteristics
  7430. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7431. _LT_TAGVAR(ld_shlibs, $1)=yes
  7432. case $host_os in
  7433. aix3*)
  7434. # FIXME: insert proper C++ library support
  7435. _LT_TAGVAR(ld_shlibs, $1)=no
  7436. ;;
  7437. aix[[4-9]]*)
  7438. if test "$host_cpu" = ia64; then
  7439. # On IA64, the linker does run time linking by default, so we don't
  7440. # have to do anything special.
  7441. aix_use_runtimelinking=no
  7442. exp_sym_flag='-Bexport'
  7443. no_entry_flag=""
  7444. else
  7445. aix_use_runtimelinking=no
  7446. # Test if we are trying to use run time linking or normal
  7447. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7448. # need to do runtime linking.
  7449. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  7450. for ld_flag in $LDFLAGS; do
  7451. case $ld_flag in
  7452. *-brtl*)
  7453. aix_use_runtimelinking=yes
  7454. break
  7455. ;;
  7456. esac
  7457. done
  7458. ;;
  7459. esac
  7460. exp_sym_flag='-bexport'
  7461. no_entry_flag='-bnoentry'
  7462. fi
  7463. # When large executables or shared objects are built, AIX ld can
  7464. # have problems creating the table of contents. If linking a library
  7465. # or program results in "error TOC overflow" add -mminimal-toc to
  7466. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7467. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7468. _LT_TAGVAR(archive_cmds, $1)=''
  7469. _LT_TAGVAR(hardcode_direct, $1)=yes
  7470. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7471. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7472. _LT_TAGVAR(link_all_deplibs, $1)=yes
  7473. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  7474. if test "$GXX" = yes; then
  7475. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  7476. # We only want to do this on AIX 4.2 and lower, the check
  7477. # below for broken collect2 doesn't work under 4.3+
  7478. collect2name=`${CC} -print-prog-name=collect2`
  7479. if test -f "$collect2name" &&
  7480. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7481. then
  7482. # We have reworked collect2
  7483. :
  7484. else
  7485. # We have old collect2
  7486. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7487. # It fails to find uninstalled libraries when the uninstalled
  7488. # path is not listed in the libpath. Setting hardcode_minus_L
  7489. # to unsupported forces relinking
  7490. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7491. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7492. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7493. fi
  7494. esac
  7495. shared_flag='-shared'
  7496. if test "$aix_use_runtimelinking" = yes; then
  7497. shared_flag="$shared_flag "'${wl}-G'
  7498. fi
  7499. else
  7500. # not using gcc
  7501. if test "$host_cpu" = ia64; then
  7502. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7503. # chokes on -Wl,-G. The following line is correct:
  7504. shared_flag='-G'
  7505. else
  7506. if test "$aix_use_runtimelinking" = yes; then
  7507. shared_flag='${wl}-G'
  7508. else
  7509. shared_flag='${wl}-bM:SRE'
  7510. fi
  7511. fi
  7512. fi
  7513. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  7514. # It seems that -bexpall does not export symbols beginning with
  7515. # underscore (_), so it is better to generate a list of symbols to
  7516. # export.
  7517. _LT_TAGVAR(always_export_symbols, $1)=yes
  7518. if test "$aix_use_runtimelinking" = yes; then
  7519. # Warning - without using the other runtime loading flags (-brtl),
  7520. # -berok will link without error, but may produce a broken library.
  7521. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  7522. # Determine the default libpath from the value encoded in an empty
  7523. # executable.
  7524. _LT_SYS_MODULE_PATH_AIX
  7525. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7526. _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7527. else
  7528. if test "$host_cpu" = ia64; then
  7529. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7530. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7531. _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"
  7532. else
  7533. # Determine the default libpath from the value encoded in an
  7534. # empty executable.
  7535. _LT_SYS_MODULE_PATH_AIX
  7536. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7537. # Warning - without using the other run time loading flags,
  7538. # -berok will link without error, but may produce a broken library.
  7539. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7540. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7541. # Exported symbols can be pulled into shared objects from archives
  7542. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  7543. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7544. # This is similar to how AIX traditionally builds its shared
  7545. # libraries.
  7546. _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'
  7547. fi
  7548. fi
  7549. ;;
  7550. beos*)
  7551. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7552. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7553. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7554. # support --undefined. This deserves some investigation. FIXME
  7555. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7556. else
  7557. _LT_TAGVAR(ld_shlibs, $1)=no
  7558. fi
  7559. ;;
  7560. chorus*)
  7561. case $cc_basename in
  7562. *)
  7563. # FIXME: insert proper C++ library support
  7564. _LT_TAGVAR(ld_shlibs, $1)=no
  7565. ;;
  7566. esac
  7567. ;;
  7568. cygwin* | mingw* | pw32* | cegcc*)
  7569. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7570. # as there is no search path for DLLs.
  7571. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7572. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7573. _LT_TAGVAR(always_export_symbols, $1)=no
  7574. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7575. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7576. _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'
  7577. # If the export-symbols file already is a .def file (1st line
  7578. # is EXPORTS), use it as is; otherwise, prepend...
  7579. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7580. cp $export_symbols $output_objdir/$soname.def;
  7581. else
  7582. echo EXPORTS > $output_objdir/$soname.def;
  7583. cat $export_symbols >> $output_objdir/$soname.def;
  7584. fi~
  7585. $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'
  7586. else
  7587. _LT_TAGVAR(ld_shlibs, $1)=no
  7588. fi
  7589. ;;
  7590. darwin* | rhapsody*)
  7591. _LT_DARWIN_LINKER_FEATURES($1)
  7592. ;;
  7593. dgux*)
  7594. case $cc_basename in
  7595. ec++*)
  7596. # FIXME: insert proper C++ library support
  7597. _LT_TAGVAR(ld_shlibs, $1)=no
  7598. ;;
  7599. ghcx*)
  7600. # Green Hills C++ Compiler
  7601. # FIXME: insert proper C++ library support
  7602. _LT_TAGVAR(ld_shlibs, $1)=no
  7603. ;;
  7604. *)
  7605. # FIXME: insert proper C++ library support
  7606. _LT_TAGVAR(ld_shlibs, $1)=no
  7607. ;;
  7608. esac
  7609. ;;
  7610. freebsd[[12]]*)
  7611. # C++ shared libraries reported to be fairly broken before
  7612. # switch to ELF
  7613. _LT_TAGVAR(ld_shlibs, $1)=no
  7614. ;;
  7615. freebsd-elf*)
  7616. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7617. ;;
  7618. freebsd* | dragonfly*)
  7619. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  7620. # conventions
  7621. _LT_TAGVAR(ld_shlibs, $1)=yes
  7622. ;;
  7623. gnu*)
  7624. ;;
  7625. hpux9*)
  7626. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7627. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7628. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7629. _LT_TAGVAR(hardcode_direct, $1)=yes
  7630. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7631. # but as the default
  7632. # location of the library.
  7633. case $cc_basename in
  7634. CC*)
  7635. # FIXME: insert proper C++ library support
  7636. _LT_TAGVAR(ld_shlibs, $1)=no
  7637. ;;
  7638. aCC*)
  7639. _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'
  7640. # Commands to make compiler produce verbose output that lists
  7641. # what "hidden" libraries, object files and flags are used when
  7642. # linking a shared library.
  7643. #
  7644. # There doesn't appear to be a way to prevent this compiler from
  7645. # explicitly linking system object files so we need to strip them
  7646. # from the output so that they don't get included in the library
  7647. # dependencies.
  7648. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7649. ;;
  7650. *)
  7651. if test "$GXX" = yes; then
  7652. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7653. else
  7654. # FIXME: insert proper C++ library support
  7655. _LT_TAGVAR(ld_shlibs, $1)=no
  7656. fi
  7657. ;;
  7658. esac
  7659. ;;
  7660. hpux10*|hpux11*)
  7661. if test $with_gnu_ld = no; then
  7662. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7663. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7664. case $host_cpu in
  7665. hppa*64*|ia64*)
  7666. ;;
  7667. *)
  7668. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7669. ;;
  7670. esac
  7671. fi
  7672. case $host_cpu in
  7673. hppa*64*|ia64*)
  7674. _LT_TAGVAR(hardcode_direct, $1)=no
  7675. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7676. ;;
  7677. *)
  7678. _LT_TAGVAR(hardcode_direct, $1)=yes
  7679. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7680. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7681. # but as the default
  7682. # location of the library.
  7683. ;;
  7684. esac
  7685. case $cc_basename in
  7686. CC*)
  7687. # FIXME: insert proper C++ library support
  7688. _LT_TAGVAR(ld_shlibs, $1)=no
  7689. ;;
  7690. aCC*)
  7691. case $host_cpu in
  7692. hppa*64*)
  7693. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7694. ;;
  7695. ia64*)
  7696. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7697. ;;
  7698. *)
  7699. _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'
  7700. ;;
  7701. esac
  7702. # Commands to make compiler produce verbose output that lists
  7703. # what "hidden" libraries, object files and flags are used when
  7704. # linking a shared library.
  7705. #
  7706. # There doesn't appear to be a way to prevent this compiler from
  7707. # explicitly linking system object files so we need to strip them
  7708. # from the output so that they don't get included in the library
  7709. # dependencies.
  7710. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7711. ;;
  7712. *)
  7713. if test "$GXX" = yes; then
  7714. if test $with_gnu_ld = no; then
  7715. case $host_cpu in
  7716. hppa*64*)
  7717. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7718. ;;
  7719. ia64*)
  7720. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7721. ;;
  7722. *)
  7723. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7724. ;;
  7725. esac
  7726. fi
  7727. else
  7728. # FIXME: insert proper C++ library support
  7729. _LT_TAGVAR(ld_shlibs, $1)=no
  7730. fi
  7731. ;;
  7732. esac
  7733. ;;
  7734. interix[[3-9]]*)
  7735. _LT_TAGVAR(hardcode_direct, $1)=no
  7736. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7737. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7738. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7739. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7740. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7741. # default) and relocated if they conflict, which is a slow very memory
  7742. # consuming and fragmenting process. To avoid this, we pick a random,
  7743. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7744. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7745. _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'
  7746. _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'
  7747. ;;
  7748. irix5* | irix6*)
  7749. case $cc_basename in
  7750. CC*)
  7751. # SGI C++
  7752. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7753. # Archives containing C++ object files must be created using
  7754. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  7755. # necessary to make sure instantiated templates are included
  7756. # in the archive.
  7757. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  7758. ;;
  7759. *)
  7760. if test "$GXX" = yes; then
  7761. if test "$with_gnu_ld" = no; then
  7762. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7763. else
  7764. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  7765. fi
  7766. fi
  7767. _LT_TAGVAR(link_all_deplibs, $1)=yes
  7768. ;;
  7769. esac
  7770. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7771. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7772. _LT_TAGVAR(inherit_rpath, $1)=yes
  7773. ;;
  7774. linux* | k*bsd*-gnu)
  7775. case $cc_basename in
  7776. KCC*)
  7777. # Kuck and Associates, Inc. (KAI) C++ Compiler
  7778. # KCC will only create a shared library if the output file
  7779. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7780. # to its proper name (with version) after linking.
  7781. _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'
  7782. _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'
  7783. # Commands to make compiler produce verbose output that lists
  7784. # what "hidden" libraries, object files and flags are used when
  7785. # linking a shared library.
  7786. #
  7787. # There doesn't appear to be a way to prevent this compiler from
  7788. # explicitly linking system object files so we need to strip them
  7789. # from the output so that they don't get included in the library
  7790. # dependencies.
  7791. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7792. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7793. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7794. # Archives containing C++ object files must be created using
  7795. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  7796. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  7797. ;;
  7798. icpc* | ecpc* )
  7799. # Intel C++
  7800. with_gnu_ld=yes
  7801. # version 8.0 and above of icpc choke on multiply defined symbols
  7802. # if we add $predep_objects and $postdep_objects, however 7.1 and
  7803. # earlier do not add the objects themselves.
  7804. case `$CC -V 2>&1` in
  7805. *"Version 7."*)
  7806. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7807. _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'
  7808. ;;
  7809. *) # Version 8.0 or newer
  7810. tmp_idyn=
  7811. case $host_cpu in
  7812. ia64*) tmp_idyn=' -i_dynamic';;
  7813. esac
  7814. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7815. _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'
  7816. ;;
  7817. esac
  7818. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7819. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7820. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7821. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7822. ;;
  7823. pgCC* | pgcpp*)
  7824. # Portland Group C++ compiler
  7825. case `$CC -V` in
  7826. *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  7827. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  7828. rm -rf $tpldir~
  7829. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  7830. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  7831. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  7832. rm -rf $tpldir~
  7833. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  7834. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  7835. $RANLIB $oldlib'
  7836. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  7837. rm -rf $tpldir~
  7838. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7839. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7840. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  7841. rm -rf $tpldir~
  7842. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7843. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  7844. ;;
  7845. *) # Version 6 will use weak symbols
  7846. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7847. _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'
  7848. ;;
  7849. esac
  7850. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  7851. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7852. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7853. ;;
  7854. cxx*)
  7855. # Compaq C++
  7856. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7857. _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'
  7858. runpath_var=LD_RUN_PATH
  7859. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7860. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7861. # Commands to make compiler produce verbose output that lists
  7862. # what "hidden" libraries, object files and flags are used when
  7863. # linking a shared library.
  7864. #
  7865. # There doesn't appear to be a way to prevent this compiler from
  7866. # explicitly linking system object files so we need to strip them
  7867. # from the output so that they don't get included in the library
  7868. # dependencies.
  7869. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7870. ;;
  7871. xl*)
  7872. # IBM XL 8.0 on PPC, with GNU ld
  7873. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7874. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7875. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7876. if test "x$supports_anon_versioning" = xyes; then
  7877. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7878. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7879. echo "local: *; };" >> $output_objdir/$libname.ver~
  7880. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7881. fi
  7882. ;;
  7883. *)
  7884. case `$CC -V 2>&1 | sed 5q` in
  7885. *Sun\ C*)
  7886. # Sun C++ 5.9
  7887. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7888. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7889. _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'
  7890. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7891. _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7892. _LT_TAGVAR(compiler_needs_object, $1)=yes
  7893. # Not sure whether something based on
  7894. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  7895. # would be better.
  7896. output_verbose_link_cmd='echo'
  7897. # Archives containing C++ object files must be created using
  7898. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7899. # necessary to make sure instantiated templates are included
  7900. # in the archive.
  7901. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7902. ;;
  7903. esac
  7904. ;;
  7905. esac
  7906. ;;
  7907. lynxos*)
  7908. # FIXME: insert proper C++ library support
  7909. _LT_TAGVAR(ld_shlibs, $1)=no
  7910. ;;
  7911. m88k*)
  7912. # FIXME: insert proper C++ library support
  7913. _LT_TAGVAR(ld_shlibs, $1)=no
  7914. ;;
  7915. mvs*)
  7916. case $cc_basename in
  7917. cxx*)
  7918. # FIXME: insert proper C++ library support
  7919. _LT_TAGVAR(ld_shlibs, $1)=no
  7920. ;;
  7921. *)
  7922. # FIXME: insert proper C++ library support
  7923. _LT_TAGVAR(ld_shlibs, $1)=no
  7924. ;;
  7925. esac
  7926. ;;
  7927. netbsd*)
  7928. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7929. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  7930. wlarc=
  7931. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7932. _LT_TAGVAR(hardcode_direct, $1)=yes
  7933. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7934. fi
  7935. # Workaround some broken pre-1.5 toolchains
  7936. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  7937. ;;
  7938. *nto* | *qnx*)
  7939. _LT_TAGVAR(ld_shlibs, $1)=yes
  7940. ;;
  7941. openbsd2*)
  7942. # C++ shared libraries are fairly broken
  7943. _LT_TAGVAR(ld_shlibs, $1)=no
  7944. ;;
  7945. openbsd*)
  7946. if test -f /usr/libexec/ld.so; then
  7947. _LT_TAGVAR(hardcode_direct, $1)=yes
  7948. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7949. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7950. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7951. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7952. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7953. _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'
  7954. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7955. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7956. fi
  7957. output_verbose_link_cmd=echo
  7958. else
  7959. _LT_TAGVAR(ld_shlibs, $1)=no
  7960. fi
  7961. ;;
  7962. osf3* | osf4* | osf5*)
  7963. case $cc_basename in
  7964. KCC*)
  7965. # Kuck and Associates, Inc. (KAI) C++ Compiler
  7966. # KCC will only create a shared library if the output file
  7967. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7968. # to its proper name (with version) after linking.
  7969. _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'
  7970. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7971. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7972. # Archives containing C++ object files must be created using
  7973. # the KAI C++ compiler.
  7974. case $host in
  7975. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  7976. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  7977. esac
  7978. ;;
  7979. RCC*)
  7980. # Rational C++ 2.4.1
  7981. # FIXME: insert proper C++ library support
  7982. _LT_TAGVAR(ld_shlibs, $1)=no
  7983. ;;
  7984. cxx*)
  7985. case $host in
  7986. osf3*)
  7987. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7988. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7989. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7990. ;;
  7991. *)
  7992. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7993. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7994. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  7995. echo "-hidden">> $lib.exp~
  7996. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  7997. $RM $lib.exp'
  7998. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7999. ;;
  8000. esac
  8001. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8002. # Commands to make compiler produce verbose output that lists
  8003. # what "hidden" libraries, object files and flags are used when
  8004. # linking a shared library.
  8005. #
  8006. # There doesn't appear to be a way to prevent this compiler from
  8007. # explicitly linking system object files so we need to strip them
  8008. # from the output so that they don't get included in the library
  8009. # dependencies.
  8010. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  8011. ;;
  8012. *)
  8013. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  8014. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8015. case $host in
  8016. osf3*)
  8017. _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8018. ;;
  8019. *)
  8020. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8021. ;;
  8022. esac
  8023. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8024. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8025. # Commands to make compiler produce verbose output that lists
  8026. # what "hidden" libraries, object files and flags are used when
  8027. # linking a shared library.
  8028. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8029. else
  8030. # FIXME: insert proper C++ library support
  8031. _LT_TAGVAR(ld_shlibs, $1)=no
  8032. fi
  8033. ;;
  8034. esac
  8035. ;;
  8036. psos*)
  8037. # FIXME: insert proper C++ library support
  8038. _LT_TAGVAR(ld_shlibs, $1)=no
  8039. ;;
  8040. sunos4*)
  8041. case $cc_basename in
  8042. CC*)
  8043. # Sun C++ 4.x
  8044. # FIXME: insert proper C++ library support
  8045. _LT_TAGVAR(ld_shlibs, $1)=no
  8046. ;;
  8047. lcc*)
  8048. # Lucid
  8049. # FIXME: insert proper C++ library support
  8050. _LT_TAGVAR(ld_shlibs, $1)=no
  8051. ;;
  8052. *)
  8053. # FIXME: insert proper C++ library support
  8054. _LT_TAGVAR(ld_shlibs, $1)=no
  8055. ;;
  8056. esac
  8057. ;;
  8058. solaris*)
  8059. case $cc_basename in
  8060. CC*)
  8061. # Sun C++ 4.2, 5.x and Centerline C++
  8062. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  8063. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  8064. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8065. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8066. $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'
  8067. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8068. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8069. case $host_os in
  8070. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8071. *)
  8072. # The compiler driver will combine and reorder linker options,
  8073. # but understands `-z linker_flag'.
  8074. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8075. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  8076. ;;
  8077. esac
  8078. _LT_TAGVAR(link_all_deplibs, $1)=yes
  8079. output_verbose_link_cmd='echo'
  8080. # Archives containing C++ object files must be created using
  8081. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  8082. # necessary to make sure instantiated templates are included
  8083. # in the archive.
  8084. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  8085. ;;
  8086. gcx*)
  8087. # Green Hills C++ Compiler
  8088. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8089. # The C++ compiler must be used to create the archive.
  8090. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  8091. ;;
  8092. *)
  8093. # GNU C++ compiler with Solaris linker
  8094. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  8095. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  8096. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  8097. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8098. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8099. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  8100. # Commands to make compiler produce verbose output that lists
  8101. # what "hidden" libraries, object files and flags are used when
  8102. # linking a shared library.
  8103. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8104. else
  8105. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  8106. # platform.
  8107. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8108. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8109. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  8110. # Commands to make compiler produce verbose output that lists
  8111. # what "hidden" libraries, object files and flags are used when
  8112. # linking a shared library.
  8113. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8114. fi
  8115. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  8116. case $host_os in
  8117. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8118. *)
  8119. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8120. ;;
  8121. esac
  8122. fi
  8123. ;;
  8124. esac
  8125. ;;
  8126. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  8127. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8128. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8129. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8130. runpath_var='LD_RUN_PATH'
  8131. case $cc_basename in
  8132. CC*)
  8133. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8134. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8135. ;;
  8136. *)
  8137. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8138. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8139. ;;
  8140. esac
  8141. ;;
  8142. sysv5* | sco3.2v5* | sco5v6*)
  8143. # Note: We can NOT use -z defs as we might desire, because we do not
  8144. # link with -lc, and that would cause any symbols used from libc to
  8145. # always be unresolved, which means just about no library would
  8146. # ever link correctly. If we're not using GNU ld we use -z text
  8147. # though, which does catch some bad symbols but isn't as heavy-handed
  8148. # as -z defs.
  8149. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8150. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8151. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8152. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8153. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8154. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8155. _LT_TAGVAR(link_all_deplibs, $1)=yes
  8156. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8157. runpath_var='LD_RUN_PATH'
  8158. case $cc_basename in
  8159. CC*)
  8160. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8161. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8162. ;;
  8163. *)
  8164. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8165. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8166. ;;
  8167. esac
  8168. ;;
  8169. tandem*)
  8170. case $cc_basename in
  8171. NCC*)
  8172. # NonStop-UX NCC 3.20
  8173. # FIXME: insert proper C++ library support
  8174. _LT_TAGVAR(ld_shlibs, $1)=no
  8175. ;;
  8176. *)
  8177. # FIXME: insert proper C++ library support
  8178. _LT_TAGVAR(ld_shlibs, $1)=no
  8179. ;;
  8180. esac
  8181. ;;
  8182. vxworks*)
  8183. # FIXME: insert proper C++ library support
  8184. _LT_TAGVAR(ld_shlibs, $1)=no
  8185. ;;
  8186. *)
  8187. # FIXME: insert proper C++ library support
  8188. _LT_TAGVAR(ld_shlibs, $1)=no
  8189. ;;
  8190. esac
  8191. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8192. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8193. _LT_TAGVAR(GCC, $1)="$GXX"
  8194. _LT_TAGVAR(LD, $1)="$LD"
  8195. ## CAVEAT EMPTOR:
  8196. ## There is no encapsulation within the following macros, do not change
  8197. ## the running order or otherwise move them around unless you know exactly
  8198. ## what you are doing...
  8199. _LT_SYS_HIDDEN_LIBDEPS($1)
  8200. _LT_COMPILER_PIC($1)
  8201. _LT_COMPILER_C_O($1)
  8202. _LT_COMPILER_FILE_LOCKS($1)
  8203. _LT_LINKER_SHLIBS($1)
  8204. _LT_SYS_DYNAMIC_LINKER($1)
  8205. _LT_LINKER_HARDCODE_LIBPATH($1)
  8206. _LT_CONFIG($1)
  8207. fi # test -n "$compiler"
  8208. CC=$lt_save_CC
  8209. LDCXX=$LD
  8210. LD=$lt_save_LD
  8211. GCC=$lt_save_GCC
  8212. with_gnu_ld=$lt_save_with_gnu_ld
  8213. lt_cv_path_LDCXX=$lt_cv_path_LD
  8214. lt_cv_path_LD=$lt_save_path_LD
  8215. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  8216. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  8217. fi # test "$_lt_caught_CXX_error" != yes
  8218. AC_LANG_POP
  8219. ])# _LT_LANG_CXX_CONFIG
  8220. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  8221. # ---------------------------------
  8222. # Figure out "hidden" library dependencies from verbose
  8223. # compiler output when linking a shared library.
  8224. # Parse the compiler output and extract the necessary
  8225. # objects, libraries and library flags.
  8226. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  8227. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8228. # Dependencies to place before and after the object being linked:
  8229. _LT_TAGVAR(predep_objects, $1)=
  8230. _LT_TAGVAR(postdep_objects, $1)=
  8231. _LT_TAGVAR(predeps, $1)=
  8232. _LT_TAGVAR(postdeps, $1)=
  8233. _LT_TAGVAR(compiler_lib_search_path, $1)=
  8234. dnl we can't use the lt_simple_compile_test_code here,
  8235. dnl because it contains code intended for an executable,
  8236. dnl not a library. It's possible we should let each
  8237. dnl tag define a new lt_????_link_test_code variable,
  8238. dnl but it's only used here...
  8239. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  8240. int a;
  8241. void foo (void) { a = 0; }
  8242. _LT_EOF
  8243. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  8244. class Foo
  8245. {
  8246. public:
  8247. Foo (void) { a = 0; }
  8248. private:
  8249. int a;
  8250. };
  8251. _LT_EOF
  8252. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  8253. subroutine foo
  8254. implicit none
  8255. integer*4 a
  8256. a=0
  8257. return
  8258. end
  8259. _LT_EOF
  8260. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  8261. subroutine foo
  8262. implicit none
  8263. integer a
  8264. a=0
  8265. return
  8266. end
  8267. _LT_EOF
  8268. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  8269. public class foo {
  8270. private int a;
  8271. public void bar (void) {
  8272. a = 0;
  8273. }
  8274. };
  8275. _LT_EOF
  8276. ])
  8277. dnl Parse the compiler output and extract the necessary
  8278. dnl objects, libraries and library flags.
  8279. if AC_TRY_EVAL(ac_compile); then
  8280. # Parse the compiler output and extract the necessary
  8281. # objects, libraries and library flags.
  8282. # Sentinel used to keep track of whether or not we are before
  8283. # the conftest object file.
  8284. pre_test_object_deps_done=no
  8285. for p in `eval "$output_verbose_link_cmd"`; do
  8286. case $p in
  8287. -L* | -R* | -l*)
  8288. # Some compilers place space between "-{L,R}" and the path.
  8289. # Remove the space.
  8290. if test $p = "-L" ||
  8291. test $p = "-R"; then
  8292. prev=$p
  8293. continue
  8294. else
  8295. prev=
  8296. fi
  8297. if test "$pre_test_object_deps_done" = no; then
  8298. case $p in
  8299. -L* | -R*)
  8300. # Internal compiler library paths should come after those
  8301. # provided the user. The postdeps already come after the
  8302. # user supplied libs so there is no need to process them.
  8303. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  8304. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  8305. else
  8306. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  8307. fi
  8308. ;;
  8309. # The "-l" case would never come before the object being
  8310. # linked, so don't bother handling this case.
  8311. esac
  8312. else
  8313. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  8314. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  8315. else
  8316. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  8317. fi
  8318. fi
  8319. ;;
  8320. *.$objext)
  8321. # This assumes that the test object file only shows up
  8322. # once in the compiler output.
  8323. if test "$p" = "conftest.$objext"; then
  8324. pre_test_object_deps_done=yes
  8325. continue
  8326. fi
  8327. if test "$pre_test_object_deps_done" = no; then
  8328. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  8329. _LT_TAGVAR(predep_objects, $1)="$p"
  8330. else
  8331. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  8332. fi
  8333. else
  8334. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  8335. _LT_TAGVAR(postdep_objects, $1)="$p"
  8336. else
  8337. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  8338. fi
  8339. fi
  8340. ;;
  8341. *) ;; # Ignore the rest.
  8342. esac
  8343. done
  8344. # Clean up.
  8345. rm -f a.out a.exe
  8346. else
  8347. echo "libtool.m4: error: problem compiling $1 test program"
  8348. fi
  8349. $RM -f confest.$objext
  8350. # PORTME: override above test on systems where it is broken
  8351. m4_if([$1], [CXX],
  8352. [case $host_os in
  8353. interix[[3-9]]*)
  8354. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  8355. # hack all around it, let's just trust "g++" to DTRT.
  8356. _LT_TAGVAR(predep_objects,$1)=
  8357. _LT_TAGVAR(postdep_objects,$1)=
  8358. _LT_TAGVAR(postdeps,$1)=
  8359. ;;
  8360. linux*)
  8361. case `$CC -V 2>&1 | sed 5q` in
  8362. *Sun\ C*)
  8363. # Sun C++ 5.9
  8364. # The more standards-conforming stlport4 library is
  8365. # incompatible with the Cstd library. Avoid specifying
  8366. # it if it's in CXXFLAGS. Ignore libCrun as
  8367. # -library=stlport4 depends on it.
  8368. case " $CXX $CXXFLAGS " in
  8369. *" -library=stlport4 "*)
  8370. solaris_use_stlport4=yes
  8371. ;;
  8372. esac
  8373. if test "$solaris_use_stlport4" != yes; then
  8374. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8375. fi
  8376. ;;
  8377. esac
  8378. ;;
  8379. solaris*)
  8380. case $cc_basename in
  8381. CC*)
  8382. # The more standards-conforming stlport4 library is
  8383. # incompatible with the Cstd library. Avoid specifying
  8384. # it if it's in CXXFLAGS. Ignore libCrun as
  8385. # -library=stlport4 depends on it.
  8386. case " $CXX $CXXFLAGS " in
  8387. *" -library=stlport4 "*)
  8388. solaris_use_stlport4=yes
  8389. ;;
  8390. esac
  8391. # Adding this requires a known-good setup of shared libraries for
  8392. # Sun compiler versions before 5.6, else PIC objects from an old
  8393. # archive will be linked into the output, leading to subtle bugs.
  8394. if test "$solaris_use_stlport4" != yes; then
  8395. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8396. fi
  8397. ;;
  8398. esac
  8399. ;;
  8400. esac
  8401. ])
  8402. case " $_LT_TAGVAR(postdeps, $1) " in
  8403. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  8404. esac
  8405. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  8406. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  8407. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  8408. fi
  8409. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  8410. [The directories searched by this compiler when creating a shared library])
  8411. _LT_TAGDECL([], [predep_objects], [1],
  8412. [Dependencies to place before and after the objects being linked to
  8413. create a shared library])
  8414. _LT_TAGDECL([], [postdep_objects], [1])
  8415. _LT_TAGDECL([], [predeps], [1])
  8416. _LT_TAGDECL([], [postdeps], [1])
  8417. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  8418. [The library search path used internally by the compiler when linking
  8419. a shared library])
  8420. ])# _LT_SYS_HIDDEN_LIBDEPS
  8421. # _LT_PROG_F77
  8422. # ------------
  8423. # Since AC_PROG_F77 is broken, in that it returns the empty string
  8424. # if there is no fortran compiler, we have our own version here.
  8425. m4_defun([_LT_PROG_F77],
  8426. [
  8427. pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  8428. AC_PROG_F77
  8429. if test -z "$F77" || test "X$F77" = "Xno"; then
  8430. _lt_disable_F77=yes
  8431. fi
  8432. popdef([AC_MSG_ERROR])
  8433. ])# _LT_PROG_F77
  8434. dnl aclocal-1.4 backwards compatibility:
  8435. dnl AC_DEFUN([_LT_PROG_F77], [])
  8436. # _LT_LANG_F77_CONFIG([TAG])
  8437. # --------------------------
  8438. # Ensure that the configuration variables for a Fortran 77 compiler are
  8439. # suitably defined. These variables are subsequently used by _LT_CONFIG
  8440. # to write the compiler configuration to `libtool'.
  8441. m4_defun([_LT_LANG_F77_CONFIG],
  8442. [AC_REQUIRE([_LT_PROG_F77])dnl
  8443. AC_LANG_PUSH(Fortran 77)
  8444. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8445. _LT_TAGVAR(allow_undefined_flag, $1)=
  8446. _LT_TAGVAR(always_export_symbols, $1)=no
  8447. _LT_TAGVAR(archive_expsym_cmds, $1)=
  8448. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8449. _LT_TAGVAR(hardcode_direct, $1)=no
  8450. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8451. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8452. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8453. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8454. _LT_TAGVAR(hardcode_minus_L, $1)=no
  8455. _LT_TAGVAR(hardcode_automatic, $1)=no
  8456. _LT_TAGVAR(inherit_rpath, $1)=no
  8457. _LT_TAGVAR(module_cmds, $1)=
  8458. _LT_TAGVAR(module_expsym_cmds, $1)=
  8459. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  8460. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8461. _LT_TAGVAR(no_undefined_flag, $1)=
  8462. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8463. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8464. # Source file extension for f77 test sources.
  8465. ac_ext=f
  8466. # Object file extension for compiled f77 test sources.
  8467. objext=o
  8468. _LT_TAGVAR(objext, $1)=$objext
  8469. # No sense in running all these tests if we already determined that
  8470. # the F77 compiler isn't working. Some variables (like enable_shared)
  8471. # are currently assumed to apply to all compilers on this platform,
  8472. # and will be corrupted by setting them based on a non-working compiler.
  8473. if test "$_lt_disable_F77" != yes; then
  8474. # Code to be used in simple compile tests
  8475. lt_simple_compile_test_code="\
  8476. subroutine t
  8477. return
  8478. end
  8479. "
  8480. # Code to be used in simple link tests
  8481. lt_simple_link_test_code="\
  8482. program t
  8483. end
  8484. "
  8485. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8486. _LT_TAG_COMPILER
  8487. # save warnings/boilerplate of simple test code
  8488. _LT_COMPILER_BOILERPLATE
  8489. _LT_LINKER_BOILERPLATE
  8490. # Allow CC to be a program name with arguments.
  8491. lt_save_CC="$CC"
  8492. lt_save_GCC=$GCC
  8493. CC=${F77-"f77"}
  8494. compiler=$CC
  8495. _LT_TAGVAR(compiler, $1)=$CC
  8496. _LT_CC_BASENAME([$compiler])
  8497. GCC=$G77
  8498. if test -n "$compiler"; then
  8499. AC_MSG_CHECKING([if libtool supports shared libraries])
  8500. AC_MSG_RESULT([$can_build_shared])
  8501. AC_MSG_CHECKING([whether to build shared libraries])
  8502. test "$can_build_shared" = "no" && enable_shared=no
  8503. # On AIX, shared libraries and static libraries use the same namespace, and
  8504. # are all built from PIC.
  8505. case $host_os in
  8506. aix3*)
  8507. test "$enable_shared" = yes && enable_static=no
  8508. if test -n "$RANLIB"; then
  8509. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8510. postinstall_cmds='$RANLIB $lib'
  8511. fi
  8512. ;;
  8513. aix[[4-9]]*)
  8514. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8515. test "$enable_shared" = yes && enable_static=no
  8516. fi
  8517. ;;
  8518. esac
  8519. AC_MSG_RESULT([$enable_shared])
  8520. AC_MSG_CHECKING([whether to build static libraries])
  8521. # Make sure either enable_shared or enable_static is yes.
  8522. test "$enable_shared" = yes || enable_static=yes
  8523. AC_MSG_RESULT([$enable_static])
  8524. _LT_TAGVAR(GCC, $1)="$G77"
  8525. _LT_TAGVAR(LD, $1)="$LD"
  8526. ## CAVEAT EMPTOR:
  8527. ## There is no encapsulation within the following macros, do not change
  8528. ## the running order or otherwise move them around unless you know exactly
  8529. ## what you are doing...
  8530. _LT_COMPILER_PIC($1)
  8531. _LT_COMPILER_C_O($1)
  8532. _LT_COMPILER_FILE_LOCKS($1)
  8533. _LT_LINKER_SHLIBS($1)
  8534. _LT_SYS_DYNAMIC_LINKER($1)
  8535. _LT_LINKER_HARDCODE_LIBPATH($1)
  8536. _LT_CONFIG($1)
  8537. fi # test -n "$compiler"
  8538. GCC=$lt_save_GCC
  8539. CC="$lt_save_CC"
  8540. fi # test "$_lt_disable_F77" != yes
  8541. AC_LANG_POP
  8542. ])# _LT_LANG_F77_CONFIG
  8543. # _LT_PROG_FC
  8544. # -----------
  8545. # Since AC_PROG_FC is broken, in that it returns the empty string
  8546. # if there is no fortran compiler, we have our own version here.
  8547. m4_defun([_LT_PROG_FC],
  8548. [
  8549. pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  8550. AC_PROG_FC
  8551. if test -z "$FC" || test "X$FC" = "Xno"; then
  8552. _lt_disable_FC=yes
  8553. fi
  8554. popdef([AC_MSG_ERROR])
  8555. ])# _LT_PROG_FC
  8556. dnl aclocal-1.4 backwards compatibility:
  8557. dnl AC_DEFUN([_LT_PROG_FC], [])
  8558. # _LT_LANG_FC_CONFIG([TAG])
  8559. # -------------------------
  8560. # Ensure that the configuration variables for a Fortran compiler are
  8561. # suitably defined. These variables are subsequently used by _LT_CONFIG
  8562. # to write the compiler configuration to `libtool'.
  8563. m4_defun([_LT_LANG_FC_CONFIG],
  8564. [AC_REQUIRE([_LT_PROG_FC])dnl
  8565. AC_LANG_PUSH(Fortran)
  8566. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8567. _LT_TAGVAR(allow_undefined_flag, $1)=
  8568. _LT_TAGVAR(always_export_symbols, $1)=no
  8569. _LT_TAGVAR(archive_expsym_cmds, $1)=
  8570. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8571. _LT_TAGVAR(hardcode_direct, $1)=no
  8572. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8573. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8574. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8575. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8576. _LT_TAGVAR(hardcode_minus_L, $1)=no
  8577. _LT_TAGVAR(hardcode_automatic, $1)=no
  8578. _LT_TAGVAR(inherit_rpath, $1)=no
  8579. _LT_TAGVAR(module_cmds, $1)=
  8580. _LT_TAGVAR(module_expsym_cmds, $1)=
  8581. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  8582. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8583. _LT_TAGVAR(no_undefined_flag, $1)=
  8584. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8585. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8586. # Source file extension for fc test sources.
  8587. ac_ext=${ac_fc_srcext-f}
  8588. # Object file extension for compiled fc test sources.
  8589. objext=o
  8590. _LT_TAGVAR(objext, $1)=$objext
  8591. # No sense in running all these tests if we already determined that
  8592. # the FC compiler isn't working. Some variables (like enable_shared)
  8593. # are currently assumed to apply to all compilers on this platform,
  8594. # and will be corrupted by setting them based on a non-working compiler.
  8595. if test "$_lt_disable_FC" != yes; then
  8596. # Code to be used in simple compile tests
  8597. lt_simple_compile_test_code="\
  8598. subroutine t
  8599. return
  8600. end
  8601. "
  8602. # Code to be used in simple link tests
  8603. lt_simple_link_test_code="\
  8604. program t
  8605. end
  8606. "
  8607. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8608. _LT_TAG_COMPILER
  8609. # save warnings/boilerplate of simple test code
  8610. _LT_COMPILER_BOILERPLATE
  8611. _LT_LINKER_BOILERPLATE
  8612. # Allow CC to be a program name with arguments.
  8613. lt_save_CC="$CC"
  8614. lt_save_GCC=$GCC
  8615. CC=${FC-"f95"}
  8616. compiler=$CC
  8617. GCC=$ac_cv_fc_compiler_gnu
  8618. _LT_TAGVAR(compiler, $1)=$CC
  8619. _LT_CC_BASENAME([$compiler])
  8620. if test -n "$compiler"; then
  8621. AC_MSG_CHECKING([if libtool supports shared libraries])
  8622. AC_MSG_RESULT([$can_build_shared])
  8623. AC_MSG_CHECKING([whether to build shared libraries])
  8624. test "$can_build_shared" = "no" && enable_shared=no
  8625. # On AIX, shared libraries and static libraries use the same namespace, and
  8626. # are all built from PIC.
  8627. case $host_os in
  8628. aix3*)
  8629. test "$enable_shared" = yes && enable_static=no
  8630. if test -n "$RANLIB"; then
  8631. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8632. postinstall_cmds='$RANLIB $lib'
  8633. fi
  8634. ;;
  8635. aix[[4-9]]*)
  8636. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8637. test "$enable_shared" = yes && enable_static=no
  8638. fi
  8639. ;;
  8640. esac
  8641. AC_MSG_RESULT([$enable_shared])
  8642. AC_MSG_CHECKING([whether to build static libraries])
  8643. # Make sure either enable_shared or enable_static is yes.
  8644. test "$enable_shared" = yes || enable_static=yes
  8645. AC_MSG_RESULT([$enable_static])
  8646. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  8647. _LT_TAGVAR(LD, $1)="$LD"
  8648. ## CAVEAT EMPTOR:
  8649. ## There is no encapsulation within the following macros, do not change
  8650. ## the running order or otherwise move them around unless you know exactly
  8651. ## what you are doing...
  8652. _LT_SYS_HIDDEN_LIBDEPS($1)
  8653. _LT_COMPILER_PIC($1)
  8654. _LT_COMPILER_C_O($1)
  8655. _LT_COMPILER_FILE_LOCKS($1)
  8656. _LT_LINKER_SHLIBS($1)
  8657. _LT_SYS_DYNAMIC_LINKER($1)
  8658. _LT_LINKER_HARDCODE_LIBPATH($1)
  8659. _LT_CONFIG($1)
  8660. fi # test -n "$compiler"
  8661. GCC=$lt_save_GCC
  8662. CC="$lt_save_CC"
  8663. fi # test "$_lt_disable_FC" != yes
  8664. AC_LANG_POP
  8665. ])# _LT_LANG_FC_CONFIG
  8666. # _LT_LANG_GCJ_CONFIG([TAG])
  8667. # --------------------------
  8668. # Ensure that the configuration variables for the GNU Java Compiler compiler
  8669. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  8670. # to write the compiler configuration to `libtool'.
  8671. m4_defun([_LT_LANG_GCJ_CONFIG],
  8672. [AC_REQUIRE([LT_PROG_GCJ])dnl
  8673. AC_LANG_SAVE
  8674. # Source file extension for Java test sources.
  8675. ac_ext=java
  8676. # Object file extension for compiled Java test sources.
  8677. objext=o
  8678. _LT_TAGVAR(objext, $1)=$objext
  8679. # Code to be used in simple compile tests
  8680. lt_simple_compile_test_code="class foo {}"
  8681. # Code to be used in simple link tests
  8682. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  8683. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8684. _LT_TAG_COMPILER
  8685. # save warnings/boilerplate of simple test code
  8686. _LT_COMPILER_BOILERPLATE
  8687. _LT_LINKER_BOILERPLATE
  8688. # Allow CC to be a program name with arguments.
  8689. lt_save_CC="$CC"
  8690. lt_save_GCC=$GCC
  8691. GCC=yes
  8692. CC=${GCJ-"gcj"}
  8693. compiler=$CC
  8694. _LT_TAGVAR(compiler, $1)=$CC
  8695. _LT_TAGVAR(LD, $1)="$LD"
  8696. _LT_CC_BASENAME([$compiler])
  8697. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  8698. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8699. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8700. if test -n "$compiler"; then
  8701. _LT_COMPILER_NO_RTTI($1)
  8702. _LT_COMPILER_PIC($1)
  8703. _LT_COMPILER_C_O($1)
  8704. _LT_COMPILER_FILE_LOCKS($1)
  8705. _LT_LINKER_SHLIBS($1)
  8706. _LT_LINKER_HARDCODE_LIBPATH($1)
  8707. _LT_CONFIG($1)
  8708. fi
  8709. AC_LANG_RESTORE
  8710. GCC=$lt_save_GCC
  8711. CC="$lt_save_CC"
  8712. ])# _LT_LANG_GCJ_CONFIG
  8713. # _LT_LANG_RC_CONFIG([TAG])
  8714. # -------------------------
  8715. # Ensure that the configuration variables for the Windows resource compiler
  8716. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  8717. # to write the compiler configuration to `libtool'.
  8718. m4_defun([_LT_LANG_RC_CONFIG],
  8719. [AC_REQUIRE([LT_PROG_RC])dnl
  8720. AC_LANG_SAVE
  8721. # Source file extension for RC test sources.
  8722. ac_ext=rc
  8723. # Object file extension for compiled RC test sources.
  8724. objext=o
  8725. _LT_TAGVAR(objext, $1)=$objext
  8726. # Code to be used in simple compile tests
  8727. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  8728. # Code to be used in simple link tests
  8729. lt_simple_link_test_code="$lt_simple_compile_test_code"
  8730. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8731. _LT_TAG_COMPILER
  8732. # save warnings/boilerplate of simple test code
  8733. _LT_COMPILER_BOILERPLATE
  8734. _LT_LINKER_BOILERPLATE
  8735. # Allow CC to be a program name with arguments.
  8736. lt_save_CC="$CC"
  8737. lt_save_GCC=$GCC
  8738. GCC=
  8739. CC=${RC-"windres"}
  8740. compiler=$CC
  8741. _LT_TAGVAR(compiler, $1)=$CC
  8742. _LT_CC_BASENAME([$compiler])
  8743. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  8744. if test -n "$compiler"; then
  8745. :
  8746. _LT_CONFIG($1)
  8747. fi
  8748. GCC=$lt_save_GCC
  8749. AC_LANG_RESTORE
  8750. CC="$lt_save_CC"
  8751. ])# _LT_LANG_RC_CONFIG
  8752. # LT_PROG_GCJ
  8753. # -----------
  8754. AC_DEFUN([LT_PROG_GCJ],
  8755. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  8756. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  8757. [AC_CHECK_TOOL(GCJ, gcj,)
  8758. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  8759. AC_SUBST(GCJFLAGS)])])[]dnl
  8760. ])
  8761. # Old name:
  8762. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  8763. dnl aclocal-1.4 backwards compatibility:
  8764. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  8765. # LT_PROG_RC
  8766. # ----------
  8767. AC_DEFUN([LT_PROG_RC],
  8768. [AC_CHECK_TOOL(RC, windres,)
  8769. ])
  8770. # Old name:
  8771. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  8772. dnl aclocal-1.4 backwards compatibility:
  8773. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  8774. # _LT_DECL_EGREP
  8775. # --------------
  8776. # If we don't have a new enough Autoconf to choose the best grep
  8777. # available, choose the one first in the user's PATH.
  8778. m4_defun([_LT_DECL_EGREP],
  8779. [AC_REQUIRE([AC_PROG_EGREP])dnl
  8780. AC_REQUIRE([AC_PROG_FGREP])dnl
  8781. test -z "$GREP" && GREP=grep
  8782. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  8783. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  8784. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  8785. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  8786. AC_SUBST([GREP])
  8787. ])
  8788. # _LT_DECL_OBJDUMP
  8789. # --------------
  8790. # If we don't have a new enough Autoconf to choose the best objdump
  8791. # available, choose the one first in the user's PATH.
  8792. m4_defun([_LT_DECL_OBJDUMP],
  8793. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  8794. test -z "$OBJDUMP" && OBJDUMP=objdump
  8795. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  8796. AC_SUBST([OBJDUMP])
  8797. ])
  8798. # _LT_DECL_SED
  8799. # ------------
  8800. # Check for a fully-functional sed program, that truncates
  8801. # as few characters as possible. Prefer GNU sed if found.
  8802. m4_defun([_LT_DECL_SED],
  8803. [AC_PROG_SED
  8804. test -z "$SED" && SED=sed
  8805. Xsed="$SED -e 1s/^X//"
  8806. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  8807. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  8808. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  8809. ])# _LT_DECL_SED
  8810. m4_ifndef([AC_PROG_SED], [
  8811. # NOTE: This macro has been submitted for inclusion into #
  8812. # GNU Autoconf as AC_PROG_SED. When it is available in #
  8813. # a released version of Autoconf we should remove this #
  8814. # macro and use it instead. #
  8815. m4_defun([AC_PROG_SED],
  8816. [AC_MSG_CHECKING([for a sed that does not truncate output])
  8817. AC_CACHE_VAL(lt_cv_path_SED,
  8818. [# Loop through the user's path and test for sed and gsed.
  8819. # Then use that list of sed's as ones to test for truncation.
  8820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8821. for as_dir in $PATH
  8822. do
  8823. IFS=$as_save_IFS
  8824. test -z "$as_dir" && as_dir=.
  8825. for lt_ac_prog in sed gsed; do
  8826. for ac_exec_ext in '' $ac_executable_extensions; do
  8827. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  8828. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  8829. fi
  8830. done
  8831. done
  8832. done
  8833. IFS=$as_save_IFS
  8834. lt_ac_max=0
  8835. lt_ac_count=0
  8836. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  8837. # along with /bin/sed that truncates output.
  8838. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  8839. test ! -f $lt_ac_sed && continue
  8840. cat /dev/null > conftest.in
  8841. lt_ac_count=0
  8842. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  8843. # Check for GNU sed and select it if it is found.
  8844. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  8845. lt_cv_path_SED=$lt_ac_sed
  8846. break
  8847. fi
  8848. while true; do
  8849. cat conftest.in conftest.in >conftest.tmp
  8850. mv conftest.tmp conftest.in
  8851. cp conftest.in conftest.nl
  8852. echo >>conftest.nl
  8853. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  8854. cmp -s conftest.out conftest.nl || break
  8855. # 10000 chars as input seems more than enough
  8856. test $lt_ac_count -gt 10 && break
  8857. lt_ac_count=`expr $lt_ac_count + 1`
  8858. if test $lt_ac_count -gt $lt_ac_max; then
  8859. lt_ac_max=$lt_ac_count
  8860. lt_cv_path_SED=$lt_ac_sed
  8861. fi
  8862. done
  8863. done
  8864. ])
  8865. SED=$lt_cv_path_SED
  8866. AC_SUBST([SED])
  8867. AC_MSG_RESULT([$SED])
  8868. ])#AC_PROG_SED
  8869. ])#m4_ifndef
  8870. # Old name:
  8871. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  8872. dnl aclocal-1.4 backwards compatibility:
  8873. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  8874. # _LT_CHECK_SHELL_FEATURES
  8875. # ------------------------
  8876. # Find out whether the shell is Bourne or XSI compatible,
  8877. # or has some other useful features.
  8878. m4_defun([_LT_CHECK_SHELL_FEATURES],
  8879. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  8880. # Try some XSI features
  8881. xsi_shell=no
  8882. ( _lt_dummy="a/b/c"
  8883. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  8884. = c,a/b,, \
  8885. && eval 'test $(( 1 + 1 )) -eq 2 \
  8886. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  8887. && xsi_shell=yes
  8888. AC_MSG_RESULT([$xsi_shell])
  8889. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  8890. AC_MSG_CHECKING([whether the shell understands "+="])
  8891. lt_shell_append=no
  8892. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  8893. >/dev/null 2>&1 \
  8894. && lt_shell_append=yes
  8895. AC_MSG_RESULT([$lt_shell_append])
  8896. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  8897. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8898. lt_unset=unset
  8899. else
  8900. lt_unset=false
  8901. fi
  8902. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  8903. # test EBCDIC or ASCII
  8904. case `echo X|tr X '\101'` in
  8905. A) # ASCII based system
  8906. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  8907. lt_SP2NL='tr \040 \012'
  8908. lt_NL2SP='tr \015\012 \040\040'
  8909. ;;
  8910. *) # EBCDIC based system
  8911. lt_SP2NL='tr \100 \n'
  8912. lt_NL2SP='tr \r\n \100\100'
  8913. ;;
  8914. esac
  8915. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  8916. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  8917. ])# _LT_CHECK_SHELL_FEATURES
  8918. # _LT_PROG_XSI_SHELLFNS
  8919. # ---------------------
  8920. # Bourne and XSI compatible variants of some useful shell functions.
  8921. m4_defun([_LT_PROG_XSI_SHELLFNS],
  8922. [case $xsi_shell in
  8923. yes)
  8924. cat << \_LT_EOF >> "$cfgfile"
  8925. # func_dirname file append nondir_replacement
  8926. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  8927. # otherwise set result to NONDIR_REPLACEMENT.
  8928. func_dirname ()
  8929. {
  8930. case ${1} in
  8931. */*) func_dirname_result="${1%/*}${2}" ;;
  8932. * ) func_dirname_result="${3}" ;;
  8933. esac
  8934. }
  8935. # func_basename file
  8936. func_basename ()
  8937. {
  8938. func_basename_result="${1##*/}"
  8939. }
  8940. # func_dirname_and_basename file append nondir_replacement
  8941. # perform func_basename and func_dirname in a single function
  8942. # call:
  8943. # dirname: Compute the dirname of FILE. If nonempty,
  8944. # add APPEND to the result, otherwise set result
  8945. # to NONDIR_REPLACEMENT.
  8946. # value returned in "$func_dirname_result"
  8947. # basename: Compute filename of FILE.
  8948. # value retuned in "$func_basename_result"
  8949. # Implementation must be kept synchronized with func_dirname
  8950. # and func_basename. For efficiency, we do not delegate to
  8951. # those functions but instead duplicate the functionality here.
  8952. func_dirname_and_basename ()
  8953. {
  8954. case ${1} in
  8955. */*) func_dirname_result="${1%/*}${2}" ;;
  8956. * ) func_dirname_result="${3}" ;;
  8957. esac
  8958. func_basename_result="${1##*/}"
  8959. }
  8960. # func_stripname prefix suffix name
  8961. # strip PREFIX and SUFFIX off of NAME.
  8962. # PREFIX and SUFFIX must not contain globbing or regex special
  8963. # characters, hashes, percent signs, but SUFFIX may contain a leading
  8964. # dot (in which case that matches only a dot).
  8965. func_stripname ()
  8966. {
  8967. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  8968. # positional parameters, so assign one to ordinary parameter first.
  8969. func_stripname_result=${3}
  8970. func_stripname_result=${func_stripname_result#"${1}"}
  8971. func_stripname_result=${func_stripname_result%"${2}"}
  8972. }
  8973. # func_opt_split
  8974. func_opt_split ()
  8975. {
  8976. func_opt_split_opt=${1%%=*}
  8977. func_opt_split_arg=${1#*=}
  8978. }
  8979. # func_lo2o object
  8980. func_lo2o ()
  8981. {
  8982. case ${1} in
  8983. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  8984. *) func_lo2o_result=${1} ;;
  8985. esac
  8986. }
  8987. # func_xform libobj-or-source
  8988. func_xform ()
  8989. {
  8990. func_xform_result=${1%.*}.lo
  8991. }
  8992. # func_arith arithmetic-term...
  8993. func_arith ()
  8994. {
  8995. func_arith_result=$(( $[*] ))
  8996. }
  8997. # func_len string
  8998. # STRING may not start with a hyphen.
  8999. func_len ()
  9000. {
  9001. func_len_result=${#1}
  9002. }
  9003. _LT_EOF
  9004. ;;
  9005. *) # Bourne compatible functions.
  9006. cat << \_LT_EOF >> "$cfgfile"
  9007. # func_dirname file append nondir_replacement
  9008. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9009. # otherwise set result to NONDIR_REPLACEMENT.
  9010. func_dirname ()
  9011. {
  9012. # Extract subdirectory from the argument.
  9013. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  9014. if test "X$func_dirname_result" = "X${1}"; then
  9015. func_dirname_result="${3}"
  9016. else
  9017. func_dirname_result="$func_dirname_result${2}"
  9018. fi
  9019. }
  9020. # func_basename file
  9021. func_basename ()
  9022. {
  9023. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  9024. }
  9025. dnl func_dirname_and_basename
  9026. dnl A portable version of this function is already defined in general.m4sh
  9027. dnl so there is no need for it here.
  9028. # func_stripname prefix suffix name
  9029. # strip PREFIX and SUFFIX off of NAME.
  9030. # PREFIX and SUFFIX must not contain globbing or regex special
  9031. # characters, hashes, percent signs, but SUFFIX may contain a leading
  9032. # dot (in which case that matches only a dot).
  9033. # func_strip_suffix prefix name
  9034. func_stripname ()
  9035. {
  9036. case ${2} in
  9037. .*) func_stripname_result=`$ECHO "X${3}" \
  9038. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  9039. *) func_stripname_result=`$ECHO "X${3}" \
  9040. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  9041. esac
  9042. }
  9043. # sed scripts:
  9044. my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  9045. my_sed_long_arg='1s/^-[[^=]]*=//'
  9046. # func_opt_split
  9047. func_opt_split ()
  9048. {
  9049. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  9050. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  9051. }
  9052. # func_lo2o object
  9053. func_lo2o ()
  9054. {
  9055. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  9056. }
  9057. # func_xform libobj-or-source
  9058. func_xform ()
  9059. {
  9060. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  9061. }
  9062. # func_arith arithmetic-term...
  9063. func_arith ()
  9064. {
  9065. func_arith_result=`expr "$[@]"`
  9066. }
  9067. # func_len string
  9068. # STRING may not start with a hyphen.
  9069. func_len ()
  9070. {
  9071. func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  9072. }
  9073. _LT_EOF
  9074. esac
  9075. case $lt_shell_append in
  9076. yes)
  9077. cat << \_LT_EOF >> "$cfgfile"
  9078. # func_append var value
  9079. # Append VALUE to the end of shell variable VAR.
  9080. func_append ()
  9081. {
  9082. eval "$[1]+=\$[2]"
  9083. }
  9084. _LT_EOF
  9085. ;;
  9086. *)
  9087. cat << \_LT_EOF >> "$cfgfile"
  9088. # func_append var value
  9089. # Append VALUE to the end of shell variable VAR.
  9090. func_append ()
  9091. {
  9092. eval "$[1]=\$$[1]\$[2]"
  9093. }
  9094. _LT_EOF
  9095. ;;
  9096. esac
  9097. ])
  9098. # Helper functions for option handling. -*- Autoconf -*-
  9099. #
  9100. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  9101. # Written by Gary V. Vaughan, 2004
  9102. #
  9103. # This file is free software; the Free Software Foundation gives
  9104. # unlimited permission to copy and/or distribute it, with or without
  9105. # modifications, as long as this notice is preserved.
  9106. # serial 6 ltoptions.m4
  9107. # This is to help aclocal find these macros, as it can't see m4_define.
  9108. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  9109. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  9110. # ------------------------------------------
  9111. m4_define([_LT_MANGLE_OPTION],
  9112. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  9113. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  9114. # ---------------------------------------
  9115. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  9116. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  9117. # saved as a flag.
  9118. m4_define([_LT_SET_OPTION],
  9119. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  9120. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  9121. _LT_MANGLE_DEFUN([$1], [$2]),
  9122. [m4_warning([Unknown $1 option `$2'])])[]dnl
  9123. ])
  9124. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  9125. # ------------------------------------------------------------
  9126. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  9127. m4_define([_LT_IF_OPTION],
  9128. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  9129. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  9130. # -------------------------------------------------------
  9131. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  9132. # are set.
  9133. m4_define([_LT_UNLESS_OPTIONS],
  9134. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  9135. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  9136. [m4_define([$0_found])])])[]dnl
  9137. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  9138. ])[]dnl
  9139. ])
  9140. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  9141. # ----------------------------------------
  9142. # OPTION-LIST is a space-separated list of Libtool options associated
  9143. # with MACRO-NAME. If any OPTION has a matching handler declared with
  9144. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  9145. # the unknown option and exit.
  9146. m4_defun([_LT_SET_OPTIONS],
  9147. [# Set options
  9148. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  9149. [_LT_SET_OPTION([$1], _LT_Option)])
  9150. m4_if([$1],[LT_INIT],[
  9151. dnl
  9152. dnl Simply set some default values (i.e off) if boolean options were not
  9153. dnl specified:
  9154. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  9155. ])
  9156. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  9157. ])
  9158. dnl
  9159. dnl If no reference was made to various pairs of opposing options, then
  9160. dnl we run the default mode handler for the pair. For example, if neither
  9161. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  9162. dnl archives by default:
  9163. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  9164. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  9165. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  9166. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  9167. [_LT_ENABLE_FAST_INSTALL])
  9168. ])
  9169. ])# _LT_SET_OPTIONS
  9170. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  9171. # -----------------------------------------
  9172. m4_define([_LT_MANGLE_DEFUN],
  9173. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  9174. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  9175. # -----------------------------------------------
  9176. m4_define([LT_OPTION_DEFINE],
  9177. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  9178. ])# LT_OPTION_DEFINE
  9179. # dlopen
  9180. # ------
  9181. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  9182. ])
  9183. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  9184. [_LT_SET_OPTION([LT_INIT], [dlopen])
  9185. AC_DIAGNOSE([obsolete],
  9186. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  9187. put the `dlopen' option into LT_INIT's first parameter.])
  9188. ])
  9189. dnl aclocal-1.4 backwards compatibility:
  9190. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  9191. # win32-dll
  9192. # ---------
  9193. # Declare package support for building win32 dll's.
  9194. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  9195. [enable_win32_dll=yes
  9196. case $host in
  9197. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  9198. AC_CHECK_TOOL(AS, as, false)
  9199. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  9200. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  9201. ;;
  9202. esac
  9203. test -z "$AS" && AS=as
  9204. _LT_DECL([], [AS], [0], [Assembler program])dnl
  9205. test -z "$DLLTOOL" && DLLTOOL=dlltool
  9206. _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  9207. test -z "$OBJDUMP" && OBJDUMP=objdump
  9208. _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  9209. ])# win32-dll
  9210. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  9211. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  9212. _LT_SET_OPTION([LT_INIT], [win32-dll])
  9213. AC_DIAGNOSE([obsolete],
  9214. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  9215. put the `win32-dll' option into LT_INIT's first parameter.])
  9216. ])
  9217. dnl aclocal-1.4 backwards compatibility:
  9218. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  9219. # _LT_ENABLE_SHARED([DEFAULT])
  9220. # ----------------------------
  9221. # implement the --enable-shared flag, and supports the `shared' and
  9222. # `disable-shared' LT_INIT options.
  9223. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  9224. m4_define([_LT_ENABLE_SHARED],
  9225. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  9226. AC_ARG_ENABLE([shared],
  9227. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  9228. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  9229. [p=${PACKAGE-default}
  9230. case $enableval in
  9231. yes) enable_shared=yes ;;
  9232. no) enable_shared=no ;;
  9233. *)
  9234. enable_shared=no
  9235. # Look at the argument we got. We use all the common list separators.
  9236. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9237. for pkg in $enableval; do
  9238. IFS="$lt_save_ifs"
  9239. if test "X$pkg" = "X$p"; then
  9240. enable_shared=yes
  9241. fi
  9242. done
  9243. IFS="$lt_save_ifs"
  9244. ;;
  9245. esac],
  9246. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  9247. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  9248. [Whether or not to build shared libraries])
  9249. ])# _LT_ENABLE_SHARED
  9250. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  9251. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  9252. # Old names:
  9253. AC_DEFUN([AC_ENABLE_SHARED],
  9254. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  9255. ])
  9256. AC_DEFUN([AC_DISABLE_SHARED],
  9257. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  9258. ])
  9259. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  9260. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  9261. dnl aclocal-1.4 backwards compatibility:
  9262. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  9263. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  9264. # _LT_ENABLE_STATIC([DEFAULT])
  9265. # ----------------------------
  9266. # implement the --enable-static flag, and support the `static' and
  9267. # `disable-static' LT_INIT options.
  9268. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  9269. m4_define([_LT_ENABLE_STATIC],
  9270. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  9271. AC_ARG_ENABLE([static],
  9272. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  9273. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  9274. [p=${PACKAGE-default}
  9275. case $enableval in
  9276. yes) enable_static=yes ;;
  9277. no) enable_static=no ;;
  9278. *)
  9279. enable_static=no
  9280. # Look at the argument we got. We use all the common list separators.
  9281. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9282. for pkg in $enableval; do
  9283. IFS="$lt_save_ifs"
  9284. if test "X$pkg" = "X$p"; then
  9285. enable_static=yes
  9286. fi
  9287. done
  9288. IFS="$lt_save_ifs"
  9289. ;;
  9290. esac],
  9291. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  9292. _LT_DECL([build_old_libs], [enable_static], [0],
  9293. [Whether or not to build static libraries])
  9294. ])# _LT_ENABLE_STATIC
  9295. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  9296. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  9297. # Old names:
  9298. AC_DEFUN([AC_ENABLE_STATIC],
  9299. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  9300. ])
  9301. AC_DEFUN([AC_DISABLE_STATIC],
  9302. [_LT_SET_OPTION([LT_INIT], [disable-static])
  9303. ])
  9304. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  9305. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  9306. dnl aclocal-1.4 backwards compatibility:
  9307. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  9308. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  9309. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  9310. # ----------------------------------
  9311. # implement the --enable-fast-install flag, and support the `fast-install'
  9312. # and `disable-fast-install' LT_INIT options.
  9313. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  9314. m4_define([_LT_ENABLE_FAST_INSTALL],
  9315. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  9316. AC_ARG_ENABLE([fast-install],
  9317. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  9318. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  9319. [p=${PACKAGE-default}
  9320. case $enableval in
  9321. yes) enable_fast_install=yes ;;
  9322. no) enable_fast_install=no ;;
  9323. *)
  9324. enable_fast_install=no
  9325. # Look at the argument we got. We use all the common list separators.
  9326. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9327. for pkg in $enableval; do
  9328. IFS="$lt_save_ifs"
  9329. if test "X$pkg" = "X$p"; then
  9330. enable_fast_install=yes
  9331. fi
  9332. done
  9333. IFS="$lt_save_ifs"
  9334. ;;
  9335. esac],
  9336. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  9337. _LT_DECL([fast_install], [enable_fast_install], [0],
  9338. [Whether or not to optimize for fast installation])dnl
  9339. ])# _LT_ENABLE_FAST_INSTALL
  9340. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  9341. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  9342. # Old names:
  9343. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  9344. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  9345. AC_DIAGNOSE([obsolete],
  9346. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  9347. the `fast-install' option into LT_INIT's first parameter.])
  9348. ])
  9349. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  9350. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  9351. AC_DIAGNOSE([obsolete],
  9352. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  9353. the `disable-fast-install' option into LT_INIT's first parameter.])
  9354. ])
  9355. dnl aclocal-1.4 backwards compatibility:
  9356. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  9357. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  9358. # _LT_WITH_PIC([MODE])
  9359. # --------------------
  9360. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  9361. # LT_INIT options.
  9362. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  9363. m4_define([_LT_WITH_PIC],
  9364. [AC_ARG_WITH([pic],
  9365. [AS_HELP_STRING([--with-pic],
  9366. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  9367. [pic_mode="$withval"],
  9368. [pic_mode=default])
  9369. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  9370. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  9371. ])# _LT_WITH_PIC
  9372. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  9373. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  9374. # Old name:
  9375. AU_DEFUN([AC_LIBTOOL_PICMODE],
  9376. [_LT_SET_OPTION([LT_INIT], [pic-only])
  9377. AC_DIAGNOSE([obsolete],
  9378. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  9379. put the `pic-only' option into LT_INIT's first parameter.])
  9380. ])
  9381. dnl aclocal-1.4 backwards compatibility:
  9382. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  9383. m4_define([_LTDL_MODE], [])
  9384. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  9385. [m4_define([_LTDL_MODE], [nonrecursive])])
  9386. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  9387. [m4_define([_LTDL_MODE], [recursive])])
  9388. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  9389. [m4_define([_LTDL_MODE], [subproject])])
  9390. m4_define([_LTDL_TYPE], [])
  9391. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  9392. [m4_define([_LTDL_TYPE], [installable])])
  9393. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  9394. [m4_define([_LTDL_TYPE], [convenience])])
  9395. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  9396. #
  9397. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  9398. # Written by Gary V. Vaughan, 2004
  9399. #
  9400. # This file is free software; the Free Software Foundation gives
  9401. # unlimited permission to copy and/or distribute it, with or without
  9402. # modifications, as long as this notice is preserved.
  9403. # serial 6 ltsugar.m4
  9404. # This is to help aclocal find these macros, as it can't see m4_define.
  9405. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  9406. # lt_join(SEP, ARG1, [ARG2...])
  9407. # -----------------------------
  9408. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  9409. # associated separator.
  9410. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  9411. # versions in m4sugar had bugs.
  9412. m4_define([lt_join],
  9413. [m4_if([$#], [1], [],
  9414. [$#], [2], [[$2]],
  9415. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  9416. m4_define([_lt_join],
  9417. [m4_if([$#$2], [2], [],
  9418. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  9419. # lt_car(LIST)
  9420. # lt_cdr(LIST)
  9421. # ------------
  9422. # Manipulate m4 lists.
  9423. # These macros are necessary as long as will still need to support
  9424. # Autoconf-2.59 which quotes differently.
  9425. m4_define([lt_car], [[$1]])
  9426. m4_define([lt_cdr],
  9427. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  9428. [$#], 1, [],
  9429. [m4_dquote(m4_shift($@))])])
  9430. m4_define([lt_unquote], $1)
  9431. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  9432. # ------------------------------------------
  9433. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  9434. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  9435. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  9436. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  9437. # than defined and empty).
  9438. #
  9439. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  9440. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  9441. m4_define([lt_append],
  9442. [m4_define([$1],
  9443. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  9444. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  9445. # ----------------------------------------------------------
  9446. # Produce a SEP delimited list of all paired combinations of elements of
  9447. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  9448. # has the form PREFIXmINFIXSUFFIXn.
  9449. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  9450. m4_define([lt_combine],
  9451. [m4_if(m4_eval([$# > 3]), [1],
  9452. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  9453. [[m4_foreach([_Lt_prefix], [$2],
  9454. [m4_foreach([_Lt_suffix],
  9455. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  9456. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  9457. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  9458. # -----------------------------------------------------------------------
  9459. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  9460. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  9461. m4_define([lt_if_append_uniq],
  9462. [m4_ifdef([$1],
  9463. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  9464. [lt_append([$1], [$2], [$3])$4],
  9465. [$5])],
  9466. [lt_append([$1], [$2], [$3])$4])])
  9467. # lt_dict_add(DICT, KEY, VALUE)
  9468. # -----------------------------
  9469. m4_define([lt_dict_add],
  9470. [m4_define([$1($2)], [$3])])
  9471. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  9472. # --------------------------------------------
  9473. m4_define([lt_dict_add_subkey],
  9474. [m4_define([$1($2:$3)], [$4])])
  9475. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  9476. # ----------------------------------
  9477. m4_define([lt_dict_fetch],
  9478. [m4_ifval([$3],
  9479. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  9480. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  9481. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  9482. # -----------------------------------------------------------------
  9483. m4_define([lt_if_dict_fetch],
  9484. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  9485. [$5],
  9486. [$6])])
  9487. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  9488. # --------------------------------------------------------------
  9489. m4_define([lt_dict_filter],
  9490. [m4_if([$5], [], [],
  9491. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  9492. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  9493. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  9494. ])
  9495. # ltversion.m4 -- version numbers -*- Autoconf -*-
  9496. #
  9497. # Copyright (C) 2004 Free Software Foundation, Inc.
  9498. # Written by Scott James Remnant, 2004
  9499. #
  9500. # This file is free software; the Free Software Foundation gives
  9501. # unlimited permission to copy and/or distribute it, with or without
  9502. # modifications, as long as this notice is preserved.
  9503. # Generated from ltversion.in.
  9504. # serial 3012 ltversion.m4
  9505. # This file is part of GNU Libtool
  9506. m4_define([LT_PACKAGE_VERSION], [2.2.6])
  9507. m4_define([LT_PACKAGE_REVISION], [1.3012])
  9508. AC_DEFUN([LTVERSION_VERSION],
  9509. [macro_version='2.2.6'
  9510. macro_revision='1.3012'
  9511. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  9512. _LT_DECL(, macro_revision, 0)
  9513. ])
  9514. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  9515. #
  9516. # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  9517. # Written by Scott James Remnant, 2004.
  9518. #
  9519. # This file is free software; the Free Software Foundation gives
  9520. # unlimited permission to copy and/or distribute it, with or without
  9521. # modifications, as long as this notice is preserved.
  9522. # serial 4 lt~obsolete.m4
  9523. # These exist entirely to fool aclocal when bootstrapping libtool.
  9524. #
  9525. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  9526. # which have later been changed to m4_define as they aren't part of the
  9527. # exported API, or moved to Autoconf or Automake where they belong.
  9528. #
  9529. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  9530. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  9531. # using a macro with the same name in our local m4/libtool.m4 it'll
  9532. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  9533. # and doesn't know about Autoconf macros at all.)
  9534. #
  9535. # So we provide this file, which has a silly filename so it's always
  9536. # included after everything else. This provides aclocal with the
  9537. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  9538. # because those macros already exist, or will be overwritten later.
  9539. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  9540. #
  9541. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  9542. # Yes, that means every name once taken will need to remain here until
  9543. # we give up compatibility with versions before 1.7, at which point
  9544. # we need to keep only those names which we still refer to.
  9545. # This is to help aclocal find these macros, as it can't see m4_define.
  9546. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  9547. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  9548. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  9549. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  9550. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  9551. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  9552. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  9553. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  9554. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  9555. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  9556. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  9557. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  9558. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  9559. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  9560. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  9561. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  9562. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  9563. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  9564. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  9565. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  9566. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  9567. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  9568. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  9569. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  9570. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  9571. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  9572. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  9573. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  9574. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  9575. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  9576. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  9577. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  9578. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  9579. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  9580. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  9581. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  9582. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  9583. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  9584. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  9585. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  9586. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  9587. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  9588. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  9589. m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  9590. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  9591. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  9592. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  9593. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  9594. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  9595. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  9596. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  9597. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  9598. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  9599. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  9600. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  9601. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  9602. # nls.m4 serial 3 (gettext-0.15)
  9603. dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
  9604. dnl This file is free software; the Free Software Foundation
  9605. dnl gives unlimited permission to copy and/or distribute it,
  9606. dnl with or without modifications, as long as this notice is preserved.
  9607. dnl
  9608. dnl This file can can be used in projects which are not available under
  9609. dnl the GNU General Public License or the GNU Library General Public
  9610. dnl License but which still want to provide support for the GNU gettext
  9611. dnl functionality.
  9612. dnl Please note that the actual code of the GNU gettext library is covered
  9613. dnl by the GNU Library General Public License, and the rest of the GNU
  9614. dnl gettext package package is covered by the GNU General Public License.
  9615. dnl They are *not* in the public domain.
  9616. dnl Authors:
  9617. dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  9618. dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  9619. AC_PREREQ(2.50)
  9620. AC_DEFUN([AM_NLS],
  9621. [
  9622. AC_MSG_CHECKING([whether NLS is requested])
  9623. dnl Default is enabled NLS
  9624. AC_ARG_ENABLE(nls,
  9625. [ --disable-nls do not use Native Language Support],
  9626. USE_NLS=$enableval, USE_NLS=yes)
  9627. AC_MSG_RESULT($USE_NLS)
  9628. AC_SUBST(USE_NLS)
  9629. ])
  9630. # po.m4 serial 15 (gettext-0.17)
  9631. dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
  9632. dnl This file is free software; the Free Software Foundation
  9633. dnl gives unlimited permission to copy and/or distribute it,
  9634. dnl with or without modifications, as long as this notice is preserved.
  9635. dnl
  9636. dnl This file can can be used in projects which are not available under
  9637. dnl the GNU General Public License or the GNU Library General Public
  9638. dnl License but which still want to provide support for the GNU gettext
  9639. dnl functionality.
  9640. dnl Please note that the actual code of the GNU gettext library is covered
  9641. dnl by the GNU Library General Public License, and the rest of the GNU
  9642. dnl gettext package package is covered by the GNU General Public License.
  9643. dnl They are *not* in the public domain.
  9644. dnl Authors:
  9645. dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
  9646. dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
  9647. AC_PREREQ(2.50)
  9648. dnl Checks for all prerequisites of the po subdirectory.
  9649. AC_DEFUN([AM_PO_SUBDIRS],
  9650. [
  9651. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  9652. AC_REQUIRE([AC_PROG_INSTALL])dnl
  9653. AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
  9654. AC_REQUIRE([AM_NLS])dnl
  9655. dnl Release version of the gettext macros. This is used to ensure that
  9656. dnl the gettext macros and po/Makefile.in.in are in sync.
  9657. AC_SUBST([GETTEXT_MACRO_VERSION], [0.17])
  9658. dnl Perform the following tests also if --disable-nls has been given,
  9659. dnl because they are needed for "make dist" to work.
  9660. dnl Search for GNU msgfmt in the PATH.
  9661. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
  9662. dnl The second test excludes FreeBSD msgfmt.
  9663. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
  9664. [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
  9665. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
  9666. :)
  9667. AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
  9668. dnl Test whether it is GNU msgfmt >= 0.15.
  9669. changequote(,)dnl
  9670. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9671. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9672. *) MSGFMT_015=$MSGFMT ;;
  9673. esac
  9674. changequote([,])dnl
  9675. AC_SUBST([MSGFMT_015])
  9676. changequote(,)dnl
  9677. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9678. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9679. *) GMSGFMT_015=$GMSGFMT ;;
  9680. esac
  9681. changequote([,])dnl
  9682. AC_SUBST([GMSGFMT_015])
  9683. dnl Search for GNU xgettext 0.12 or newer in the PATH.
  9684. dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
  9685. dnl The second test excludes FreeBSD xgettext.
  9686. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
  9687. [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
  9688. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
  9689. :)
  9690. dnl Remove leftover from FreeBSD xgettext call.
  9691. rm -f messages.po
  9692. dnl Test whether it is GNU xgettext >= 0.15.
  9693. changequote(,)dnl
  9694. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9695. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9696. *) XGETTEXT_015=$XGETTEXT ;;
  9697. esac
  9698. changequote([,])dnl
  9699. AC_SUBST([XGETTEXT_015])
  9700. dnl Search for GNU msgmerge 0.11 or newer in the PATH.
  9701. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
  9702. [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
  9703. dnl Installation directories.
  9704. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
  9705. dnl have to define it here, so that it can be used in po/Makefile.
  9706. test -n "$localedir" || localedir='${datadir}/locale'
  9707. AC_SUBST([localedir])
  9708. dnl Support for AM_XGETTEXT_OPTION.
  9709. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9710. AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
  9711. AC_CONFIG_COMMANDS([po-directories], [[
  9712. for ac_file in $CONFIG_FILES; do
  9713. # Support "outfile[:infile[:infile...]]"
  9714. case "$ac_file" in
  9715. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9716. esac
  9717. # PO directories have a Makefile.in generated from Makefile.in.in.
  9718. case "$ac_file" in */Makefile.in)
  9719. # Adjust a relative srcdir.
  9720. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  9721. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  9722. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  9723. # In autoconf-2.13 it is called $ac_given_srcdir.
  9724. # In autoconf-2.50 it is called $srcdir.
  9725. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  9726. case "$ac_given_srcdir" in
  9727. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  9728. /*) top_srcdir="$ac_given_srcdir" ;;
  9729. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  9730. esac
  9731. # Treat a directory as a PO directory if and only if it has a
  9732. # POTFILES.in file. This allows packages to have multiple PO
  9733. # directories under different names or in different locations.
  9734. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  9735. rm -f "$ac_dir/POTFILES"
  9736. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  9737. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  9738. POMAKEFILEDEPS="POTFILES.in"
  9739. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  9740. # on $ac_dir but don't depend on user-specified configuration
  9741. # parameters.
  9742. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  9743. # The LINGUAS file contains the set of available languages.
  9744. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  9745. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  9746. fi
  9747. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  9748. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  9749. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  9750. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  9751. else
  9752. # The set of available languages was given in configure.in.
  9753. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  9754. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  9755. fi
  9756. # Compute POFILES
  9757. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  9758. # Compute UPDATEPOFILES
  9759. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  9760. # Compute DUMMYPOFILES
  9761. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  9762. # Compute GMOFILES
  9763. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  9764. case "$ac_given_srcdir" in
  9765. .) srcdirpre= ;;
  9766. *) srcdirpre='$(srcdir)/' ;;
  9767. esac
  9768. POFILES=
  9769. UPDATEPOFILES=
  9770. DUMMYPOFILES=
  9771. GMOFILES=
  9772. for lang in $ALL_LINGUAS; do
  9773. POFILES="$POFILES $srcdirpre$lang.po"
  9774. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  9775. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  9776. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  9777. done
  9778. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  9779. # environment variable.
  9780. INST_LINGUAS=
  9781. if test -n "$ALL_LINGUAS"; then
  9782. for presentlang in $ALL_LINGUAS; do
  9783. useit=no
  9784. if test "%UNSET%" != "$LINGUAS"; then
  9785. desiredlanguages="$LINGUAS"
  9786. else
  9787. desiredlanguages="$ALL_LINGUAS"
  9788. fi
  9789. for desiredlang in $desiredlanguages; do
  9790. # Use the presentlang catalog if desiredlang is
  9791. # a. equal to presentlang, or
  9792. # b. a variant of presentlang (because in this case,
  9793. # presentlang can be used as a fallback for messages
  9794. # which are not translated in the desiredlang catalog).
  9795. case "$desiredlang" in
  9796. "$presentlang"*) useit=yes;;
  9797. esac
  9798. done
  9799. if test $useit = yes; then
  9800. INST_LINGUAS="$INST_LINGUAS $presentlang"
  9801. fi
  9802. done
  9803. fi
  9804. CATALOGS=
  9805. if test -n "$INST_LINGUAS"; then
  9806. for lang in $INST_LINGUAS; do
  9807. CATALOGS="$CATALOGS $lang.gmo"
  9808. done
  9809. fi
  9810. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  9811. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  9812. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  9813. if test -f "$f"; then
  9814. case "$f" in
  9815. *.orig | *.bak | *~) ;;
  9816. *) cat "$f" >> "$ac_dir/Makefile" ;;
  9817. esac
  9818. fi
  9819. done
  9820. fi
  9821. ;;
  9822. esac
  9823. done]],
  9824. [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
  9825. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  9826. # from automake < 1.5.
  9827. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  9828. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  9829. LINGUAS="${LINGUAS-%UNSET%}"
  9830. ])
  9831. ])
  9832. dnl Postprocesses a Makefile in a directory containing PO files.
  9833. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
  9834. [
  9835. # When this code is run, in config.status, two variables have already been
  9836. # set:
  9837. # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
  9838. # - LINGUAS is the value of the environment variable LINGUAS at configure
  9839. # time.
  9840. changequote(,)dnl
  9841. # Adjust a relative srcdir.
  9842. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  9843. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  9844. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  9845. # In autoconf-2.13 it is called $ac_given_srcdir.
  9846. # In autoconf-2.50 it is called $srcdir.
  9847. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  9848. case "$ac_given_srcdir" in
  9849. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  9850. /*) top_srcdir="$ac_given_srcdir" ;;
  9851. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  9852. esac
  9853. # Find a way to echo strings without interpreting backslash.
  9854. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
  9855. gt_echo='echo'
  9856. else
  9857. if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
  9858. gt_echo='printf %s\n'
  9859. else
  9860. echo_func () {
  9861. cat <<EOT
  9862. $*
  9863. EOT
  9864. }
  9865. gt_echo='echo_func'
  9866. fi
  9867. fi
  9868. # A sed script that extracts the value of VARIABLE from a Makefile.
  9869. sed_x_variable='
  9870. # Test if the hold space is empty.
  9871. x
  9872. s/P/P/
  9873. x
  9874. ta
  9875. # Yes it was empty. Look if we have the expected variable definition.
  9876. /^[ ]*VARIABLE[ ]*=/{
  9877. # Seen the first line of the variable definition.
  9878. s/^[ ]*VARIABLE[ ]*=//
  9879. ba
  9880. }
  9881. bd
  9882. :a
  9883. # Here we are processing a line from the variable definition.
  9884. # Remove comment, more precisely replace it with a space.
  9885. s/#.*$/ /
  9886. # See if the line ends in a backslash.
  9887. tb
  9888. :b
  9889. s/\\$//
  9890. # Print the line, without the trailing backslash.
  9891. p
  9892. tc
  9893. # There was no trailing backslash. The end of the variable definition is
  9894. # reached. Clear the hold space.
  9895. s/^.*$//
  9896. x
  9897. bd
  9898. :c
  9899. # A trailing backslash means that the variable definition continues in the
  9900. # next line. Put a nonempty string into the hold space to indicate this.
  9901. s/^.*$/P/
  9902. x
  9903. :d
  9904. '
  9905. changequote([,])dnl
  9906. # Set POTFILES to the value of the Makefile variable POTFILES.
  9907. sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
  9908. POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
  9909. # Compute POTFILES_DEPS as
  9910. # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
  9911. POTFILES_DEPS=
  9912. for file in $POTFILES; do
  9913. POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
  9914. done
  9915. POMAKEFILEDEPS=""
  9916. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  9917. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  9918. fi
  9919. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  9920. # The LINGUAS file contains the set of available languages.
  9921. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  9922. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  9923. else
  9924. # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
  9925. sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
  9926. ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
  9927. fi
  9928. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  9929. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  9930. # Compute POFILES
  9931. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  9932. # Compute UPDATEPOFILES
  9933. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  9934. # Compute DUMMYPOFILES
  9935. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  9936. # Compute GMOFILES
  9937. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  9938. # Compute PROPERTIESFILES
  9939. # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
  9940. # Compute CLASSFILES
  9941. # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
  9942. # Compute QMFILES
  9943. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
  9944. # Compute MSGFILES
  9945. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
  9946. # Compute RESOURCESDLLFILES
  9947. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
  9948. case "$ac_given_srcdir" in
  9949. .) srcdirpre= ;;
  9950. *) srcdirpre='$(srcdir)/' ;;
  9951. esac
  9952. POFILES=
  9953. UPDATEPOFILES=
  9954. DUMMYPOFILES=
  9955. GMOFILES=
  9956. PROPERTIESFILES=
  9957. CLASSFILES=
  9958. QMFILES=
  9959. MSGFILES=
  9960. RESOURCESDLLFILES=
  9961. for lang in $ALL_LINGUAS; do
  9962. POFILES="$POFILES $srcdirpre$lang.po"
  9963. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  9964. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  9965. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  9966. PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
  9967. CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
  9968. QMFILES="$QMFILES $srcdirpre$lang.qm"
  9969. frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  9970. MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
  9971. frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
  9972. RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
  9973. done
  9974. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  9975. # environment variable.
  9976. INST_LINGUAS=
  9977. if test -n "$ALL_LINGUAS"; then
  9978. for presentlang in $ALL_LINGUAS; do
  9979. useit=no
  9980. if test "%UNSET%" != "$LINGUAS"; then
  9981. desiredlanguages="$LINGUAS"
  9982. else
  9983. desiredlanguages="$ALL_LINGUAS"
  9984. fi
  9985. for desiredlang in $desiredlanguages; do
  9986. # Use the presentlang catalog if desiredlang is
  9987. # a. equal to presentlang, or
  9988. # b. a variant of presentlang (because in this case,
  9989. # presentlang can be used as a fallback for messages
  9990. # which are not translated in the desiredlang catalog).
  9991. case "$desiredlang" in
  9992. "$presentlang"*) useit=yes;;
  9993. esac
  9994. done
  9995. if test $useit = yes; then
  9996. INST_LINGUAS="$INST_LINGUAS $presentlang"
  9997. fi
  9998. done
  9999. fi
  10000. CATALOGS=
  10001. JAVACATALOGS=
  10002. QTCATALOGS=
  10003. TCLCATALOGS=
  10004. CSHARPCATALOGS=
  10005. if test -n "$INST_LINGUAS"; then
  10006. for lang in $INST_LINGUAS; do
  10007. CATALOGS="$CATALOGS $lang.gmo"
  10008. JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
  10009. QTCATALOGS="$QTCATALOGS $lang.qm"
  10010. frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  10011. TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
  10012. frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
  10013. CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
  10014. done
  10015. fi
  10016. sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
  10017. if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
  10018. # Add dependencies that cannot be formulated as a simple suffix rule.
  10019. for lang in $ALL_LINGUAS; do
  10020. frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
  10021. cat >> "$ac_file.tmp" <<EOF
  10022. $frobbedlang.msg: $lang.po
  10023. @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
  10024. \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
  10025. EOF
  10026. done
  10027. fi
  10028. if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
  10029. # Add dependencies that cannot be formulated as a simple suffix rule.
  10030. for lang in $ALL_LINGUAS; do
  10031. frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
  10032. cat >> "$ac_file.tmp" <<EOF
  10033. $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
  10034. @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
  10035. \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
  10036. EOF
  10037. done
  10038. fi
  10039. if test -n "$POMAKEFILEDEPS"; then
  10040. cat >> "$ac_file.tmp" <<EOF
  10041. Makefile: $POMAKEFILEDEPS
  10042. EOF
  10043. fi
  10044. mv "$ac_file.tmp" "$ac_file"
  10045. ])
  10046. dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
  10047. AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
  10048. [
  10049. XGETTEXT_EXTRA_OPTIONS=
  10050. ])
  10051. dnl Registers an option to be passed to xgettext in the po subdirectory.
  10052. AC_DEFUN([AM_XGETTEXT_OPTION],
  10053. [
  10054. AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
  10055. XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
  10056. ])
  10057. # progtest.m4 serial 4 (gettext-0.14.2)
  10058. dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
  10059. dnl This file is free software; the Free Software Foundation
  10060. dnl gives unlimited permission to copy and/or distribute it,
  10061. dnl with or without modifications, as long as this notice is preserved.
  10062. dnl
  10063. dnl This file can can be used in projects which are not available under
  10064. dnl the GNU General Public License or the GNU Library General Public
  10065. dnl License but which still want to provide support for the GNU gettext
  10066. dnl functionality.
  10067. dnl Please note that the actual code of the GNU gettext library is covered
  10068. dnl by the GNU Library General Public License, and the rest of the GNU
  10069. dnl gettext package package is covered by the GNU General Public License.
  10070. dnl They are *not* in the public domain.
  10071. dnl Authors:
  10072. dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
  10073. AC_PREREQ(2.50)
  10074. # Search path for a program which passes the given test.
  10075. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
  10076. dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
  10077. AC_DEFUN([AM_PATH_PROG_WITH_TEST],
  10078. [
  10079. # Prepare PATH_SEPARATOR.
  10080. # The user is always right.
  10081. if test "${PATH_SEPARATOR+set}" != set; then
  10082. echo "#! /bin/sh" >conf$$.sh
  10083. echo "exit 0" >>conf$$.sh
  10084. chmod +x conf$$.sh
  10085. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10086. PATH_SEPARATOR=';'
  10087. else
  10088. PATH_SEPARATOR=:
  10089. fi
  10090. rm -f conf$$.sh
  10091. fi
  10092. # Find out how to test for executable files. Don't use a zero-byte file,
  10093. # as systems may use methods other than mode bits to determine executability.
  10094. cat >conf$$.file <<_ASEOF
  10095. #! /bin/sh
  10096. exit 0
  10097. _ASEOF
  10098. chmod +x conf$$.file
  10099. if test -x conf$$.file >/dev/null 2>&1; then
  10100. ac_executable_p="test -x"
  10101. else
  10102. ac_executable_p="test -f"
  10103. fi
  10104. rm -f conf$$.file
  10105. # Extract the first word of "$2", so it can be a program name with args.
  10106. set dummy $2; ac_word=[$]2
  10107. AC_MSG_CHECKING([for $ac_word])
  10108. AC_CACHE_VAL(ac_cv_path_$1,
  10109. [case "[$]$1" in
  10110. [[\\/]]* | ?:[[\\/]]*)
  10111. ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
  10112. ;;
  10113. *)
  10114. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10115. for ac_dir in ifelse([$5], , $PATH, [$5]); do
  10116. IFS="$ac_save_IFS"
  10117. test -z "$ac_dir" && ac_dir=.
  10118. for ac_exec_ext in '' $ac_executable_extensions; do
  10119. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10120. echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
  10121. if [$3]; then
  10122. ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
  10123. break 2
  10124. fi
  10125. fi
  10126. done
  10127. done
  10128. IFS="$ac_save_IFS"
  10129. dnl If no 4th arg is given, leave the cache variable unset,
  10130. dnl so AC_PATH_PROGS will keep looking.
  10131. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
  10132. ])dnl
  10133. ;;
  10134. esac])dnl
  10135. $1="$ac_cv_path_$1"
  10136. if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
  10137. AC_MSG_RESULT([$]$1)
  10138. else
  10139. AC_MSG_RESULT(no)
  10140. fi
  10141. AC_SUBST($1)dnl
  10142. ])
  10143. m4_include([acinclude.m4])