patch-configure 593 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- libtirpc-0.2.0.orig/configure 2009-05-29 00:13:42.000000000 +0200
  3. +++ libtirpc-0.2.0/configure 2009-05-29 20:18:59.982537281 +0200
  4. @@ -575,22 +575,22 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr
  5. # Check that we are running under the correct shell.
  6. SHELL=${CONFIG_SHELL-/bin/sh}
  7. -case X$ECHO in
  8. +case X$lt_ECHO in
  9. X*--fallback-echo)
  10. # Remove one level of quotation (which was required for Make).
  11. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  12. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  13. ;;
  14. esac
  15. -echo=${ECHO-echo}
  16. +ECHO=${lt_ECHO-echo}
  17. if test "X$1" = X--no-reexec; then
  18. # Discard the --no-reexec flag, and continue.
  19. shift
  20. elif test "X$1" = X--fallback-echo; then
  21. # Avoid inline document here, it may be left over
  22. :
  23. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  24. - # Yippee, $echo works!
  25. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  26. + # Yippee, $ECHO works!
  27. :
  28. else
  29. # Restart under the correct shell.
  30. @@ -600,9 +600,9 @@ fi
  31. if test "X$1" = X--fallback-echo; then
  32. # used as fallback echo
  33. shift
  34. - cat <<EOF
  35. + cat <<_LT_EOF
  36. $*
  37. -EOF
  38. +_LT_EOF
  39. exit 0
  40. fi
  41. @@ -610,121 +610,116 @@ fi
  42. # if CDPATH is set.
  43. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  44. -if test -z "$ECHO"; then
  45. -if test "X${echo_test_string+set}" != Xset; then
  46. -# find a string as large as possible, as long as the shell can cope with it
  47. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  48. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  49. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  50. - echo_test_string=`eval $cmd` &&
  51. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  52. - then
  53. - break
  54. - fi
  55. - done
  56. -fi
  57. +if test -z "$lt_ECHO"; then
  58. + if test "X${echo_test_string+set}" != Xset; then
  59. + # find a string as large as possible, as long as the shell can cope with it
  60. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  61. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  62. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  63. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  64. + then
  65. + break
  66. + fi
  67. + done
  68. + fi
  69. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  70. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  71. - test "X$echo_testing_string" = "X$echo_test_string"; then
  72. - :
  73. -else
  74. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  75. - # backslashes. This makes it impossible to quote backslashes using
  76. - # echo "$something" | sed 's/\\/\\\\/g'
  77. - #
  78. - # So, first we look for a working echo in the user's PATH.
  79. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  80. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  81. + test "X$echo_testing_string" = "X$echo_test_string"; then
  82. + :
  83. + else
  84. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  85. + # backslashes. This makes it impossible to quote backslashes using
  86. + # echo "$something" | sed 's/\\/\\\\/g'
  87. + #
  88. + # So, first we look for a working echo in the user's PATH.
  89. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  90. - for dir in $PATH /usr/ucb; do
  91. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  92. + for dir in $PATH /usr/ucb; do
  93. + IFS="$lt_save_ifs"
  94. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  95. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  96. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  97. + test "X$echo_testing_string" = "X$echo_test_string"; then
  98. + ECHO="$dir/echo"
  99. + break
  100. + fi
  101. + done
  102. IFS="$lt_save_ifs"
  103. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  104. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  105. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  106. - test "X$echo_testing_string" = "X$echo_test_string"; then
  107. - echo="$dir/echo"
  108. - break
  109. - fi
  110. - done
  111. - IFS="$lt_save_ifs"
  112. - if test "X$echo" = Xecho; then
  113. - # We didn't find a better echo, so look for alternatives.
  114. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  115. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  116. - test "X$echo_testing_string" = "X$echo_test_string"; then
  117. - # This shell has a builtin print -r that does the trick.
  118. - echo='print -r'
  119. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  120. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  121. - # If we have ksh, try running configure again with it.
  122. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  123. - export ORIGINAL_CONFIG_SHELL
  124. - CONFIG_SHELL=/bin/ksh
  125. - export CONFIG_SHELL
  126. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  127. - else
  128. - # Try using printf.
  129. - echo='printf %s\n'
  130. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  131. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  132. - test "X$echo_testing_string" = "X$echo_test_string"; then
  133. - # Cool, printf works
  134. - :
  135. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  136. - test "X$echo_testing_string" = 'X\t' &&
  137. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  138. - test "X$echo_testing_string" = "X$echo_test_string"; then
  139. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  140. - export CONFIG_SHELL
  141. - SHELL="$CONFIG_SHELL"
  142. - export SHELL
  143. - echo="$CONFIG_SHELL $0 --fallback-echo"
  144. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  145. - test "X$echo_testing_string" = 'X\t' &&
  146. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  147. - test "X$echo_testing_string" = "X$echo_test_string"; then
  148. - echo="$CONFIG_SHELL $0 --fallback-echo"
  149. + if test "X$ECHO" = Xecho; then
  150. + # We didn't find a better echo, so look for alternatives.
  151. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  152. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  153. + test "X$echo_testing_string" = "X$echo_test_string"; then
  154. + # This shell has a builtin print -r that does the trick.
  155. + ECHO='print -r'
  156. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  157. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  158. + # If we have ksh, try running configure again with it.
  159. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  160. + export ORIGINAL_CONFIG_SHELL
  161. + CONFIG_SHELL=/bin/ksh
  162. + export CONFIG_SHELL
  163. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  164. else
  165. - # maybe with a smaller string...
  166. - prev=:
  167. + # Try using printf.
  168. + ECHO='printf %s\n'
  169. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  170. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  171. + test "X$echo_testing_string" = "X$echo_test_string"; then
  172. + # Cool, printf works
  173. + :
  174. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  175. + test "X$echo_testing_string" = 'X\t' &&
  176. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  177. + test "X$echo_testing_string" = "X$echo_test_string"; then
  178. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  179. + export CONFIG_SHELL
  180. + SHELL="$CONFIG_SHELL"
  181. + export SHELL
  182. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  183. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  184. + test "X$echo_testing_string" = 'X\t' &&
  185. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  186. + test "X$echo_testing_string" = "X$echo_test_string"; then
  187. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  188. + else
  189. + # maybe with a smaller string...
  190. + prev=:
  191. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  192. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  193. - then
  194. - break
  195. - fi
  196. - prev="$cmd"
  197. - done
  198. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  199. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  200. + then
  201. + break
  202. + fi
  203. + prev="$cmd"
  204. + done
  205. - if test "$prev" != 'sed 50q "$0"'; then
  206. - echo_test_string=`eval $prev`
  207. - export echo_test_string
  208. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  209. - else
  210. - # Oops. We lost completely, so just stick with echo.
  211. - echo=echo
  212. - fi
  213. + if test "$prev" != 'sed 50q "$0"'; then
  214. + echo_test_string=`eval $prev`
  215. + export echo_test_string
  216. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  217. + else
  218. + # Oops. We lost completely, so just stick with echo.
  219. + ECHO=echo
  220. + fi
  221. + fi
  222. fi
  223. fi
  224. fi
  225. fi
  226. -fi
  227. # Copy echo and quote the copy suitably for passing to libtool from
  228. # the Makefile, instead of quoting the original, which is used later.
  229. -ECHO=$echo
  230. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  231. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  232. +lt_ECHO=$ECHO
  233. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  234. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  235. fi
  236. -tagnames=${tagnames+${tagnames},}CXX
  237. -
  238. -tagnames=${tagnames+${tagnames},}F77
  239. -
  240. exec 7<&0 </dev/null 6>&1
  241. # Name of the host.
  242. @@ -792,24 +787,22 @@ ac_includes_default="\
  243. ac_default_prefix=/usr
  244. ac_subst_vars='LTLIBOBJS
  245. LIBOBJS
  246. -LIBTOOL
  247. -ac_ct_F77
  248. -FFLAGS
  249. -F77
  250. -CXXCPP
  251. -am__fastdepCXX_FALSE
  252. -am__fastdepCXX_TRUE
  253. -CXXDEPMODE
  254. -ac_ct_CXX
  255. -CXXFLAGS
  256. -CXX
  257. CPP
  258. +OTOOL64
  259. +OTOOL
  260. +LIPO
  261. NMEDIT
  262. DSYMUTIL
  263. +lt_ECHO
  264. RANLIB
  265. AR
  266. -ECHO
  267. +OBJDUMP
  268. LN_S
  269. +NM
  270. +ac_ct_DUMPBIN
  271. +DUMPBIN
  272. +LD
  273. +FGREP
  274. EGREP
  275. GREP
  276. SED
  277. @@ -821,6 +814,7 @@ build_os
  278. build_vendor
  279. build_cpu
  280. build
  281. +LIBTOOL
  282. GSSGLUE_LIBS
  283. GSSGLUE_CFLAGS
  284. PKG_CONFIG
  285. @@ -913,11 +907,10 @@ enable_gss
  286. enable_dependency_tracking
  287. enable_shared
  288. enable_static
  289. +with_pic
  290. enable_fast_install
  291. with_gnu_ld
  292. enable_libtool_lock
  293. -with_pic
  294. -with_tags
  295. '
  296. ac_precious_vars='build_alias
  297. host_alias
  298. @@ -930,13 +923,7 @@ CPPFLAGS
  299. PKG_CONFIG
  300. GSSGLUE_CFLAGS
  301. GSSGLUE_LIBS
  302. -CPP
  303. -CXX
  304. -CXXFLAGS
  305. -CCC
  306. -CXXCPP
  307. -F77
  308. -FFLAGS'
  309. +CPP'
  310. # Initialize some variables set by options.
  311. @@ -1581,10 +1568,9 @@ Optional Features:
  312. Optional Packages:
  313. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  314. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  315. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  316. --with-pic try to use only PIC/non-PIC objects [default=use
  317. both]
  318. - --with-tags[=TAGS] include additional configurations [automatic]
  319. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  320. Some influential environment variables:
  321. CC C compiler command
  322. @@ -1600,11 +1586,6 @@ Some influential environment variables:
  323. GSSGLUE_LIBS
  324. linker flags for GSSGLUE, overriding pkg-config
  325. CPP C preprocessor
  326. - CXX C++ compiler command
  327. - CXXFLAGS C++ compiler flags
  328. - CXXCPP C++ preprocessor
  329. - F77 Fortran 77 compiler command
  330. - FFLAGS Fortran 77 compiler flags
  331. Use these variables to override the choices made by `configure' or to help
  332. it to find libraries and programs with nonstandard names/locations.
  333. @@ -4749,78 +4730,31 @@ fi
  334. ac_config_headers="$ac_config_headers config.h"
  335. -# Check whether --enable-shared was given.
  336. -if test "${enable_shared+set}" = set; then
  337. - enableval=$enable_shared; p=${PACKAGE-default}
  338. - case $enableval in
  339. - yes) enable_shared=yes ;;
  340. - no) enable_shared=no ;;
  341. - *)
  342. - enable_shared=no
  343. - # Look at the argument we got. We use all the common list separators.
  344. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  345. - for pkg in $enableval; do
  346. - IFS="$lt_save_ifs"
  347. - if test "X$pkg" = "X$p"; then
  348. - enable_shared=yes
  349. - fi
  350. - done
  351. - IFS="$lt_save_ifs"
  352. - ;;
  353. - esac
  354. -else
  355. - enable_shared=yes
  356. -fi
  357. +case `pwd` in
  358. + *\ * | *\ *)
  359. + { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  360. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  361. +esac
  362. +
  363. +
  364. +
  365. +macro_version='2.2.6'
  366. +macro_revision='1.3012'
  367. +
  368. +
  369. +
  370. +
  371. -# Check whether --enable-static was given.
  372. -if test "${enable_static+set}" = set; then
  373. - enableval=$enable_static; p=${PACKAGE-default}
  374. - case $enableval in
  375. - yes) enable_static=yes ;;
  376. - no) enable_static=no ;;
  377. - *)
  378. - enable_static=no
  379. - # Look at the argument we got. We use all the common list separators.
  380. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  381. - for pkg in $enableval; do
  382. - IFS="$lt_save_ifs"
  383. - if test "X$pkg" = "X$p"; then
  384. - enable_static=yes
  385. - fi
  386. - done
  387. - IFS="$lt_save_ifs"
  388. - ;;
  389. - esac
  390. -else
  391. - enable_static=yes
  392. -fi
  393. -# Check whether --enable-fast-install was given.
  394. -if test "${enable_fast_install+set}" = set; then
  395. - enableval=$enable_fast_install; p=${PACKAGE-default}
  396. - case $enableval in
  397. - yes) enable_fast_install=yes ;;
  398. - no) enable_fast_install=no ;;
  399. - *)
  400. - enable_fast_install=no
  401. - # Look at the argument we got. We use all the common list separators.
  402. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  403. - for pkg in $enableval; do
  404. - IFS="$lt_save_ifs"
  405. - if test "X$pkg" = "X$p"; then
  406. - enable_fast_install=yes
  407. - fi
  408. - done
  409. - IFS="$lt_save_ifs"
  410. - ;;
  411. - esac
  412. -else
  413. - enable_fast_install=yes
  414. -fi
  415. +
  416. +
  417. +
  418. +ltmain="$ac_aux_dir/ltmain.sh"
  419. +
  420. # Make sure we can run config.sub.
  421. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  422. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  423. @@ -4906,62 +4840,87 @@ case $host_os in *\ *) host_os=`echo "$h
  424. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  425. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  426. -if test "${lt_cv_path_SED+set}" = set; then
  427. +if test "${ac_cv_path_SED+set}" = set; then
  428. $as_echo_n "(cached) " >&6
  429. else
  430. - # Loop through the user's path and test for sed and gsed.
  431. -# Then use that list of sed's as ones to test for truncation.
  432. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  433. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  434. + for ac_i in 1 2 3 4 5 6 7; do
  435. + ac_script="$ac_script$as_nl$ac_script"
  436. + done
  437. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  438. + $as_unset ac_script || ac_script=
  439. + if test -z "$SED"; then
  440. + ac_path_SED_found=false
  441. + # Loop through the user's path and test for each of PROGNAME-LIST
  442. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  443. for as_dir in $PATH
  444. do
  445. IFS=$as_save_IFS
  446. test -z "$as_dir" && as_dir=.
  447. - for lt_ac_prog in sed gsed; do
  448. + for ac_prog in sed gsed; do
  449. for ac_exec_ext in '' $ac_executable_extensions; do
  450. - if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  451. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  452. - fi
  453. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  454. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  455. +# Check for GNU ac_path_SED and select it if it is found.
  456. + # Check for GNU $ac_path_SED
  457. +case `"$ac_path_SED" --version 2>&1` in
  458. +*GNU*)
  459. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  460. +*)
  461. + ac_count=0
  462. + $as_echo_n 0123456789 >"conftest.in"
  463. + while :
  464. + do
  465. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  466. + mv "conftest.tmp" "conftest.in"
  467. + cp "conftest.in" "conftest.nl"
  468. + $as_echo '' >> "conftest.nl"
  469. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  470. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  471. + ac_count=`expr $ac_count + 1`
  472. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  473. + # Best one so far, save it but keep looking for a better one
  474. + ac_cv_path_SED="$ac_path_SED"
  475. + ac_path_SED_max=$ac_count
  476. + fi
  477. + # 10*(2^10) chars as input seems more than enough
  478. + test $ac_count -gt 10 && break
  479. + done
  480. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  481. +esac
  482. +
  483. + $ac_path_SED_found && break 3
  484. done
  485. done
  486. done
  487. IFS=$as_save_IFS
  488. -lt_ac_max=0
  489. -lt_ac_count=0
  490. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  491. -# along with /bin/sed that truncates output.
  492. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  493. - test ! -f $lt_ac_sed && continue
  494. - cat /dev/null > conftest.in
  495. - lt_ac_count=0
  496. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  497. - # Check for GNU sed and select it if it is found.
  498. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  499. - lt_cv_path_SED=$lt_ac_sed
  500. - break
  501. + if test -z "$ac_cv_path_SED"; then
  502. + { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  503. +$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  504. + { (exit 1); exit 1; }; }
  505. fi
  506. - while true; do
  507. - cat conftest.in conftest.in >conftest.tmp
  508. - mv conftest.tmp conftest.in
  509. - cp conftest.in conftest.nl
  510. - echo >>conftest.nl
  511. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  512. - cmp -s conftest.out conftest.nl || break
  513. - # 10000 chars as input seems more than enough
  514. - test $lt_ac_count -gt 10 && break
  515. - lt_ac_count=`expr $lt_ac_count + 1`
  516. - if test $lt_ac_count -gt $lt_ac_max; then
  517. - lt_ac_max=$lt_ac_count
  518. - lt_cv_path_SED=$lt_ac_sed
  519. - fi
  520. - done
  521. -done
  522. +else
  523. + ac_cv_path_SED=$SED
  524. +fi
  525. fi
  526. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  527. +$as_echo "$ac_cv_path_SED" >&6; }
  528. + SED="$ac_cv_path_SED"
  529. + rm -f conftest.sed
  530. +
  531. +test -z "$SED" && SED=sed
  532. +Xsed="$SED -e 1s/^X//"
  533. +
  534. +
  535. +
  536. +
  537. +
  538. +
  539. +
  540. +
  541. -SED=$lt_cv_path_SED
  542. -{ $as_echo "$as_me:$LINENO: result: $SED" >&5
  543. -$as_echo "$SED" >&6; }
  544. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  545. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  546. @@ -5097,6 +5056,94 @@ $as_echo "$ac_cv_path_EGREP" >&6; }
  547. EGREP="$ac_cv_path_EGREP"
  548. +{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  549. +$as_echo_n "checking for fgrep... " >&6; }
  550. +if test "${ac_cv_path_FGREP+set}" = set; then
  551. + $as_echo_n "(cached) " >&6
  552. +else
  553. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  554. + then ac_cv_path_FGREP="$GREP -F"
  555. + else
  556. + if test -z "$FGREP"; then
  557. + ac_path_FGREP_found=false
  558. + # Loop through the user's path and test for each of PROGNAME-LIST
  559. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  560. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  561. +do
  562. + IFS=$as_save_IFS
  563. + test -z "$as_dir" && as_dir=.
  564. + for ac_prog in fgrep; do
  565. + for ac_exec_ext in '' $ac_executable_extensions; do
  566. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  567. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  568. +# Check for GNU ac_path_FGREP and select it if it is found.
  569. + # Check for GNU $ac_path_FGREP
  570. +case `"$ac_path_FGREP" --version 2>&1` in
  571. +*GNU*)
  572. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  573. +*)
  574. + ac_count=0
  575. + $as_echo_n 0123456789 >"conftest.in"
  576. + while :
  577. + do
  578. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  579. + mv "conftest.tmp" "conftest.in"
  580. + cp "conftest.in" "conftest.nl"
  581. + $as_echo 'FGREP' >> "conftest.nl"
  582. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  583. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  584. + ac_count=`expr $ac_count + 1`
  585. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  586. + # Best one so far, save it but keep looking for a better one
  587. + ac_cv_path_FGREP="$ac_path_FGREP"
  588. + ac_path_FGREP_max=$ac_count
  589. + fi
  590. + # 10*(2^10) chars as input seems more than enough
  591. + test $ac_count -gt 10 && break
  592. + done
  593. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  594. +esac
  595. +
  596. + $ac_path_FGREP_found && break 3
  597. + done
  598. + done
  599. +done
  600. +IFS=$as_save_IFS
  601. + if test -z "$ac_cv_path_FGREP"; then
  602. + { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  603. +$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  604. + { (exit 1); exit 1; }; }
  605. + fi
  606. +else
  607. + ac_cv_path_FGREP=$FGREP
  608. +fi
  609. +
  610. + fi
  611. +fi
  612. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  613. +$as_echo "$ac_cv_path_FGREP" >&6; }
  614. + FGREP="$ac_cv_path_FGREP"
  615. +
  616. +
  617. +test -z "$GREP" && GREP=grep
  618. +
  619. +
  620. +
  621. +
  622. +
  623. +
  624. +
  625. +
  626. +
  627. +
  628. +
  629. +
  630. +
  631. +
  632. +
  633. +
  634. +
  635. +
  636. # Check whether --with-gnu-ld was given.
  637. if test "${with_gnu_ld+set}" = set; then
  638. @@ -5122,9 +5169,9 @@ $as_echo_n "checking for ld used by $CC.
  639. [\\/]* | ?:[\\/]*)
  640. re_direlt='/[^/][^/]*/\.\./'
  641. # Canonicalize the pathname of ld
  642. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  643. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  644. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  645. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  646. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  647. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  648. done
  649. test -z "$LD" && LD="$ac_prog"
  650. ;;
  651. @@ -5204,33 +5251,15 @@ $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  652. with_gnu_ld=$lt_cv_prog_gnu_ld
  653. -{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  654. -$as_echo_n "checking for $LD option to reload object files... " >&6; }
  655. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  656. - $as_echo_n "(cached) " >&6
  657. -else
  658. - lt_cv_ld_reload_flag='-r'
  659. -fi
  660. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  661. -$as_echo "$lt_cv_ld_reload_flag" >&6; }
  662. -reload_flag=$lt_cv_ld_reload_flag
  663. -case $reload_flag in
  664. -"" | " "*) ;;
  665. -*) reload_flag=" $reload_flag" ;;
  666. -esac
  667. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  668. -case $host_os in
  669. - darwin*)
  670. - if test "$GCC" = yes; then
  671. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  672. - else
  673. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  674. - fi
  675. - ;;
  676. -esac
  677. -{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  678. -$as_echo_n "checking for BSD-compatible nm... " >&6; }
  679. +
  680. +
  681. +
  682. +
  683. +
  684. +
  685. +{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  686. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  687. if test "${lt_cv_path_NM+set}" = set; then
  688. $as_echo_n "(cached) " >&6
  689. else
  690. @@ -5275,12 +5304,149 @@ else
  691. done
  692. IFS="$lt_save_ifs"
  693. done
  694. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  695. + : ${lt_cv_path_NM=no}
  696. fi
  697. fi
  698. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  699. $as_echo "$lt_cv_path_NM" >&6; }
  700. -NM="$lt_cv_path_NM"
  701. +if test "$lt_cv_path_NM" != "no"; then
  702. + NM="$lt_cv_path_NM"
  703. +else
  704. + # Didn't find any BSD compatible name lister, look for dumpbin.
  705. + if test -n "$ac_tool_prefix"; then
  706. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  707. + do
  708. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  709. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  710. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  711. +$as_echo_n "checking for $ac_word... " >&6; }
  712. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  713. + $as_echo_n "(cached) " >&6
  714. +else
  715. + if test -n "$DUMPBIN"; then
  716. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  717. +else
  718. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  719. +for as_dir in $PATH
  720. +do
  721. + IFS=$as_save_IFS
  722. + test -z "$as_dir" && as_dir=.
  723. + for ac_exec_ext in '' $ac_executable_extensions; do
  724. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  725. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  726. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  727. + break 2
  728. + fi
  729. +done
  730. +done
  731. +IFS=$as_save_IFS
  732. +
  733. +fi
  734. +fi
  735. +DUMPBIN=$ac_cv_prog_DUMPBIN
  736. +if test -n "$DUMPBIN"; then
  737. + { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  738. +$as_echo "$DUMPBIN" >&6; }
  739. +else
  740. + { $as_echo "$as_me:$LINENO: result: no" >&5
  741. +$as_echo "no" >&6; }
  742. +fi
  743. +
  744. +
  745. + test -n "$DUMPBIN" && break
  746. + done
  747. +fi
  748. +if test -z "$DUMPBIN"; then
  749. + ac_ct_DUMPBIN=$DUMPBIN
  750. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  751. +do
  752. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  753. +set dummy $ac_prog; ac_word=$2
  754. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  755. +$as_echo_n "checking for $ac_word... " >&6; }
  756. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  757. + $as_echo_n "(cached) " >&6
  758. +else
  759. + if test -n "$ac_ct_DUMPBIN"; then
  760. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  761. +else
  762. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  763. +for as_dir in $PATH
  764. +do
  765. + IFS=$as_save_IFS
  766. + test -z "$as_dir" && as_dir=.
  767. + for ac_exec_ext in '' $ac_executable_extensions; do
  768. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  769. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  770. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  771. + break 2
  772. + fi
  773. +done
  774. +done
  775. +IFS=$as_save_IFS
  776. +
  777. +fi
  778. +fi
  779. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  780. +if test -n "$ac_ct_DUMPBIN"; then
  781. + { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  782. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  783. +else
  784. + { $as_echo "$as_me:$LINENO: result: no" >&5
  785. +$as_echo "no" >&6; }
  786. +fi
  787. +
  788. +
  789. + test -n "$ac_ct_DUMPBIN" && break
  790. +done
  791. +
  792. + if test "x$ac_ct_DUMPBIN" = x; then
  793. + DUMPBIN=":"
  794. + else
  795. + case $cross_compiling:$ac_tool_warned in
  796. +yes:)
  797. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  798. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  799. +ac_tool_warned=yes ;;
  800. +esac
  801. + DUMPBIN=$ac_ct_DUMPBIN
  802. + fi
  803. +fi
  804. +
  805. +
  806. + if test "$DUMPBIN" != ":"; then
  807. + NM="$DUMPBIN"
  808. + fi
  809. +fi
  810. +test -z "$NM" && NM=nm
  811. +
  812. +
  813. +
  814. +
  815. +
  816. +
  817. +{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  818. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  819. +if test "${lt_cv_nm_interface+set}" = set; then
  820. + $as_echo_n "(cached) " >&6
  821. +else
  822. + lt_cv_nm_interface="BSD nm"
  823. + echo "int some_variable = 0;" > conftest.$ac_ext
  824. + (eval echo "\"\$as_me:5435: $ac_compile\"" >&5)
  825. + (eval "$ac_compile" 2>conftest.err)
  826. + cat conftest.err >&5
  827. + (eval echo "\"\$as_me:5438: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  828. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  829. + cat conftest.err >&5
  830. + (eval echo "\"\$as_me:5441: output\"" >&5)
  831. + cat conftest.out >&5
  832. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  833. + lt_cv_nm_interface="MS dumpbin"
  834. + fi
  835. + rm -f conftest*
  836. +fi
  837. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  838. +$as_echo "$lt_cv_nm_interface" >&6; }
  839. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  840. $as_echo_n "checking whether ln -s works... " >&6; }
  841. @@ -5293,6 +5459,334 @@ else
  842. $as_echo "no, using $LN_S" >&6; }
  843. fi
  844. +# find the maximum length of command line arguments
  845. +{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  846. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  847. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  848. + $as_echo_n "(cached) " >&6
  849. +else
  850. + i=0
  851. + teststring="ABCD"
  852. +
  853. + case $build_os in
  854. + msdosdjgpp*)
  855. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  856. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  857. + # during glob expansion). Even if it were fixed, the result of this
  858. + # check would be larger than it should be.
  859. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  860. + ;;
  861. +
  862. + gnu*)
  863. + # Under GNU Hurd, this test is not required because there is
  864. + # no limit to the length of command line arguments.
  865. + # Libtool will interpret -1 as no limit whatsoever
  866. + lt_cv_sys_max_cmd_len=-1;
  867. + ;;
  868. +
  869. + cygwin* | mingw* | cegcc*)
  870. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  871. + # about 5 minutes as the teststring grows exponentially.
  872. + # Worse, since 9x/ME are not pre-emptively multitasking,
  873. + # you end up with a "frozen" computer, even though with patience
  874. + # the test eventually succeeds (with a max line length of 256k).
  875. + # Instead, let's just punt: use the minimum linelength reported by
  876. + # all of the supported platforms: 8192 (on NT/2K/XP).
  877. + lt_cv_sys_max_cmd_len=8192;
  878. + ;;
  879. +
  880. + amigaos*)
  881. + # On AmigaOS with pdksh, this test takes hours, literally.
  882. + # So we just punt and use a minimum line length of 8192.
  883. + lt_cv_sys_max_cmd_len=8192;
  884. + ;;
  885. +
  886. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  887. + # This has been around since 386BSD, at least. Likely further.
  888. + if test -x /sbin/sysctl; then
  889. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  890. + elif test -x /usr/sbin/sysctl; then
  891. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  892. + else
  893. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  894. + fi
  895. + # And add a safety zone
  896. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  897. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  898. + ;;
  899. +
  900. + interix*)
  901. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  902. + lt_cv_sys_max_cmd_len=196608
  903. + ;;
  904. +
  905. + osf*)
  906. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  907. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  908. + # nice to cause kernel panics so lets avoid the loop below.
  909. + # First set a reasonable default.
  910. + lt_cv_sys_max_cmd_len=16384
  911. + #
  912. + if test -x /sbin/sysconfig; then
  913. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  914. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  915. + esac
  916. + fi
  917. + ;;
  918. + sco3.2v5*)
  919. + lt_cv_sys_max_cmd_len=102400
  920. + ;;
  921. + sysv5* | sco5v6* | sysv4.2uw2*)
  922. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  923. + if test -n "$kargmax"; then
  924. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  925. + else
  926. + lt_cv_sys_max_cmd_len=32768
  927. + fi
  928. + ;;
  929. + *)
  930. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  931. + if test -n "$lt_cv_sys_max_cmd_len"; then
  932. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  933. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  934. + else
  935. + # Make teststring a little bigger before we do anything with it.
  936. + # a 1K string should be a reasonable start.
  937. + for i in 1 2 3 4 5 6 7 8 ; do
  938. + teststring=$teststring$teststring
  939. + done
  940. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  941. + # If test is not a shell built-in, we'll probably end up computing a
  942. + # maximum length that is only half of the actual maximum length, but
  943. + # we can't tell.
  944. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  945. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  946. + test $i != 17 # 1/2 MB should be enough
  947. + do
  948. + i=`expr $i + 1`
  949. + teststring=$teststring$teststring
  950. + done
  951. + # Only check the string length outside the loop.
  952. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  953. + teststring=
  954. + # Add a significant safety factor because C++ compilers can tack on
  955. + # massive amounts of additional arguments before passing them to the
  956. + # linker. It appears as though 1/2 is a usable value.
  957. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  958. + fi
  959. + ;;
  960. + esac
  961. +
  962. +fi
  963. +
  964. +if test -n $lt_cv_sys_max_cmd_len ; then
  965. + { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  966. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  967. +else
  968. + { $as_echo "$as_me:$LINENO: result: none" >&5
  969. +$as_echo "none" >&6; }
  970. +fi
  971. +max_cmd_len=$lt_cv_sys_max_cmd_len
  972. +
  973. +
  974. +
  975. +
  976. +
  977. +
  978. +: ${CP="cp -f"}
  979. +: ${MV="mv -f"}
  980. +: ${RM="rm -f"}
  981. +
  982. +{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  983. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  984. +# Try some XSI features
  985. +xsi_shell=no
  986. +( _lt_dummy="a/b/c"
  987. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  988. + = c,a/b,, \
  989. + && eval 'test $(( 1 + 1 )) -eq 2 \
  990. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  991. + && xsi_shell=yes
  992. +{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  993. +$as_echo "$xsi_shell" >&6; }
  994. +
  995. +
  996. +{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  997. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  998. +lt_shell_append=no
  999. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  1000. + >/dev/null 2>&1 \
  1001. + && lt_shell_append=yes
  1002. +{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  1003. +$as_echo "$lt_shell_append" >&6; }
  1004. +
  1005. +
  1006. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  1007. + lt_unset=unset
  1008. +else
  1009. + lt_unset=false
  1010. +fi
  1011. +
  1012. +
  1013. +
  1014. +
  1015. +
  1016. +# test EBCDIC or ASCII
  1017. +case `echo X|tr X '\101'` in
  1018. + A) # ASCII based system
  1019. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  1020. + lt_SP2NL='tr \040 \012'
  1021. + lt_NL2SP='tr \015\012 \040\040'
  1022. + ;;
  1023. + *) # EBCDIC based system
  1024. + lt_SP2NL='tr \100 \n'
  1025. + lt_NL2SP='tr \r\n \100\100'
  1026. + ;;
  1027. +esac
  1028. +
  1029. +
  1030. +
  1031. +
  1032. +
  1033. +
  1034. +
  1035. +
  1036. +
  1037. +{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  1038. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  1039. +if test "${lt_cv_ld_reload_flag+set}" = set; then
  1040. + $as_echo_n "(cached) " >&6
  1041. +else
  1042. + lt_cv_ld_reload_flag='-r'
  1043. +fi
  1044. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  1045. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  1046. +reload_flag=$lt_cv_ld_reload_flag
  1047. +case $reload_flag in
  1048. +"" | " "*) ;;
  1049. +*) reload_flag=" $reload_flag" ;;
  1050. +esac
  1051. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1052. +case $host_os in
  1053. + darwin*)
  1054. + if test "$GCC" = yes; then
  1055. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  1056. + else
  1057. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1058. + fi
  1059. + ;;
  1060. +esac
  1061. +
  1062. +
  1063. +
  1064. +
  1065. +
  1066. +
  1067. +
  1068. +
  1069. +
  1070. +if test -n "$ac_tool_prefix"; then
  1071. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  1072. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  1073. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1074. +$as_echo_n "checking for $ac_word... " >&6; }
  1075. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  1076. + $as_echo_n "(cached) " >&6
  1077. +else
  1078. + if test -n "$OBJDUMP"; then
  1079. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  1080. +else
  1081. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1082. +for as_dir in $PATH
  1083. +do
  1084. + IFS=$as_save_IFS
  1085. + test -z "$as_dir" && as_dir=.
  1086. + for ac_exec_ext in '' $ac_executable_extensions; do
  1087. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1088. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  1089. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1090. + break 2
  1091. + fi
  1092. +done
  1093. +done
  1094. +IFS=$as_save_IFS
  1095. +
  1096. +fi
  1097. +fi
  1098. +OBJDUMP=$ac_cv_prog_OBJDUMP
  1099. +if test -n "$OBJDUMP"; then
  1100. + { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  1101. +$as_echo "$OBJDUMP" >&6; }
  1102. +else
  1103. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1104. +$as_echo "no" >&6; }
  1105. +fi
  1106. +
  1107. +
  1108. +fi
  1109. +if test -z "$ac_cv_prog_OBJDUMP"; then
  1110. + ac_ct_OBJDUMP=$OBJDUMP
  1111. + # Extract the first word of "objdump", so it can be a program name with args.
  1112. +set dummy objdump; ac_word=$2
  1113. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1114. +$as_echo_n "checking for $ac_word... " >&6; }
  1115. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  1116. + $as_echo_n "(cached) " >&6
  1117. +else
  1118. + if test -n "$ac_ct_OBJDUMP"; then
  1119. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  1120. +else
  1121. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1122. +for as_dir in $PATH
  1123. +do
  1124. + IFS=$as_save_IFS
  1125. + test -z "$as_dir" && as_dir=.
  1126. + for ac_exec_ext in '' $ac_executable_extensions; do
  1127. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1128. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  1129. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1130. + break 2
  1131. + fi
  1132. +done
  1133. +done
  1134. +IFS=$as_save_IFS
  1135. +
  1136. +fi
  1137. +fi
  1138. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  1139. +if test -n "$ac_ct_OBJDUMP"; then
  1140. + { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  1141. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  1142. +else
  1143. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1144. +$as_echo "no" >&6; }
  1145. +fi
  1146. +
  1147. + if test "x$ac_ct_OBJDUMP" = x; then
  1148. + OBJDUMP="false"
  1149. + else
  1150. + case $cross_compiling:$ac_tool_warned in
  1151. +yes:)
  1152. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1153. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1154. +ac_tool_warned=yes ;;
  1155. +esac
  1156. + OBJDUMP=$ac_ct_OBJDUMP
  1157. + fi
  1158. +else
  1159. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  1160. +fi
  1161. +
  1162. +test -z "$OBJDUMP" && OBJDUMP=objdump
  1163. +
  1164. +
  1165. +
  1166. +
  1167. +
  1168. +
  1169. +
  1170. +
  1171. +
  1172. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  1173. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  1174. if test "${lt_cv_deplibs_check_method+set}" = set; then
  1175. @@ -5346,12 +5840,18 @@ mingw* | pw32*)
  1176. fi
  1177. ;;
  1178. +cegcc)
  1179. + # use the weaker test based on 'objdump'. See mingw*.
  1180. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  1181. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  1182. + ;;
  1183. +
  1184. darwin* | rhapsody*)
  1185. lt_cv_deplibs_check_method=pass_all
  1186. ;;
  1187. freebsd* | dragonfly*)
  1188. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1189. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  1190. case $host_cpu in
  1191. i*86 )
  1192. # Not sure whether the presence of OpenBSD here was a mistake.
  1193. @@ -5409,7 +5909,7 @@ linux* | k*bsd*-gnu)
  1194. ;;
  1195. netbsd*)
  1196. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1197. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  1198. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  1199. else
  1200. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  1201. @@ -5422,12 +5922,12 @@ newos6*)
  1202. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  1203. ;;
  1204. -nto-qnx*)
  1205. - lt_cv_deplibs_check_method=unknown
  1206. +*nto* | *qnx*)
  1207. + lt_cv_deplibs_check_method=pass_all
  1208. ;;
  1209. openbsd*)
  1210. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1211. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1212. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  1213. else
  1214. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  1215. @@ -5446,6 +5946,10 @@ solaris*)
  1216. lt_cv_deplibs_check_method=pass_all
  1217. ;;
  1218. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1219. + lt_cv_deplibs_check_method=pass_all
  1220. + ;;
  1221. +
  1222. sysv4 | sysv4.3*)
  1223. case $host_vendor in
  1224. motorola)
  1225. @@ -5473,7 +5977,7 @@ sysv4 | sysv4.3*)
  1226. esac
  1227. ;;
  1228. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1229. +tpf*)
  1230. lt_cv_deplibs_check_method=pass_all
  1231. ;;
  1232. esac
  1233. @@ -5488,6 +5992,367 @@ test -z "$deplibs_check_method" && depli
  1234. +
  1235. +
  1236. +
  1237. +
  1238. +
  1239. +
  1240. +
  1241. +
  1242. +if test -n "$ac_tool_prefix"; then
  1243. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  1244. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  1245. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1246. +$as_echo_n "checking for $ac_word... " >&6; }
  1247. +if test "${ac_cv_prog_AR+set}" = set; then
  1248. + $as_echo_n "(cached) " >&6
  1249. +else
  1250. + if test -n "$AR"; then
  1251. + ac_cv_prog_AR="$AR" # Let the user override the test.
  1252. +else
  1253. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1254. +for as_dir in $PATH
  1255. +do
  1256. + IFS=$as_save_IFS
  1257. + test -z "$as_dir" && as_dir=.
  1258. + for ac_exec_ext in '' $ac_executable_extensions; do
  1259. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1260. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  1261. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1262. + break 2
  1263. + fi
  1264. +done
  1265. +done
  1266. +IFS=$as_save_IFS
  1267. +
  1268. +fi
  1269. +fi
  1270. +AR=$ac_cv_prog_AR
  1271. +if test -n "$AR"; then
  1272. + { $as_echo "$as_me:$LINENO: result: $AR" >&5
  1273. +$as_echo "$AR" >&6; }
  1274. +else
  1275. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1276. +$as_echo "no" >&6; }
  1277. +fi
  1278. +
  1279. +
  1280. +fi
  1281. +if test -z "$ac_cv_prog_AR"; then
  1282. + ac_ct_AR=$AR
  1283. + # Extract the first word of "ar", so it can be a program name with args.
  1284. +set dummy ar; ac_word=$2
  1285. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1286. +$as_echo_n "checking for $ac_word... " >&6; }
  1287. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  1288. + $as_echo_n "(cached) " >&6
  1289. +else
  1290. + if test -n "$ac_ct_AR"; then
  1291. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  1292. +else
  1293. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1294. +for as_dir in $PATH
  1295. +do
  1296. + IFS=$as_save_IFS
  1297. + test -z "$as_dir" && as_dir=.
  1298. + for ac_exec_ext in '' $ac_executable_extensions; do
  1299. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1300. + ac_cv_prog_ac_ct_AR="ar"
  1301. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1302. + break 2
  1303. + fi
  1304. +done
  1305. +done
  1306. +IFS=$as_save_IFS
  1307. +
  1308. +fi
  1309. +fi
  1310. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  1311. +if test -n "$ac_ct_AR"; then
  1312. + { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  1313. +$as_echo "$ac_ct_AR" >&6; }
  1314. +else
  1315. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1316. +$as_echo "no" >&6; }
  1317. +fi
  1318. +
  1319. + if test "x$ac_ct_AR" = x; then
  1320. + AR="false"
  1321. + else
  1322. + case $cross_compiling:$ac_tool_warned in
  1323. +yes:)
  1324. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1325. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1326. +ac_tool_warned=yes ;;
  1327. +esac
  1328. + AR=$ac_ct_AR
  1329. + fi
  1330. +else
  1331. + AR="$ac_cv_prog_AR"
  1332. +fi
  1333. +
  1334. +test -z "$AR" && AR=ar
  1335. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1336. +
  1337. +
  1338. +
  1339. +
  1340. +
  1341. +
  1342. +
  1343. +
  1344. +
  1345. +
  1346. +
  1347. +if test -n "$ac_tool_prefix"; then
  1348. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1349. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  1350. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1351. +$as_echo_n "checking for $ac_word... " >&6; }
  1352. +if test "${ac_cv_prog_STRIP+set}" = set; then
  1353. + $as_echo_n "(cached) " >&6
  1354. +else
  1355. + if test -n "$STRIP"; then
  1356. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1357. +else
  1358. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1359. +for as_dir in $PATH
  1360. +do
  1361. + IFS=$as_save_IFS
  1362. + test -z "$as_dir" && as_dir=.
  1363. + for ac_exec_ext in '' $ac_executable_extensions; do
  1364. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1365. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1366. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1367. + break 2
  1368. + fi
  1369. +done
  1370. +done
  1371. +IFS=$as_save_IFS
  1372. +
  1373. +fi
  1374. +fi
  1375. +STRIP=$ac_cv_prog_STRIP
  1376. +if test -n "$STRIP"; then
  1377. + { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  1378. +$as_echo "$STRIP" >&6; }
  1379. +else
  1380. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1381. +$as_echo "no" >&6; }
  1382. +fi
  1383. +
  1384. +
  1385. +fi
  1386. +if test -z "$ac_cv_prog_STRIP"; then
  1387. + ac_ct_STRIP=$STRIP
  1388. + # Extract the first word of "strip", so it can be a program name with args.
  1389. +set dummy strip; ac_word=$2
  1390. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1391. +$as_echo_n "checking for $ac_word... " >&6; }
  1392. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1393. + $as_echo_n "(cached) " >&6
  1394. +else
  1395. + if test -n "$ac_ct_STRIP"; then
  1396. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1397. +else
  1398. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1399. +for as_dir in $PATH
  1400. +do
  1401. + IFS=$as_save_IFS
  1402. + test -z "$as_dir" && as_dir=.
  1403. + for ac_exec_ext in '' $ac_executable_extensions; do
  1404. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1405. + ac_cv_prog_ac_ct_STRIP="strip"
  1406. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1407. + break 2
  1408. + fi
  1409. +done
  1410. +done
  1411. +IFS=$as_save_IFS
  1412. +
  1413. +fi
  1414. +fi
  1415. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1416. +if test -n "$ac_ct_STRIP"; then
  1417. + { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1418. +$as_echo "$ac_ct_STRIP" >&6; }
  1419. +else
  1420. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1421. +$as_echo "no" >&6; }
  1422. +fi
  1423. +
  1424. + if test "x$ac_ct_STRIP" = x; then
  1425. + STRIP=":"
  1426. + else
  1427. + case $cross_compiling:$ac_tool_warned in
  1428. +yes:)
  1429. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1430. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1431. +ac_tool_warned=yes ;;
  1432. +esac
  1433. + STRIP=$ac_ct_STRIP
  1434. + fi
  1435. +else
  1436. + STRIP="$ac_cv_prog_STRIP"
  1437. +fi
  1438. +
  1439. +test -z "$STRIP" && STRIP=:
  1440. +
  1441. +
  1442. +
  1443. +
  1444. +
  1445. +
  1446. +if test -n "$ac_tool_prefix"; then
  1447. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1448. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1449. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1450. +$as_echo_n "checking for $ac_word... " >&6; }
  1451. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  1452. + $as_echo_n "(cached) " >&6
  1453. +else
  1454. + if test -n "$RANLIB"; then
  1455. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1456. +else
  1457. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1458. +for as_dir in $PATH
  1459. +do
  1460. + IFS=$as_save_IFS
  1461. + test -z "$as_dir" && as_dir=.
  1462. + for ac_exec_ext in '' $ac_executable_extensions; do
  1463. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1464. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1465. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1466. + break 2
  1467. + fi
  1468. +done
  1469. +done
  1470. +IFS=$as_save_IFS
  1471. +
  1472. +fi
  1473. +fi
  1474. +RANLIB=$ac_cv_prog_RANLIB
  1475. +if test -n "$RANLIB"; then
  1476. + { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  1477. +$as_echo "$RANLIB" >&6; }
  1478. +else
  1479. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1480. +$as_echo "no" >&6; }
  1481. +fi
  1482. +
  1483. +
  1484. +fi
  1485. +if test -z "$ac_cv_prog_RANLIB"; then
  1486. + ac_ct_RANLIB=$RANLIB
  1487. + # Extract the first word of "ranlib", so it can be a program name with args.
  1488. +set dummy ranlib; ac_word=$2
  1489. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1490. +$as_echo_n "checking for $ac_word... " >&6; }
  1491. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  1492. + $as_echo_n "(cached) " >&6
  1493. +else
  1494. + if test -n "$ac_ct_RANLIB"; then
  1495. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  1496. +else
  1497. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1498. +for as_dir in $PATH
  1499. +do
  1500. + IFS=$as_save_IFS
  1501. + test -z "$as_dir" && as_dir=.
  1502. + for ac_exec_ext in '' $ac_executable_extensions; do
  1503. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1504. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  1505. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1506. + break 2
  1507. + fi
  1508. +done
  1509. +done
  1510. +IFS=$as_save_IFS
  1511. +
  1512. +fi
  1513. +fi
  1514. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  1515. +if test -n "$ac_ct_RANLIB"; then
  1516. + { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  1517. +$as_echo "$ac_ct_RANLIB" >&6; }
  1518. +else
  1519. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1520. +$as_echo "no" >&6; }
  1521. +fi
  1522. +
  1523. + if test "x$ac_ct_RANLIB" = x; then
  1524. + RANLIB=":"
  1525. + else
  1526. + case $cross_compiling:$ac_tool_warned in
  1527. +yes:)
  1528. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1529. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1530. +ac_tool_warned=yes ;;
  1531. +esac
  1532. + RANLIB=$ac_ct_RANLIB
  1533. + fi
  1534. +else
  1535. + RANLIB="$ac_cv_prog_RANLIB"
  1536. +fi
  1537. +
  1538. +test -z "$RANLIB" && RANLIB=:
  1539. +
  1540. +
  1541. +
  1542. +
  1543. +
  1544. +
  1545. +# Determine commands to create old-style static archives.
  1546. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1547. +old_postinstall_cmds='chmod 644 $oldlib'
  1548. +old_postuninstall_cmds=
  1549. +
  1550. +if test -n "$RANLIB"; then
  1551. + case $host_os in
  1552. + openbsd*)
  1553. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1554. + ;;
  1555. + *)
  1556. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1557. + ;;
  1558. + esac
  1559. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1560. +fi
  1561. +
  1562. +
  1563. +
  1564. +
  1565. +
  1566. +
  1567. +
  1568. +
  1569. +
  1570. +
  1571. +
  1572. +
  1573. +
  1574. +
  1575. +
  1576. +
  1577. +
  1578. +
  1579. +
  1580. +
  1581. +
  1582. +
  1583. +
  1584. +
  1585. +
  1586. +
  1587. +
  1588. +
  1589. +
  1590. +
  1591. +
  1592. +
  1593. +
  1594. +
  1595. # If no C compiler was specified, use CC.
  1596. LTCC=${LTCC-"$CC"}
  1597. @@ -5497,6 +6362,256 @@ LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1598. # Allow CC to be a program name with arguments.
  1599. compiler=$CC
  1600. +
  1601. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  1602. +{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  1603. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  1604. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  1605. + $as_echo_n "(cached) " >&6
  1606. +else
  1607. +
  1608. +# These are sane defaults that work on at least a few old systems.
  1609. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  1610. +
  1611. +# Character class describing NM global symbol codes.
  1612. +symcode='[BCDEGRST]'
  1613. +
  1614. +# Regexp to match symbols that can be accessed directly from C.
  1615. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  1616. +
  1617. +# Define system-specific variables.
  1618. +case $host_os in
  1619. +aix*)
  1620. + symcode='[BCDT]'
  1621. + ;;
  1622. +cygwin* | mingw* | pw32* | cegcc*)
  1623. + symcode='[ABCDGISTW]'
  1624. + ;;
  1625. +hpux*)
  1626. + if test "$host_cpu" = ia64; then
  1627. + symcode='[ABCDEGRST]'
  1628. + fi
  1629. + ;;
  1630. +irix* | nonstopux*)
  1631. + symcode='[BCDEGRST]'
  1632. + ;;
  1633. +osf*)
  1634. + symcode='[BCDEGQRST]'
  1635. + ;;
  1636. +solaris*)
  1637. + symcode='[BDRT]'
  1638. + ;;
  1639. +sco3.2v5*)
  1640. + symcode='[DT]'
  1641. + ;;
  1642. +sysv4.2uw2*)
  1643. + symcode='[DT]'
  1644. + ;;
  1645. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  1646. + symcode='[ABDT]'
  1647. + ;;
  1648. +sysv4)
  1649. + symcode='[DFNSTU]'
  1650. + ;;
  1651. +esac
  1652. +
  1653. +# If we're using GNU nm, then use its standard symbol codes.
  1654. +case `$NM -V 2>&1` in
  1655. +*GNU* | *'with BFD'*)
  1656. + symcode='[ABCDGIRSTW]' ;;
  1657. +esac
  1658. +
  1659. +# Transform an extracted symbol line into a proper C declaration.
  1660. +# Some systems (esp. on ia64) link data and code symbols differently,
  1661. +# so use this general approach.
  1662. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1663. +
  1664. +# Transform an extracted symbol line into symbol name and symbol address
  1665. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  1666. +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'"
  1667. +
  1668. +# Handle CRLF in mingw tool chain
  1669. +opt_cr=
  1670. +case $build_os in
  1671. +mingw*)
  1672. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  1673. + ;;
  1674. +esac
  1675. +
  1676. +# Try without a prefix underscore, then with it.
  1677. +for ac_symprfx in "" "_"; do
  1678. +
  1679. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  1680. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  1681. +
  1682. + # Write the raw and C identifiers.
  1683. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  1684. + # Fake it for dumpbin and say T for any non-static function
  1685. + # and D for any global variable.
  1686. + # Also find C++ and __fastcall symbols from MSVC++,
  1687. + # which start with @ or ?.
  1688. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  1689. +" {last_section=section; section=\$ 3};"\
  1690. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  1691. +" \$ 0!~/External *\|/{next};"\
  1692. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  1693. +" {if(hide[section]) next};"\
  1694. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  1695. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  1696. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  1697. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  1698. +" ' prfx=^$ac_symprfx"
  1699. + else
  1700. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  1701. + fi
  1702. +
  1703. + # Check to see that the pipe works correctly.
  1704. + pipe_works=no
  1705. +
  1706. + rm -f conftest*
  1707. + cat > conftest.$ac_ext <<_LT_EOF
  1708. +#ifdef __cplusplus
  1709. +extern "C" {
  1710. +#endif
  1711. +char nm_test_var;
  1712. +void nm_test_func(void);
  1713. +void nm_test_func(void){}
  1714. +#ifdef __cplusplus
  1715. +}
  1716. +#endif
  1717. +int main(){nm_test_var='a';nm_test_func();return(0);}
  1718. +_LT_EOF
  1719. +
  1720. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1721. + (eval $ac_compile) 2>&5
  1722. + ac_status=$?
  1723. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1724. + (exit $ac_status); }; then
  1725. + # Now try to grab the symbols.
  1726. + nlist=conftest.nm
  1727. + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  1728. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  1729. + ac_status=$?
  1730. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1731. + (exit $ac_status); } && test -s "$nlist"; then
  1732. + # Try sorting and uniquifying the output.
  1733. + if sort "$nlist" | uniq > "$nlist"T; then
  1734. + mv -f "$nlist"T "$nlist"
  1735. + else
  1736. + rm -f "$nlist"T
  1737. + fi
  1738. +
  1739. + # Make sure that we snagged all the symbols we need.
  1740. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  1741. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  1742. + cat <<_LT_EOF > conftest.$ac_ext
  1743. +#ifdef __cplusplus
  1744. +extern "C" {
  1745. +#endif
  1746. +
  1747. +_LT_EOF
  1748. + # Now generate the symbol file.
  1749. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  1750. +
  1751. + cat <<_LT_EOF >> conftest.$ac_ext
  1752. +
  1753. +/* The mapping between symbol names and symbols. */
  1754. +const struct {
  1755. + const char *name;
  1756. + void *address;
  1757. +}
  1758. +lt__PROGRAM__LTX_preloaded_symbols[] =
  1759. +{
  1760. + { "@PROGRAM@", (void *) 0 },
  1761. +_LT_EOF
  1762. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  1763. + cat <<\_LT_EOF >> conftest.$ac_ext
  1764. + {0, (void *) 0}
  1765. +};
  1766. +
  1767. +/* This works around a problem in FreeBSD linker */
  1768. +#ifdef FREEBSD_WORKAROUND
  1769. +static const void *lt_preloaded_setup() {
  1770. + return lt__PROGRAM__LTX_preloaded_symbols;
  1771. +}
  1772. +#endif
  1773. +
  1774. +#ifdef __cplusplus
  1775. +}
  1776. +#endif
  1777. +_LT_EOF
  1778. + # Now try linking the two files.
  1779. + mv conftest.$ac_objext conftstm.$ac_objext
  1780. + lt_save_LIBS="$LIBS"
  1781. + lt_save_CFLAGS="$CFLAGS"
  1782. + LIBS="conftstm.$ac_objext"
  1783. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  1784. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1785. + (eval $ac_link) 2>&5
  1786. + ac_status=$?
  1787. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1788. + (exit $ac_status); } && test -s conftest${ac_exeext}; then
  1789. + pipe_works=yes
  1790. + fi
  1791. + LIBS="$lt_save_LIBS"
  1792. + CFLAGS="$lt_save_CFLAGS"
  1793. + else
  1794. + echo "cannot find nm_test_func in $nlist" >&5
  1795. + fi
  1796. + else
  1797. + echo "cannot find nm_test_var in $nlist" >&5
  1798. + fi
  1799. + else
  1800. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  1801. + fi
  1802. + else
  1803. + echo "$progname: failed program was:" >&5
  1804. + cat conftest.$ac_ext >&5
  1805. + fi
  1806. + rm -rf conftest* conftst*
  1807. +
  1808. + # Do not use the global_symbol_pipe unless it works.
  1809. + if test "$pipe_works" = yes; then
  1810. + break
  1811. + else
  1812. + lt_cv_sys_global_symbol_pipe=
  1813. + fi
  1814. +done
  1815. +
  1816. +fi
  1817. +
  1818. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  1819. + lt_cv_sys_global_symbol_to_cdecl=
  1820. +fi
  1821. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  1822. + { $as_echo "$as_me:$LINENO: result: failed" >&5
  1823. +$as_echo "failed" >&6; }
  1824. +else
  1825. + { $as_echo "$as_me:$LINENO: result: ok" >&5
  1826. +$as_echo "ok" >&6; }
  1827. +fi
  1828. +
  1829. +
  1830. +
  1831. +
  1832. +
  1833. +
  1834. +
  1835. +
  1836. +
  1837. +
  1838. +
  1839. +
  1840. +
  1841. +
  1842. +
  1843. +
  1844. +
  1845. +
  1846. +
  1847. +
  1848. +
  1849. +
  1850. # Check whether --enable-libtool-lock was given.
  1851. if test "${enable_libtool_lock+set}" = set; then
  1852. enableval=$enable_libtool_lock;
  1853. @@ -5516,55 +6631,55 @@ ia64-*-hpux*)
  1854. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1855. (exit $ac_status); }; then
  1856. case `/usr/bin/file conftest.$ac_objext` in
  1857. - *ELF-32*)
  1858. - HPUX_IA64_MODE="32"
  1859. - ;;
  1860. - *ELF-64*)
  1861. - HPUX_IA64_MODE="64"
  1862. - ;;
  1863. + *ELF-32*)
  1864. + HPUX_IA64_MODE="32"
  1865. + ;;
  1866. + *ELF-64*)
  1867. + HPUX_IA64_MODE="64"
  1868. + ;;
  1869. esac
  1870. fi
  1871. rm -rf conftest*
  1872. ;;
  1873. *-*-irix6*)
  1874. # Find out which ABI we are using.
  1875. - echo '#line 5531 "configure"' > conftest.$ac_ext
  1876. + echo '#line 6646 "configure"' > conftest.$ac_ext
  1877. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1878. (eval $ac_compile) 2>&5
  1879. ac_status=$?
  1880. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1881. (exit $ac_status); }; then
  1882. - if test "$lt_cv_prog_gnu_ld" = yes; then
  1883. - case `/usr/bin/file conftest.$ac_objext` in
  1884. - *32-bit*)
  1885. - LD="${LD-ld} -melf32bsmip"
  1886. - ;;
  1887. - *N32*)
  1888. - LD="${LD-ld} -melf32bmipn32"
  1889. - ;;
  1890. - *64-bit*)
  1891. - LD="${LD-ld} -melf64bmip"
  1892. - ;;
  1893. - esac
  1894. - else
  1895. - case `/usr/bin/file conftest.$ac_objext` in
  1896. - *32-bit*)
  1897. - LD="${LD-ld} -32"
  1898. - ;;
  1899. - *N32*)
  1900. - LD="${LD-ld} -n32"
  1901. - ;;
  1902. - *64-bit*)
  1903. - LD="${LD-ld} -64"
  1904. - ;;
  1905. - esac
  1906. - fi
  1907. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1908. + case `/usr/bin/file conftest.$ac_objext` in
  1909. + *32-bit*)
  1910. + LD="${LD-ld} -melf32bsmip"
  1911. + ;;
  1912. + *N32*)
  1913. + LD="${LD-ld} -melf32bmipn32"
  1914. + ;;
  1915. + *64-bit*)
  1916. + LD="${LD-ld} -melf64bmip"
  1917. + ;;
  1918. + esac
  1919. + else
  1920. + case `/usr/bin/file conftest.$ac_objext` in
  1921. + *32-bit*)
  1922. + LD="${LD-ld} -32"
  1923. + ;;
  1924. + *N32*)
  1925. + LD="${LD-ld} -n32"
  1926. + ;;
  1927. + *64-bit*)
  1928. + LD="${LD-ld} -64"
  1929. + ;;
  1930. + esac
  1931. + fi
  1932. fi
  1933. rm -rf conftest*
  1934. ;;
  1935. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1936. -s390*-*linux*|sparc*-*linux*)
  1937. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1938. # Find out which ABI we are using.
  1939. echo 'int i;' > conftest.$ac_ext
  1940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1941. @@ -5573,45 +6688,44 @@ s390*-*linux*|sparc*-*linux*)
  1942. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1943. (exit $ac_status); }; then
  1944. case `/usr/bin/file conftest.o` in
  1945. - *32-bit*)
  1946. - case $host in
  1947. - x86_64-*kfreebsd*-gnu)
  1948. - LD="${LD-ld} -m elf_i386_fbsd"
  1949. - ;;
  1950. - x86_64-*linux*)
  1951. - LD="${LD-ld} -m elf_i386"
  1952. - ;;
  1953. - ppc64-*linux*|powerpc64-*linux*)
  1954. - LD="${LD-ld} -m elf32ppclinux"
  1955. - ;;
  1956. - s390x-*linux*)
  1957. - LD="${LD-ld} -m elf_s390"
  1958. - ;;
  1959. - sparc64-*linux*)
  1960. - LD="${LD-ld} -m elf32_sparc"
  1961. - ;;
  1962. - esac
  1963. - ;;
  1964. - *64-bit*)
  1965. - libsuff=64
  1966. - case $host in
  1967. - x86_64-*kfreebsd*-gnu)
  1968. - LD="${LD-ld} -m elf_x86_64_fbsd"
  1969. - ;;
  1970. - x86_64-*linux*)
  1971. - LD="${LD-ld} -m elf_x86_64"
  1972. - ;;
  1973. - ppc*-*linux*|powerpc*-*linux*)
  1974. - LD="${LD-ld} -m elf64ppc"
  1975. - ;;
  1976. - s390*-*linux*)
  1977. - LD="${LD-ld} -m elf64_s390"
  1978. - ;;
  1979. - sparc*-*linux*)
  1980. - LD="${LD-ld} -m elf64_sparc"
  1981. - ;;
  1982. - esac
  1983. - ;;
  1984. + *32-bit*)
  1985. + case $host in
  1986. + x86_64-*kfreebsd*-gnu)
  1987. + LD="${LD-ld} -m elf_i386_fbsd"
  1988. + ;;
  1989. + x86_64-*linux*)
  1990. + LD="${LD-ld} -m elf_i386"
  1991. + ;;
  1992. + ppc64-*linux*|powerpc64-*linux*)
  1993. + LD="${LD-ld} -m elf32ppclinux"
  1994. + ;;
  1995. + s390x-*linux*)
  1996. + LD="${LD-ld} -m elf_s390"
  1997. + ;;
  1998. + sparc64-*linux*)
  1999. + LD="${LD-ld} -m elf32_sparc"
  2000. + ;;
  2001. + esac
  2002. + ;;
  2003. + *64-bit*)
  2004. + case $host in
  2005. + x86_64-*kfreebsd*-gnu)
  2006. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2007. + ;;
  2008. + x86_64-*linux*)
  2009. + LD="${LD-ld} -m elf_x86_64"
  2010. + ;;
  2011. + ppc*-*linux*|powerpc*-*linux*)
  2012. + LD="${LD-ld} -m elf64ppc"
  2013. + ;;
  2014. + s390*-*linux*|s390*-*tpf*)
  2015. + LD="${LD-ld} -m elf64_s390"
  2016. + ;;
  2017. + sparc*-*linux*)
  2018. + LD="${LD-ld} -m elf64_sparc"
  2019. + ;;
  2020. + esac
  2021. + ;;
  2022. esac
  2023. fi
  2024. rm -rf conftest*
  2025. @@ -5706,7 +6820,7 @@ sparc*-*solaris*)
  2026. case $lt_cv_prog_gnu_ld in
  2027. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2028. *)
  2029. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2030. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2031. LD="${LD-ld} -64"
  2032. fi
  2033. ;;
  2034. @@ -5716,12 +6830,623 @@ sparc*-*solaris*)
  2035. fi
  2036. rm -rf conftest*
  2037. ;;
  2038. +esac
  2039. +
  2040. +need_locks="$enable_libtool_lock"
  2041. +
  2042. +
  2043. + case $host_os in
  2044. + rhapsody* | darwin*)
  2045. + if test -n "$ac_tool_prefix"; then
  2046. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  2047. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  2048. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2049. +$as_echo_n "checking for $ac_word... " >&6; }
  2050. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  2051. + $as_echo_n "(cached) " >&6
  2052. +else
  2053. + if test -n "$DSYMUTIL"; then
  2054. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  2055. +else
  2056. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2057. +for as_dir in $PATH
  2058. +do
  2059. + IFS=$as_save_IFS
  2060. + test -z "$as_dir" && as_dir=.
  2061. + for ac_exec_ext in '' $ac_executable_extensions; do
  2062. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2063. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  2064. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2065. + break 2
  2066. + fi
  2067. +done
  2068. +done
  2069. +IFS=$as_save_IFS
  2070. +
  2071. +fi
  2072. +fi
  2073. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  2074. +if test -n "$DSYMUTIL"; then
  2075. + { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  2076. +$as_echo "$DSYMUTIL" >&6; }
  2077. +else
  2078. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2079. +$as_echo "no" >&6; }
  2080. +fi
  2081. +fi
  2082. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  2083. + ac_ct_DSYMUTIL=$DSYMUTIL
  2084. + # Extract the first word of "dsymutil", so it can be a program name with args.
  2085. +set dummy dsymutil; ac_word=$2
  2086. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2087. +$as_echo_n "checking for $ac_word... " >&6; }
  2088. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  2089. + $as_echo_n "(cached) " >&6
  2090. +else
  2091. + if test -n "$ac_ct_DSYMUTIL"; then
  2092. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  2093. +else
  2094. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2095. +for as_dir in $PATH
  2096. +do
  2097. + IFS=$as_save_IFS
  2098. + test -z "$as_dir" && as_dir=.
  2099. + for ac_exec_ext in '' $ac_executable_extensions; do
  2100. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2101. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  2102. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2103. + break 2
  2104. + fi
  2105. +done
  2106. +done
  2107. +IFS=$as_save_IFS
  2108. +
  2109. +fi
  2110. +fi
  2111. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  2112. +if test -n "$ac_ct_DSYMUTIL"; then
  2113. + { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  2114. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  2115. +else
  2116. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2117. +$as_echo "no" >&6; }
  2118. +fi
  2119. +
  2120. + if test "x$ac_ct_DSYMUTIL" = x; then
  2121. + DSYMUTIL=":"
  2122. + else
  2123. + case $cross_compiling:$ac_tool_warned in
  2124. +yes:)
  2125. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2126. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2127. +ac_tool_warned=yes ;;
  2128. esac
  2129. + DSYMUTIL=$ac_ct_DSYMUTIL
  2130. + fi
  2131. +else
  2132. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  2133. +fi
  2134. -need_locks="$enable_libtool_lock"
  2135. + if test -n "$ac_tool_prefix"; then
  2136. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  2137. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  2138. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2139. +$as_echo_n "checking for $ac_word... " >&6; }
  2140. +if test "${ac_cv_prog_NMEDIT+set}" = set; then
  2141. + $as_echo_n "(cached) " >&6
  2142. +else
  2143. + if test -n "$NMEDIT"; then
  2144. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  2145. +else
  2146. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2147. +for as_dir in $PATH
  2148. +do
  2149. + IFS=$as_save_IFS
  2150. + test -z "$as_dir" && as_dir=.
  2151. + for ac_exec_ext in '' $ac_executable_extensions; do
  2152. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2153. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  2154. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2155. + break 2
  2156. + fi
  2157. +done
  2158. +done
  2159. +IFS=$as_save_IFS
  2160. +fi
  2161. +fi
  2162. +NMEDIT=$ac_cv_prog_NMEDIT
  2163. +if test -n "$NMEDIT"; then
  2164. + { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  2165. +$as_echo "$NMEDIT" >&6; }
  2166. +else
  2167. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2168. +$as_echo "no" >&6; }
  2169. +fi
  2170. +
  2171. +
  2172. +fi
  2173. +if test -z "$ac_cv_prog_NMEDIT"; then
  2174. + ac_ct_NMEDIT=$NMEDIT
  2175. + # Extract the first word of "nmedit", so it can be a program name with args.
  2176. +set dummy nmedit; ac_word=$2
  2177. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2178. +$as_echo_n "checking for $ac_word... " >&6; }
  2179. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  2180. + $as_echo_n "(cached) " >&6
  2181. +else
  2182. + if test -n "$ac_ct_NMEDIT"; then
  2183. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  2184. +else
  2185. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2186. +for as_dir in $PATH
  2187. +do
  2188. + IFS=$as_save_IFS
  2189. + test -z "$as_dir" && as_dir=.
  2190. + for ac_exec_ext in '' $ac_executable_extensions; do
  2191. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2192. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  2193. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2194. + break 2
  2195. + fi
  2196. +done
  2197. +done
  2198. +IFS=$as_save_IFS
  2199. +
  2200. +fi
  2201. +fi
  2202. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  2203. +if test -n "$ac_ct_NMEDIT"; then
  2204. + { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  2205. +$as_echo "$ac_ct_NMEDIT" >&6; }
  2206. +else
  2207. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2208. +$as_echo "no" >&6; }
  2209. +fi
  2210. +
  2211. + if test "x$ac_ct_NMEDIT" = x; then
  2212. + NMEDIT=":"
  2213. + else
  2214. + case $cross_compiling:$ac_tool_warned in
  2215. +yes:)
  2216. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2217. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2218. +ac_tool_warned=yes ;;
  2219. +esac
  2220. + NMEDIT=$ac_ct_NMEDIT
  2221. + fi
  2222. +else
  2223. + NMEDIT="$ac_cv_prog_NMEDIT"
  2224. +fi
  2225. +
  2226. + if test -n "$ac_tool_prefix"; then
  2227. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  2228. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  2229. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2230. +$as_echo_n "checking for $ac_word... " >&6; }
  2231. +if test "${ac_cv_prog_LIPO+set}" = set; then
  2232. + $as_echo_n "(cached) " >&6
  2233. +else
  2234. + if test -n "$LIPO"; then
  2235. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  2236. +else
  2237. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2238. +for as_dir in $PATH
  2239. +do
  2240. + IFS=$as_save_IFS
  2241. + test -z "$as_dir" && as_dir=.
  2242. + for ac_exec_ext in '' $ac_executable_extensions; do
  2243. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2244. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  2245. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2246. + break 2
  2247. + fi
  2248. +done
  2249. +done
  2250. +IFS=$as_save_IFS
  2251. +
  2252. +fi
  2253. +fi
  2254. +LIPO=$ac_cv_prog_LIPO
  2255. +if test -n "$LIPO"; then
  2256. + { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  2257. +$as_echo "$LIPO" >&6; }
  2258. +else
  2259. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2260. +$as_echo "no" >&6; }
  2261. +fi
  2262. +
  2263. +
  2264. +fi
  2265. +if test -z "$ac_cv_prog_LIPO"; then
  2266. + ac_ct_LIPO=$LIPO
  2267. + # Extract the first word of "lipo", so it can be a program name with args.
  2268. +set dummy lipo; ac_word=$2
  2269. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2270. +$as_echo_n "checking for $ac_word... " >&6; }
  2271. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  2272. + $as_echo_n "(cached) " >&6
  2273. +else
  2274. + if test -n "$ac_ct_LIPO"; then
  2275. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  2276. +else
  2277. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2278. +for as_dir in $PATH
  2279. +do
  2280. + IFS=$as_save_IFS
  2281. + test -z "$as_dir" && as_dir=.
  2282. + for ac_exec_ext in '' $ac_executable_extensions; do
  2283. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2284. + ac_cv_prog_ac_ct_LIPO="lipo"
  2285. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2286. + break 2
  2287. + fi
  2288. +done
  2289. +done
  2290. +IFS=$as_save_IFS
  2291. +
  2292. +fi
  2293. +fi
  2294. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  2295. +if test -n "$ac_ct_LIPO"; then
  2296. + { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  2297. +$as_echo "$ac_ct_LIPO" >&6; }
  2298. +else
  2299. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2300. +$as_echo "no" >&6; }
  2301. +fi
  2302. +
  2303. + if test "x$ac_ct_LIPO" = x; then
  2304. + LIPO=":"
  2305. + else
  2306. + case $cross_compiling:$ac_tool_warned in
  2307. +yes:)
  2308. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2309. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2310. +ac_tool_warned=yes ;;
  2311. +esac
  2312. + LIPO=$ac_ct_LIPO
  2313. + fi
  2314. +else
  2315. + LIPO="$ac_cv_prog_LIPO"
  2316. +fi
  2317. +
  2318. + if test -n "$ac_tool_prefix"; then
  2319. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  2320. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  2321. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2322. +$as_echo_n "checking for $ac_word... " >&6; }
  2323. +if test "${ac_cv_prog_OTOOL+set}" = set; then
  2324. + $as_echo_n "(cached) " >&6
  2325. +else
  2326. + if test -n "$OTOOL"; then
  2327. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  2328. +else
  2329. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2330. +for as_dir in $PATH
  2331. +do
  2332. + IFS=$as_save_IFS
  2333. + test -z "$as_dir" && as_dir=.
  2334. + for ac_exec_ext in '' $ac_executable_extensions; do
  2335. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2336. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  2337. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2338. + break 2
  2339. + fi
  2340. +done
  2341. +done
  2342. +IFS=$as_save_IFS
  2343. +
  2344. +fi
  2345. +fi
  2346. +OTOOL=$ac_cv_prog_OTOOL
  2347. +if test -n "$OTOOL"; then
  2348. + { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  2349. +$as_echo "$OTOOL" >&6; }
  2350. +else
  2351. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2352. +$as_echo "no" >&6; }
  2353. +fi
  2354. +
  2355. +
  2356. +fi
  2357. +if test -z "$ac_cv_prog_OTOOL"; then
  2358. + ac_ct_OTOOL=$OTOOL
  2359. + # Extract the first word of "otool", so it can be a program name with args.
  2360. +set dummy otool; ac_word=$2
  2361. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2362. +$as_echo_n "checking for $ac_word... " >&6; }
  2363. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  2364. + $as_echo_n "(cached) " >&6
  2365. +else
  2366. + if test -n "$ac_ct_OTOOL"; then
  2367. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  2368. +else
  2369. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2370. +for as_dir in $PATH
  2371. +do
  2372. + IFS=$as_save_IFS
  2373. + test -z "$as_dir" && as_dir=.
  2374. + for ac_exec_ext in '' $ac_executable_extensions; do
  2375. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2376. + ac_cv_prog_ac_ct_OTOOL="otool"
  2377. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2378. + break 2
  2379. + fi
  2380. +done
  2381. +done
  2382. +IFS=$as_save_IFS
  2383. +
  2384. +fi
  2385. +fi
  2386. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  2387. +if test -n "$ac_ct_OTOOL"; then
  2388. + { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  2389. +$as_echo "$ac_ct_OTOOL" >&6; }
  2390. +else
  2391. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2392. +$as_echo "no" >&6; }
  2393. +fi
  2394. +
  2395. + if test "x$ac_ct_OTOOL" = x; then
  2396. + OTOOL=":"
  2397. + else
  2398. + case $cross_compiling:$ac_tool_warned in
  2399. +yes:)
  2400. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2401. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2402. +ac_tool_warned=yes ;;
  2403. +esac
  2404. + OTOOL=$ac_ct_OTOOL
  2405. + fi
  2406. +else
  2407. + OTOOL="$ac_cv_prog_OTOOL"
  2408. +fi
  2409. +
  2410. + if test -n "$ac_tool_prefix"; then
  2411. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  2412. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  2413. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2414. +$as_echo_n "checking for $ac_word... " >&6; }
  2415. +if test "${ac_cv_prog_OTOOL64+set}" = set; then
  2416. + $as_echo_n "(cached) " >&6
  2417. +else
  2418. + if test -n "$OTOOL64"; then
  2419. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  2420. +else
  2421. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2422. +for as_dir in $PATH
  2423. +do
  2424. + IFS=$as_save_IFS
  2425. + test -z "$as_dir" && as_dir=.
  2426. + for ac_exec_ext in '' $ac_executable_extensions; do
  2427. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2428. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  2429. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2430. + break 2
  2431. + fi
  2432. +done
  2433. +done
  2434. +IFS=$as_save_IFS
  2435. +
  2436. +fi
  2437. +fi
  2438. +OTOOL64=$ac_cv_prog_OTOOL64
  2439. +if test -n "$OTOOL64"; then
  2440. + { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  2441. +$as_echo "$OTOOL64" >&6; }
  2442. +else
  2443. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2444. +$as_echo "no" >&6; }
  2445. +fi
  2446. +
  2447. +
  2448. +fi
  2449. +if test -z "$ac_cv_prog_OTOOL64"; then
  2450. + ac_ct_OTOOL64=$OTOOL64
  2451. + # Extract the first word of "otool64", so it can be a program name with args.
  2452. +set dummy otool64; ac_word=$2
  2453. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2454. +$as_echo_n "checking for $ac_word... " >&6; }
  2455. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  2456. + $as_echo_n "(cached) " >&6
  2457. +else
  2458. + if test -n "$ac_ct_OTOOL64"; then
  2459. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  2460. +else
  2461. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2462. +for as_dir in $PATH
  2463. +do
  2464. + IFS=$as_save_IFS
  2465. + test -z "$as_dir" && as_dir=.
  2466. + for ac_exec_ext in '' $ac_executable_extensions; do
  2467. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2468. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  2469. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2470. + break 2
  2471. + fi
  2472. +done
  2473. +done
  2474. +IFS=$as_save_IFS
  2475. +
  2476. +fi
  2477. +fi
  2478. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  2479. +if test -n "$ac_ct_OTOOL64"; then
  2480. + { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  2481. +$as_echo "$ac_ct_OTOOL64" >&6; }
  2482. +else
  2483. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2484. +$as_echo "no" >&6; }
  2485. +fi
  2486. +
  2487. + if test "x$ac_ct_OTOOL64" = x; then
  2488. + OTOOL64=":"
  2489. + else
  2490. + case $cross_compiling:$ac_tool_warned in
  2491. +yes:)
  2492. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2493. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2494. +ac_tool_warned=yes ;;
  2495. +esac
  2496. + OTOOL64=$ac_ct_OTOOL64
  2497. + fi
  2498. +else
  2499. + OTOOL64="$ac_cv_prog_OTOOL64"
  2500. +fi
  2501. +
  2502. +
  2503. +
  2504. +
  2505. +
  2506. +
  2507. +
  2508. +
  2509. +
  2510. +
  2511. +
  2512. +
  2513. +
  2514. +
  2515. +
  2516. +
  2517. +
  2518. +
  2519. +
  2520. +
  2521. +
  2522. +
  2523. +
  2524. +
  2525. +
  2526. +
  2527. +
  2528. + { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  2529. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  2530. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  2531. + $as_echo_n "(cached) " >&6
  2532. +else
  2533. + lt_cv_apple_cc_single_mod=no
  2534. + if test -z "${LT_MULTI_MODULE}"; then
  2535. + # By default we will add the -single_module flag. You can override
  2536. + # by either setting the environment variable LT_MULTI_MODULE
  2537. + # non-empty at configure time, or by adding -multi_module to the
  2538. + # link flags.
  2539. + rm -rf libconftest.dylib*
  2540. + echo "int foo(void){return 1;}" > conftest.c
  2541. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  2542. +-dynamiclib -Wl,-single_module conftest.c" >&5
  2543. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  2544. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  2545. + _lt_result=$?
  2546. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  2547. + lt_cv_apple_cc_single_mod=yes
  2548. + else
  2549. + cat conftest.err >&5
  2550. + fi
  2551. + rm -rf libconftest.dylib*
  2552. + rm -f conftest.*
  2553. + fi
  2554. +fi
  2555. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  2556. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  2557. + { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  2558. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  2559. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  2560. + $as_echo_n "(cached) " >&6
  2561. +else
  2562. + lt_cv_ld_exported_symbols_list=no
  2563. + save_LDFLAGS=$LDFLAGS
  2564. + echo "_main" > conftest.sym
  2565. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  2566. + cat >conftest.$ac_ext <<_ACEOF
  2567. +/* confdefs.h. */
  2568. +_ACEOF
  2569. +cat confdefs.h >>conftest.$ac_ext
  2570. +cat >>conftest.$ac_ext <<_ACEOF
  2571. +/* end confdefs.h. */
  2572. +
  2573. +int
  2574. +main ()
  2575. +{
  2576. +
  2577. + ;
  2578. + return 0;
  2579. +}
  2580. +_ACEOF
  2581. +rm -f conftest.$ac_objext conftest$ac_exeext
  2582. +if { (ac_try="$ac_link"
  2583. +case "(($ac_try" in
  2584. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2585. + *) ac_try_echo=$ac_try;;
  2586. +esac
  2587. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2588. +$as_echo "$ac_try_echo") >&5
  2589. + (eval "$ac_link") 2>conftest.er1
  2590. + ac_status=$?
  2591. + grep -v '^ *+' conftest.er1 >conftest.err
  2592. + rm -f conftest.er1
  2593. + cat conftest.err >&5
  2594. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2595. + (exit $ac_status); } && {
  2596. + test -z "$ac_c_werror_flag" ||
  2597. + test ! -s conftest.err
  2598. + } && test -s conftest$ac_exeext && {
  2599. + test "$cross_compiling" = yes ||
  2600. + $as_test_x conftest$ac_exeext
  2601. + }; then
  2602. + lt_cv_ld_exported_symbols_list=yes
  2603. +else
  2604. + $as_echo "$as_me: failed program was:" >&5
  2605. +sed 's/^/| /' conftest.$ac_ext >&5
  2606. +
  2607. + lt_cv_ld_exported_symbols_list=no
  2608. +fi
  2609. +
  2610. +rm -rf conftest.dSYM
  2611. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2612. + conftest$ac_exeext conftest.$ac_ext
  2613. + LDFLAGS="$save_LDFLAGS"
  2614. +
  2615. +fi
  2616. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  2617. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  2618. + case $host_os in
  2619. + rhapsody* | darwin1.[012])
  2620. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  2621. + darwin1.*)
  2622. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  2623. + darwin*) # darwin 5.x on
  2624. + # if running on 10.5 or later, the deployment target defaults
  2625. + # to the OS version, if on x86, and 10.4, the deployment
  2626. + # target defaults to 10.4. Don't you love it?
  2627. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  2628. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  2629. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  2630. + 10.[012]*)
  2631. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  2632. + 10.*)
  2633. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  2634. + esac
  2635. + ;;
  2636. + esac
  2637. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  2638. + _lt_dar_single_mod='$single_module'
  2639. + fi
  2640. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  2641. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  2642. + else
  2643. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  2644. + fi
  2645. + if test "$DSYMUTIL" != ":"; then
  2646. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  2647. + else
  2648. + _lt_dsymutil=
  2649. + fi
  2650. + ;;
  2651. + esac
  2652. ac_ext=c
  2653. ac_cpp='$CPP $CPPFLAGS'
  2654. @@ -6215,27 +7940,19 @@ done
  2655. for ac_header in dlfcn.h
  2656. do
  2657. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2658. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2659. - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  2660. +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  2661. $as_echo_n "checking for $ac_header... " >&6; }
  2662. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2663. $as_echo_n "(cached) " >&6
  2664. -fi
  2665. -ac_res=`eval 'as_val=${'$as_ac_Header'}
  2666. - $as_echo "$as_val"'`
  2667. - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  2668. -$as_echo "$ac_res" >&6; }
  2669. else
  2670. - # Is the header compilable?
  2671. -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  2672. -$as_echo_n "checking $ac_header usability... " >&6; }
  2673. -cat >conftest.$ac_ext <<_ACEOF
  2674. + cat >conftest.$ac_ext <<_ACEOF
  2675. /* confdefs.h. */
  2676. _ACEOF
  2677. cat confdefs.h >>conftest.$ac_ext
  2678. cat >>conftest.$ac_ext <<_ACEOF
  2679. /* end confdefs.h. */
  2680. $ac_includes_default
  2681. +
  2682. #include <$ac_header>
  2683. _ACEOF
  2684. rm -f conftest.$ac_objext
  2685. @@ -6256,96 +7973,20 @@ $as_echo "$ac_try_echo") >&5
  2686. test -z "$ac_c_werror_flag" ||
  2687. test ! -s conftest.err
  2688. } && test -s conftest.$ac_objext; then
  2689. - ac_header_compiler=yes
  2690. + eval "$as_ac_Header=yes"
  2691. else
  2692. $as_echo "$as_me: failed program was:" >&5
  2693. sed 's/^/| /' conftest.$ac_ext >&5
  2694. - ac_header_compiler=no
  2695. + eval "$as_ac_Header=no"
  2696. fi
  2697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2698. -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2699. -$as_echo "$ac_header_compiler" >&6; }
  2700. -
  2701. -# Is the header present?
  2702. -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  2703. -$as_echo_n "checking $ac_header presence... " >&6; }
  2704. -cat >conftest.$ac_ext <<_ACEOF
  2705. -/* confdefs.h. */
  2706. -_ACEOF
  2707. -cat confdefs.h >>conftest.$ac_ext
  2708. -cat >>conftest.$ac_ext <<_ACEOF
  2709. -/* end confdefs.h. */
  2710. -#include <$ac_header>
  2711. -_ACEOF
  2712. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  2713. -case "(($ac_try" in
  2714. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2715. - *) ac_try_echo=$ac_try;;
  2716. -esac
  2717. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2718. -$as_echo "$ac_try_echo") >&5
  2719. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2720. - ac_status=$?
  2721. - grep -v '^ *+' conftest.er1 >conftest.err
  2722. - rm -f conftest.er1
  2723. - cat conftest.err >&5
  2724. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2725. - (exit $ac_status); } >/dev/null && {
  2726. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2727. - test ! -s conftest.err
  2728. - }; then
  2729. - ac_header_preproc=yes
  2730. -else
  2731. - $as_echo "$as_me: failed program was:" >&5
  2732. -sed 's/^/| /' conftest.$ac_ext >&5
  2733. -
  2734. - ac_header_preproc=no
  2735. -fi
  2736. -
  2737. -rm -f conftest.err conftest.$ac_ext
  2738. -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2739. -$as_echo "$ac_header_preproc" >&6; }
  2740. -
  2741. -# So? What about this header?
  2742. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2743. - yes:no: )
  2744. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  2745. -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2746. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  2747. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  2748. - ac_header_preproc=yes
  2749. - ;;
  2750. - no:yes:* )
  2751. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  2752. -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  2753. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  2754. -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  2755. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  2756. -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  2757. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  2758. -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  2759. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  2760. -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  2761. - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  2762. -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  2763. -
  2764. - ;;
  2765. -esac
  2766. -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  2767. -$as_echo_n "checking for $ac_header... " >&6; }
  2768. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2769. - $as_echo_n "(cached) " >&6
  2770. -else
  2771. - eval "$as_ac_Header=\$ac_header_preproc"
  2772. fi
  2773. ac_res=`eval 'as_val=${'$as_ac_Header'}
  2774. $as_echo "$as_val"'`
  2775. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  2776. $as_echo "$ac_res" >&6; }
  2777. -
  2778. -fi
  2779. as_val=`eval 'as_val=${'$as_ac_Header'}
  2780. $as_echo "$as_val"'`
  2781. if test "x$as_val" = x""yes; then
  2782. @@ -6357,1330 +7998,177 @@ fi
  2783. done
  2784. -ac_ext=cpp
  2785. -ac_cpp='$CXXCPP $CPPFLAGS'
  2786. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2787. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2788. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2789. -if test -z "$CXX"; then
  2790. - if test -n "$CCC"; then
  2791. - CXX=$CCC
  2792. - else
  2793. - if test -n "$ac_tool_prefix"; then
  2794. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2795. - do
  2796. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2797. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2798. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2799. -$as_echo_n "checking for $ac_word... " >&6; }
  2800. -if test "${ac_cv_prog_CXX+set}" = set; then
  2801. - $as_echo_n "(cached) " >&6
  2802. -else
  2803. - if test -n "$CXX"; then
  2804. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2805. -else
  2806. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2807. -for as_dir in $PATH
  2808. -do
  2809. - IFS=$as_save_IFS
  2810. - test -z "$as_dir" && as_dir=.
  2811. - for ac_exec_ext in '' $ac_executable_extensions; do
  2812. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2813. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2814. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2815. - break 2
  2816. - fi
  2817. -done
  2818. -done
  2819. -IFS=$as_save_IFS
  2820. -
  2821. -fi
  2822. -fi
  2823. -CXX=$ac_cv_prog_CXX
  2824. -if test -n "$CXX"; then
  2825. - { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2826. -$as_echo "$CXX" >&6; }
  2827. -else
  2828. - { $as_echo "$as_me:$LINENO: result: no" >&5
  2829. -$as_echo "no" >&6; }
  2830. -fi
  2831. -
  2832. -
  2833. - test -n "$CXX" && break
  2834. - done
  2835. -fi
  2836. -if test -z "$CXX"; then
  2837. - ac_ct_CXX=$CXX
  2838. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2839. -do
  2840. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  2841. -set dummy $ac_prog; ac_word=$2
  2842. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2843. -$as_echo_n "checking for $ac_word... " >&6; }
  2844. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2845. - $as_echo_n "(cached) " >&6
  2846. -else
  2847. - if test -n "$ac_ct_CXX"; then
  2848. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2849. -else
  2850. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2851. -for as_dir in $PATH
  2852. -do
  2853. - IFS=$as_save_IFS
  2854. - test -z "$as_dir" && as_dir=.
  2855. - for ac_exec_ext in '' $ac_executable_extensions; do
  2856. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2857. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  2858. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2859. - break 2
  2860. - fi
  2861. -done
  2862. -done
  2863. -IFS=$as_save_IFS
  2864. -fi
  2865. -fi
  2866. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2867. -if test -n "$ac_ct_CXX"; then
  2868. - { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2869. -$as_echo "$ac_ct_CXX" >&6; }
  2870. -else
  2871. - { $as_echo "$as_me:$LINENO: result: no" >&5
  2872. -$as_echo "no" >&6; }
  2873. -fi
  2874. +# Set options
  2875. - test -n "$ac_ct_CXX" && break
  2876. -done
  2877. - if test "x$ac_ct_CXX" = x; then
  2878. - CXX="g++"
  2879. - else
  2880. - case $cross_compiling:$ac_tool_warned in
  2881. -yes:)
  2882. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2883. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2884. -ac_tool_warned=yes ;;
  2885. -esac
  2886. - CXX=$ac_ct_CXX
  2887. - fi
  2888. -fi
  2889. - fi
  2890. -fi
  2891. -# Provide some information about the compiler.
  2892. -$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2893. -set X $ac_compile
  2894. -ac_compiler=$2
  2895. -{ (ac_try="$ac_compiler --version >&5"
  2896. -case "(($ac_try" in
  2897. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2898. - *) ac_try_echo=$ac_try;;
  2899. -esac
  2900. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2901. -$as_echo "$ac_try_echo") >&5
  2902. - (eval "$ac_compiler --version >&5") 2>&5
  2903. - ac_status=$?
  2904. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2905. - (exit $ac_status); }
  2906. -{ (ac_try="$ac_compiler -v >&5"
  2907. -case "(($ac_try" in
  2908. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2909. - *) ac_try_echo=$ac_try;;
  2910. -esac
  2911. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2912. -$as_echo "$ac_try_echo") >&5
  2913. - (eval "$ac_compiler -v >&5") 2>&5
  2914. - ac_status=$?
  2915. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2916. - (exit $ac_status); }
  2917. -{ (ac_try="$ac_compiler -V >&5"
  2918. -case "(($ac_try" in
  2919. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2920. - *) ac_try_echo=$ac_try;;
  2921. -esac
  2922. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2923. -$as_echo "$ac_try_echo") >&5
  2924. - (eval "$ac_compiler -V >&5") 2>&5
  2925. - ac_status=$?
  2926. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2927. - (exit $ac_status); }
  2928. -
  2929. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2930. -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2931. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2932. - $as_echo_n "(cached) " >&6
  2933. -else
  2934. - cat >conftest.$ac_ext <<_ACEOF
  2935. -/* confdefs.h. */
  2936. -_ACEOF
  2937. -cat confdefs.h >>conftest.$ac_ext
  2938. -cat >>conftest.$ac_ext <<_ACEOF
  2939. -/* end confdefs.h. */
  2940. + enable_dlopen=no
  2941. -int
  2942. -main ()
  2943. -{
  2944. -#ifndef __GNUC__
  2945. - choke me
  2946. -#endif
  2947. - ;
  2948. - return 0;
  2949. -}
  2950. -_ACEOF
  2951. -rm -f conftest.$ac_objext
  2952. -if { (ac_try="$ac_compile"
  2953. -case "(($ac_try" in
  2954. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2955. - *) ac_try_echo=$ac_try;;
  2956. -esac
  2957. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2958. -$as_echo "$ac_try_echo") >&5
  2959. - (eval "$ac_compile") 2>conftest.er1
  2960. - ac_status=$?
  2961. - grep -v '^ *+' conftest.er1 >conftest.err
  2962. - rm -f conftest.er1
  2963. - cat conftest.err >&5
  2964. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2965. - (exit $ac_status); } && {
  2966. - test -z "$ac_cxx_werror_flag" ||
  2967. - test ! -s conftest.err
  2968. - } && test -s conftest.$ac_objext; then
  2969. - ac_compiler_gnu=yes
  2970. -else
  2971. - $as_echo "$as_me: failed program was:" >&5
  2972. -sed 's/^/| /' conftest.$ac_ext >&5
  2973. -
  2974. - ac_compiler_gnu=no
  2975. -fi
  2976. + enable_win32_dll=no
  2977. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2978. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2979. -fi
  2980. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2981. -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2982. -if test $ac_compiler_gnu = yes; then
  2983. - GXX=yes
  2984. + # Check whether --enable-shared was given.
  2985. +if test "${enable_shared+set}" = set; then
  2986. + enableval=$enable_shared; p=${PACKAGE-default}
  2987. + case $enableval in
  2988. + yes) enable_shared=yes ;;
  2989. + no) enable_shared=no ;;
  2990. + *)
  2991. + enable_shared=no
  2992. + # Look at the argument we got. We use all the common list separators.
  2993. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2994. + for pkg in $enableval; do
  2995. + IFS="$lt_save_ifs"
  2996. + if test "X$pkg" = "X$p"; then
  2997. + enable_shared=yes
  2998. + fi
  2999. + done
  3000. + IFS="$lt_save_ifs"
  3001. + ;;
  3002. + esac
  3003. else
  3004. - GXX=
  3005. + enable_shared=yes
  3006. fi
  3007. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  3008. -ac_save_CXXFLAGS=$CXXFLAGS
  3009. -{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3010. -$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3011. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  3012. - $as_echo_n "(cached) " >&6
  3013. -else
  3014. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3015. - ac_cxx_werror_flag=yes
  3016. - ac_cv_prog_cxx_g=no
  3017. - CXXFLAGS="-g"
  3018. - cat >conftest.$ac_ext <<_ACEOF
  3019. -/* confdefs.h. */
  3020. -_ACEOF
  3021. -cat confdefs.h >>conftest.$ac_ext
  3022. -cat >>conftest.$ac_ext <<_ACEOF
  3023. -/* end confdefs.h. */
  3024. -
  3025. -int
  3026. -main ()
  3027. -{
  3028. -
  3029. - ;
  3030. - return 0;
  3031. -}
  3032. -_ACEOF
  3033. -rm -f conftest.$ac_objext
  3034. -if { (ac_try="$ac_compile"
  3035. -case "(($ac_try" in
  3036. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3037. - *) ac_try_echo=$ac_try;;
  3038. -esac
  3039. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3040. -$as_echo "$ac_try_echo") >&5
  3041. - (eval "$ac_compile") 2>conftest.er1
  3042. - ac_status=$?
  3043. - grep -v '^ *+' conftest.er1 >conftest.err
  3044. - rm -f conftest.er1
  3045. - cat conftest.err >&5
  3046. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3047. - (exit $ac_status); } && {
  3048. - test -z "$ac_cxx_werror_flag" ||
  3049. - test ! -s conftest.err
  3050. - } && test -s conftest.$ac_objext; then
  3051. - ac_cv_prog_cxx_g=yes
  3052. -else
  3053. - $as_echo "$as_me: failed program was:" >&5
  3054. -sed 's/^/| /' conftest.$ac_ext >&5
  3055. -
  3056. - CXXFLAGS=""
  3057. - cat >conftest.$ac_ext <<_ACEOF
  3058. -/* confdefs.h. */
  3059. -_ACEOF
  3060. -cat confdefs.h >>conftest.$ac_ext
  3061. -cat >>conftest.$ac_ext <<_ACEOF
  3062. -/* end confdefs.h. */
  3063. -
  3064. -int
  3065. -main ()
  3066. -{
  3067. - ;
  3068. - return 0;
  3069. -}
  3070. -_ACEOF
  3071. -rm -f conftest.$ac_objext
  3072. -if { (ac_try="$ac_compile"
  3073. -case "(($ac_try" in
  3074. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3075. - *) ac_try_echo=$ac_try;;
  3076. -esac
  3077. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3078. -$as_echo "$ac_try_echo") >&5
  3079. - (eval "$ac_compile") 2>conftest.er1
  3080. - ac_status=$?
  3081. - grep -v '^ *+' conftest.er1 >conftest.err
  3082. - rm -f conftest.er1
  3083. - cat conftest.err >&5
  3084. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3085. - (exit $ac_status); } && {
  3086. - test -z "$ac_cxx_werror_flag" ||
  3087. - test ! -s conftest.err
  3088. - } && test -s conftest.$ac_objext; then
  3089. - :
  3090. -else
  3091. - $as_echo "$as_me: failed program was:" >&5
  3092. -sed 's/^/| /' conftest.$ac_ext >&5
  3093. -
  3094. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3095. - CXXFLAGS="-g"
  3096. - cat >conftest.$ac_ext <<_ACEOF
  3097. -/* confdefs.h. */
  3098. -_ACEOF
  3099. -cat confdefs.h >>conftest.$ac_ext
  3100. -cat >>conftest.$ac_ext <<_ACEOF
  3101. -/* end confdefs.h. */
  3102. -int
  3103. -main ()
  3104. -{
  3105. - ;
  3106. - return 0;
  3107. -}
  3108. -_ACEOF
  3109. -rm -f conftest.$ac_objext
  3110. -if { (ac_try="$ac_compile"
  3111. -case "(($ac_try" in
  3112. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3113. - *) ac_try_echo=$ac_try;;
  3114. -esac
  3115. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3116. -$as_echo "$ac_try_echo") >&5
  3117. - (eval "$ac_compile") 2>conftest.er1
  3118. - ac_status=$?
  3119. - grep -v '^ *+' conftest.er1 >conftest.err
  3120. - rm -f conftest.er1
  3121. - cat conftest.err >&5
  3122. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3123. - (exit $ac_status); } && {
  3124. - test -z "$ac_cxx_werror_flag" ||
  3125. - test ! -s conftest.err
  3126. - } && test -s conftest.$ac_objext; then
  3127. - ac_cv_prog_cxx_g=yes
  3128. -else
  3129. - $as_echo "$as_me: failed program was:" >&5
  3130. -sed 's/^/| /' conftest.$ac_ext >&5
  3131. -fi
  3132. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3133. -fi
  3134. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3135. -fi
  3136. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3137. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3138. -fi
  3139. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3140. -$as_echo "$ac_cv_prog_cxx_g" >&6; }
  3141. -if test "$ac_test_CXXFLAGS" = set; then
  3142. - CXXFLAGS=$ac_save_CXXFLAGS
  3143. -elif test $ac_cv_prog_cxx_g = yes; then
  3144. - if test "$GXX" = yes; then
  3145. - CXXFLAGS="-g -O2"
  3146. - else
  3147. - CXXFLAGS="-g"
  3148. - fi
  3149. -else
  3150. - if test "$GXX" = yes; then
  3151. - CXXFLAGS="-O2"
  3152. - else
  3153. - CXXFLAGS=
  3154. - fi
  3155. -fi
  3156. -ac_ext=cpp
  3157. -ac_cpp='$CXXCPP $CPPFLAGS'
  3158. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3159. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3160. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3161. -depcc="$CXX" am_compiler_list=
  3162. -
  3163. -{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3164. -$as_echo_n "checking dependency style of $depcc... " >&6; }
  3165. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3166. - $as_echo_n "(cached) " >&6
  3167. -else
  3168. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3169. - # We make a subdir and do the tests there. Otherwise we can end up
  3170. - # making bogus files that we don't know about and never remove. For
  3171. - # instance it was reported that on HP-UX the gcc test will end up
  3172. - # making a dummy file named `D' -- because `-MD' means `put the output
  3173. - # in D'.
  3174. - mkdir conftest.dir
  3175. - # Copy depcomp to subdir because otherwise we won't find it if we're
  3176. - # using a relative directory.
  3177. - cp "$am_depcomp" conftest.dir
  3178. - cd conftest.dir
  3179. - # We will build objects and dependencies in a subdirectory because
  3180. - # it helps to detect inapplicable dependency modes. For instance
  3181. - # both Tru64's cc and ICC support -MD to output dependencies as a
  3182. - # side effect of compilation, but ICC will put the dependencies in
  3183. - # the current directory while Tru64 will put them in the object
  3184. - # directory.
  3185. - mkdir sub
  3186. -
  3187. - am_cv_CXX_dependencies_compiler_type=none
  3188. - if test "$am_compiler_list" = ""; then
  3189. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3190. - fi
  3191. - for depmode in $am_compiler_list; do
  3192. - # Setup a source with many dependencies, because some compilers
  3193. - # like to wrap large dependency lists on column 80 (with \), and
  3194. - # we should not choose a depcomp mode which is confused by this.
  3195. - #
  3196. - # We need to recreate these files for each test, as the compiler may
  3197. - # overwrite some of them when testing with obscure command lines.
  3198. - # This happens at least with the AIX C compiler.
  3199. - : > sub/conftest.c
  3200. - for i in 1 2 3 4 5 6; do
  3201. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3202. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3203. - # Solaris 8's {/usr,}/bin/sh.
  3204. - touch sub/conftst$i.h
  3205. - done
  3206. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3207. -
  3208. - case $depmode in
  3209. - nosideeffect)
  3210. - # after this tag, mechanisms are not by side-effect, so they'll
  3211. - # only be used when explicitly requested
  3212. - if test "x$enable_dependency_tracking" = xyes; then
  3213. - continue
  3214. - else
  3215. - break
  3216. - fi
  3217. + # Check whether --enable-static was given.
  3218. +if test "${enable_static+set}" = set; then
  3219. + enableval=$enable_static; p=${PACKAGE-default}
  3220. + case $enableval in
  3221. + yes) enable_static=yes ;;
  3222. + no) enable_static=no ;;
  3223. + *)
  3224. + enable_static=no
  3225. + # Look at the argument we got. We use all the common list separators.
  3226. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3227. + for pkg in $enableval; do
  3228. + IFS="$lt_save_ifs"
  3229. + if test "X$pkg" = "X$p"; then
  3230. + enable_static=yes
  3231. + fi
  3232. + done
  3233. + IFS="$lt_save_ifs"
  3234. ;;
  3235. - none) break ;;
  3236. esac
  3237. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3238. - # mode. It turns out that the SunPro C++ compiler does not properly
  3239. - # handle `-M -o', and we need to detect this.
  3240. - if depmode=$depmode \
  3241. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3242. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3243. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3244. - >/dev/null 2>conftest.err &&
  3245. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3246. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3247. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3248. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3249. - # icc doesn't choke on unknown options, it will just issue warnings
  3250. - # or remarks (even with -Werror). So we grep stderr for any message
  3251. - # that says an option was ignored or not supported.
  3252. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  3253. - # icc: Command line warning: ignoring option '-M'; no argument required
  3254. - # The diagnosis changed in icc 8.0:
  3255. - # icc: Command line remark: option '-MP' not supported
  3256. - if (grep 'ignoring option' conftest.err ||
  3257. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3258. - am_cv_CXX_dependencies_compiler_type=$depmode
  3259. - break
  3260. - fi
  3261. - fi
  3262. - done
  3263. -
  3264. - cd ..
  3265. - rm -rf conftest.dir
  3266. else
  3267. - am_cv_CXX_dependencies_compiler_type=none
  3268. -fi
  3269. -
  3270. -fi
  3271. -{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3272. -$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3273. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3274. -
  3275. - if
  3276. - test "x$enable_dependency_tracking" != xno \
  3277. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3278. - am__fastdepCXX_TRUE=
  3279. - am__fastdepCXX_FALSE='#'
  3280. -else
  3281. - am__fastdepCXX_TRUE='#'
  3282. - am__fastdepCXX_FALSE=
  3283. -fi
  3284. -
  3285. -
  3286. -
  3287. -
  3288. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3289. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3290. - (test "X$CXX" != "Xg++"))) ; then
  3291. - ac_ext=cpp
  3292. -ac_cpp='$CXXCPP $CPPFLAGS'
  3293. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3294. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3295. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3296. -{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  3297. -$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  3298. -if test -z "$CXXCPP"; then
  3299. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  3300. - $as_echo_n "(cached) " >&6
  3301. -else
  3302. - # Double quotes because CXXCPP needs to be expanded
  3303. - for CXXCPP in "$CXX -E" "/lib/cpp"
  3304. - do
  3305. - ac_preproc_ok=false
  3306. -for ac_cxx_preproc_warn_flag in '' yes
  3307. -do
  3308. - # Use a header file that comes with gcc, so configuring glibc
  3309. - # with a fresh cross-compiler works.
  3310. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3311. - # <limits.h> exists even on freestanding compilers.
  3312. - # On the NeXT, cc -E runs the code through the compiler's parser,
  3313. - # not just through cpp. "Syntax error" is here to catch this case.
  3314. - cat >conftest.$ac_ext <<_ACEOF
  3315. -/* confdefs.h. */
  3316. -_ACEOF
  3317. -cat confdefs.h >>conftest.$ac_ext
  3318. -cat >>conftest.$ac_ext <<_ACEOF
  3319. -/* end confdefs.h. */
  3320. -#ifdef __STDC__
  3321. -# include <limits.h>
  3322. -#else
  3323. -# include <assert.h>
  3324. -#endif
  3325. - Syntax error
  3326. -_ACEOF
  3327. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  3328. -case "(($ac_try" in
  3329. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3330. - *) ac_try_echo=$ac_try;;
  3331. -esac
  3332. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3333. -$as_echo "$ac_try_echo") >&5
  3334. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3335. - ac_status=$?
  3336. - grep -v '^ *+' conftest.er1 >conftest.err
  3337. - rm -f conftest.er1
  3338. - cat conftest.err >&5
  3339. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3340. - (exit $ac_status); } >/dev/null && {
  3341. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3342. - test ! -s conftest.err
  3343. - }; then
  3344. - :
  3345. -else
  3346. - $as_echo "$as_me: failed program was:" >&5
  3347. -sed 's/^/| /' conftest.$ac_ext >&5
  3348. -
  3349. - # Broken: fails on valid input.
  3350. -continue
  3351. + enable_static=yes
  3352. fi
  3353. -rm -f conftest.err conftest.$ac_ext
  3354. - # OK, works on sane cases. Now check whether nonexistent headers
  3355. - # can be detected and how.
  3356. - cat >conftest.$ac_ext <<_ACEOF
  3357. -/* confdefs.h. */
  3358. -_ACEOF
  3359. -cat confdefs.h >>conftest.$ac_ext
  3360. -cat >>conftest.$ac_ext <<_ACEOF
  3361. -/* end confdefs.h. */
  3362. -#include <ac_nonexistent.h>
  3363. -_ACEOF
  3364. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  3365. -case "(($ac_try" in
  3366. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3367. - *) ac_try_echo=$ac_try;;
  3368. -esac
  3369. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3370. -$as_echo "$ac_try_echo") >&5
  3371. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3372. - ac_status=$?
  3373. - grep -v '^ *+' conftest.er1 >conftest.err
  3374. - rm -f conftest.er1
  3375. - cat conftest.err >&5
  3376. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3377. - (exit $ac_status); } >/dev/null && {
  3378. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3379. - test ! -s conftest.err
  3380. - }; then
  3381. - # Broken: success on invalid input.
  3382. -continue
  3383. -else
  3384. - $as_echo "$as_me: failed program was:" >&5
  3385. -sed 's/^/| /' conftest.$ac_ext >&5
  3386. - # Passes both tests.
  3387. -ac_preproc_ok=:
  3388. -break
  3389. -fi
  3390. -rm -f conftest.err conftest.$ac_ext
  3391. -done
  3392. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3393. -rm -f conftest.err conftest.$ac_ext
  3394. -if $ac_preproc_ok; then
  3395. - break
  3396. -fi
  3397. - done
  3398. - ac_cv_prog_CXXCPP=$CXXCPP
  3399. -fi
  3400. - CXXCPP=$ac_cv_prog_CXXCPP
  3401. -else
  3402. - ac_cv_prog_CXXCPP=$CXXCPP
  3403. -fi
  3404. -{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  3405. -$as_echo "$CXXCPP" >&6; }
  3406. -ac_preproc_ok=false
  3407. -for ac_cxx_preproc_warn_flag in '' yes
  3408. -do
  3409. - # Use a header file that comes with gcc, so configuring glibc
  3410. - # with a fresh cross-compiler works.
  3411. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3412. - # <limits.h> exists even on freestanding compilers.
  3413. - # On the NeXT, cc -E runs the code through the compiler's parser,
  3414. - # not just through cpp. "Syntax error" is here to catch this case.
  3415. - cat >conftest.$ac_ext <<_ACEOF
  3416. -/* confdefs.h. */
  3417. -_ACEOF
  3418. -cat confdefs.h >>conftest.$ac_ext
  3419. -cat >>conftest.$ac_ext <<_ACEOF
  3420. -/* end confdefs.h. */
  3421. -#ifdef __STDC__
  3422. -# include <limits.h>
  3423. -#else
  3424. -# include <assert.h>
  3425. -#endif
  3426. - Syntax error
  3427. -_ACEOF
  3428. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  3429. -case "(($ac_try" in
  3430. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3431. - *) ac_try_echo=$ac_try;;
  3432. -esac
  3433. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3434. -$as_echo "$ac_try_echo") >&5
  3435. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3436. - ac_status=$?
  3437. - grep -v '^ *+' conftest.er1 >conftest.err
  3438. - rm -f conftest.er1
  3439. - cat conftest.err >&5
  3440. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3441. - (exit $ac_status); } >/dev/null && {
  3442. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3443. - test ! -s conftest.err
  3444. - }; then
  3445. - :
  3446. -else
  3447. - $as_echo "$as_me: failed program was:" >&5
  3448. -sed 's/^/| /' conftest.$ac_ext >&5
  3449. - # Broken: fails on valid input.
  3450. -continue
  3451. -fi
  3452. -rm -f conftest.err conftest.$ac_ext
  3453. - # OK, works on sane cases. Now check whether nonexistent headers
  3454. - # can be detected and how.
  3455. - cat >conftest.$ac_ext <<_ACEOF
  3456. -/* confdefs.h. */
  3457. -_ACEOF
  3458. -cat confdefs.h >>conftest.$ac_ext
  3459. -cat >>conftest.$ac_ext <<_ACEOF
  3460. -/* end confdefs.h. */
  3461. -#include <ac_nonexistent.h>
  3462. -_ACEOF
  3463. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  3464. -case "(($ac_try" in
  3465. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3466. - *) ac_try_echo=$ac_try;;
  3467. -esac
  3468. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3469. -$as_echo "$ac_try_echo") >&5
  3470. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3471. - ac_status=$?
  3472. - grep -v '^ *+' conftest.er1 >conftest.err
  3473. - rm -f conftest.er1
  3474. - cat conftest.err >&5
  3475. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3476. - (exit $ac_status); } >/dev/null && {
  3477. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3478. - test ! -s conftest.err
  3479. - }; then
  3480. - # Broken: success on invalid input.
  3481. -continue
  3482. +# Check whether --with-pic was given.
  3483. +if test "${with_pic+set}" = set; then
  3484. + withval=$with_pic; pic_mode="$withval"
  3485. else
  3486. - $as_echo "$as_me: failed program was:" >&5
  3487. -sed 's/^/| /' conftest.$ac_ext >&5
  3488. -
  3489. - # Passes both tests.
  3490. -ac_preproc_ok=:
  3491. -break
  3492. + pic_mode=default
  3493. fi
  3494. -rm -f conftest.err conftest.$ac_ext
  3495. -done
  3496. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3497. -rm -f conftest.err conftest.$ac_ext
  3498. -if $ac_preproc_ok; then
  3499. - :
  3500. -else
  3501. - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3502. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3503. -{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  3504. -See \`config.log' for more details." >&5
  3505. -$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  3506. -See \`config.log' for more details." >&2;}
  3507. - { (exit 1); exit 1; }; }; }
  3508. -fi
  3509. -
  3510. -ac_ext=cpp
  3511. -ac_cpp='$CXXCPP $CPPFLAGS'
  3512. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3513. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3514. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3515. +test -z "$pic_mode" && pic_mode=default
  3516. -fi
  3517. -ac_ext=f
  3518. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  3519. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3520. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  3521. -if test -n "$ac_tool_prefix"; then
  3522. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  3523. - do
  3524. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3525. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3526. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3527. -$as_echo_n "checking for $ac_word... " >&6; }
  3528. -if test "${ac_cv_prog_F77+set}" = set; then
  3529. - $as_echo_n "(cached) " >&6
  3530. -else
  3531. - if test -n "$F77"; then
  3532. - ac_cv_prog_F77="$F77" # Let the user override the test.
  3533. -else
  3534. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3535. -for as_dir in $PATH
  3536. -do
  3537. - IFS=$as_save_IFS
  3538. - test -z "$as_dir" && as_dir=.
  3539. - for ac_exec_ext in '' $ac_executable_extensions; do
  3540. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3541. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  3542. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3543. - break 2
  3544. - fi
  3545. -done
  3546. -done
  3547. -IFS=$as_save_IFS
  3548. -fi
  3549. -fi
  3550. -F77=$ac_cv_prog_F77
  3551. -if test -n "$F77"; then
  3552. - { $as_echo "$as_me:$LINENO: result: $F77" >&5
  3553. -$as_echo "$F77" >&6; }
  3554. -else
  3555. - { $as_echo "$as_me:$LINENO: result: no" >&5
  3556. -$as_echo "no" >&6; }
  3557. -fi
  3558. - test -n "$F77" && break
  3559. - done
  3560. -fi
  3561. -if test -z "$F77"; then
  3562. - ac_ct_F77=$F77
  3563. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  3564. -do
  3565. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  3566. -set dummy $ac_prog; ac_word=$2
  3567. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3568. -$as_echo_n "checking for $ac_word... " >&6; }
  3569. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  3570. - $as_echo_n "(cached) " >&6
  3571. -else
  3572. - if test -n "$ac_ct_F77"; then
  3573. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  3574. -else
  3575. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3576. -for as_dir in $PATH
  3577. -do
  3578. - IFS=$as_save_IFS
  3579. - test -z "$as_dir" && as_dir=.
  3580. - for ac_exec_ext in '' $ac_executable_extensions; do
  3581. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3582. - ac_cv_prog_ac_ct_F77="$ac_prog"
  3583. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3584. - break 2
  3585. - fi
  3586. -done
  3587. -done
  3588. -IFS=$as_save_IFS
  3589. -fi
  3590. -fi
  3591. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  3592. -if test -n "$ac_ct_F77"; then
  3593. - { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  3594. -$as_echo "$ac_ct_F77" >&6; }
  3595. + # Check whether --enable-fast-install was given.
  3596. +if test "${enable_fast_install+set}" = set; then
  3597. + enableval=$enable_fast_install; p=${PACKAGE-default}
  3598. + case $enableval in
  3599. + yes) enable_fast_install=yes ;;
  3600. + no) enable_fast_install=no ;;
  3601. + *)
  3602. + enable_fast_install=no
  3603. + # Look at the argument we got. We use all the common list separators.
  3604. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3605. + for pkg in $enableval; do
  3606. + IFS="$lt_save_ifs"
  3607. + if test "X$pkg" = "X$p"; then
  3608. + enable_fast_install=yes
  3609. + fi
  3610. + done
  3611. + IFS="$lt_save_ifs"
  3612. + ;;
  3613. + esac
  3614. else
  3615. - { $as_echo "$as_me:$LINENO: result: no" >&5
  3616. -$as_echo "no" >&6; }
  3617. + enable_fast_install=yes
  3618. fi
  3619. - test -n "$ac_ct_F77" && break
  3620. -done
  3621. - if test "x$ac_ct_F77" = x; then
  3622. - F77=""
  3623. - else
  3624. - case $cross_compiling:$ac_tool_warned in
  3625. -yes:)
  3626. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3627. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3628. -ac_tool_warned=yes ;;
  3629. -esac
  3630. - F77=$ac_ct_F77
  3631. - fi
  3632. -fi
  3633. -# Provide some information about the compiler.
  3634. -$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  3635. -set X $ac_compile
  3636. -ac_compiler=$2
  3637. -{ (ac_try="$ac_compiler --version >&5"
  3638. -case "(($ac_try" in
  3639. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3640. - *) ac_try_echo=$ac_try;;
  3641. -esac
  3642. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3643. -$as_echo "$ac_try_echo") >&5
  3644. - (eval "$ac_compiler --version >&5") 2>&5
  3645. - ac_status=$?
  3646. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3647. - (exit $ac_status); }
  3648. -{ (ac_try="$ac_compiler -v >&5"
  3649. -case "(($ac_try" in
  3650. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3651. - *) ac_try_echo=$ac_try;;
  3652. -esac
  3653. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3654. -$as_echo "$ac_try_echo") >&5
  3655. - (eval "$ac_compiler -v >&5") 2>&5
  3656. - ac_status=$?
  3657. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3658. - (exit $ac_status); }
  3659. -{ (ac_try="$ac_compiler -V >&5"
  3660. -case "(($ac_try" in
  3661. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3662. - *) ac_try_echo=$ac_try;;
  3663. -esac
  3664. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3665. -$as_echo "$ac_try_echo") >&5
  3666. - (eval "$ac_compiler -V >&5") 2>&5
  3667. - ac_status=$?
  3668. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3669. - (exit $ac_status); }
  3670. -rm -f a.out
  3671. -# If we don't use `.F' as extension, the preprocessor is not run on the
  3672. -# input file. (Note that this only needs to work for GNU compilers.)
  3673. -ac_save_ext=$ac_ext
  3674. -ac_ext=F
  3675. -{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  3676. -$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  3677. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  3678. - $as_echo_n "(cached) " >&6
  3679. -else
  3680. - cat >conftest.$ac_ext <<_ACEOF
  3681. - program main
  3682. -#ifndef __GNUC__
  3683. - choke me
  3684. -#endif
  3685. - end
  3686. -_ACEOF
  3687. -rm -f conftest.$ac_objext
  3688. -if { (ac_try="$ac_compile"
  3689. -case "(($ac_try" in
  3690. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3691. - *) ac_try_echo=$ac_try;;
  3692. -esac
  3693. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3694. -$as_echo "$ac_try_echo") >&5
  3695. - (eval "$ac_compile") 2>conftest.er1
  3696. - ac_status=$?
  3697. - grep -v '^ *+' conftest.er1 >conftest.err
  3698. - rm -f conftest.er1
  3699. - cat conftest.err >&5
  3700. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3701. - (exit $ac_status); } && {
  3702. - test -z "$ac_f77_werror_flag" ||
  3703. - test ! -s conftest.err
  3704. - } && test -s conftest.$ac_objext; then
  3705. - ac_compiler_gnu=yes
  3706. -else
  3707. - $as_echo "$as_me: failed program was:" >&5
  3708. -sed 's/^/| /' conftest.$ac_ext >&5
  3709. - ac_compiler_gnu=no
  3710. -fi
  3711. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3712. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  3713. -fi
  3714. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  3715. -$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  3716. -ac_ext=$ac_save_ext
  3717. -ac_test_FFLAGS=${FFLAGS+set}
  3718. -ac_save_FFLAGS=$FFLAGS
  3719. -FFLAGS=
  3720. -{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  3721. -$as_echo_n "checking whether $F77 accepts -g... " >&6; }
  3722. -if test "${ac_cv_prog_f77_g+set}" = set; then
  3723. - $as_echo_n "(cached) " >&6
  3724. -else
  3725. - FFLAGS=-g
  3726. -cat >conftest.$ac_ext <<_ACEOF
  3727. - program main
  3728. - end
  3729. -_ACEOF
  3730. -rm -f conftest.$ac_objext
  3731. -if { (ac_try="$ac_compile"
  3732. -case "(($ac_try" in
  3733. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3734. - *) ac_try_echo=$ac_try;;
  3735. -esac
  3736. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3737. -$as_echo "$ac_try_echo") >&5
  3738. - (eval "$ac_compile") 2>conftest.er1
  3739. - ac_status=$?
  3740. - grep -v '^ *+' conftest.er1 >conftest.err
  3741. - rm -f conftest.er1
  3742. - cat conftest.err >&5
  3743. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3744. - (exit $ac_status); } && {
  3745. - test -z "$ac_f77_werror_flag" ||
  3746. - test ! -s conftest.err
  3747. - } && test -s conftest.$ac_objext; then
  3748. - ac_cv_prog_f77_g=yes
  3749. -else
  3750. - $as_echo "$as_me: failed program was:" >&5
  3751. -sed 's/^/| /' conftest.$ac_ext >&5
  3752. -
  3753. - ac_cv_prog_f77_g=no
  3754. -fi
  3755. -
  3756. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3757. -
  3758. -fi
  3759. -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  3760. -$as_echo "$ac_cv_prog_f77_g" >&6; }
  3761. -if test "$ac_test_FFLAGS" = set; then
  3762. - FFLAGS=$ac_save_FFLAGS
  3763. -elif test $ac_cv_prog_f77_g = yes; then
  3764. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  3765. - FFLAGS="-g -O2"
  3766. - else
  3767. - FFLAGS="-g"
  3768. - fi
  3769. -else
  3770. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  3771. - FFLAGS="-O2"
  3772. - else
  3773. - FFLAGS=
  3774. - fi
  3775. -fi
  3776. +# This can be used to rebuild libtool when needed
  3777. +LIBTOOL_DEPS="$ltmain"
  3778. -if test $ac_compiler_gnu = yes; then
  3779. - G77=yes
  3780. -else
  3781. - G77=
  3782. -fi
  3783. -ac_ext=c
  3784. -ac_cpp='$CPP $CPPFLAGS'
  3785. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3786. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3787. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3788. +# Always use our own libtool.
  3789. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  3790. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  3791. -# find the maximum length of command line arguments
  3792. -{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  3793. -$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3794. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  3795. - $as_echo_n "(cached) " >&6
  3796. -else
  3797. - i=0
  3798. - teststring="ABCD"
  3799. - case $build_os in
  3800. - msdosdjgpp*)
  3801. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  3802. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  3803. - # during glob expansion). Even if it were fixed, the result of this
  3804. - # check would be larger than it should be.
  3805. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3806. - ;;
  3807. - gnu*)
  3808. - # Under GNU Hurd, this test is not required because there is
  3809. - # no limit to the length of command line arguments.
  3810. - # Libtool will interpret -1 as no limit whatsoever
  3811. - lt_cv_sys_max_cmd_len=-1;
  3812. - ;;
  3813. - cygwin* | mingw*)
  3814. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  3815. - # about 5 minutes as the teststring grows exponentially.
  3816. - # Worse, since 9x/ME are not pre-emptively multitasking,
  3817. - # you end up with a "frozen" computer, even though with patience
  3818. - # the test eventually succeeds (with a max line length of 256k).
  3819. - # Instead, let's just punt: use the minimum linelength reported by
  3820. - # all of the supported platforms: 8192 (on NT/2K/XP).
  3821. - lt_cv_sys_max_cmd_len=8192;
  3822. - ;;
  3823. - amigaos*)
  3824. - # On AmigaOS with pdksh, this test takes hours, literally.
  3825. - # So we just punt and use a minimum line length of 8192.
  3826. - lt_cv_sys_max_cmd_len=8192;
  3827. - ;;
  3828. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3829. - # This has been around since 386BSD, at least. Likely further.
  3830. - if test -x /sbin/sysctl; then
  3831. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3832. - elif test -x /usr/sbin/sysctl; then
  3833. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3834. - else
  3835. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3836. - fi
  3837. - # And add a safety zone
  3838. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3839. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3840. - ;;
  3841. - interix*)
  3842. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3843. - lt_cv_sys_max_cmd_len=196608
  3844. - ;;
  3845. - osf*)
  3846. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3847. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3848. - # nice to cause kernel panics so lets avoid the loop below.
  3849. - # First set a reasonable default.
  3850. - lt_cv_sys_max_cmd_len=16384
  3851. - #
  3852. - if test -x /sbin/sysconfig; then
  3853. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3854. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3855. - esac
  3856. - fi
  3857. - ;;
  3858. - sco3.2v5*)
  3859. - lt_cv_sys_max_cmd_len=102400
  3860. - ;;
  3861. - sysv5* | sco5v6* | sysv4.2uw2*)
  3862. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3863. - if test -n "$kargmax"; then
  3864. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3865. - else
  3866. - lt_cv_sys_max_cmd_len=32768
  3867. - fi
  3868. - ;;
  3869. - *)
  3870. - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3871. - if test -n "$lt_cv_sys_max_cmd_len"; then
  3872. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3873. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3874. - else
  3875. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3876. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  3877. - = "XX$teststring") >/dev/null 2>&1 &&
  3878. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  3879. - lt_cv_sys_max_cmd_len=$new_result &&
  3880. - test $i != 17 # 1/2 MB should be enough
  3881. - do
  3882. - i=`expr $i + 1`
  3883. - teststring=$teststring$teststring
  3884. - done
  3885. - teststring=
  3886. - # Add a significant safety factor because C++ compilers can tack on massive
  3887. - # amounts of additional arguments before passing them to the linker.
  3888. - # It appears as though 1/2 is a usable value.
  3889. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3890. - fi
  3891. - ;;
  3892. - esac
  3893. -fi
  3894. -if test -n $lt_cv_sys_max_cmd_len ; then
  3895. - { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  3896. -$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3897. -else
  3898. - { $as_echo "$as_me:$LINENO: result: none" >&5
  3899. -$as_echo "none" >&6; }
  3900. -fi
  3901. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  3902. -{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  3903. -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  3904. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  3905. - $as_echo_n "(cached) " >&6
  3906. -else
  3907. -# These are sane defaults that work on at least a few old systems.
  3908. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3909. -# Character class describing NM global symbol codes.
  3910. -symcode='[BCDEGRST]'
  3911. -# Regexp to match symbols that can be accessed directly from C.
  3912. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  3913. -# Transform an extracted symbol line into a proper C declaration
  3914. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  3915. -# Transform an extracted symbol line into symbol name and symbol address
  3916. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  3917. -# Define system-specific variables.
  3918. -case $host_os in
  3919. -aix*)
  3920. - symcode='[BCDT]'
  3921. - ;;
  3922. -cygwin* | mingw* | pw32*)
  3923. - symcode='[ABCDGISTW]'
  3924. - ;;
  3925. -hpux*) # Its linker distinguishes data from code symbols
  3926. - if test "$host_cpu" = ia64; then
  3927. - symcode='[ABCDEGRST]'
  3928. - fi
  3929. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3930. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  3931. - ;;
  3932. -linux* | k*bsd*-gnu)
  3933. - if test "$host_cpu" = ia64; then
  3934. - symcode='[ABCDGIRSTW]'
  3935. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3936. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  3937. - fi
  3938. - ;;
  3939. -irix* | nonstopux*)
  3940. - symcode='[BCDEGRST]'
  3941. - ;;
  3942. -osf*)
  3943. - symcode='[BCDEGQRST]'
  3944. - ;;
  3945. -solaris*)
  3946. - symcode='[BDRT]'
  3947. - ;;
  3948. -sco3.2v5*)
  3949. - symcode='[DT]'
  3950. - ;;
  3951. -sysv4.2uw2*)
  3952. - symcode='[DT]'
  3953. - ;;
  3954. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3955. - symcode='[ABDT]'
  3956. - ;;
  3957. -sysv4)
  3958. - symcode='[DFNSTU]'
  3959. - ;;
  3960. -esac
  3961. -# Handle CRLF in mingw tool chain
  3962. -opt_cr=
  3963. -case $build_os in
  3964. -mingw*)
  3965. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3966. - ;;
  3967. -esac
  3968. -# If we're using GNU nm, then use its standard symbol codes.
  3969. -case `$NM -V 2>&1` in
  3970. -*GNU* | *'with BFD'*)
  3971. - symcode='[ABCDGIRSTW]' ;;
  3972. -esac
  3973. +test -z "$LN_S" && LN_S="ln -s"
  3974. -# Try without a prefix undercore, then with it.
  3975. -for ac_symprfx in "" "_"; do
  3976. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3977. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  3978. - # Write the raw and C identifiers.
  3979. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3980. - # Check to see that the pipe works correctly.
  3981. - pipe_works=no
  3982. - rm -f conftest*
  3983. - cat > conftest.$ac_ext <<EOF
  3984. -#ifdef __cplusplus
  3985. -extern "C" {
  3986. -#endif
  3987. -char nm_test_var;
  3988. -void nm_test_func(){}
  3989. -#ifdef __cplusplus
  3990. -}
  3991. -#endif
  3992. -int main(){nm_test_var='a';nm_test_func();return(0);}
  3993. -EOF
  3994. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3995. - (eval $ac_compile) 2>&5
  3996. - ac_status=$?
  3997. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3998. - (exit $ac_status); }; then
  3999. - # Now try to grab the symbols.
  4000. - nlist=conftest.nm
  4001. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4002. - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4003. - ac_status=$?
  4004. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4005. - (exit $ac_status); } && test -s "$nlist"; then
  4006. - # Try sorting and uniquifying the output.
  4007. - if sort "$nlist" | uniq > "$nlist"T; then
  4008. - mv -f "$nlist"T "$nlist"
  4009. - else
  4010. - rm -f "$nlist"T
  4011. - fi
  4012. - # Make sure that we snagged all the symbols we need.
  4013. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4014. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4015. - cat <<EOF > conftest.$ac_ext
  4016. -#ifdef __cplusplus
  4017. -extern "C" {
  4018. -#endif
  4019. -EOF
  4020. - # Now generate the symbol file.
  4021. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4022. - cat <<EOF >> conftest.$ac_ext
  4023. -#if defined (__STDC__) && __STDC__
  4024. -# define lt_ptr_t void *
  4025. -#else
  4026. -# define lt_ptr_t char *
  4027. -# define const
  4028. -#endif
  4029. -/* The mapping between symbol names and symbols. */
  4030. -const struct {
  4031. - const char *name;
  4032. - lt_ptr_t address;
  4033. -}
  4034. -lt_preloaded_symbols[] =
  4035. -{
  4036. -EOF
  4037. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4038. - cat <<\EOF >> conftest.$ac_ext
  4039. - {0, (lt_ptr_t) 0}
  4040. -};
  4041. -#ifdef __cplusplus
  4042. -}
  4043. -#endif
  4044. -EOF
  4045. - # Now try linking the two files.
  4046. - mv conftest.$ac_objext conftstm.$ac_objext
  4047. - lt_save_LIBS="$LIBS"
  4048. - lt_save_CFLAGS="$CFLAGS"
  4049. - LIBS="conftstm.$ac_objext"
  4050. - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4051. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4052. - (eval $ac_link) 2>&5
  4053. - ac_status=$?
  4054. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4055. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4056. - pipe_works=yes
  4057. - fi
  4058. - LIBS="$lt_save_LIBS"
  4059. - CFLAGS="$lt_save_CFLAGS"
  4060. - else
  4061. - echo "cannot find nm_test_func in $nlist" >&5
  4062. - fi
  4063. - else
  4064. - echo "cannot find nm_test_var in $nlist" >&5
  4065. - fi
  4066. - else
  4067. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4068. - fi
  4069. - else
  4070. - echo "$progname: failed program was:" >&5
  4071. - cat conftest.$ac_ext >&5
  4072. - fi
  4073. - rm -rf conftest* conftst*
  4074. - # Do not use the global_symbol_pipe unless it works.
  4075. - if test "$pipe_works" = yes; then
  4076. - break
  4077. - else
  4078. - lt_cv_sys_global_symbol_pipe=
  4079. - fi
  4080. -done
  4081. -fi
  4082. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4083. - lt_cv_sys_global_symbol_to_cdecl=
  4084. -fi
  4085. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4086. - { $as_echo "$as_me:$LINENO: result: failed" >&5
  4087. -$as_echo "failed" >&6; }
  4088. -else
  4089. - { $as_echo "$as_me:$LINENO: result: ok" >&5
  4090. -$as_echo "ok" >&6; }
  4091. +if test -n "${ZSH_VERSION+set}" ; then
  4092. + setopt NO_GLOB_SUBST
  4093. fi
  4094. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  4095. @@ -7706,6 +8194,26 @@ objdir=$lt_cv_objdir
  4096. +cat >>confdefs.h <<_ACEOF
  4097. +#define LT_OBJDIR "$lt_cv_objdir/"
  4098. +_ACEOF
  4099. +
  4100. +
  4101. +
  4102. +
  4103. +
  4104. +
  4105. +
  4106. +
  4107. +
  4108. +
  4109. +
  4110. +
  4111. +
  4112. +
  4113. +
  4114. +
  4115. +
  4116. case $host_os in
  4117. aix3*)
  4118. # AIX sometimes has problems with the GCC collect2 program. For some
  4119. @@ -7720,348 +8228,41 @@ esac
  4120. # Sed substitution that helps us do robust quoting. It backslashifies
  4121. # metacharacters that are still active within double-quoted strings.
  4122. -Xsed='sed -e 1s/^X//'
  4123. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  4124. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4125. # Same as above, but do not quote variable references.
  4126. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  4127. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4128. # Sed substitution to delay expansion of an escaped shell variable in a
  4129. # double_quote_subst'ed string.
  4130. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4131. +# Sed substitution to delay expansion of an escaped single quote.
  4132. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4133. +
  4134. # Sed substitution to avoid accidental globbing in evaled expressions
  4135. no_glob_subst='s/\*/\\\*/g'
  4136. -# Constants:
  4137. -rm="rm -f"
  4138. -
  4139. # Global variables:
  4140. -default_ofile=libtool
  4141. +ofile=libtool
  4142. can_build_shared=yes
  4143. # All known linkers require a `.a' archive for static linking (except MSVC,
  4144. # which needs '.lib').
  4145. libext=a
  4146. -ltmain="$ac_aux_dir/ltmain.sh"
  4147. -ofile="$default_ofile"
  4148. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  4149. -
  4150. -if test -n "$ac_tool_prefix"; then
  4151. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4152. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  4153. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4154. -$as_echo_n "checking for $ac_word... " >&6; }
  4155. -if test "${ac_cv_prog_AR+set}" = set; then
  4156. - $as_echo_n "(cached) " >&6
  4157. -else
  4158. - if test -n "$AR"; then
  4159. - ac_cv_prog_AR="$AR" # Let the user override the test.
  4160. -else
  4161. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4162. -for as_dir in $PATH
  4163. -do
  4164. - IFS=$as_save_IFS
  4165. - test -z "$as_dir" && as_dir=.
  4166. - for ac_exec_ext in '' $ac_executable_extensions; do
  4167. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4168. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  4169. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4170. - break 2
  4171. - fi
  4172. -done
  4173. -done
  4174. -IFS=$as_save_IFS
  4175. -
  4176. -fi
  4177. -fi
  4178. -AR=$ac_cv_prog_AR
  4179. -if test -n "$AR"; then
  4180. - { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4181. -$as_echo "$AR" >&6; }
  4182. -else
  4183. - { $as_echo "$as_me:$LINENO: result: no" >&5
  4184. -$as_echo "no" >&6; }
  4185. -fi
  4186. -
  4187. -
  4188. -fi
  4189. -if test -z "$ac_cv_prog_AR"; then
  4190. - ac_ct_AR=$AR
  4191. - # Extract the first word of "ar", so it can be a program name with args.
  4192. -set dummy ar; ac_word=$2
  4193. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4194. -$as_echo_n "checking for $ac_word... " >&6; }
  4195. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4196. - $as_echo_n "(cached) " >&6
  4197. -else
  4198. - if test -n "$ac_ct_AR"; then
  4199. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4200. -else
  4201. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4202. -for as_dir in $PATH
  4203. -do
  4204. - IFS=$as_save_IFS
  4205. - test -z "$as_dir" && as_dir=.
  4206. - for ac_exec_ext in '' $ac_executable_extensions; do
  4207. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4208. - ac_cv_prog_ac_ct_AR="ar"
  4209. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4210. - break 2
  4211. - fi
  4212. -done
  4213. -done
  4214. -IFS=$as_save_IFS
  4215. -
  4216. -fi
  4217. -fi
  4218. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4219. -if test -n "$ac_ct_AR"; then
  4220. - { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4221. -$as_echo "$ac_ct_AR" >&6; }
  4222. -else
  4223. - { $as_echo "$as_me:$LINENO: result: no" >&5
  4224. -$as_echo "no" >&6; }
  4225. -fi
  4226. -
  4227. - if test "x$ac_ct_AR" = x; then
  4228. - AR="false"
  4229. - else
  4230. - case $cross_compiling:$ac_tool_warned in
  4231. -yes:)
  4232. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4233. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4234. -ac_tool_warned=yes ;;
  4235. -esac
  4236. - AR=$ac_ct_AR
  4237. - fi
  4238. -else
  4239. - AR="$ac_cv_prog_AR"
  4240. -fi
  4241. -
  4242. -if test -n "$ac_tool_prefix"; then
  4243. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4244. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4245. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4246. -$as_echo_n "checking for $ac_word... " >&6; }
  4247. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  4248. - $as_echo_n "(cached) " >&6
  4249. -else
  4250. - if test -n "$RANLIB"; then
  4251. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4252. -else
  4253. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4254. -for as_dir in $PATH
  4255. -do
  4256. - IFS=$as_save_IFS
  4257. - test -z "$as_dir" && as_dir=.
  4258. - for ac_exec_ext in '' $ac_executable_extensions; do
  4259. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4260. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4261. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4262. - break 2
  4263. - fi
  4264. -done
  4265. -done
  4266. -IFS=$as_save_IFS
  4267. -
  4268. -fi
  4269. -fi
  4270. -RANLIB=$ac_cv_prog_RANLIB
  4271. -if test -n "$RANLIB"; then
  4272. - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4273. -$as_echo "$RANLIB" >&6; }
  4274. -else
  4275. - { $as_echo "$as_me:$LINENO: result: no" >&5
  4276. -$as_echo "no" >&6; }
  4277. -fi
  4278. -
  4279. -
  4280. -fi
  4281. -if test -z "$ac_cv_prog_RANLIB"; then
  4282. - ac_ct_RANLIB=$RANLIB
  4283. - # Extract the first word of "ranlib", so it can be a program name with args.
  4284. -set dummy ranlib; ac_word=$2
  4285. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4286. -$as_echo_n "checking for $ac_word... " >&6; }
  4287. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4288. - $as_echo_n "(cached) " >&6
  4289. -else
  4290. - if test -n "$ac_ct_RANLIB"; then
  4291. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4292. -else
  4293. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4294. -for as_dir in $PATH
  4295. -do
  4296. - IFS=$as_save_IFS
  4297. - test -z "$as_dir" && as_dir=.
  4298. - for ac_exec_ext in '' $ac_executable_extensions; do
  4299. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4300. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  4301. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4302. - break 2
  4303. - fi
  4304. -done
  4305. -done
  4306. -IFS=$as_save_IFS
  4307. -
  4308. -fi
  4309. -fi
  4310. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4311. -if test -n "$ac_ct_RANLIB"; then
  4312. - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4313. -$as_echo "$ac_ct_RANLIB" >&6; }
  4314. -else
  4315. - { $as_echo "$as_me:$LINENO: result: no" >&5
  4316. -$as_echo "no" >&6; }
  4317. -fi
  4318. -
  4319. - if test "x$ac_ct_RANLIB" = x; then
  4320. - RANLIB=":"
  4321. - else
  4322. - case $cross_compiling:$ac_tool_warned in
  4323. -yes:)
  4324. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4325. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4326. -ac_tool_warned=yes ;;
  4327. -esac
  4328. - RANLIB=$ac_ct_RANLIB
  4329. - fi
  4330. -else
  4331. - RANLIB="$ac_cv_prog_RANLIB"
  4332. -fi
  4333. -
  4334. -if test -n "$ac_tool_prefix"; then
  4335. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4336. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  4337. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4338. -$as_echo_n "checking for $ac_word... " >&6; }
  4339. -if test "${ac_cv_prog_STRIP+set}" = set; then
  4340. - $as_echo_n "(cached) " >&6
  4341. -else
  4342. - if test -n "$STRIP"; then
  4343. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4344. -else
  4345. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4346. -for as_dir in $PATH
  4347. -do
  4348. - IFS=$as_save_IFS
  4349. - test -z "$as_dir" && as_dir=.
  4350. - for ac_exec_ext in '' $ac_executable_extensions; do
  4351. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4352. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4353. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4354. - break 2
  4355. - fi
  4356. -done
  4357. -done
  4358. -IFS=$as_save_IFS
  4359. -
  4360. -fi
  4361. -fi
  4362. -STRIP=$ac_cv_prog_STRIP
  4363. -if test -n "$STRIP"; then
  4364. - { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4365. -$as_echo "$STRIP" >&6; }
  4366. -else
  4367. - { $as_echo "$as_me:$LINENO: result: no" >&5
  4368. -$as_echo "no" >&6; }
  4369. -fi
  4370. -
  4371. -
  4372. -fi
  4373. -if test -z "$ac_cv_prog_STRIP"; then
  4374. - ac_ct_STRIP=$STRIP
  4375. - # Extract the first word of "strip", so it can be a program name with args.
  4376. -set dummy strip; ac_word=$2
  4377. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4378. -$as_echo_n "checking for $ac_word... " >&6; }
  4379. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4380. - $as_echo_n "(cached) " >&6
  4381. -else
  4382. - if test -n "$ac_ct_STRIP"; then
  4383. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4384. -else
  4385. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4386. -for as_dir in $PATH
  4387. -do
  4388. - IFS=$as_save_IFS
  4389. - test -z "$as_dir" && as_dir=.
  4390. - for ac_exec_ext in '' $ac_executable_extensions; do
  4391. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4392. - ac_cv_prog_ac_ct_STRIP="strip"
  4393. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4394. - break 2
  4395. - fi
  4396. -done
  4397. -done
  4398. -IFS=$as_save_IFS
  4399. -
  4400. -fi
  4401. -fi
  4402. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4403. -if test -n "$ac_ct_STRIP"; then
  4404. - { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4405. -$as_echo "$ac_ct_STRIP" >&6; }
  4406. -else
  4407. - { $as_echo "$as_me:$LINENO: result: no" >&5
  4408. -$as_echo "no" >&6; }
  4409. -fi
  4410. -
  4411. - if test "x$ac_ct_STRIP" = x; then
  4412. - STRIP=":"
  4413. - else
  4414. - case $cross_compiling:$ac_tool_warned in
  4415. -yes:)
  4416. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4417. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4418. -ac_tool_warned=yes ;;
  4419. -esac
  4420. - STRIP=$ac_ct_STRIP
  4421. - fi
  4422. -else
  4423. - STRIP="$ac_cv_prog_STRIP"
  4424. -fi
  4425. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  4426. old_CC="$CC"
  4427. old_CFLAGS="$CFLAGS"
  4428. # Set sane defaults for various variables
  4429. -test -z "$AR" && AR=ar
  4430. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  4431. -test -z "$AS" && AS=as
  4432. test -z "$CC" && CC=cc
  4433. test -z "$LTCC" && LTCC=$CC
  4434. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  4435. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  4436. test -z "$LD" && LD=ld
  4437. -test -z "$LN_S" && LN_S="ln -s"
  4438. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  4439. -test -z "$NM" && NM=nm
  4440. -test -z "$SED" && SED=sed
  4441. -test -z "$OBJDUMP" && OBJDUMP=objdump
  4442. -test -z "$RANLIB" && RANLIB=:
  4443. -test -z "$STRIP" && STRIP=:
  4444. test -z "$ac_objext" && ac_objext=o
  4445. -# Determine commands to create old-style static archives.
  4446. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4447. -old_postinstall_cmds='chmod 644 $oldlib'
  4448. -old_postuninstall_cmds=
  4449. -
  4450. -if test -n "$RANLIB"; then
  4451. - case $host_os in
  4452. - openbsd*)
  4453. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4454. - ;;
  4455. - *)
  4456. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4457. - ;;
  4458. - esac
  4459. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4460. -fi
  4461. -
  4462. for cc_temp in $compiler""; do
  4463. case $cc_temp in
  4464. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  4465. @@ -8070,10 +8271,11 @@ for cc_temp in $compiler""; do
  4466. *) break;;
  4467. esac
  4468. done
  4469. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  4470. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  4471. # Only perform the check for file, if the check method requires it
  4472. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  4473. case $deplibs_check_method in
  4474. file_magic*)
  4475. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  4476. @@ -8104,7 +8306,7 @@ else
  4477. $EGREP "$file_magic_regex" > /dev/null; then
  4478. :
  4479. else
  4480. - cat <<EOF 1>&2
  4481. + cat <<_LT_EOF 1>&2
  4482. *** Warning: the command libtool uses to detect shared libraries,
  4483. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4484. @@ -8115,7 +8317,7 @@ else
  4485. *** may want to report the problem to your system manager and/or to
  4486. *** bug-libtool@gnu.org
  4487. -EOF
  4488. +_LT_EOF
  4489. fi ;;
  4490. esac
  4491. fi
  4492. @@ -8137,6 +8339,10 @@ else
  4493. $as_echo "no" >&6; }
  4494. fi
  4495. +
  4496. +
  4497. +
  4498. +
  4499. if test -z "$lt_cv_path_MAGIC_CMD"; then
  4500. if test -n "$ac_tool_prefix"; then
  4501. { $as_echo "$as_me:$LINENO: checking for file" >&5
  4502. @@ -8166,7 +8372,7 @@ else
  4503. $EGREP "$file_magic_regex" > /dev/null; then
  4504. :
  4505. else
  4506. - cat <<EOF 1>&2
  4507. + cat <<_LT_EOF 1>&2
  4508. *** Warning: the command libtool uses to detect shared libraries,
  4509. *** $file_magic_cmd, produces output that libtool cannot recognize.
  4510. @@ -8177,7 +8383,7 @@ else
  4511. *** may want to report the problem to your system manager and/or to
  4512. *** bug-libtool@gnu.org
  4513. -EOF
  4514. +_LT_EOF
  4515. fi ;;
  4516. esac
  4517. fi
  4518. @@ -8199,6 +8405,7 @@ else
  4519. $as_echo "no" >&6; }
  4520. fi
  4521. +
  4522. else
  4523. MAGIC_CMD=:
  4524. fi
  4525. @@ -8208,336 +8415,8 @@ fi
  4526. ;;
  4527. esac
  4528. -
  4529. - case $host_os in
  4530. - rhapsody* | darwin*)
  4531. - if test -n "$ac_tool_prefix"; then
  4532. - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  4533. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  4534. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4535. -$as_echo_n "checking for $ac_word... " >&6; }
  4536. -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  4537. - $as_echo_n "(cached) " >&6
  4538. -else
  4539. - if test -n "$DSYMUTIL"; then
  4540. - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  4541. -else
  4542. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4543. -for as_dir in $PATH
  4544. -do
  4545. - IFS=$as_save_IFS
  4546. - test -z "$as_dir" && as_dir=.
  4547. - for ac_exec_ext in '' $ac_executable_extensions; do
  4548. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4549. - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  4550. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4551. - break 2
  4552. - fi
  4553. -done
  4554. -done
  4555. -IFS=$as_save_IFS
  4556. -
  4557. -fi
  4558. -fi
  4559. -DSYMUTIL=$ac_cv_prog_DSYMUTIL
  4560. -if test -n "$DSYMUTIL"; then
  4561. - { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  4562. -$as_echo "$DSYMUTIL" >&6; }
  4563. -else
  4564. - { $as_echo "$as_me:$LINENO: result: no" >&5
  4565. -$as_echo "no" >&6; }
  4566. -fi
  4567. -
  4568. -
  4569. -fi
  4570. -if test -z "$ac_cv_prog_DSYMUTIL"; then
  4571. - ac_ct_DSYMUTIL=$DSYMUTIL
  4572. - # Extract the first word of "dsymutil", so it can be a program name with args.
  4573. -set dummy dsymutil; ac_word=$2
  4574. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4575. -$as_echo_n "checking for $ac_word... " >&6; }
  4576. -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  4577. - $as_echo_n "(cached) " >&6
  4578. -else
  4579. - if test -n "$ac_ct_DSYMUTIL"; then
  4580. - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  4581. -else
  4582. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4583. -for as_dir in $PATH
  4584. -do
  4585. - IFS=$as_save_IFS
  4586. - test -z "$as_dir" && as_dir=.
  4587. - for ac_exec_ext in '' $ac_executable_extensions; do
  4588. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4589. - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  4590. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4591. - break 2
  4592. - fi
  4593. -done
  4594. -done
  4595. -IFS=$as_save_IFS
  4596. -
  4597. -fi
  4598. -fi
  4599. -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  4600. -if test -n "$ac_ct_DSYMUTIL"; then
  4601. - { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  4602. -$as_echo "$ac_ct_DSYMUTIL" >&6; }
  4603. -else
  4604. - { $as_echo "$as_me:$LINENO: result: no" >&5
  4605. -$as_echo "no" >&6; }
  4606. -fi
  4607. -
  4608. - if test "x$ac_ct_DSYMUTIL" = x; then
  4609. - DSYMUTIL=":"
  4610. - else
  4611. - case $cross_compiling:$ac_tool_warned in
  4612. -yes:)
  4613. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4614. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4615. -ac_tool_warned=yes ;;
  4616. -esac
  4617. - DSYMUTIL=$ac_ct_DSYMUTIL
  4618. - fi
  4619. -else
  4620. - DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  4621. -fi
  4622. -
  4623. - if test -n "$ac_tool_prefix"; then
  4624. - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  4625. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  4626. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4627. -$as_echo_n "checking for $ac_word... " >&6; }
  4628. -if test "${ac_cv_prog_NMEDIT+set}" = set; then
  4629. - $as_echo_n "(cached) " >&6
  4630. -else
  4631. - if test -n "$NMEDIT"; then
  4632. - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  4633. -else
  4634. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4635. -for as_dir in $PATH
  4636. -do
  4637. - IFS=$as_save_IFS
  4638. - test -z "$as_dir" && as_dir=.
  4639. - for ac_exec_ext in '' $ac_executable_extensions; do
  4640. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4641. - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  4642. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4643. - break 2
  4644. - fi
  4645. -done
  4646. -done
  4647. -IFS=$as_save_IFS
  4648. -
  4649. -fi
  4650. -fi
  4651. -NMEDIT=$ac_cv_prog_NMEDIT
  4652. -if test -n "$NMEDIT"; then
  4653. - { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  4654. -$as_echo "$NMEDIT" >&6; }
  4655. -else
  4656. - { $as_echo "$as_me:$LINENO: result: no" >&5
  4657. -$as_echo "no" >&6; }
  4658. -fi
  4659. -
  4660. -
  4661. -fi
  4662. -if test -z "$ac_cv_prog_NMEDIT"; then
  4663. - ac_ct_NMEDIT=$NMEDIT
  4664. - # Extract the first word of "nmedit", so it can be a program name with args.
  4665. -set dummy nmedit; ac_word=$2
  4666. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4667. -$as_echo_n "checking for $ac_word... " >&6; }
  4668. -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  4669. - $as_echo_n "(cached) " >&6
  4670. -else
  4671. - if test -n "$ac_ct_NMEDIT"; then
  4672. - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  4673. -else
  4674. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4675. -for as_dir in $PATH
  4676. -do
  4677. - IFS=$as_save_IFS
  4678. - test -z "$as_dir" && as_dir=.
  4679. - for ac_exec_ext in '' $ac_executable_extensions; do
  4680. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4681. - ac_cv_prog_ac_ct_NMEDIT="nmedit"
  4682. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4683. - break 2
  4684. - fi
  4685. -done
  4686. -done
  4687. -IFS=$as_save_IFS
  4688. -
  4689. -fi
  4690. -fi
  4691. -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  4692. -if test -n "$ac_ct_NMEDIT"; then
  4693. - { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  4694. -$as_echo "$ac_ct_NMEDIT" >&6; }
  4695. -else
  4696. - { $as_echo "$as_me:$LINENO: result: no" >&5
  4697. -$as_echo "no" >&6; }
  4698. -fi
  4699. -
  4700. - if test "x$ac_ct_NMEDIT" = x; then
  4701. - NMEDIT=":"
  4702. - else
  4703. - case $cross_compiling:$ac_tool_warned in
  4704. -yes:)
  4705. -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4706. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4707. -ac_tool_warned=yes ;;
  4708. -esac
  4709. - NMEDIT=$ac_ct_NMEDIT
  4710. - fi
  4711. -else
  4712. - NMEDIT="$ac_cv_prog_NMEDIT"
  4713. -fi
  4714. -
  4715. -
  4716. - { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  4717. -$as_echo_n "checking for -single_module linker flag... " >&6; }
  4718. -if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  4719. - $as_echo_n "(cached) " >&6
  4720. -else
  4721. - lt_cv_apple_cc_single_mod=no
  4722. - if test -z "${LT_MULTI_MODULE}"; then
  4723. - # By default we will add the -single_module flag. You can override
  4724. - # by either setting the environment variable LT_MULTI_MODULE
  4725. - # non-empty at configure time, or by adding -multi_module to the
  4726. - # link flags.
  4727. - echo "int foo(void){return 1;}" > conftest.c
  4728. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  4729. - -dynamiclib ${wl}-single_module conftest.c
  4730. - if test -f libconftest.dylib; then
  4731. - lt_cv_apple_cc_single_mod=yes
  4732. - rm -rf libconftest.dylib*
  4733. - fi
  4734. - rm conftest.c
  4735. - fi
  4736. -fi
  4737. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  4738. -$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  4739. - { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  4740. -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  4741. -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  4742. - $as_echo_n "(cached) " >&6
  4743. -else
  4744. - lt_cv_ld_exported_symbols_list=no
  4745. - save_LDFLAGS=$LDFLAGS
  4746. - echo "_main" > conftest.sym
  4747. - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  4748. - cat >conftest.$ac_ext <<_ACEOF
  4749. -/* confdefs.h. */
  4750. -_ACEOF
  4751. -cat confdefs.h >>conftest.$ac_ext
  4752. -cat >>conftest.$ac_ext <<_ACEOF
  4753. -/* end confdefs.h. */
  4754. -
  4755. -int
  4756. -main ()
  4757. -{
  4758. -
  4759. - ;
  4760. - return 0;
  4761. -}
  4762. -_ACEOF
  4763. -rm -f conftest.$ac_objext conftest$ac_exeext
  4764. -if { (ac_try="$ac_link"
  4765. -case "(($ac_try" in
  4766. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4767. - *) ac_try_echo=$ac_try;;
  4768. -esac
  4769. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4770. -$as_echo "$ac_try_echo") >&5
  4771. - (eval "$ac_link") 2>conftest.er1
  4772. - ac_status=$?
  4773. - grep -v '^ *+' conftest.er1 >conftest.err
  4774. - rm -f conftest.er1
  4775. - cat conftest.err >&5
  4776. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4777. - (exit $ac_status); } && {
  4778. - test -z "$ac_c_werror_flag" ||
  4779. - test ! -s conftest.err
  4780. - } && test -s conftest$ac_exeext && {
  4781. - test "$cross_compiling" = yes ||
  4782. - $as_test_x conftest$ac_exeext
  4783. - }; then
  4784. - lt_cv_ld_exported_symbols_list=yes
  4785. -else
  4786. - $as_echo "$as_me: failed program was:" >&5
  4787. -sed 's/^/| /' conftest.$ac_ext >&5
  4788. -
  4789. - lt_cv_ld_exported_symbols_list=no
  4790. -fi
  4791. -
  4792. -rm -rf conftest.dSYM
  4793. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4794. - conftest$ac_exeext conftest.$ac_ext
  4795. - LDFLAGS="$save_LDFLAGS"
  4796. -
  4797. -fi
  4798. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  4799. -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  4800. - case $host_os in
  4801. - rhapsody* | darwin1.[0123])
  4802. - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  4803. - darwin1.*)
  4804. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  4805. - darwin*)
  4806. - # if running on 10.5 or later, the deployment target defaults
  4807. - # to the OS version, if on x86, and 10.4, the deployment
  4808. - # target defaults to 10.4. Don't you love it?
  4809. - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  4810. - 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  4811. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  4812. - 10.[012]*)
  4813. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  4814. - 10.*)
  4815. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  4816. - esac
  4817. - ;;
  4818. - esac
  4819. - if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  4820. - _lt_dar_single_mod='$single_module'
  4821. - fi
  4822. - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  4823. - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  4824. - else
  4825. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  4826. - fi
  4827. - if test "$DSYMUTIL" != ":"; then
  4828. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  4829. - else
  4830. - _lt_dsymutil=
  4831. - fi
  4832. - ;;
  4833. - esac
  4834. -
  4835. -
  4836. -enable_dlopen=no
  4837. -enable_win32_dll=no
  4838. -
  4839. -# Check whether --enable-libtool-lock was given.
  4840. -if test "${enable_libtool_lock+set}" = set; then
  4841. - enableval=$enable_libtool_lock;
  4842. -fi
  4843. -
  4844. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4845. -
  4846. -
  4847. -# Check whether --with-pic was given.
  4848. -if test "${with_pic+set}" = set; then
  4849. - withval=$with_pic; pic_mode="$withval"
  4850. -else
  4851. - pic_mode=default
  4852. -fi
  4853. -
  4854. -test -z "$pic_mode" && pic_mode=default
  4855. -
  4856. # Use C for the default configuration in the libtool script
  4857. -tagname=
  4858. +
  4859. lt_save_CC="$CC"
  4860. ac_ext=c
  4861. ac_cpp='$CPP $CPPFLAGS'
  4862. @@ -8560,6 +8439,11 @@ lt_simple_compile_test_code="int some_va
  4863. lt_simple_link_test_code='int main(){return(0);}'
  4864. +
  4865. +
  4866. +
  4867. +
  4868. +
  4869. # If no C compiler was specified, use CC.
  4870. LTCC=${LTCC-"$CC"}
  4871. @@ -8569,35 +8453,38 @@ LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4872. # Allow CC to be a program name with arguments.
  4873. compiler=$CC
  4874. +# Save the default compiler, since it gets overwritten when the other
  4875. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  4876. +compiler_DEFAULT=$CC
  4877. # save warnings/boilerplate of simple test code
  4878. ac_outfile=conftest.$ac_objext
  4879. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  4880. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  4881. _lt_compiler_boilerplate=`cat conftest.err`
  4882. -$rm conftest*
  4883. +$RM conftest*
  4884. ac_outfile=conftest.$ac_objext
  4885. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  4886. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  4887. _lt_linker_boilerplate=`cat conftest.err`
  4888. -$rm -r conftest*
  4889. +$RM -r conftest*
  4890. +if test -n "$compiler"; then
  4891. lt_prog_compiler_no_builtin_flag=
  4892. if test "$GCC" = yes; then
  4893. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  4894. -
  4895. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  4896. + { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  4897. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  4898. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  4899. $as_echo_n "(cached) " >&6
  4900. else
  4901. lt_cv_prog_compiler_rtti_exceptions=no
  4902. - ac_outfile=conftest.$ac_objext
  4903. + ac_outfile=conftest.$ac_objext
  4904. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  4905. lt_compiler_flag="-fno-rtti -fno-exceptions"
  4906. # Insert the option either (1) after the last *FLAGS variable, or
  4907. @@ -8609,21 +8496,21 @@ else
  4908. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  4909. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  4910. -e 's:$: $lt_compiler_flag:'`
  4911. - (eval echo "\"\$as_me:8612: $lt_compile\"" >&5)
  4912. + (eval echo "\"\$as_me:8499: $lt_compile\"" >&5)
  4913. (eval "$lt_compile" 2>conftest.err)
  4914. ac_status=$?
  4915. cat conftest.err >&5
  4916. - echo "$as_me:8616: \$? = $ac_status" >&5
  4917. + echo "$as_me:8503: \$? = $ac_status" >&5
  4918. if (exit $ac_status) && test -s "$ac_outfile"; then
  4919. # The compiler can only warn and ignore the option if not recognized
  4920. # So say no if there are warnings other than the usual output.
  4921. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  4922. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  4923. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  4924. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  4925. lt_cv_prog_compiler_rtti_exceptions=yes
  4926. fi
  4927. fi
  4928. - $rm conftest*
  4929. + $RM conftest*
  4930. fi
  4931. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  4932. @@ -8637,7 +8524,12 @@ fi
  4933. fi
  4934. -lt_prog_compiler_wl=
  4935. +
  4936. +
  4937. +
  4938. +
  4939. +
  4940. + lt_prog_compiler_wl=
  4941. lt_prog_compiler_pic=
  4942. lt_prog_compiler_static=
  4943. @@ -8658,17 +8550,25 @@ $as_echo_n "checking for $compiler optio
  4944. ;;
  4945. amigaos*)
  4946. - # FIXME: we need at least 68020 code to build shared libraries, but
  4947. - # adding the `-m68020' flag to GCC prevents building anything better,
  4948. - # like `-m68040'.
  4949. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  4950. + case $host_cpu in
  4951. + powerpc)
  4952. + # see comment about AmigaOS4 .so support
  4953. + lt_prog_compiler_pic='-fPIC'
  4954. + ;;
  4955. + m68k)
  4956. + # FIXME: we need at least 68020 code to build shared libraries, but
  4957. + # adding the `-m68020' flag to GCC prevents building anything better,
  4958. + # like `-m68040'.
  4959. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  4960. + ;;
  4961. + esac
  4962. ;;
  4963. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4964. # PIC is the default for these OSes.
  4965. ;;
  4966. - mingw* | cygwin* | pw32* | os2*)
  4967. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  4968. # This hack is so that the source file can tell whether it is being
  4969. # built for inclusion in a dll (and should export symbols for example).
  4970. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4971. @@ -8682,6 +8582,20 @@ $as_echo_n "checking for $compiler optio
  4972. lt_prog_compiler_pic='-fno-common'
  4973. ;;
  4974. + hpux*)
  4975. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4976. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4977. + # sets the default TLS model and affects inlining.
  4978. + case $host_cpu in
  4979. + hppa*64*)
  4980. + # +Z the default
  4981. + ;;
  4982. + *)
  4983. + lt_prog_compiler_pic='-fPIC'
  4984. + ;;
  4985. + esac
  4986. + ;;
  4987. +
  4988. interix[3-9]*)
  4989. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4990. # Instead, we relocate shared libraries at runtime.
  4991. @@ -8694,25 +8608,18 @@ $as_echo_n "checking for $compiler optio
  4992. enable_shared=no
  4993. ;;
  4994. + *nto* | *qnx*)
  4995. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4996. + # it will coredump.
  4997. + lt_prog_compiler_pic='-fPIC -shared'
  4998. + ;;
  4999. +
  5000. sysv4*MP*)
  5001. if test -d /usr/nec; then
  5002. lt_prog_compiler_pic=-Kconform_pic
  5003. fi
  5004. ;;
  5005. - hpux*)
  5006. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5007. - # not for PA HP-UX.
  5008. - case $host_cpu in
  5009. - hppa*64*|ia64*)
  5010. - # +Z the default
  5011. - ;;
  5012. - *)
  5013. - lt_prog_compiler_pic='-fPIC'
  5014. - ;;
  5015. - esac
  5016. - ;;
  5017. -
  5018. *)
  5019. lt_prog_compiler_pic='-fPIC'
  5020. ;;
  5021. @@ -8729,18 +8636,8 @@ $as_echo_n "checking for $compiler optio
  5022. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5023. fi
  5024. ;;
  5025. - darwin*)
  5026. - # PIC is the default on this platform
  5027. - # Common symbols not allowed in MH_DYLIB files
  5028. - case $cc_basename in
  5029. - xlc*)
  5030. - lt_prog_compiler_pic='-qnocommon'
  5031. - lt_prog_compiler_wl='-Wl,'
  5032. - ;;
  5033. - esac
  5034. - ;;
  5035. - mingw* | cygwin* | pw32* | os2*)
  5036. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  5037. # This hack is so that the source file can tell whether it is being
  5038. # built for inclusion in a dll (and should export symbols for example).
  5039. lt_prog_compiler_pic='-DDLL_EXPORT'
  5040. @@ -8768,18 +8665,27 @@ $as_echo_n "checking for $compiler optio
  5041. lt_prog_compiler_static='-non_shared'
  5042. ;;
  5043. - newsos6)
  5044. - lt_prog_compiler_pic='-KPIC'
  5045. - lt_prog_compiler_static='-Bstatic'
  5046. - ;;
  5047. -
  5048. linux* | k*bsd*-gnu)
  5049. case $cc_basename in
  5050. - icc* | ecc*)
  5051. + # old Intel for x86_64 which still supported -KPIC.
  5052. + ecc*)
  5053. lt_prog_compiler_wl='-Wl,'
  5054. lt_prog_compiler_pic='-KPIC'
  5055. lt_prog_compiler_static='-static'
  5056. ;;
  5057. + # icc used to be incompatible with GCC.
  5058. + # ICC 10 doesn't accept -KPIC any more.
  5059. + icc* | ifort*)
  5060. + lt_prog_compiler_wl='-Wl,'
  5061. + lt_prog_compiler_pic='-fPIC'
  5062. + lt_prog_compiler_static='-static'
  5063. + ;;
  5064. + # Lahey Fortran 8.1.
  5065. + lf95*)
  5066. + lt_prog_compiler_wl='-Wl,'
  5067. + lt_prog_compiler_pic='--shared'
  5068. + lt_prog_compiler_static='--static'
  5069. + ;;
  5070. pgcc* | pgf77* | pgf90* | pgf95*)
  5071. # Portland Group compilers (*not* the Pentium gcc compiler,
  5072. # which looks to be a dead project)
  5073. @@ -8792,8 +8698,14 @@ $as_echo_n "checking for $compiler optio
  5074. # All Alpha code is PIC.
  5075. lt_prog_compiler_static='-non_shared'
  5076. ;;
  5077. + xl*)
  5078. + # IBM XL C 8.0/Fortran 10.1 on PPC
  5079. + lt_prog_compiler_wl='-Wl,'
  5080. + lt_prog_compiler_pic='-qpic'
  5081. + lt_prog_compiler_static='-qstaticlink'
  5082. + ;;
  5083. *)
  5084. - case `$CC -V 2>&1 | sed 5q` in
  5085. + case `$CC -V 2>&1 | sed 5q` in
  5086. *Sun\ C*)
  5087. # Sun C 5.9
  5088. lt_prog_compiler_pic='-KPIC'
  5089. @@ -8811,6 +8723,17 @@ $as_echo_n "checking for $compiler optio
  5090. esac
  5091. ;;
  5092. + newsos6)
  5093. + lt_prog_compiler_pic='-KPIC'
  5094. + lt_prog_compiler_static='-Bstatic'
  5095. + ;;
  5096. +
  5097. + *nto* | *qnx*)
  5098. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5099. + # it will coredump.
  5100. + lt_prog_compiler_pic='-fPIC -shared'
  5101. + ;;
  5102. +
  5103. osf3* | osf4* | osf5*)
  5104. lt_prog_compiler_wl='-Wl,'
  5105. # All OSF/1 code is PIC.
  5106. @@ -8873,21 +8796,34 @@ $as_echo_n "checking for $compiler optio
  5107. esac
  5108. fi
  5109. +case $host_os in
  5110. + # For platforms which do not support PIC, -DPIC is meaningless:
  5111. + *djgpp*)
  5112. + lt_prog_compiler_pic=
  5113. + ;;
  5114. + *)
  5115. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  5116. + ;;
  5117. +esac
  5118. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  5119. $as_echo "$lt_prog_compiler_pic" >&6; }
  5120. +
  5121. +
  5122. +
  5123. +
  5124. +
  5125. #
  5126. # Check to make sure the PIC flag actually works.
  5127. #
  5128. if test -n "$lt_prog_compiler_pic"; then
  5129. -
  5130. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5131. + { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5132. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  5133. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  5134. $as_echo_n "(cached) " >&6
  5135. else
  5136. lt_cv_prog_compiler_pic_works=no
  5137. - ac_outfile=conftest.$ac_objext
  5138. + ac_outfile=conftest.$ac_objext
  5139. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5140. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5141. # Insert the option either (1) after the last *FLAGS variable, or
  5142. @@ -8899,21 +8835,21 @@ else
  5143. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5144. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5145. -e 's:$: $lt_compiler_flag:'`
  5146. - (eval echo "\"\$as_me:8902: $lt_compile\"" >&5)
  5147. + (eval echo "\"\$as_me:8838: $lt_compile\"" >&5)
  5148. (eval "$lt_compile" 2>conftest.err)
  5149. ac_status=$?
  5150. cat conftest.err >&5
  5151. - echo "$as_me:8906: \$? = $ac_status" >&5
  5152. + echo "$as_me:8842: \$? = $ac_status" >&5
  5153. if (exit $ac_status) && test -s "$ac_outfile"; then
  5154. # The compiler can only warn and ignore the option if not recognized
  5155. # So say no if there are warnings other than the usual output.
  5156. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5157. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5158. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5159. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5160. lt_cv_prog_compiler_pic_works=yes
  5161. fi
  5162. fi
  5163. - $rm conftest*
  5164. + $RM conftest*
  5165. fi
  5166. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  5167. @@ -8930,15 +8866,11 @@ else
  5168. fi
  5169. fi
  5170. -case $host_os in
  5171. - # For platforms which do not support PIC, -DPIC is meaningless:
  5172. - *djgpp*)
  5173. - lt_prog_compiler_pic=
  5174. - ;;
  5175. - *)
  5176. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  5177. - ;;
  5178. -esac
  5179. +
  5180. +
  5181. +
  5182. +
  5183. +
  5184. #
  5185. # Check to make sure the static flag actually works.
  5186. @@ -8959,7 +8891,7 @@ else
  5187. if test -s conftest.err; then
  5188. # Append any errors to the config.log.
  5189. cat conftest.err 1>&5
  5190. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  5191. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  5192. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5193. if diff conftest.exp conftest.er2 >/dev/null; then
  5194. lt_cv_prog_compiler_static_works=yes
  5195. @@ -8968,7 +8900,7 @@ else
  5196. lt_cv_prog_compiler_static_works=yes
  5197. fi
  5198. fi
  5199. - $rm -r conftest*
  5200. + $RM -r conftest*
  5201. LDFLAGS="$save_LDFLAGS"
  5202. fi
  5203. @@ -8982,13 +8914,18 @@ else
  5204. fi
  5205. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  5206. +
  5207. +
  5208. +
  5209. +
  5210. +
  5211. + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  5212. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  5213. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  5214. $as_echo_n "(cached) " >&6
  5215. else
  5216. lt_cv_prog_compiler_c_o=no
  5217. - $rm -r conftest 2>/dev/null
  5218. + $RM -r conftest 2>/dev/null
  5219. mkdir conftest
  5220. cd conftest
  5221. mkdir out
  5222. @@ -9003,43 +8940,100 @@ else
  5223. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5224. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5225. -e 's:$: $lt_compiler_flag:'`
  5226. - (eval echo "\"\$as_me:9006: $lt_compile\"" >&5)
  5227. + (eval echo "\"\$as_me:8943: $lt_compile\"" >&5)
  5228. (eval "$lt_compile" 2>out/conftest.err)
  5229. ac_status=$?
  5230. cat out/conftest.err >&5
  5231. - echo "$as_me:9010: \$? = $ac_status" >&5
  5232. + echo "$as_me:8947: \$? = $ac_status" >&5
  5233. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  5234. then
  5235. # The compiler can only warn and ignore the option if not recognized
  5236. # So say no if there are warnings
  5237. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  5238. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  5239. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  5240. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  5241. lt_cv_prog_compiler_c_o=yes
  5242. fi
  5243. fi
  5244. chmod u+w . 2>&5
  5245. - $rm conftest*
  5246. + $RM conftest*
  5247. # SGI C++ compiler will create directory out/ii_files/ for
  5248. # template instantiation
  5249. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  5250. - $rm out/* && rmdir out
  5251. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  5252. + $RM out/* && rmdir out
  5253. cd ..
  5254. - rmdir conftest
  5255. - $rm conftest*
  5256. + $RM -r conftest
  5257. + $RM conftest*
  5258. fi
  5259. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  5260. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  5261. +
  5262. +
  5263. +
  5264. +
  5265. + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  5266. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  5267. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  5268. + $as_echo_n "(cached) " >&6
  5269. +else
  5270. + lt_cv_prog_compiler_c_o=no
  5271. + $RM -r conftest 2>/dev/null
  5272. + mkdir conftest
  5273. + cd conftest
  5274. + mkdir out
  5275. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5276. +
  5277. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  5278. + # Insert the option either (1) after the last *FLAGS variable, or
  5279. + # (2) before a word containing "conftest.", or (3) at the end.
  5280. + # Note that $ac_compile itself does not contain backslashes and begins
  5281. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  5282. + lt_compile=`echo "$ac_compile" | $SED \
  5283. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5284. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5285. + -e 's:$: $lt_compiler_flag:'`
  5286. + (eval echo "\"\$as_me:8998: $lt_compile\"" >&5)
  5287. + (eval "$lt_compile" 2>out/conftest.err)
  5288. + ac_status=$?
  5289. + cat out/conftest.err >&5
  5290. + echo "$as_me:9002: \$? = $ac_status" >&5
  5291. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  5292. + then
  5293. + # The compiler can only warn and ignore the option if not recognized
  5294. + # So say no if there are warnings
  5295. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  5296. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  5297. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  5298. + lt_cv_prog_compiler_c_o=yes
  5299. + fi
  5300. + fi
  5301. + chmod u+w . 2>&5
  5302. + $RM conftest*
  5303. + # SGI C++ compiler will create directory out/ii_files/ for
  5304. + # template instantiation
  5305. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  5306. + $RM out/* && rmdir out
  5307. + cd ..
  5308. + $RM -r conftest
  5309. + $RM conftest*
  5310. +
  5311. +fi
  5312. +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  5313. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  5314. +
  5315. +
  5316. +
  5317. +
  5318. hard_links="nottested"
  5319. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  5320. # do not overwrite the value of need_locks provided by the user
  5321. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  5322. $as_echo_n "checking if we can lock with hard links... " >&6; }
  5323. hard_links=yes
  5324. - $rm conftest*
  5325. + $RM conftest*
  5326. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5327. touch conftest.a
  5328. ln conftest.a conftest.b 2>&5 || hard_links=no
  5329. @@ -9055,31 +9049,39 @@ else
  5330. need_locks=no
  5331. fi
  5332. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  5333. +
  5334. +
  5335. +
  5336. +
  5337. +
  5338. + { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  5339. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  5340. runpath_var=
  5341. allow_undefined_flag=
  5342. - enable_shared_with_static_runtimes=no
  5343. + always_export_symbols=no
  5344. archive_cmds=
  5345. archive_expsym_cmds=
  5346. - old_archive_From_new_cmds=
  5347. - old_archive_from_expsyms_cmds=
  5348. + compiler_needs_object=no
  5349. + enable_shared_with_static_runtimes=no
  5350. export_dynamic_flag_spec=
  5351. - whole_archive_flag_spec=
  5352. - thread_safe_flag_spec=
  5353. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5354. + hardcode_automatic=no
  5355. + hardcode_direct=no
  5356. + hardcode_direct_absolute=no
  5357. hardcode_libdir_flag_spec=
  5358. hardcode_libdir_flag_spec_ld=
  5359. hardcode_libdir_separator=
  5360. - hardcode_direct=no
  5361. hardcode_minus_L=no
  5362. hardcode_shlibpath_var=unsupported
  5363. + inherit_rpath=no
  5364. link_all_deplibs=unknown
  5365. - hardcode_automatic=no
  5366. module_cmds=
  5367. module_expsym_cmds=
  5368. - always_export_symbols=no
  5369. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5370. + old_archive_from_new_cmds=
  5371. + old_archive_from_expsyms_cmds=
  5372. + thread_safe_flag_spec=
  5373. + whole_archive_flag_spec=
  5374. # include_expsyms should be a list of space-separated symbols to be *always*
  5375. # included in the symbol list
  5376. include_expsyms=
  5377. @@ -9095,19 +9097,9 @@ $as_echo_n "checking whether the $compil
  5378. # preloaded symbol tables.
  5379. # Exclude shared library initialization/finalization symbols.
  5380. extract_expsyms_cmds=
  5381. - # Just being paranoid about ensuring that cc_basename is set.
  5382. - for cc_temp in $compiler""; do
  5383. - case $cc_temp in
  5384. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5385. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5386. - \-*) ;;
  5387. - *) break;;
  5388. - esac
  5389. -done
  5390. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5391. case $host_os in
  5392. - cygwin* | mingw* | pw32*)
  5393. + cygwin* | mingw* | pw32* | cegcc*)
  5394. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5395. # When not using gcc, we currently assume that we are using
  5396. # Microsoft Visual C++.
  5397. @@ -9133,16 +9125,16 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -
  5398. # are reset later if shared libraries are not supported. Putting them
  5399. # here allows them to be overridden if necessary.
  5400. runpath_var=LD_RUN_PATH
  5401. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  5402. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  5403. export_dynamic_flag_spec='${wl}--export-dynamic'
  5404. # ancient GNU ld didn't support --whole-archive et. al.
  5405. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  5406. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5407. - else
  5408. - whole_archive_flag_spec=
  5409. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  5410. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5411. + else
  5412. + whole_archive_flag_spec=
  5413. fi
  5414. supports_anon_versioning=no
  5415. - case `$LD -v 2>/dev/null` in
  5416. + case `$LD -v 2>&1` in
  5417. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  5418. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5419. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5420. @@ -9156,7 +9148,7 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -
  5421. # On AIX/PPC, the GNU linker is very broken
  5422. if test "$host_cpu" != ia64; then
  5423. ld_shlibs=no
  5424. - cat <<EOF 1>&2
  5425. + cat <<_LT_EOF 1>&2
  5426. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5427. *** to be unable to reliably create shared libraries on AIX.
  5428. @@ -9164,26 +9156,27 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -
  5429. *** really care for shared libraries, you may want to modify your PATH
  5430. *** so that a non-GNU linker is found, and then restart.
  5431. -EOF
  5432. +_LT_EOF
  5433. fi
  5434. ;;
  5435. amigaos*)
  5436. - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5437. - hardcode_libdir_flag_spec='-L$libdir'
  5438. - hardcode_minus_L=yes
  5439. -
  5440. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  5441. - # that the semantics of dynamic libraries on AmigaOS, at least up
  5442. - # to version 4, is to share data among multiple programs linked
  5443. - # with the same dynamic library. Since this doesn't match the
  5444. - # behavior of shared libraries on other platforms, we can't use
  5445. - # them.
  5446. - ld_shlibs=no
  5447. + case $host_cpu in
  5448. + powerpc)
  5449. + # see comment about AmigaOS4 .so support
  5450. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5451. + archive_expsym_cmds=''
  5452. + ;;
  5453. + m68k)
  5454. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5455. + hardcode_libdir_flag_spec='-L$libdir'
  5456. + hardcode_minus_L=yes
  5457. + ;;
  5458. + esac
  5459. ;;
  5460. beos*)
  5461. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5462. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5463. allow_undefined_flag=unsupported
  5464. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5465. # support --undefined. This deserves some investigation. FIXME
  5466. @@ -9193,16 +9186,16 @@ EOF
  5467. fi
  5468. ;;
  5469. - cygwin* | mingw* | pw32*)
  5470. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  5471. + cygwin* | mingw* | pw32* | cegcc*)
  5472. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  5473. # as there is no search path for DLLs.
  5474. hardcode_libdir_flag_spec='-L$libdir'
  5475. allow_undefined_flag=unsupported
  5476. always_export_symbols=no
  5477. enable_shared_with_static_runtimes=yes
  5478. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  5479. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  5480. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5481. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5482. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5483. # If the export-symbols file already is a .def file (1st line
  5484. # is EXPORTS), use it as is; otherwise, prepend...
  5485. @@ -9233,48 +9226,78 @@ EOF
  5486. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5487. ;;
  5488. - gnu* | linux* | k*bsd*-gnu)
  5489. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5490. + gnu* | linux* | tpf* | k*bsd*-gnu)
  5491. + tmp_diet=no
  5492. + if test "$host_os" = linux-dietlibc; then
  5493. + case $cc_basename in
  5494. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  5495. + esac
  5496. + fi
  5497. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  5498. + && test "$tmp_diet" = no
  5499. + then
  5500. tmp_addflag=
  5501. + tmp_sharedflag='-shared'
  5502. case $cc_basename,$host_cpu in
  5503. - pgcc*) # Portland Group C compiler
  5504. - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5505. + pgcc*) # Portland Group C compiler
  5506. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5507. tmp_addflag=' $pic_flag'
  5508. ;;
  5509. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5510. - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5511. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5512. tmp_addflag=' $pic_flag -Mnomain' ;;
  5513. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5514. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5515. tmp_addflag=' -i_dynamic' ;;
  5516. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5517. tmp_addflag=' -i_dynamic -nofor_main' ;;
  5518. ifc* | ifort*) # Intel Fortran compiler
  5519. tmp_addflag=' -nofor_main' ;;
  5520. + lf95*) # Lahey Fortran 8.1
  5521. + whole_archive_flag_spec=
  5522. + tmp_sharedflag='--shared' ;;
  5523. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  5524. + tmp_sharedflag='-qmkshrobj'
  5525. + tmp_addflag= ;;
  5526. esac
  5527. case `$CC -V 2>&1 | sed 5q` in
  5528. *Sun\ C*) # Sun C 5.9
  5529. - whole_archive_flag_spec='${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'
  5530. + whole_archive_flag_spec='${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'
  5531. + compiler_needs_object=yes
  5532. tmp_sharedflag='-G' ;;
  5533. *Sun\ F*) # Sun Fortran 8.3
  5534. tmp_sharedflag='-G' ;;
  5535. - *)
  5536. - tmp_sharedflag='-shared' ;;
  5537. esac
  5538. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5539. - if test $supports_anon_versioning = yes; then
  5540. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  5541. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5542. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  5543. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5544. - fi
  5545. + if test "x$supports_anon_versioning" = xyes; then
  5546. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  5547. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5548. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5549. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5550. + fi
  5551. +
  5552. + case $cc_basename in
  5553. + xlf*)
  5554. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  5555. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  5556. + hardcode_libdir_flag_spec=
  5557. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  5558. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  5559. + if test "x$supports_anon_versioning" = xyes; then
  5560. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  5561. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5562. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5563. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  5564. + fi
  5565. + ;;
  5566. + esac
  5567. else
  5568. - ld_shlibs=no
  5569. + ld_shlibs=no
  5570. fi
  5571. ;;
  5572. netbsd*)
  5573. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5574. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5575. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5576. wlarc=
  5577. else
  5578. @@ -9284,9 +9307,9 @@ EOF
  5579. ;;
  5580. solaris*)
  5581. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5582. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  5583. ld_shlibs=no
  5584. - cat <<EOF 1>&2
  5585. + cat <<_LT_EOF 1>&2
  5586. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5587. *** create shared libraries on Solaris systems. Therefore, libtool
  5588. @@ -9295,8 +9318,8 @@ EOF
  5589. *** your PATH or compiler configuration so that the native linker is
  5590. *** used, and then restart.
  5591. -EOF
  5592. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5593. +_LT_EOF
  5594. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5595. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5596. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5597. else
  5598. @@ -9320,10 +9343,14 @@ EOF
  5599. _LT_EOF
  5600. ;;
  5601. *)
  5602. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5603. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  5604. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  5605. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  5606. + # For security reasons, it is highly recommended that you always
  5607. + # use absolute paths for naming shared libraries, and exclude the
  5608. + # DT_RUNPATH tag from executables and libraries. But doing so
  5609. + # requires that you compile everything twice, which is a pain.
  5610. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5611. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  5612. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5613. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5614. else
  5615. ld_shlibs=no
  5616. fi
  5617. @@ -9339,7 +9366,7 @@ _LT_EOF
  5618. ;;
  5619. *)
  5620. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5621. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5622. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5623. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5624. else
  5625. @@ -9381,10 +9408,10 @@ _LT_EOF
  5626. else
  5627. # If we're using GNU nm, then we don't want the "-C" option.
  5628. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5629. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5630. - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  5631. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5632. + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  5633. else
  5634. - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  5635. + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  5636. fi
  5637. aix_use_runtimelinking=no
  5638. @@ -9393,10 +9420,10 @@ _LT_EOF
  5639. # need to do runtime linking.
  5640. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  5641. for ld_flag in $LDFLAGS; do
  5642. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5643. - aix_use_runtimelinking=yes
  5644. - break
  5645. - fi
  5646. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5647. + aix_use_runtimelinking=yes
  5648. + break
  5649. + fi
  5650. done
  5651. ;;
  5652. esac
  5653. @@ -9413,28 +9440,30 @@ _LT_EOF
  5654. archive_cmds=''
  5655. hardcode_direct=yes
  5656. + hardcode_direct_absolute=yes
  5657. hardcode_libdir_separator=':'
  5658. link_all_deplibs=yes
  5659. + file_list_spec='${wl}-f,'
  5660. if test "$GCC" = yes; then
  5661. case $host_os in aix4.[012]|aix4.[012].*)
  5662. # We only want to do this on AIX 4.2 and lower, the check
  5663. # below for broken collect2 doesn't work under 4.3+
  5664. collect2name=`${CC} -print-prog-name=collect2`
  5665. - if test -f "$collect2name" && \
  5666. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5667. + if test -f "$collect2name" &&
  5668. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5669. then
  5670. - # We have reworked collect2
  5671. - :
  5672. + # We have reworked collect2
  5673. + :
  5674. else
  5675. - # We have old collect2
  5676. - hardcode_direct=unsupported
  5677. - # It fails to find uninstalled libraries when the uninstalled
  5678. - # path is not listed in the libpath. Setting hardcode_minus_L
  5679. - # to unsupported forces relinking
  5680. - hardcode_minus_L=yes
  5681. - hardcode_libdir_flag_spec='-L$libdir'
  5682. - hardcode_libdir_separator=
  5683. + # We have old collect2
  5684. + hardcode_direct=unsupported
  5685. + # It fails to find uninstalled libraries when the uninstalled
  5686. + # path is not listed in the libpath. Setting hardcode_minus_L
  5687. + # to unsupported forces relinking
  5688. + hardcode_minus_L=yes
  5689. + hardcode_libdir_flag_spec='-L$libdir'
  5690. + hardcode_libdir_separator=
  5691. fi
  5692. ;;
  5693. esac
  5694. @@ -9445,8 +9474,8 @@ _LT_EOF
  5695. else
  5696. # not using gcc
  5697. if test "$host_cpu" = ia64; then
  5698. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5699. - # chokes on -Wl,-G. The following line is correct:
  5700. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5701. + # chokes on -Wl,-G. The following line is correct:
  5702. shared_flag='-G'
  5703. else
  5704. if test "$aix_use_runtimelinking" = yes; then
  5705. @@ -9457,6 +9486,7 @@ _LT_EOF
  5706. fi
  5707. fi
  5708. + export_dynamic_flag_spec='${wl}-bexpall'
  5709. # It seems that -bexpall does not export symbols beginning with
  5710. # underscore (_), so it is better to generate a list of symbols to export.
  5711. always_export_symbols=yes
  5712. @@ -9464,8 +9494,9 @@ _LT_EOF
  5713. # Warning - without using the other runtime loading flags (-brtl),
  5714. # -berok will link without error, but may produce a broken library.
  5715. allow_undefined_flag='-berok'
  5716. - # Determine the default libpath from the value encoded in an empty executable.
  5717. - cat >conftest.$ac_ext <<_ACEOF
  5718. + # Determine the default libpath from the value encoded in an
  5719. + # empty executable.
  5720. + cat >conftest.$ac_ext <<_ACEOF
  5721. /* confdefs.h. */
  5722. _ACEOF
  5723. cat confdefs.h >>conftest.$ac_ext
  5724. @@ -9526,15 +9557,16 @@ rm -f core conftest.err conftest.$ac_obj
  5725. conftest$ac_exeext conftest.$ac_ext
  5726. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  5727. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  5728. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5729. - else
  5730. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  5731. + archive_expsym_cmds='$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"
  5732. + else
  5733. if test "$host_cpu" = ia64; then
  5734. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  5735. allow_undefined_flag="-z nodefs"
  5736. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  5737. else
  5738. - # Determine the default libpath from the value encoded in an empty executable.
  5739. + # Determine the default libpath from the value encoded in an
  5740. + # empty executable.
  5741. cat >conftest.$ac_ext <<_ACEOF
  5742. /* confdefs.h. */
  5743. _ACEOF
  5744. @@ -9611,18 +9643,25 @@ if test -z "$aix_libpath"; then aix_libp
  5745. ;;
  5746. amigaos*)
  5747. - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5748. - hardcode_libdir_flag_spec='-L$libdir'
  5749. - hardcode_minus_L=yes
  5750. - # see comment about different semantics on the GNU ld section
  5751. - ld_shlibs=no
  5752. + case $host_cpu in
  5753. + powerpc)
  5754. + # see comment about AmigaOS4 .so support
  5755. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5756. + archive_expsym_cmds=''
  5757. + ;;
  5758. + m68k)
  5759. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5760. + hardcode_libdir_flag_spec='-L$libdir'
  5761. + hardcode_minus_L=yes
  5762. + ;;
  5763. + esac
  5764. ;;
  5765. bsdi[45]*)
  5766. export_dynamic_flag_spec=-rdynamic
  5767. ;;
  5768. - cygwin* | mingw* | pw32*)
  5769. + cygwin* | mingw* | pw32* | cegcc*)
  5770. # When not using gcc, we currently assume that we are using
  5771. # Microsoft Visual C++.
  5772. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5773. @@ -9634,9 +9673,9 @@ if test -z "$aix_libpath"; then aix_libp
  5774. # Tell ltmain to make .dll files, not .so files.
  5775. shrext_cmds=".dll"
  5776. # FIXME: Setting linknames here is a bad hack.
  5777. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5778. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5779. # The linker will automatically build a .lib file if we build a DLL.
  5780. - old_archive_From_new_cmds='true'
  5781. + old_archive_from_new_cmds='true'
  5782. # FIXME: Should let the user specify the lib program.
  5783. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  5784. fix_srcfile_path='`cygpath -w "$srcfile"`'
  5785. @@ -9644,52 +9683,30 @@ if test -z "$aix_libpath"; then aix_libp
  5786. ;;
  5787. darwin* | rhapsody*)
  5788. - case $host_os in
  5789. - rhapsody* | darwin1.[012])
  5790. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  5791. - ;;
  5792. - *) # Darwin 1.3 on
  5793. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5794. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5795. - else
  5796. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5797. - 10.[012])
  5798. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5799. - ;;
  5800. - 10.*)
  5801. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  5802. - ;;
  5803. - esac
  5804. - fi
  5805. - ;;
  5806. - esac
  5807. - archive_cmds_need_lc=no
  5808. - hardcode_direct=no
  5809. - hardcode_automatic=yes
  5810. - hardcode_shlibpath_var=unsupported
  5811. - whole_archive_flag_spec=''
  5812. - link_all_deplibs=yes
  5813. - if test "$GCC" = yes ; then
  5814. - output_verbose_link_cmd='echo'
  5815. - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  5816. - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  5817. - archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  5818. - module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  5819. - else
  5820. - case $cc_basename in
  5821. - xlc*)
  5822. - output_verbose_link_cmd='echo'
  5823. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  5824. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5825. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5826. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5827. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5828. - ;;
  5829. - *)
  5830. - ld_shlibs=no
  5831. - ;;
  5832. - esac
  5833. - fi
  5834. +
  5835. +
  5836. + archive_cmds_need_lc=no
  5837. + hardcode_direct=no
  5838. + hardcode_automatic=yes
  5839. + hardcode_shlibpath_var=unsupported
  5840. + whole_archive_flag_spec=''
  5841. + link_all_deplibs=yes
  5842. + allow_undefined_flag="$_lt_dar_allow_undefined"
  5843. + case $cc_basename in
  5844. + ifort*) _lt_dar_can_shared=yes ;;
  5845. + *) _lt_dar_can_shared=$GCC ;;
  5846. + esac
  5847. + if test "$_lt_dar_can_shared" = "yes"; then
  5848. + output_verbose_link_cmd=echo
  5849. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  5850. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  5851. + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  5852. + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  5853. +
  5854. + else
  5855. + ld_shlibs=no
  5856. + fi
  5857. +
  5858. ;;
  5859. dgux*)
  5860. @@ -9731,9 +9748,9 @@ if test -z "$aix_libpath"; then aix_libp
  5861. hpux9*)
  5862. if test "$GCC" = yes; then
  5863. - archive_cmds='$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'
  5864. + archive_cmds='$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'
  5865. else
  5866. - archive_cmds='$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'
  5867. + archive_cmds='$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'
  5868. fi
  5869. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  5870. hardcode_libdir_separator=:
  5871. @@ -9753,11 +9770,11 @@ if test -z "$aix_libpath"; then aix_libp
  5872. fi
  5873. if test "$with_gnu_ld" = no; then
  5874. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  5875. + hardcode_libdir_flag_spec_ld='+b $libdir'
  5876. hardcode_libdir_separator=:
  5877. -
  5878. hardcode_direct=yes
  5879. + hardcode_direct_absolute=yes
  5880. export_dynamic_flag_spec='${wl}-E'
  5881. -
  5882. # hardcode_minus_L: Not really in the search PATH,
  5883. # but as the default location of the library.
  5884. hardcode_minus_L=yes
  5885. @@ -9771,7 +9788,7 @@ if test -z "$aix_libpath"; then aix_libp
  5886. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5887. ;;
  5888. ia64*)
  5889. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5890. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5891. ;;
  5892. *)
  5893. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5894. @@ -9796,12 +9813,12 @@ if test -z "$aix_libpath"; then aix_libp
  5895. case $host_cpu in
  5896. hppa*64*|ia64*)
  5897. - hardcode_libdir_flag_spec_ld='+b $libdir'
  5898. hardcode_direct=no
  5899. hardcode_shlibpath_var=no
  5900. ;;
  5901. *)
  5902. hardcode_direct=yes
  5903. + hardcode_direct_absolute=yes
  5904. export_dynamic_flag_spec='${wl}-E'
  5905. # hardcode_minus_L: Not really in the search PATH,
  5906. @@ -9814,18 +9831,62 @@ if test -z "$aix_libpath"; then aix_libp
  5907. irix5* | irix6* | nonstopux*)
  5908. if test "$GCC" = yes; then
  5909. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5910. + archive_cmds='$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'
  5911. + # Try to use the -exported_symbol ld option, if it does not
  5912. + # work, assume that -exports_file does not work either and
  5913. + # implicitly export all symbols.
  5914. + save_LDFLAGS="$LDFLAGS"
  5915. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  5916. + cat >conftest.$ac_ext <<_ACEOF
  5917. +int foo(void) {}
  5918. +_ACEOF
  5919. +rm -f conftest.$ac_objext conftest$ac_exeext
  5920. +if { (ac_try="$ac_link"
  5921. +case "(($ac_try" in
  5922. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5923. + *) ac_try_echo=$ac_try;;
  5924. +esac
  5925. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5926. +$as_echo "$ac_try_echo") >&5
  5927. + (eval "$ac_link") 2>conftest.er1
  5928. + ac_status=$?
  5929. + grep -v '^ *+' conftest.er1 >conftest.err
  5930. + rm -f conftest.er1
  5931. + cat conftest.err >&5
  5932. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5933. + (exit $ac_status); } && {
  5934. + test -z "$ac_c_werror_flag" ||
  5935. + test ! -s conftest.err
  5936. + } && test -s conftest$ac_exeext && {
  5937. + test "$cross_compiling" = yes ||
  5938. + $as_test_x conftest$ac_exeext
  5939. + }; then
  5940. + archive_expsym_cmds='$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'
  5941. +
  5942. +else
  5943. + $as_echo "$as_me: failed program was:" >&5
  5944. +sed 's/^/| /' conftest.$ac_ext >&5
  5945. +
  5946. +
  5947. +fi
  5948. +
  5949. +rm -rf conftest.dSYM
  5950. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5951. + conftest$ac_exeext conftest.$ac_ext
  5952. + LDFLAGS="$save_LDFLAGS"
  5953. else
  5954. - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5955. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  5956. + archive_cmds='$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'
  5957. + archive_expsym_cmds='$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'
  5958. fi
  5959. + archive_cmds_need_lc='no'
  5960. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  5961. hardcode_libdir_separator=:
  5962. + inherit_rpath=yes
  5963. link_all_deplibs=yes
  5964. ;;
  5965. netbsd*)
  5966. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5967. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5968. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5969. else
  5970. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5971. @@ -9843,11 +9904,15 @@ if test -z "$aix_libpath"; then aix_libp
  5972. hardcode_shlibpath_var=no
  5973. ;;
  5974. + *nto* | *qnx*)
  5975. + ;;
  5976. +
  5977. openbsd*)
  5978. if test -f /usr/libexec/ld.so; then
  5979. hardcode_direct=yes
  5980. hardcode_shlibpath_var=no
  5981. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5982. + hardcode_direct_absolute=yes
  5983. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5984. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5985. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  5986. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  5987. @@ -9863,7 +9928,7 @@ if test -z "$aix_libpath"; then aix_libp
  5988. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  5989. ;;
  5990. esac
  5991. - fi
  5992. + fi
  5993. else
  5994. ld_shlibs=no
  5995. fi
  5996. @@ -9873,18 +9938,19 @@ if test -z "$aix_libpath"; then aix_libp
  5997. hardcode_libdir_flag_spec='-L$libdir'
  5998. hardcode_minus_L=yes
  5999. allow_undefined_flag=unsupported
  6000. - archive_cmds='$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'
  6001. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6002. + archive_cmds='$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'
  6003. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6004. ;;
  6005. osf3*)
  6006. if test "$GCC" = yes; then
  6007. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6008. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6009. + archive_cmds='$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'
  6010. else
  6011. allow_undefined_flag=' -expect_unresolved \*'
  6012. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6013. + archive_cmds='$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'
  6014. fi
  6015. + archive_cmds_need_lc='no'
  6016. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6017. hardcode_libdir_separator=:
  6018. ;;
  6019. @@ -9892,32 +9958,43 @@ if test -z "$aix_libpath"; then aix_libp
  6020. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6021. if test "$GCC" = yes; then
  6022. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6023. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6024. + archive_cmds='$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'
  6025. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6026. else
  6027. allow_undefined_flag=' -expect_unresolved \*'
  6028. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6029. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6030. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  6031. + archive_cmds='$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'
  6032. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  6033. + $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'
  6034. # Both c and cxx compiler support -rpath directly
  6035. hardcode_libdir_flag_spec='-rpath $libdir'
  6036. fi
  6037. + archive_cmds_need_lc='no'
  6038. hardcode_libdir_separator=:
  6039. ;;
  6040. solaris*)
  6041. - no_undefined_flag=' -z text'
  6042. + no_undefined_flag=' -z defs'
  6043. if test "$GCC" = yes; then
  6044. wlarc='${wl}'
  6045. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6046. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6047. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6048. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6049. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6050. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6051. else
  6052. - wlarc=''
  6053. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6054. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6055. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6056. + case `$CC -V 2>&1` in
  6057. + *"Compilers 5.0"*)
  6058. + wlarc=''
  6059. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6060. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6061. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  6062. + ;;
  6063. + *)
  6064. + wlarc='${wl}'
  6065. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6066. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6067. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6068. + ;;
  6069. + esac
  6070. fi
  6071. hardcode_libdir_flag_spec='-R$libdir'
  6072. hardcode_shlibpath_var=no
  6073. @@ -9927,7 +10004,7 @@ if test -z "$aix_libpath"; then aix_libp
  6074. # The compiler driver will combine and reorder linker options,
  6075. # but understands `-z linker_flag'. GCC discards it without `$wl',
  6076. # but is careful enough not to reorder.
  6077. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  6078. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  6079. if test "$GCC" = yes; then
  6080. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6081. else
  6082. @@ -10016,18 +10093,18 @@ if test -z "$aix_libpath"; then aix_libp
  6083. allow_undefined_flag='${wl}-z,nodefs'
  6084. archive_cmds_need_lc=no
  6085. hardcode_shlibpath_var=no
  6086. - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6087. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  6088. hardcode_libdir_separator=':'
  6089. link_all_deplibs=yes
  6090. export_dynamic_flag_spec='${wl}-Bexport'
  6091. runpath_var='LD_RUN_PATH'
  6092. if test "$GCC" = yes; then
  6093. - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6094. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6095. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6096. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6097. else
  6098. - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6099. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6100. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6101. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6102. fi
  6103. ;;
  6104. @@ -10041,12 +10118,36 @@ if test -z "$aix_libpath"; then aix_libp
  6105. ld_shlibs=no
  6106. ;;
  6107. esac
  6108. +
  6109. + if test x$host_vendor = xsni; then
  6110. + case $host in
  6111. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6112. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  6113. + ;;
  6114. + esac
  6115. + fi
  6116. fi
  6117. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  6118. $as_echo "$ld_shlibs" >&6; }
  6119. test "$ld_shlibs" = no && can_build_shared=no
  6120. +with_gnu_ld=$with_gnu_ld
  6121. +
  6122. +
  6123. +
  6124. +
  6125. +
  6126. +
  6127. +
  6128. +
  6129. +
  6130. +
  6131. +
  6132. +
  6133. +
  6134. +
  6135. +
  6136. #
  6137. # Do we need to explicitly link libc?
  6138. #
  6139. @@ -10066,7 +10167,7 @@ x|xyes)
  6140. # to ld, don't add -lc before -lgcc.
  6141. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  6142. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  6143. - $rm conftest*
  6144. + $RM conftest*
  6145. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6146. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6147. @@ -10087,8 +10188,8 @@ $as_echo_n "checking whether -lc should
  6148. libname=conftest
  6149. lt_save_allow_undefined_flag=$allow_undefined_flag
  6150. allow_undefined_flag=
  6151. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6152. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6153. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  6154. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6155. ac_status=$?
  6156. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6157. (exit $ac_status); }
  6158. @@ -10101,7 +10202,7 @@ $as_echo_n "checking whether -lc should
  6159. else
  6160. cat conftest.err 1>&5
  6161. fi
  6162. - $rm conftest*
  6163. + $RM conftest*
  6164. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  6165. $as_echo "$archive_cmds_need_lc" >&6; }
  6166. ;;
  6167. @@ -10110,21 +10211,164 @@ $as_echo "$archive_cmds_need_lc" >&6; }
  6168. ;;
  6169. esac
  6170. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  6171. +
  6172. +
  6173. +
  6174. +
  6175. +
  6176. +
  6177. +
  6178. +
  6179. +
  6180. +
  6181. +
  6182. +
  6183. +
  6184. +
  6185. +
  6186. +
  6187. +
  6188. +
  6189. +
  6190. +
  6191. +
  6192. +
  6193. +
  6194. +
  6195. +
  6196. +
  6197. +
  6198. +
  6199. +
  6200. +
  6201. +
  6202. +
  6203. +
  6204. +
  6205. +
  6206. +
  6207. +
  6208. +
  6209. +
  6210. +
  6211. +
  6212. +
  6213. +
  6214. +
  6215. +
  6216. +
  6217. +
  6218. +
  6219. +
  6220. +
  6221. +
  6222. +
  6223. +
  6224. +
  6225. +
  6226. +
  6227. +
  6228. +
  6229. +
  6230. +
  6231. +
  6232. +
  6233. +
  6234. +
  6235. +
  6236. +
  6237. +
  6238. +
  6239. +
  6240. +
  6241. +
  6242. +
  6243. +
  6244. +
  6245. +
  6246. +
  6247. +
  6248. +
  6249. +
  6250. +
  6251. +
  6252. +
  6253. +
  6254. +
  6255. +
  6256. +
  6257. +
  6258. +
  6259. +
  6260. +
  6261. +
  6262. +
  6263. +
  6264. +
  6265. +
  6266. +
  6267. +
  6268. +
  6269. +
  6270. +
  6271. +
  6272. +
  6273. +
  6274. +
  6275. +
  6276. +
  6277. +
  6278. +
  6279. +
  6280. +
  6281. +
  6282. +
  6283. +
  6284. +
  6285. +
  6286. +
  6287. +
  6288. +
  6289. +
  6290. +
  6291. +
  6292. +
  6293. +
  6294. +
  6295. +
  6296. +
  6297. +
  6298. +
  6299. +
  6300. +
  6301. +
  6302. +
  6303. +
  6304. +
  6305. +
  6306. +
  6307. +
  6308. +
  6309. +
  6310. +
  6311. +
  6312. +
  6313. +
  6314. +
  6315. +
  6316. +
  6317. +
  6318. +
  6319. +
  6320. +
  6321. +
  6322. +
  6323. +
  6324. +
  6325. +
  6326. +
  6327. + { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  6328. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  6329. -library_names_spec=
  6330. -libname_spec='lib$name'
  6331. -soname_spec=
  6332. -shrext_cmds=".so"
  6333. -postinstall_cmds=
  6334. -postuninstall_cmds=
  6335. -finish_cmds=
  6336. -finish_eval=
  6337. -shlibpath_var=
  6338. -shlibpath_overrides_runpath=unknown
  6339. -version_type=none
  6340. -dynamic_linker="$host_os ld.so"
  6341. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  6342. if test "$GCC" = yes; then
  6343. case $host_os in
  6344. @@ -10132,14 +10376,14 @@ if test "$GCC" = yes; then
  6345. *) lt_awk_arg="/^libraries:/" ;;
  6346. esac
  6347. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6348. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  6349. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  6350. # if the path contains ";" then we assume it to be the separator
  6351. # otherwise default to the standard path separator (i.e. ":") - it is
  6352. # assumed that no part of a normal pathname contains ";" but that should
  6353. # okay in the real world where ";" in dirpaths is itself problematic.
  6354. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  6355. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  6356. else
  6357. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6358. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6359. fi
  6360. # Ok, now we have the path, separated by spaces, we can step through it
  6361. # and add multilib dir if necessary.
  6362. @@ -10153,7 +10397,7 @@ if test "$GCC" = yes; then
  6363. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  6364. fi
  6365. done
  6366. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  6367. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  6368. BEGIN {RS=" "; FS="/|\n";} {
  6369. lt_foo="";
  6370. lt_count=0;
  6371. @@ -10173,10 +10417,23 @@ BEGIN {RS=" "; FS="/|\n";} {
  6372. if (lt_foo != "") { lt_freq[lt_foo]++; }
  6373. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  6374. }'`
  6375. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  6376. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  6377. else
  6378. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  6379. fi
  6380. +library_names_spec=
  6381. +libname_spec='lib$name'
  6382. +soname_spec=
  6383. +shrext_cmds=".so"
  6384. +postinstall_cmds=
  6385. +postuninstall_cmds=
  6386. +finish_cmds=
  6387. +finish_eval=
  6388. +shlibpath_var=
  6389. +shlibpath_overrides_runpath=unknown
  6390. +version_type=none
  6391. +dynamic_linker="$host_os ld.so"
  6392. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  6393. need_lib_prefix=unknown
  6394. hardcode_into_libs=no
  6395. @@ -10213,7 +10470,7 @@ aix[4-9]*)
  6396. aix4 | aix4.[01] | aix4.[01].*)
  6397. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  6398. echo ' yes '
  6399. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  6400. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  6401. :
  6402. else
  6403. can_build_shared=no
  6404. @@ -10239,9 +10496,18 @@ aix[4-9]*)
  6405. ;;
  6406. amigaos*)
  6407. - library_names_spec='$libname.ixlibrary $libname.a'
  6408. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  6409. - 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'
  6410. + case $host_cpu in
  6411. + powerpc)
  6412. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  6413. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  6414. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6415. + ;;
  6416. + m68k)
  6417. + library_names_spec='$libname.ixlibrary $libname.a'
  6418. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  6419. + 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'
  6420. + ;;
  6421. + esac
  6422. ;;
  6423. beos*)
  6424. @@ -10264,25 +10530,28 @@ bsdi[45]*)
  6425. # libtool to hard-code these into programs
  6426. ;;
  6427. -cygwin* | mingw* | pw32*)
  6428. +cygwin* | mingw* | pw32* | cegcc*)
  6429. version_type=windows
  6430. shrext_cmds=".dll"
  6431. need_version=no
  6432. need_lib_prefix=no
  6433. case $GCC,$host_os in
  6434. - yes,cygwin* | yes,mingw* | yes,pw32*)
  6435. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  6436. library_names_spec='$libname.dll.a'
  6437. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  6438. postinstall_cmds='base_file=`basename \${file}`~
  6439. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  6440. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  6441. dldir=$destdir/`dirname \$dlpath`~
  6442. test -d \$dldir || mkdir -p \$dldir~
  6443. $install_prog $dir/$dlname \$dldir/$dlname~
  6444. - chmod a+x \$dldir/$dlname'
  6445. + chmod a+x \$dldir/$dlname~
  6446. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  6447. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  6448. + fi'
  6449. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  6450. dlpath=$dir/\$dldll~
  6451. - $rm \$dlpath'
  6452. + $RM \$dlpath'
  6453. shlibpath_overrides_runpath=yes
  6454. case $host_os in
  6455. @@ -10291,20 +10560,20 @@ cygwin* | mingw* | pw32*)
  6456. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6457. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  6458. ;;
  6459. - mingw*)
  6460. + mingw* | cegcc*)
  6461. # MinGW DLLs use traditional 'lib' prefix
  6462. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6463. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6464. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  6465. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6466. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  6467. # It is most probably a Windows format PATH printed by
  6468. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  6469. # path with ; separators, and with drive letters. We can handle the
  6470. # drive letters (cygwin fileutils understands them), so leave them,
  6471. # especially as we might pass files found there to a mingw objdump,
  6472. # which wouldn't understand a cygwinified path. Ahh.
  6473. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6474. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6475. else
  6476. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6477. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6478. fi
  6479. ;;
  6480. pw32*)
  6481. @@ -10328,7 +10597,7 @@ darwin* | rhapsody*)
  6482. version_type=darwin
  6483. need_lib_prefix=no
  6484. need_version=no
  6485. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  6486. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  6487. soname_spec='${libname}${release}${major}$shared_ext'
  6488. shlibpath_overrides_runpath=yes
  6489. shlibpath_var=DYLD_LIBRARY_PATH
  6490. @@ -10362,7 +10631,14 @@ freebsd* | dragonfly*)
  6491. *) objformat=elf ;;
  6492. esac
  6493. fi
  6494. - version_type=freebsd-$objformat
  6495. + # Handle Gentoo/FreeBSD as it was Linux
  6496. + case $host_vendor in
  6497. + gentoo)
  6498. + version_type=linux ;;
  6499. + *)
  6500. + version_type=freebsd-$objformat ;;
  6501. + esac
  6502. +
  6503. case $version_type in
  6504. freebsd-elf*)
  6505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  6506. @@ -10373,6 +10649,12 @@ freebsd* | dragonfly*)
  6507. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  6508. need_version=yes
  6509. ;;
  6510. + linux)
  6511. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6512. + soname_spec='${libname}${release}${shared_ext}$major'
  6513. + need_lib_prefix=no
  6514. + need_version=no
  6515. + ;;
  6516. esac
  6517. shlibpath_var=LD_LIBRARY_PATH
  6518. case $host_os in
  6519. @@ -10427,18 +10709,18 @@ hpux9* | hpux10* | hpux11*)
  6520. fi
  6521. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6522. ;;
  6523. - hppa*64*)
  6524. - shrext_cmds='.sl'
  6525. - hardcode_into_libs=yes
  6526. - dynamic_linker="$host_os dld.sl"
  6527. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  6528. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6529. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6530. - soname_spec='${libname}${release}${shared_ext}$major'
  6531. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  6532. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6533. - ;;
  6534. - *)
  6535. + hppa*64*)
  6536. + shrext_cmds='.sl'
  6537. + hardcode_into_libs=yes
  6538. + dynamic_linker="$host_os dld.sl"
  6539. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  6540. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  6541. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6542. + soname_spec='${libname}${release}${shared_ext}$major'
  6543. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  6544. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  6545. + ;;
  6546. + *)
  6547. shrext_cmds='.sl'
  6548. dynamic_linker="$host_os dld.sl"
  6549. shlibpath_var=SHLIB_PATH
  6550. @@ -10515,17 +10797,73 @@ linux* | k*bsd*-gnu)
  6551. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  6552. shlibpath_var=LD_LIBRARY_PATH
  6553. shlibpath_overrides_runpath=no
  6554. + # Some binutils ld are patched to set DT_RUNPATH
  6555. + save_LDFLAGS=$LDFLAGS
  6556. + save_libdir=$libdir
  6557. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  6558. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  6559. + cat >conftest.$ac_ext <<_ACEOF
  6560. +/* confdefs.h. */
  6561. +_ACEOF
  6562. +cat confdefs.h >>conftest.$ac_ext
  6563. +cat >>conftest.$ac_ext <<_ACEOF
  6564. +/* end confdefs.h. */
  6565. +
  6566. +int
  6567. +main ()
  6568. +{
  6569. +
  6570. + ;
  6571. + return 0;
  6572. +}
  6573. +_ACEOF
  6574. +rm -f conftest.$ac_objext conftest$ac_exeext
  6575. +if { (ac_try="$ac_link"
  6576. +case "(($ac_try" in
  6577. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6578. + *) ac_try_echo=$ac_try;;
  6579. +esac
  6580. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6581. +$as_echo "$ac_try_echo") >&5
  6582. + (eval "$ac_link") 2>conftest.er1
  6583. + ac_status=$?
  6584. + grep -v '^ *+' conftest.er1 >conftest.err
  6585. + rm -f conftest.er1
  6586. + cat conftest.err >&5
  6587. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6588. + (exit $ac_status); } && {
  6589. + test -z "$ac_c_werror_flag" ||
  6590. + test ! -s conftest.err
  6591. + } && test -s conftest$ac_exeext && {
  6592. + test "$cross_compiling" = yes ||
  6593. + $as_test_x conftest$ac_exeext
  6594. + }; then
  6595. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  6596. + shlibpath_overrides_runpath=yes
  6597. +fi
  6598. +
  6599. +else
  6600. + $as_echo "$as_me: failed program was:" >&5
  6601. +sed 's/^/| /' conftest.$ac_ext >&5
  6602. +
  6603. +
  6604. +fi
  6605. +
  6606. +rm -rf conftest.dSYM
  6607. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6608. + conftest$ac_exeext conftest.$ac_ext
  6609. + LDFLAGS=$save_LDFLAGS
  6610. + libdir=$save_libdir
  6611. +
  6612. # This implies no fast_install, which is unacceptable.
  6613. # Some rework will be needed to allow for fast_install
  6614. # before this can be enabled.
  6615. hardcode_into_libs=yes
  6616. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  6617. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  6618. # Append ld.so.conf contents to the search path
  6619. if test -f /etc/ld.so.conf; then
  6620. - 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' ' '`
  6621. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  6622. + 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' ' '`
  6623. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  6624. fi
  6625. # We used to test for /lib/ld.so.1 and disable shared libraries on
  6626. @@ -10541,7 +10879,7 @@ netbsd*)
  6627. version_type=sunos
  6628. need_lib_prefix=no
  6629. need_version=no
  6630. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6631. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6633. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6634. dynamic_linker='NetBSD (a.out) ld.so'
  6635. @@ -10562,14 +10900,16 @@ newsos6)
  6636. shlibpath_overrides_runpath=yes
  6637. ;;
  6638. -nto-qnx*)
  6639. - version_type=linux
  6640. +*nto* | *qnx*)
  6641. + version_type=qnx
  6642. need_lib_prefix=no
  6643. need_version=no
  6644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6645. soname_spec='${libname}${release}${shared_ext}$major'
  6646. shlibpath_var=LD_LIBRARY_PATH
  6647. - shlibpath_overrides_runpath=yes
  6648. + shlibpath_overrides_runpath=no
  6649. + hardcode_into_libs=yes
  6650. + dynamic_linker='ldqnx.so'
  6651. ;;
  6652. openbsd*)
  6653. @@ -10578,13 +10918,13 @@ openbsd*)
  6654. need_lib_prefix=no
  6655. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  6656. case $host_os in
  6657. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  6658. - *) need_version=no ;;
  6659. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  6660. + *) need_version=no ;;
  6661. esac
  6662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  6663. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  6664. shlibpath_var=LD_LIBRARY_PATH
  6665. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6666. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6667. case $host_os in
  6668. openbsd2.[89] | openbsd2.[89].*)
  6669. shlibpath_overrides_runpath=no
  6670. @@ -10656,7 +10996,6 @@ sysv4 | sysv4.3*)
  6671. sni)
  6672. shlibpath_overrides_runpath=no
  6673. need_lib_prefix=no
  6674. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  6675. runpath_var=LD_RUN_PATH
  6676. ;;
  6677. siemens)
  6678. @@ -10687,13 +11026,12 @@ sysv5* | sco3.2v5* | sco5v6* | unixware*
  6679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  6680. soname_spec='${libname}${release}${shared_ext}$major'
  6681. shlibpath_var=LD_LIBRARY_PATH
  6682. + shlibpath_overrides_runpath=yes
  6683. hardcode_into_libs=yes
  6684. if test "$with_gnu_ld" = yes; then
  6685. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  6686. - shlibpath_overrides_runpath=no
  6687. else
  6688. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  6689. - shlibpath_overrides_runpath=yes
  6690. case $host_os in
  6691. sco3.2v5*)
  6692. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  6693. @@ -10703,6 +11041,17 @@ sysv5* | sco3.2v5* | sco5v6* | unixware*
  6694. sys_lib_dlsearch_path_spec='/usr/lib'
  6695. ;;
  6696. +tpf*)
  6697. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  6698. + version_type=linux
  6699. + need_lib_prefix=no
  6700. + need_version=no
  6701. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6702. + shlibpath_var=LD_LIBRARY_PATH
  6703. + shlibpath_overrides_runpath=no
  6704. + hardcode_into_libs=yes
  6705. + ;;
  6706. +
  6707. uts4*)
  6708. version_type=linux
  6709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6710. @@ -10718,39 +11067,117 @@ esac
  6711. $as_echo "$dynamic_linker" >&6; }
  6712. test "$dynamic_linker" = no && can_build_shared=no
  6713. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  6714. - $as_echo_n "(cached) " >&6
  6715. -else
  6716. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  6717. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6718. +if test "$GCC" = yes; then
  6719. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6720. fi
  6721. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  6722. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  6723. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  6724. +fi
  6725. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  6726. - $as_echo_n "(cached) " >&6
  6727. -else
  6728. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  6729. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  6730. fi
  6731. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  6732. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6733. -if test "$GCC" = yes; then
  6734. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6735. -fi
  6736. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  6737. +
  6738. +
  6739. +
  6740. +
  6741. +
  6742. +
  6743. +
  6744. +
  6745. +
  6746. +
  6747. +
  6748. +
  6749. +
  6750. +
  6751. +
  6752. +
  6753. +
  6754. +
  6755. +
  6756. +
  6757. +
  6758. +
  6759. +
  6760. +
  6761. +
  6762. +
  6763. +
  6764. +
  6765. +
  6766. +
  6767. +
  6768. +
  6769. +
  6770. +
  6771. +
  6772. +
  6773. +
  6774. +
  6775. +
  6776. +
  6777. +
  6778. +
  6779. +
  6780. +
  6781. +
  6782. +
  6783. +
  6784. +
  6785. +
  6786. +
  6787. +
  6788. +
  6789. +
  6790. +
  6791. +
  6792. +
  6793. +
  6794. +
  6795. +
  6796. +
  6797. +
  6798. +
  6799. +
  6800. +
  6801. +
  6802. +
  6803. +
  6804. +
  6805. +
  6806. +
  6807. +
  6808. +
  6809. +
  6810. +
  6811. +
  6812. +
  6813. +
  6814. +
  6815. +
  6816. +
  6817. +
  6818. +
  6819. +
  6820. +
  6821. + { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  6822. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  6823. hardcode_action=
  6824. -if test -n "$hardcode_libdir_flag_spec" || \
  6825. - test -n "$runpath_var" || \
  6826. +if test -n "$hardcode_libdir_flag_spec" ||
  6827. + test -n "$runpath_var" ||
  6828. test "X$hardcode_automatic" = "Xyes" ; then
  6829. - # We can hardcode non-existant directories.
  6830. + # We can hardcode non-existent directories.
  6831. if test "$hardcode_direct" != no &&
  6832. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  6833. # have to relink, otherwise we might link with an installed library
  6834. # when we should be linking with a yet-to-be-installed one
  6835. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  6836. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  6837. test "$hardcode_minus_L" != no; then
  6838. # Linking always hardcodes the temporary library directory.
  6839. hardcode_action=relink
  6840. @@ -10766,7 +11193,8 @@ fi
  6841. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  6842. $as_echo "$hardcode_action" >&6; }
  6843. -if test "$hardcode_action" = relink; then
  6844. +if test "$hardcode_action" = relink ||
  6845. + test "$inherit_rpath" = yes; then
  6846. # Fast installation is not supported
  6847. enable_fast_install=no
  6848. elif test "$shlibpath_overrides_runpath" = yes ||
  6849. @@ -10775,37 +11203,12 @@ elif test "$shlibpath_overrides_runpath"
  6850. enable_fast_install=needless
  6851. fi
  6852. -striplib=
  6853. -old_striplib=
  6854. -{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  6855. -$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  6856. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  6857. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  6858. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  6859. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  6860. -$as_echo "yes" >&6; }
  6861. -else
  6862. -# FIXME - insert some real tests, host_os isn't really good enough
  6863. - case $host_os in
  6864. - darwin*)
  6865. - if test -n "$STRIP" ; then
  6866. - striplib="$STRIP -x"
  6867. - old_striplib="$STRIP -S"
  6868. - { $as_echo "$as_me:$LINENO: result: yes" >&5
  6869. -$as_echo "yes" >&6; }
  6870. - else
  6871. - { $as_echo "$as_me:$LINENO: result: no" >&5
  6872. -$as_echo "no" >&6; }
  6873. -fi
  6874. - ;;
  6875. - *)
  6876. - { $as_echo "$as_me:$LINENO: result: no" >&5
  6877. -$as_echo "no" >&6; }
  6878. - ;;
  6879. - esac
  6880. -fi
  6881. -if test "x$enable_dlopen" != xyes; then
  6882. +
  6883. +
  6884. +
  6885. +
  6886. + if test "x$enable_dlopen" != xyes; then
  6887. enable_dlopen=unknown
  6888. enable_dlopen_self=unknown
  6889. enable_dlopen_self_static=unknown
  6890. @@ -10820,15 +11223,15 @@ else
  6891. lt_cv_dlopen_self=yes
  6892. ;;
  6893. - mingw* | pw32*)
  6894. + mingw* | pw32* | cegcc*)
  6895. lt_cv_dlopen="LoadLibrary"
  6896. lt_cv_dlopen_libs=
  6897. - ;;
  6898. + ;;
  6899. cygwin*)
  6900. lt_cv_dlopen="dlopen"
  6901. lt_cv_dlopen_libs=
  6902. - ;;
  6903. + ;;
  6904. darwin*)
  6905. # if libdl is installed we need to link against it
  6906. @@ -10907,7 +11310,7 @@ else
  6907. fi
  6908. - ;;
  6909. + ;;
  6910. *)
  6911. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  6912. @@ -11404,8 +11807,8 @@ else
  6913. else
  6914. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  6915. lt_status=$lt_dlunknown
  6916. - cat > conftest.$ac_ext <<EOF
  6917. -#line 11408 "configure"
  6918. + cat > conftest.$ac_ext <<_LT_EOF
  6919. +#line 11811 "configure"
  6920. #include "confdefs.h"
  6921. #if HAVE_DLFCN_H
  6922. @@ -11446,10 +11849,6 @@ else
  6923. # endif
  6924. #endif
  6925. -#ifdef __cplusplus
  6926. -extern "C" void exit (int);
  6927. -#endif
  6928. -
  6929. void fnord() { int i=42;}
  6930. int main ()
  6931. {
  6932. @@ -11465,9 +11864,9 @@ int main ()
  6933. else
  6934. puts (dlerror ());
  6935. - exit (status);
  6936. + return status;
  6937. }
  6938. -EOF
  6939. +_LT_EOF
  6940. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6941. (eval $ac_link) 2>&5
  6942. ac_status=$?
  6943. @@ -11504,8 +11903,8 @@ else
  6944. else
  6945. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  6946. lt_status=$lt_dlunknown
  6947. - cat > conftest.$ac_ext <<EOF
  6948. -#line 11508 "configure"
  6949. + cat > conftest.$ac_ext <<_LT_EOF
  6950. +#line 11907 "configure"
  6951. #include "confdefs.h"
  6952. #if HAVE_DLFCN_H
  6953. @@ -11546,10 +11945,6 @@ else
  6954. # endif
  6955. #endif
  6956. -#ifdef __cplusplus
  6957. -extern "C" void exit (int);
  6958. -#endif
  6959. -
  6960. void fnord() { int i=42;}
  6961. int main ()
  6962. {
  6963. @@ -11565,9 +11960,9 @@ int main ()
  6964. else
  6965. puts (dlerror ());
  6966. - exit (status);
  6967. + return status;
  6968. }
  6969. -EOF
  6970. +_LT_EOF
  6971. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6972. (eval $ac_link) 2>&5
  6973. ac_status=$?
  6974. @@ -11611,9334 +12006,103 @@ $as_echo "$lt_cv_dlopen_self_static" >&6
  6975. fi
  6976. -# Report which library types will actually be built
  6977. -{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  6978. -$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  6979. -{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  6980. -$as_echo "$can_build_shared" >&6; }
  6981. -{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  6982. -$as_echo_n "checking whether to build shared libraries... " >&6; }
  6983. -test "$can_build_shared" = "no" && enable_shared=no
  6984. -# On AIX, shared libraries and static libraries use the same namespace, and
  6985. -# are all built from PIC.
  6986. -case $host_os in
  6987. -aix3*)
  6988. - test "$enable_shared" = yes && enable_static=no
  6989. - if test -n "$RANLIB"; then
  6990. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6991. - postinstall_cmds='$RANLIB $lib'
  6992. - fi
  6993. - ;;
  6994. -aix[4-9]*)
  6995. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6996. - test "$enable_shared" = yes && enable_static=no
  6997. - fi
  6998. - ;;
  6999. -esac
  7000. -{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  7001. -$as_echo "$enable_shared" >&6; }
  7002. -{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  7003. -$as_echo_n "checking whether to build static libraries... " >&6; }
  7004. -# Make sure either enable_shared or enable_static is yes.
  7005. -test "$enable_shared" = yes || enable_static=yes
  7006. -{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  7007. -$as_echo "$enable_static" >&6; }
  7008. -# The else clause should only fire when bootstrapping the
  7009. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  7010. -# with your package, and you will get complaints that there are
  7011. -# no rules to generate ltmain.sh.
  7012. -if test -f "$ltmain"; then
  7013. - # See if we are running on zsh, and set the options which allow our commands through
  7014. - # without removal of \ escapes.
  7015. - if test -n "${ZSH_VERSION+set}" ; then
  7016. - setopt NO_GLOB_SUBST
  7017. - fi
  7018. - # Now quote all the things that may contain metacharacters while being
  7019. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  7020. - # variables and quote the copies for generation of the libtool script.
  7021. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  7022. - SED SHELL STRIP \
  7023. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  7024. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  7025. - deplibs_check_method reload_flag reload_cmds need_locks \
  7026. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  7027. - lt_cv_sys_global_symbol_to_c_name_address \
  7028. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  7029. - old_postinstall_cmds old_postuninstall_cmds \
  7030. - compiler \
  7031. - CC \
  7032. - LD \
  7033. - lt_prog_compiler_wl \
  7034. - lt_prog_compiler_pic \
  7035. - lt_prog_compiler_static \
  7036. - lt_prog_compiler_no_builtin_flag \
  7037. - export_dynamic_flag_spec \
  7038. - thread_safe_flag_spec \
  7039. - whole_archive_flag_spec \
  7040. - enable_shared_with_static_runtimes \
  7041. - old_archive_cmds \
  7042. - old_archive_from_new_cmds \
  7043. - predep_objects \
  7044. - postdep_objects \
  7045. - predeps \
  7046. - postdeps \
  7047. - compiler_lib_search_path \
  7048. - compiler_lib_search_dirs \
  7049. - archive_cmds \
  7050. - archive_expsym_cmds \
  7051. - postinstall_cmds \
  7052. - postuninstall_cmds \
  7053. - old_archive_from_expsyms_cmds \
  7054. - allow_undefined_flag \
  7055. - no_undefined_flag \
  7056. - export_symbols_cmds \
  7057. - hardcode_libdir_flag_spec \
  7058. - hardcode_libdir_flag_spec_ld \
  7059. - hardcode_libdir_separator \
  7060. - hardcode_automatic \
  7061. - module_cmds \
  7062. - module_expsym_cmds \
  7063. - lt_cv_prog_compiler_c_o \
  7064. - fix_srcfile_path \
  7065. - exclude_expsyms \
  7066. - include_expsyms; do
  7067. - case $var in
  7068. - old_archive_cmds | \
  7069. - old_archive_from_new_cmds | \
  7070. - archive_cmds | \
  7071. - archive_expsym_cmds | \
  7072. - module_cmds | \
  7073. - module_expsym_cmds | \
  7074. - old_archive_from_expsyms_cmds | \
  7075. - export_symbols_cmds | \
  7076. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7077. - postinstall_cmds | postuninstall_cmds | \
  7078. - old_postinstall_cmds | old_postuninstall_cmds | \
  7079. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7080. - # Double-quote double-evaled strings.
  7081. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7082. - ;;
  7083. - *)
  7084. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7085. - ;;
  7086. - esac
  7087. - done
  7088. - case $lt_echo in
  7089. - *'\$0 --fallback-echo"')
  7090. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  7091. - ;;
  7092. - esac
  7093. -cfgfile="${ofile}T"
  7094. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7095. - $rm -f "$cfgfile"
  7096. - { $as_echo "$as_me:$LINENO: creating $ofile" >&5
  7097. -$as_echo "$as_me: creating $ofile" >&6;}
  7098. - cat <<__EOF__ >> "$cfgfile"
  7099. -#! $SHELL
  7100. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7101. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7102. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7103. -#
  7104. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  7105. -# Free Software Foundation, Inc.
  7106. -#
  7107. -# This file is part of GNU Libtool:
  7108. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7109. -#
  7110. -# This program is free software; you can redistribute it and/or modify
  7111. -# it under the terms of the GNU General Public License as published by
  7112. -# the Free Software Foundation; either version 2 of the License, or
  7113. -# (at your option) any later version.
  7114. -#
  7115. -# This program is distributed in the hope that it will be useful, but
  7116. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  7117. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7118. -# General Public License for more details.
  7119. -#
  7120. -# You should have received a copy of the GNU General Public License
  7121. -# along with this program; if not, write to the Free Software
  7122. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7123. -#
  7124. -# As a special exception to the GNU General Public License, if you
  7125. -# distribute this file as part of a program that contains a
  7126. -# configuration script generated by Autoconf, you may include it under
  7127. -# the same distribution terms that you use for the rest of that program.
  7128. -# A sed program that does not truncate output.
  7129. -SED=$lt_SED
  7130. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7131. -Xsed="$SED -e 1s/^X//"
  7132. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  7133. -# if CDPATH is set.
  7134. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7135. -# The names of the tagged configurations supported by this script.
  7136. -available_tags=
  7137. -
  7138. -# ### BEGIN LIBTOOL CONFIG
  7139. -
  7140. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7141. -
  7142. -# Shell to use when invoking shell scripts.
  7143. -SHELL=$lt_SHELL
  7144. -
  7145. -# Whether or not to build shared libraries.
  7146. -build_libtool_libs=$enable_shared
  7147. -
  7148. -# Whether or not to build static libraries.
  7149. -build_old_libs=$enable_static
  7150. -
  7151. -# Whether or not to add -lc for building shared libraries.
  7152. -build_libtool_need_lc=$archive_cmds_need_lc
  7153. -
  7154. -# Whether or not to disallow shared libs when runtime libs are static
  7155. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  7156. -
  7157. -# Whether or not to optimize for fast installation.
  7158. -fast_install=$enable_fast_install
  7159. -
  7160. -# The host system.
  7161. -host_alias=$host_alias
  7162. -host=$host
  7163. -host_os=$host_os
  7164. -
  7165. -# The build system.
  7166. -build_alias=$build_alias
  7167. -build=$build
  7168. -build_os=$build_os
  7169. -
  7170. -# An echo program that does not interpret backslashes.
  7171. -echo=$lt_echo
  7172. -
  7173. -# The archiver.
  7174. -AR=$lt_AR
  7175. -AR_FLAGS=$lt_AR_FLAGS
  7176. -
  7177. -# A C compiler.
  7178. -LTCC=$lt_LTCC
  7179. -# LTCC compiler flags.
  7180. -LTCFLAGS=$lt_LTCFLAGS
  7181. -
  7182. -# A language-specific compiler.
  7183. -CC=$lt_compiler
  7184. -
  7185. -# Is the compiler the GNU C compiler?
  7186. -with_gcc=$GCC
  7187. -
  7188. -# An ERE matcher.
  7189. -EGREP=$lt_EGREP
  7190. -
  7191. -# The linker used to build libraries.
  7192. -LD=$lt_LD
  7193. -
  7194. -# Whether we need hard or soft links.
  7195. -LN_S=$lt_LN_S
  7196. -
  7197. -# A BSD-compatible nm program.
  7198. -NM=$lt_NM
  7199. -
  7200. -# A symbol stripping program
  7201. -STRIP=$lt_STRIP
  7202. -
  7203. -# Used to examine libraries when file_magic_cmd begins "file"
  7204. -MAGIC_CMD=$MAGIC_CMD
  7205. -
  7206. -# Used on cygwin: DLL creation program.
  7207. -DLLTOOL="$DLLTOOL"
  7208. -
  7209. -# Used on cygwin: object dumper.
  7210. -OBJDUMP="$OBJDUMP"
  7211. -
  7212. -# Used on cygwin: assembler.
  7213. -AS="$AS"
  7214. -
  7215. -# The name of the directory that contains temporary libtool files.
  7216. -objdir=$objdir
  7217. -
  7218. -# How to create reloadable object files.
  7219. -reload_flag=$lt_reload_flag
  7220. -reload_cmds=$lt_reload_cmds
  7221. -
  7222. -# How to pass a linker flag through the compiler.
  7223. -wl=$lt_lt_prog_compiler_wl
  7224. -
  7225. -# Object file suffix (normally "o").
  7226. -objext="$ac_objext"
  7227. -
  7228. -# Old archive suffix (normally "a").
  7229. -libext="$libext"
  7230. -
  7231. -# Shared library suffix (normally ".so").
  7232. -shrext_cmds='$shrext_cmds'
  7233. -
  7234. -# Executable file suffix (normally "").
  7235. -exeext="$exeext"
  7236. -
  7237. -# Additional compiler flags for building library objects.
  7238. -pic_flag=$lt_lt_prog_compiler_pic
  7239. -pic_mode=$pic_mode
  7240. -
  7241. -# What is the maximum length of a command?
  7242. -max_cmd_len=$lt_cv_sys_max_cmd_len
  7243. -
  7244. -# Does compiler simultaneously support -c and -o options?
  7245. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  7246. -
  7247. -# Must we lock files when doing compilation?
  7248. -need_locks=$lt_need_locks
  7249. -
  7250. -# Do we need the lib prefix for modules?
  7251. -need_lib_prefix=$need_lib_prefix
  7252. -
  7253. -# Do we need a version for libraries?
  7254. -need_version=$need_version
  7255. -
  7256. -# Whether dlopen is supported.
  7257. -dlopen_support=$enable_dlopen
  7258. -
  7259. -# Whether dlopen of programs is supported.
  7260. -dlopen_self=$enable_dlopen_self
  7261. -
  7262. -# Whether dlopen of statically linked programs is supported.
  7263. -dlopen_self_static=$enable_dlopen_self_static
  7264. -
  7265. -# Compiler flag to prevent dynamic linking.
  7266. -link_static_flag=$lt_lt_prog_compiler_static
  7267. -
  7268. -# Compiler flag to turn off builtin functions.
  7269. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  7270. -
  7271. -# Compiler flag to allow reflexive dlopens.
  7272. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  7273. -
  7274. -# Compiler flag to generate shared objects directly from archives.
  7275. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  7276. -
  7277. -# Compiler flag to generate thread-safe objects.
  7278. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  7279. -
  7280. -# Library versioning type.
  7281. -version_type=$version_type
  7282. -
  7283. -# Format of library name prefix.
  7284. -libname_spec=$lt_libname_spec
  7285. -
  7286. -# List of archive names. First name is the real one, the rest are links.
  7287. -# The last name is the one that the linker finds with -lNAME.
  7288. -library_names_spec=$lt_library_names_spec
  7289. -
  7290. -# The coded name of the library, if different from the real name.
  7291. -soname_spec=$lt_soname_spec
  7292. -
  7293. -# Commands used to build and install an old-style archive.
  7294. -RANLIB=$lt_RANLIB
  7295. -old_archive_cmds=$lt_old_archive_cmds
  7296. -old_postinstall_cmds=$lt_old_postinstall_cmds
  7297. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7298. -
  7299. -# Create an old-style archive from a shared archive.
  7300. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  7301. -
  7302. -# Create a temporary old-style archive to link instead of a shared archive.
  7303. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  7304. -
  7305. -# Commands used to build and install a shared archive.
  7306. -archive_cmds=$lt_archive_cmds
  7307. -archive_expsym_cmds=$lt_archive_expsym_cmds
  7308. -postinstall_cmds=$lt_postinstall_cmds
  7309. -postuninstall_cmds=$lt_postuninstall_cmds
  7310. -
  7311. -# Commands used to build a loadable module (assumed same as above if empty)
  7312. -module_cmds=$lt_module_cmds
  7313. -module_expsym_cmds=$lt_module_expsym_cmds
  7314. -
  7315. -# Commands to strip libraries.
  7316. -old_striplib=$lt_old_striplib
  7317. -striplib=$lt_striplib
  7318. -
  7319. -# Dependencies to place before the objects being linked to create a
  7320. -# shared library.
  7321. -predep_objects=$lt_predep_objects
  7322. -
  7323. -# Dependencies to place after the objects being linked to create a
  7324. -# shared library.
  7325. -postdep_objects=$lt_postdep_objects
  7326. -
  7327. -# Dependencies to place before the objects being linked to create a
  7328. -# shared library.
  7329. -predeps=$lt_predeps
  7330. -
  7331. -# Dependencies to place after the objects being linked to create a
  7332. -# shared library.
  7333. -postdeps=$lt_postdeps
  7334. -
  7335. -# The directories searched by this compiler when creating a shared
  7336. -# library
  7337. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  7338. -
  7339. -# The library search path used internally by the compiler when linking
  7340. -# a shared library.
  7341. -compiler_lib_search_path=$lt_compiler_lib_search_path
  7342. -
  7343. -# Method to check whether dependent libraries are shared objects.
  7344. -deplibs_check_method=$lt_deplibs_check_method
  7345. -
  7346. -# Command to use when deplibs_check_method == file_magic.
  7347. -file_magic_cmd=$lt_file_magic_cmd
  7348. -
  7349. -# Flag that allows shared libraries with undefined symbols to be built.
  7350. -allow_undefined_flag=$lt_allow_undefined_flag
  7351. -
  7352. -# Flag that forces no undefined symbols.
  7353. -no_undefined_flag=$lt_no_undefined_flag
  7354. -
  7355. -# Commands used to finish a libtool library installation in a directory.
  7356. -finish_cmds=$lt_finish_cmds
  7357. -
  7358. -# Same as above, but a single script fragment to be evaled but not shown.
  7359. -finish_eval=$lt_finish_eval
  7360. -
  7361. -# Take the output of nm and produce a listing of raw symbols and C names.
  7362. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  7363. -
  7364. -# Transform the output of nm in a proper C declaration
  7365. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  7366. -
  7367. -# Transform the output of nm in a C name address pair
  7368. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  7369. -
  7370. -# This is the shared library runtime path variable.
  7371. -runpath_var=$runpath_var
  7372. -
  7373. -# This is the shared library path variable.
  7374. -shlibpath_var=$shlibpath_var
  7375. -
  7376. -# Is shlibpath searched before the hard-coded library search path?
  7377. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  7378. -
  7379. -# How to hardcode a shared library path into an executable.
  7380. -hardcode_action=$hardcode_action
  7381. -
  7382. -# Whether we should hardcode library paths into libraries.
  7383. -hardcode_into_libs=$hardcode_into_libs
  7384. -
  7385. -# Flag to hardcode \$libdir into a binary during linking.
  7386. -# This must work even if \$libdir does not exist.
  7387. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  7388. -
  7389. -# If ld is used when linking, flag to hardcode \$libdir into
  7390. -# a binary during linking. This must work even if \$libdir does
  7391. -# not exist.
  7392. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  7393. -
  7394. -# Whether we need a single -rpath flag with a separated argument.
  7395. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  7396. -
  7397. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  7398. -# resulting binary.
  7399. -hardcode_direct=$hardcode_direct
  7400. -
  7401. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7402. -# resulting binary.
  7403. -hardcode_minus_L=$hardcode_minus_L
  7404. -
  7405. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7406. -# the resulting binary.
  7407. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  7408. -
  7409. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  7410. -# and all subsequent libraries and executables linked against it.
  7411. -hardcode_automatic=$hardcode_automatic
  7412. -
  7413. -# Variables whose values should be saved in libtool wrapper scripts and
  7414. -# restored at relink time.
  7415. -variables_saved_for_relink="$variables_saved_for_relink"
  7416. -
  7417. -# Whether libtool must link a program against all its dependency libraries.
  7418. -link_all_deplibs=$link_all_deplibs
  7419. -
  7420. -# Compile-time system search path for libraries
  7421. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7422. -
  7423. -# Run-time system search path for libraries
  7424. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7425. -
  7426. -# Fix the shell variable \$srcfile for the compiler.
  7427. -fix_srcfile_path=$lt_fix_srcfile_path
  7428. -
  7429. -# Set to yes if exported symbols are required.
  7430. -always_export_symbols=$always_export_symbols
  7431. -
  7432. -# The commands to list exported symbols.
  7433. -export_symbols_cmds=$lt_export_symbols_cmds
  7434. -
  7435. -# The commands to extract the exported symbol list from a shared archive.
  7436. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7437. -
  7438. -# Symbols that should not be listed in the preloaded symbols.
  7439. -exclude_expsyms=$lt_exclude_expsyms
  7440. -
  7441. -# Symbols that must always be exported.
  7442. -include_expsyms=$lt_include_expsyms
  7443. -
  7444. -# ### END LIBTOOL CONFIG
  7445. -
  7446. -__EOF__
  7447. -
  7448. -
  7449. - case $host_os in
  7450. - aix3*)
  7451. - cat <<\EOF >> "$cfgfile"
  7452. -
  7453. -# AIX sometimes has problems with the GCC collect2 program. For some
  7454. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7455. -# vanish in a puff of smoke.
  7456. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7457. - COLLECT_NAMES=
  7458. - export COLLECT_NAMES
  7459. -fi
  7460. -EOF
  7461. - ;;
  7462. - esac
  7463. -
  7464. - # We use sed instead of cat because bash on DJGPP gets confused if
  7465. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7466. - # text mode, it properly converts lines to CR/LF. This bash problem
  7467. - # is reportedly fixed, but why not run on old versions too?
  7468. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  7469. -
  7470. - mv -f "$cfgfile" "$ofile" || \
  7471. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  7472. - chmod +x "$ofile"
  7473. -
  7474. -else
  7475. - # If there is no Makefile yet, we rely on a make rule to execute
  7476. - # `config.status --recheck' to rerun these tests and create the
  7477. - # libtool script then.
  7478. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  7479. - if test -f "$ltmain_in"; then
  7480. - test -f Makefile && make "$ltmain"
  7481. - fi
  7482. -fi
  7483. -
  7484. -
  7485. -ac_ext=c
  7486. -ac_cpp='$CPP $CPPFLAGS'
  7487. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7488. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7489. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7490. -
  7491. -CC="$lt_save_CC"
  7492. -
  7493. -
  7494. -# Check whether --with-tags was given.
  7495. -if test "${with_tags+set}" = set; then
  7496. - withval=$with_tags; tagnames="$withval"
  7497. -fi
  7498. -
  7499. -
  7500. -if test -f "$ltmain" && test -n "$tagnames"; then
  7501. - if test ! -f "${ofile}"; then
  7502. - { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  7503. -$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  7504. - fi
  7505. -
  7506. - if test -z "$LTCC"; then
  7507. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  7508. - if test -z "$LTCC"; then
  7509. - { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  7510. -$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  7511. - else
  7512. - { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  7513. -$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  7514. - fi
  7515. - fi
  7516. - if test -z "$LTCFLAGS"; then
  7517. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  7518. - fi
  7519. -
  7520. - # Extract list of available tagged configurations in $ofile.
  7521. - # Note that this assumes the entire list is on one line.
  7522. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  7523. -
  7524. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7525. - for tagname in $tagnames; do
  7526. - IFS="$lt_save_ifs"
  7527. - # Check whether tagname contains only valid characters
  7528. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  7529. - "") ;;
  7530. - *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  7531. -$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
  7532. - { (exit 1); exit 1; }; }
  7533. - ;;
  7534. - esac
  7535. -
  7536. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  7537. - then
  7538. - { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  7539. -$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  7540. - { (exit 1); exit 1; }; }
  7541. - fi
  7542. -
  7543. - # Update the list of available tags.
  7544. - if test -n "$tagname"; then
  7545. - echo appending configuration tag \"$tagname\" to $ofile
  7546. -
  7547. - case $tagname in
  7548. - CXX)
  7549. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7550. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7551. - (test "X$CXX" != "Xg++"))) ; then
  7552. - ac_ext=cpp
  7553. -ac_cpp='$CXXCPP $CPPFLAGS'
  7554. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7555. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7556. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7557. -
  7558. -
  7559. -
  7560. -
  7561. -archive_cmds_need_lc_CXX=no
  7562. -allow_undefined_flag_CXX=
  7563. -always_export_symbols_CXX=no
  7564. -archive_expsym_cmds_CXX=
  7565. -export_dynamic_flag_spec_CXX=
  7566. -hardcode_direct_CXX=no
  7567. -hardcode_libdir_flag_spec_CXX=
  7568. -hardcode_libdir_flag_spec_ld_CXX=
  7569. -hardcode_libdir_separator_CXX=
  7570. -hardcode_minus_L_CXX=no
  7571. -hardcode_shlibpath_var_CXX=unsupported
  7572. -hardcode_automatic_CXX=no
  7573. -module_cmds_CXX=
  7574. -module_expsym_cmds_CXX=
  7575. -link_all_deplibs_CXX=unknown
  7576. -old_archive_cmds_CXX=$old_archive_cmds
  7577. -no_undefined_flag_CXX=
  7578. -whole_archive_flag_spec_CXX=
  7579. -enable_shared_with_static_runtimes_CXX=no
  7580. -
  7581. -# Dependencies to place before and after the object being linked:
  7582. -predep_objects_CXX=
  7583. -postdep_objects_CXX=
  7584. -predeps_CXX=
  7585. -postdeps_CXX=
  7586. -compiler_lib_search_path_CXX=
  7587. -compiler_lib_search_dirs_CXX=
  7588. -
  7589. -# Source file extension for C++ test sources.
  7590. -ac_ext=cpp
  7591. -
  7592. -# Object file extension for compiled C++ test sources.
  7593. -objext=o
  7594. -objext_CXX=$objext
  7595. -
  7596. -# Code to be used in simple compile tests
  7597. -lt_simple_compile_test_code="int some_variable = 0;"
  7598. -
  7599. -# Code to be used in simple link tests
  7600. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  7601. -
  7602. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7603. -
  7604. -# If no C compiler was specified, use CC.
  7605. -LTCC=${LTCC-"$CC"}
  7606. -
  7607. -# If no C compiler flags were specified, use CFLAGS.
  7608. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7609. -
  7610. -# Allow CC to be a program name with arguments.
  7611. -compiler=$CC
  7612. -
  7613. -
  7614. -# save warnings/boilerplate of simple test code
  7615. -ac_outfile=conftest.$ac_objext
  7616. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7617. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7618. -_lt_compiler_boilerplate=`cat conftest.err`
  7619. -$rm conftest*
  7620. -
  7621. -ac_outfile=conftest.$ac_objext
  7622. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7623. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7624. -_lt_linker_boilerplate=`cat conftest.err`
  7625. -$rm -r conftest*
  7626. -
  7627. -
  7628. -# Allow CC to be a program name with arguments.
  7629. -lt_save_CC=$CC
  7630. -lt_save_LD=$LD
  7631. -lt_save_GCC=$GCC
  7632. -GCC=$GXX
  7633. -lt_save_with_gnu_ld=$with_gnu_ld
  7634. -lt_save_path_LD=$lt_cv_path_LD
  7635. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  7636. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  7637. -else
  7638. - $as_unset lt_cv_prog_gnu_ld
  7639. -fi
  7640. -if test -n "${lt_cv_path_LDCXX+set}"; then
  7641. - lt_cv_path_LD=$lt_cv_path_LDCXX
  7642. -else
  7643. - $as_unset lt_cv_path_LD
  7644. -fi
  7645. -test -z "${LDCXX+set}" || LD=$LDCXX
  7646. -CC=${CXX-"c++"}
  7647. -compiler=$CC
  7648. -compiler_CXX=$CC
  7649. -for cc_temp in $compiler""; do
  7650. - case $cc_temp in
  7651. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7652. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7653. - \-*) ;;
  7654. - *) break;;
  7655. - esac
  7656. -done
  7657. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7658. -
  7659. -
  7660. -# We don't want -fno-exception wen compiling C++ code, so set the
  7661. -# no_builtin_flag separately
  7662. -if test "$GXX" = yes; then
  7663. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  7664. -else
  7665. - lt_prog_compiler_no_builtin_flag_CXX=
  7666. -fi
  7667. -
  7668. -if test "$GXX" = yes; then
  7669. - # Set up default GNU C++ configuration
  7670. -
  7671. -
  7672. -# Check whether --with-gnu-ld was given.
  7673. -if test "${with_gnu_ld+set}" = set; then
  7674. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7675. -else
  7676. - with_gnu_ld=no
  7677. -fi
  7678. -
  7679. -ac_prog=ld
  7680. -if test "$GCC" = yes; then
  7681. - # Check if gcc -print-prog-name=ld gives a path.
  7682. - { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  7683. -$as_echo_n "checking for ld used by $CC... " >&6; }
  7684. - case $host in
  7685. - *-*-mingw*)
  7686. - # gcc leaves a trailing carriage return which upsets mingw
  7687. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7688. - *)
  7689. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7690. - esac
  7691. - case $ac_prog in
  7692. - # Accept absolute paths.
  7693. - [\\/]* | ?:[\\/]*)
  7694. - re_direlt='/[^/][^/]*/\.\./'
  7695. - # Canonicalize the pathname of ld
  7696. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  7697. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7698. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  7699. - done
  7700. - test -z "$LD" && LD="$ac_prog"
  7701. - ;;
  7702. - "")
  7703. - # If it fails, then pretend we aren't using GCC.
  7704. - ac_prog=ld
  7705. - ;;
  7706. - *)
  7707. - # If it is relative, then search for the first ld in PATH.
  7708. - with_gnu_ld=unknown
  7709. - ;;
  7710. - esac
  7711. -elif test "$with_gnu_ld" = yes; then
  7712. - { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  7713. -$as_echo_n "checking for GNU ld... " >&6; }
  7714. -else
  7715. - { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  7716. -$as_echo_n "checking for non-GNU ld... " >&6; }
  7717. -fi
  7718. -if test "${lt_cv_path_LD+set}" = set; then
  7719. - $as_echo_n "(cached) " >&6
  7720. -else
  7721. - if test -z "$LD"; then
  7722. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7723. - for ac_dir in $PATH; do
  7724. - IFS="$lt_save_ifs"
  7725. - test -z "$ac_dir" && ac_dir=.
  7726. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7727. - lt_cv_path_LD="$ac_dir/$ac_prog"
  7728. - # Check to see if the program is GNU ld. I'd rather use --version,
  7729. - # but apparently some variants of GNU ld only accept -v.
  7730. - # Break only if it was the GNU/non-GNU ld that we prefer.
  7731. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7732. - *GNU* | *'with BFD'*)
  7733. - test "$with_gnu_ld" != no && break
  7734. - ;;
  7735. - *)
  7736. - test "$with_gnu_ld" != yes && break
  7737. - ;;
  7738. - esac
  7739. - fi
  7740. - done
  7741. - IFS="$lt_save_ifs"
  7742. -else
  7743. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  7744. -fi
  7745. -fi
  7746. -
  7747. -LD="$lt_cv_path_LD"
  7748. -if test -n "$LD"; then
  7749. - { $as_echo "$as_me:$LINENO: result: $LD" >&5
  7750. -$as_echo "$LD" >&6; }
  7751. -else
  7752. - { $as_echo "$as_me:$LINENO: result: no" >&5
  7753. -$as_echo "no" >&6; }
  7754. -fi
  7755. -test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7756. -$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7757. - { (exit 1); exit 1; }; }
  7758. -{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7759. -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  7760. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  7761. - $as_echo_n "(cached) " >&6
  7762. -else
  7763. - # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7764. -case `$LD -v 2>&1 </dev/null` in
  7765. -*GNU* | *'with BFD'*)
  7766. - lt_cv_prog_gnu_ld=yes
  7767. - ;;
  7768. -*)
  7769. - lt_cv_prog_gnu_ld=no
  7770. - ;;
  7771. -esac
  7772. -fi
  7773. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  7774. -$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  7775. -with_gnu_ld=$lt_cv_prog_gnu_ld
  7776. -
  7777. -
  7778. -
  7779. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  7780. - # archiving commands below assume that GNU ld is being used.
  7781. - if test "$with_gnu_ld" = yes; then
  7782. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7783. - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7784. -
  7785. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  7786. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  7787. -
  7788. - # If archive_cmds runs LD, not CC, wlarc should be empty
  7789. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  7790. - # investigate it a little bit more. (MM)
  7791. - wlarc='${wl}'
  7792. -
  7793. - # ancient GNU ld didn't support --whole-archive et. al.
  7794. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  7795. - grep 'no-whole-archive' > /dev/null; then
  7796. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7797. - else
  7798. - whole_archive_flag_spec_CXX=
  7799. - fi
  7800. - else
  7801. - with_gnu_ld=no
  7802. - wlarc=
  7803. -
  7804. - # A generic and very simple default shared library creation
  7805. - # command for GNU C++ for the case where it uses the native
  7806. - # linker, instead of GNU ld. If possible, this setting should
  7807. - # overridden to take advantage of the native linker features on
  7808. - # the platform it is being used on.
  7809. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7810. - fi
  7811. -
  7812. - # Commands to make compiler produce verbose output that lists
  7813. - # what "hidden" libraries, object files and flags are used when
  7814. - # linking a shared library.
  7815. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  7816. -
  7817. -else
  7818. - GXX=no
  7819. - with_gnu_ld=no
  7820. - wlarc=
  7821. -fi
  7822. -
  7823. -# PORTME: fill in a description of your system's C++ link characteristics
  7824. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7825. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7826. -ld_shlibs_CXX=yes
  7827. -case $host_os in
  7828. - aix3*)
  7829. - # FIXME: insert proper C++ library support
  7830. - ld_shlibs_CXX=no
  7831. - ;;
  7832. - aix[4-9]*)
  7833. - if test "$host_cpu" = ia64; then
  7834. - # On IA64, the linker does run time linking by default, so we don't
  7835. - # have to do anything special.
  7836. - aix_use_runtimelinking=no
  7837. - exp_sym_flag='-Bexport'
  7838. - no_entry_flag=""
  7839. - else
  7840. - aix_use_runtimelinking=no
  7841. -
  7842. - # Test if we are trying to use run time linking or normal
  7843. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7844. - # need to do runtime linking.
  7845. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7846. - for ld_flag in $LDFLAGS; do
  7847. - case $ld_flag in
  7848. - *-brtl*)
  7849. - aix_use_runtimelinking=yes
  7850. - break
  7851. - ;;
  7852. - esac
  7853. - done
  7854. - ;;
  7855. - esac
  7856. -
  7857. - exp_sym_flag='-bexport'
  7858. - no_entry_flag='-bnoentry'
  7859. - fi
  7860. -
  7861. - # When large executables or shared objects are built, AIX ld can
  7862. - # have problems creating the table of contents. If linking a library
  7863. - # or program results in "error TOC overflow" add -mminimal-toc to
  7864. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7865. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7866. -
  7867. - archive_cmds_CXX=''
  7868. - hardcode_direct_CXX=yes
  7869. - hardcode_libdir_separator_CXX=':'
  7870. - link_all_deplibs_CXX=yes
  7871. -
  7872. - if test "$GXX" = yes; then
  7873. - case $host_os in aix4.[012]|aix4.[012].*)
  7874. - # We only want to do this on AIX 4.2 and lower, the check
  7875. - # below for broken collect2 doesn't work under 4.3+
  7876. - collect2name=`${CC} -print-prog-name=collect2`
  7877. - if test -f "$collect2name" && \
  7878. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  7879. - then
  7880. - # We have reworked collect2
  7881. - :
  7882. - else
  7883. - # We have old collect2
  7884. - hardcode_direct_CXX=unsupported
  7885. - # It fails to find uninstalled libraries when the uninstalled
  7886. - # path is not listed in the libpath. Setting hardcode_minus_L
  7887. - # to unsupported forces relinking
  7888. - hardcode_minus_L_CXX=yes
  7889. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  7890. - hardcode_libdir_separator_CXX=
  7891. - fi
  7892. - ;;
  7893. - esac
  7894. - shared_flag='-shared'
  7895. - if test "$aix_use_runtimelinking" = yes; then
  7896. - shared_flag="$shared_flag "'${wl}-G'
  7897. - fi
  7898. - else
  7899. - # not using gcc
  7900. - if test "$host_cpu" = ia64; then
  7901. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7902. - # chokes on -Wl,-G. The following line is correct:
  7903. - shared_flag='-G'
  7904. - else
  7905. - if test "$aix_use_runtimelinking" = yes; then
  7906. - shared_flag='${wl}-G'
  7907. - else
  7908. - shared_flag='${wl}-bM:SRE'
  7909. - fi
  7910. - fi
  7911. - fi
  7912. -
  7913. - # It seems that -bexpall does not export symbols beginning with
  7914. - # underscore (_), so it is better to generate a list of symbols to export.
  7915. - always_export_symbols_CXX=yes
  7916. - if test "$aix_use_runtimelinking" = yes; then
  7917. - # Warning - without using the other runtime loading flags (-brtl),
  7918. - # -berok will link without error, but may produce a broken library.
  7919. - allow_undefined_flag_CXX='-berok'
  7920. - # Determine the default libpath from the value encoded in an empty executable.
  7921. - cat >conftest.$ac_ext <<_ACEOF
  7922. -/* confdefs.h. */
  7923. -_ACEOF
  7924. -cat confdefs.h >>conftest.$ac_ext
  7925. -cat >>conftest.$ac_ext <<_ACEOF
  7926. -/* end confdefs.h. */
  7927. -
  7928. -int
  7929. -main ()
  7930. -{
  7931. -
  7932. - ;
  7933. - return 0;
  7934. -}
  7935. -_ACEOF
  7936. -rm -f conftest.$ac_objext conftest$ac_exeext
  7937. -if { (ac_try="$ac_link"
  7938. -case "(($ac_try" in
  7939. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7940. - *) ac_try_echo=$ac_try;;
  7941. -esac
  7942. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7943. -$as_echo "$ac_try_echo") >&5
  7944. - (eval "$ac_link") 2>conftest.er1
  7945. - ac_status=$?
  7946. - grep -v '^ *+' conftest.er1 >conftest.err
  7947. - rm -f conftest.er1
  7948. - cat conftest.err >&5
  7949. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7950. - (exit $ac_status); } && {
  7951. - test -z "$ac_cxx_werror_flag" ||
  7952. - test ! -s conftest.err
  7953. - } && test -s conftest$ac_exeext && {
  7954. - test "$cross_compiling" = yes ||
  7955. - $as_test_x conftest$ac_exeext
  7956. - }; then
  7957. -
  7958. -lt_aix_libpath_sed='
  7959. - /Import File Strings/,/^$/ {
  7960. - /^0/ {
  7961. - s/^0 *\(.*\)$/\1/
  7962. - p
  7963. - }
  7964. - }'
  7965. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7966. -# Check for a 64-bit object if we didn't find anything.
  7967. -if test -z "$aix_libpath"; then
  7968. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7969. -fi
  7970. -else
  7971. - $as_echo "$as_me: failed program was:" >&5
  7972. -sed 's/^/| /' conftest.$ac_ext >&5
  7973. -
  7974. -
  7975. -fi
  7976. -
  7977. -rm -rf conftest.dSYM
  7978. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7979. - conftest$ac_exeext conftest.$ac_ext
  7980. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7981. -
  7982. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  7983. -
  7984. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7985. - else
  7986. - if test "$host_cpu" = ia64; then
  7987. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  7988. - allow_undefined_flag_CXX="-z nodefs"
  7989. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7990. - else
  7991. - # Determine the default libpath from the value encoded in an empty executable.
  7992. - cat >conftest.$ac_ext <<_ACEOF
  7993. -/* confdefs.h. */
  7994. -_ACEOF
  7995. -cat confdefs.h >>conftest.$ac_ext
  7996. -cat >>conftest.$ac_ext <<_ACEOF
  7997. -/* end confdefs.h. */
  7998. -
  7999. -int
  8000. -main ()
  8001. -{
  8002. -
  8003. - ;
  8004. - return 0;
  8005. -}
  8006. -_ACEOF
  8007. -rm -f conftest.$ac_objext conftest$ac_exeext
  8008. -if { (ac_try="$ac_link"
  8009. -case "(($ac_try" in
  8010. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8011. - *) ac_try_echo=$ac_try;;
  8012. -esac
  8013. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8014. -$as_echo "$ac_try_echo") >&5
  8015. - (eval "$ac_link") 2>conftest.er1
  8016. - ac_status=$?
  8017. - grep -v '^ *+' conftest.er1 >conftest.err
  8018. - rm -f conftest.er1
  8019. - cat conftest.err >&5
  8020. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8021. - (exit $ac_status); } && {
  8022. - test -z "$ac_cxx_werror_flag" ||
  8023. - test ! -s conftest.err
  8024. - } && test -s conftest$ac_exeext && {
  8025. - test "$cross_compiling" = yes ||
  8026. - $as_test_x conftest$ac_exeext
  8027. - }; then
  8028. -
  8029. -lt_aix_libpath_sed='
  8030. - /Import File Strings/,/^$/ {
  8031. - /^0/ {
  8032. - s/^0 *\(.*\)$/\1/
  8033. - p
  8034. - }
  8035. - }'
  8036. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8037. -# Check for a 64-bit object if we didn't find anything.
  8038. -if test -z "$aix_libpath"; then
  8039. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8040. -fi
  8041. -else
  8042. - $as_echo "$as_me: failed program was:" >&5
  8043. -sed 's/^/| /' conftest.$ac_ext >&5
  8044. -
  8045. -
  8046. -fi
  8047. -
  8048. -rm -rf conftest.dSYM
  8049. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8050. - conftest$ac_exeext conftest.$ac_ext
  8051. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8052. -
  8053. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8054. - # Warning - without using the other run time loading flags,
  8055. - # -berok will link without error, but may produce a broken library.
  8056. - no_undefined_flag_CXX=' ${wl}-bernotok'
  8057. - allow_undefined_flag_CXX=' ${wl}-berok'
  8058. - # Exported symbols can be pulled into shared objects from archives
  8059. - whole_archive_flag_spec_CXX='$convenience'
  8060. - archive_cmds_need_lc_CXX=yes
  8061. - # This is similar to how AIX traditionally builds its shared libraries.
  8062. - archive_expsym_cmds_CXX="\$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'
  8063. - fi
  8064. - fi
  8065. - ;;
  8066. -
  8067. - beos*)
  8068. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8069. - allow_undefined_flag_CXX=unsupported
  8070. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8071. - # support --undefined. This deserves some investigation. FIXME
  8072. - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8073. - else
  8074. - ld_shlibs_CXX=no
  8075. - fi
  8076. - ;;
  8077. -
  8078. - chorus*)
  8079. - case $cc_basename in
  8080. - *)
  8081. - # FIXME: insert proper C++ library support
  8082. - ld_shlibs_CXX=no
  8083. - ;;
  8084. - esac
  8085. - ;;
  8086. -
  8087. - cygwin* | mingw* | pw32*)
  8088. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  8089. - # as there is no search path for DLLs.
  8090. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  8091. - allow_undefined_flag_CXX=unsupported
  8092. - always_export_symbols_CXX=no
  8093. - enable_shared_with_static_runtimes_CXX=yes
  8094. -
  8095. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8096. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8097. - # If the export-symbols file already is a .def file (1st line
  8098. - # is EXPORTS), use it as is; otherwise, prepend...
  8099. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8100. - cp $export_symbols $output_objdir/$soname.def;
  8101. - else
  8102. - echo EXPORTS > $output_objdir/$soname.def;
  8103. - cat $export_symbols >> $output_objdir/$soname.def;
  8104. - fi~
  8105. - $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'
  8106. - else
  8107. - ld_shlibs_CXX=no
  8108. - fi
  8109. - ;;
  8110. - darwin* | rhapsody*)
  8111. - archive_cmds_need_lc_CXX=no
  8112. - hardcode_direct_CXX=no
  8113. - hardcode_automatic_CXX=yes
  8114. - hardcode_shlibpath_var_CXX=unsupported
  8115. - whole_archive_flag_spec_CXX=''
  8116. - link_all_deplibs_CXX=yes
  8117. - allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  8118. - if test "$GXX" = yes ; then
  8119. - output_verbose_link_cmd='echo'
  8120. - archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8121. - module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8122. - archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8123. - module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8124. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  8125. - archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  8126. - archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  8127. - fi
  8128. - else
  8129. - case $cc_basename in
  8130. - xlc*)
  8131. - output_verbose_link_cmd='echo'
  8132. - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  8133. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8134. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  8135. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8136. - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8137. - ;;
  8138. - *)
  8139. - ld_shlibs_CXX=no
  8140. - ;;
  8141. - esac
  8142. - fi
  8143. - ;;
  8144. -
  8145. - dgux*)
  8146. - case $cc_basename in
  8147. - ec++*)
  8148. - # FIXME: insert proper C++ library support
  8149. - ld_shlibs_CXX=no
  8150. - ;;
  8151. - ghcx*)
  8152. - # Green Hills C++ Compiler
  8153. - # FIXME: insert proper C++ library support
  8154. - ld_shlibs_CXX=no
  8155. - ;;
  8156. - *)
  8157. - # FIXME: insert proper C++ library support
  8158. - ld_shlibs_CXX=no
  8159. - ;;
  8160. - esac
  8161. - ;;
  8162. - freebsd[12]*)
  8163. - # C++ shared libraries reported to be fairly broken before switch to ELF
  8164. - ld_shlibs_CXX=no
  8165. - ;;
  8166. - freebsd-elf*)
  8167. - archive_cmds_need_lc_CXX=no
  8168. - ;;
  8169. - freebsd* | dragonfly*)
  8170. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  8171. - # conventions
  8172. - ld_shlibs_CXX=yes
  8173. - ;;
  8174. - gnu*)
  8175. - ;;
  8176. - hpux9*)
  8177. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8178. - hardcode_libdir_separator_CXX=:
  8179. - export_dynamic_flag_spec_CXX='${wl}-E'
  8180. - hardcode_direct_CXX=yes
  8181. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  8182. - # but as the default
  8183. - # location of the library.
  8184. -
  8185. - case $cc_basename in
  8186. - CC*)
  8187. - # FIXME: insert proper C++ library support
  8188. - ld_shlibs_CXX=no
  8189. - ;;
  8190. - aCC*)
  8191. - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8192. - # Commands to make compiler produce verbose output that lists
  8193. - # what "hidden" libraries, object files and flags are used when
  8194. - # linking a shared library.
  8195. - #
  8196. - # There doesn't appear to be a way to prevent this compiler from
  8197. - # explicitly linking system object files so we need to strip them
  8198. - # from the output so that they don't get included in the library
  8199. - # dependencies.
  8200. - 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 $list'
  8201. - ;;
  8202. - *)
  8203. - if test "$GXX" = yes; then
  8204. - archive_cmds_CXX='$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'
  8205. - else
  8206. - # FIXME: insert proper C++ library support
  8207. - ld_shlibs_CXX=no
  8208. - fi
  8209. - ;;
  8210. - esac
  8211. - ;;
  8212. - hpux10*|hpux11*)
  8213. - if test $with_gnu_ld = no; then
  8214. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  8215. - hardcode_libdir_separator_CXX=:
  8216. -
  8217. - case $host_cpu in
  8218. - hppa*64*|ia64*) ;;
  8219. - *)
  8220. - export_dynamic_flag_spec_CXX='${wl}-E'
  8221. - ;;
  8222. - esac
  8223. - fi
  8224. - case $host_cpu in
  8225. - hppa*64*|ia64*)
  8226. - hardcode_direct_CXX=no
  8227. - hardcode_shlibpath_var_CXX=no
  8228. - ;;
  8229. - *)
  8230. - hardcode_direct_CXX=yes
  8231. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  8232. - # but as the default
  8233. - # location of the library.
  8234. - ;;
  8235. - esac
  8236. -
  8237. - case $cc_basename in
  8238. - CC*)
  8239. - # FIXME: insert proper C++ library support
  8240. - ld_shlibs_CXX=no
  8241. - ;;
  8242. - aCC*)
  8243. - case $host_cpu in
  8244. - hppa*64*)
  8245. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8246. - ;;
  8247. - ia64*)
  8248. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8249. - ;;
  8250. - *)
  8251. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8252. - ;;
  8253. - esac
  8254. - # Commands to make compiler produce verbose output that lists
  8255. - # what "hidden" libraries, object files and flags are used when
  8256. - # linking a shared library.
  8257. - #
  8258. - # There doesn't appear to be a way to prevent this compiler from
  8259. - # explicitly linking system object files so we need to strip them
  8260. - # from the output so that they don't get included in the library
  8261. - # dependencies.
  8262. - 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 $list'
  8263. - ;;
  8264. - *)
  8265. - if test "$GXX" = yes; then
  8266. - if test $with_gnu_ld = no; then
  8267. - case $host_cpu in
  8268. - hppa*64*)
  8269. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8270. - ;;
  8271. - ia64*)
  8272. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8273. - ;;
  8274. - *)
  8275. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8276. - ;;
  8277. - esac
  8278. - fi
  8279. - else
  8280. - # FIXME: insert proper C++ library support
  8281. - ld_shlibs_CXX=no
  8282. - fi
  8283. - ;;
  8284. - esac
  8285. - ;;
  8286. - interix[3-9]*)
  8287. - hardcode_direct_CXX=no
  8288. - hardcode_shlibpath_var_CXX=no
  8289. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8290. - export_dynamic_flag_spec_CXX='${wl}-E'
  8291. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8292. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  8293. - # default) and relocated if they conflict, which is a slow very memory
  8294. - # consuming and fragmenting process. To avoid this, we pick a random,
  8295. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8296. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8297. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8298. - archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8299. - ;;
  8300. - irix5* | irix6*)
  8301. - case $cc_basename in
  8302. - CC*)
  8303. - # SGI C++
  8304. - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  8305. -
  8306. - # Archives containing C++ object files must be created using
  8307. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  8308. - # necessary to make sure instantiated templates are included
  8309. - # in the archive.
  8310. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  8311. - ;;
  8312. - *)
  8313. - if test "$GXX" = yes; then
  8314. - if test "$with_gnu_ld" = no; then
  8315. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8316. - else
  8317. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  8318. - fi
  8319. - fi
  8320. - link_all_deplibs_CXX=yes
  8321. - ;;
  8322. - esac
  8323. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  8324. - hardcode_libdir_separator_CXX=:
  8325. - ;;
  8326. - linux* | k*bsd*-gnu)
  8327. - case $cc_basename in
  8328. - KCC*)
  8329. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  8330. -
  8331. - # KCC will only create a shared library if the output file
  8332. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8333. - # to its proper name (with version) after linking.
  8334. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  8335. - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  8336. - # Commands to make compiler produce verbose output that lists
  8337. - # what "hidden" libraries, object files and flags are used when
  8338. - # linking a shared library.
  8339. - #
  8340. - # There doesn't appear to be a way to prevent this compiler from
  8341. - # explicitly linking system object files so we need to strip them
  8342. - # from the output so that they don't get included in the library
  8343. - # dependencies.
  8344. - 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 $list'
  8345. -
  8346. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  8347. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8348. -
  8349. - # Archives containing C++ object files must be created using
  8350. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  8351. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  8352. - ;;
  8353. - icpc*)
  8354. - # Intel C++
  8355. - with_gnu_ld=yes
  8356. - # version 8.0 and above of icpc choke on multiply defined symbols
  8357. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  8358. - # earlier do not add the objects themselves.
  8359. - case `$CC -V 2>&1` in
  8360. - *"Version 7."*)
  8361. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8362. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8363. - ;;
  8364. - *) # Version 8.0 or newer
  8365. - tmp_idyn=
  8366. - case $host_cpu in
  8367. - ia64*) tmp_idyn=' -i_dynamic';;
  8368. - esac
  8369. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8370. - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8371. - ;;
  8372. - esac
  8373. - archive_cmds_need_lc_CXX=no
  8374. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8375. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8376. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8377. - ;;
  8378. - pgCC* | pgcpp*)
  8379. - # Portland Group C++ compiler
  8380. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  8381. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  8382. -
  8383. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8384. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8385. - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  8386. - ;;
  8387. - cxx*)
  8388. - # Compaq C++
  8389. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8390. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  8391. -
  8392. - runpath_var=LD_RUN_PATH
  8393. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  8394. - hardcode_libdir_separator_CXX=:
  8395. -
  8396. - # Commands to make compiler produce verbose output that lists
  8397. - # what "hidden" libraries, object files and flags are used when
  8398. - # linking a shared library.
  8399. - #
  8400. - # There doesn't appear to be a way to prevent this compiler from
  8401. - # explicitly linking system object files so we need to strip them
  8402. - # from the output so that they don't get included in the library
  8403. - # dependencies.
  8404. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  8405. - ;;
  8406. - *)
  8407. - case `$CC -V 2>&1 | sed 5q` in
  8408. - *Sun\ C*)
  8409. - # Sun C++ 5.9
  8410. - no_undefined_flag_CXX=' -zdefs'
  8411. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8412. - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  8413. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  8414. - whole_archive_flag_spec_CXX='${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'
  8415. -
  8416. - # Not sure whether something based on
  8417. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  8418. - # would be better.
  8419. - output_verbose_link_cmd='echo'
  8420. -
  8421. - # Archives containing C++ object files must be created using
  8422. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  8423. - # necessary to make sure instantiated templates are included
  8424. - # in the archive.
  8425. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  8426. - ;;
  8427. - esac
  8428. - ;;
  8429. - esac
  8430. - ;;
  8431. - lynxos*)
  8432. - # FIXME: insert proper C++ library support
  8433. - ld_shlibs_CXX=no
  8434. - ;;
  8435. - m88k*)
  8436. - # FIXME: insert proper C++ library support
  8437. - ld_shlibs_CXX=no
  8438. - ;;
  8439. - mvs*)
  8440. - case $cc_basename in
  8441. - cxx*)
  8442. - # FIXME: insert proper C++ library support
  8443. - ld_shlibs_CXX=no
  8444. - ;;
  8445. - *)
  8446. - # FIXME: insert proper C++ library support
  8447. - ld_shlibs_CXX=no
  8448. - ;;
  8449. - esac
  8450. - ;;
  8451. - netbsd*)
  8452. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8453. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  8454. - wlarc=
  8455. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  8456. - hardcode_direct_CXX=yes
  8457. - hardcode_shlibpath_var_CXX=no
  8458. - fi
  8459. - # Workaround some broken pre-1.5 toolchains
  8460. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  8461. - ;;
  8462. - openbsd2*)
  8463. - # C++ shared libraries are fairly broken
  8464. - ld_shlibs_CXX=no
  8465. - ;;
  8466. - openbsd*)
  8467. - if test -f /usr/libexec/ld.so; then
  8468. - hardcode_direct_CXX=yes
  8469. - hardcode_shlibpath_var_CXX=no
  8470. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8471. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8472. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8473. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  8474. - export_dynamic_flag_spec_CXX='${wl}-E'
  8475. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8476. - fi
  8477. - output_verbose_link_cmd='echo'
  8478. - else
  8479. - ld_shlibs_CXX=no
  8480. - fi
  8481. - ;;
  8482. - osf3*)
  8483. - case $cc_basename in
  8484. - KCC*)
  8485. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  8486. -
  8487. - # KCC will only create a shared library if the output file
  8488. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8489. - # to its proper name (with version) after linking.
  8490. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  8491. -
  8492. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8493. - hardcode_libdir_separator_CXX=:
  8494. -
  8495. - # Archives containing C++ object files must be created using
  8496. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  8497. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  8498. -
  8499. - ;;
  8500. - RCC*)
  8501. - # Rational C++ 2.4.1
  8502. - # FIXME: insert proper C++ library support
  8503. - ld_shlibs_CXX=no
  8504. - ;;
  8505. - cxx*)
  8506. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  8507. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  8508. -
  8509. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  8510. - hardcode_libdir_separator_CXX=:
  8511. -
  8512. - # Commands to make compiler produce verbose output that lists
  8513. - # what "hidden" libraries, object files and flags are used when
  8514. - # linking a shared library.
  8515. - #
  8516. - # There doesn't appear to be a way to prevent this compiler from
  8517. - # explicitly linking system object files so we need to strip them
  8518. - # from the output so that they don't get included in the library
  8519. - # dependencies.
  8520. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  8521. - ;;
  8522. - *)
  8523. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  8524. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  8525. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8526. -
  8527. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  8528. - hardcode_libdir_separator_CXX=:
  8529. -
  8530. - # Commands to make compiler produce verbose output that lists
  8531. - # what "hidden" libraries, object files and flags are used when
  8532. - # linking a shared library.
  8533. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  8534. -
  8535. - else
  8536. - # FIXME: insert proper C++ library support
  8537. - ld_shlibs_CXX=no
  8538. - fi
  8539. - ;;
  8540. - esac
  8541. - ;;
  8542. - osf4* | osf5*)
  8543. - case $cc_basename in
  8544. - KCC*)
  8545. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  8546. -
  8547. - # KCC will only create a shared library if the output file
  8548. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8549. - # to its proper name (with version) after linking.
  8550. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  8551. -
  8552. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  8553. - hardcode_libdir_separator_CXX=:
  8554. -
  8555. - # Archives containing C++ object files must be created using
  8556. - # the KAI C++ compiler.
  8557. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  8558. - ;;
  8559. - RCC*)
  8560. - # Rational C++ 2.4.1
  8561. - # FIXME: insert proper C++ library support
  8562. - ld_shlibs_CXX=no
  8563. - ;;
  8564. - cxx*)
  8565. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  8566. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  8567. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  8568. - echo "-hidden">> $lib.exp~
  8569. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  8570. - $rm $lib.exp'
  8571. -
  8572. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  8573. - hardcode_libdir_separator_CXX=:
  8574. -
  8575. - # Commands to make compiler produce verbose output that lists
  8576. - # what "hidden" libraries, object files and flags are used when
  8577. - # linking a shared library.
  8578. - #
  8579. - # There doesn't appear to be a way to prevent this compiler from
  8580. - # explicitly linking system object files so we need to strip them
  8581. - # from the output so that they don't get included in the library
  8582. - # dependencies.
  8583. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  8584. - ;;
  8585. - *)
  8586. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  8587. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  8588. - archive_cmds_CXX='$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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8589. -
  8590. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  8591. - hardcode_libdir_separator_CXX=:
  8592. -
  8593. - # Commands to make compiler produce verbose output that lists
  8594. - # what "hidden" libraries, object files and flags are used when
  8595. - # linking a shared library.
  8596. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  8597. -
  8598. - else
  8599. - # FIXME: insert proper C++ library support
  8600. - ld_shlibs_CXX=no
  8601. - fi
  8602. - ;;
  8603. - esac
  8604. - ;;
  8605. - psos*)
  8606. - # FIXME: insert proper C++ library support
  8607. - ld_shlibs_CXX=no
  8608. - ;;
  8609. - sunos4*)
  8610. - case $cc_basename in
  8611. - CC*)
  8612. - # Sun C++ 4.x
  8613. - # FIXME: insert proper C++ library support
  8614. - ld_shlibs_CXX=no
  8615. - ;;
  8616. - lcc*)
  8617. - # Lucid
  8618. - # FIXME: insert proper C++ library support
  8619. - ld_shlibs_CXX=no
  8620. - ;;
  8621. - *)
  8622. - # FIXME: insert proper C++ library support
  8623. - ld_shlibs_CXX=no
  8624. - ;;
  8625. - esac
  8626. - ;;
  8627. - solaris*)
  8628. - case $cc_basename in
  8629. - CC*)
  8630. - # Sun C++ 4.2, 5.x and Centerline C++
  8631. - archive_cmds_need_lc_CXX=yes
  8632. - no_undefined_flag_CXX=' -zdefs'
  8633. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8634. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8635. - $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'
  8636. -
  8637. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  8638. - hardcode_shlibpath_var_CXX=no
  8639. - case $host_os in
  8640. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  8641. - *)
  8642. - # The compiler driver will combine and reorder linker options,
  8643. - # but understands `-z linker_flag'.
  8644. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  8645. - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  8646. - ;;
  8647. - esac
  8648. - link_all_deplibs_CXX=yes
  8649. -
  8650. - output_verbose_link_cmd='echo'
  8651. -
  8652. - # Archives containing C++ object files must be created using
  8653. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  8654. - # necessary to make sure instantiated templates are included
  8655. - # in the archive.
  8656. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  8657. - ;;
  8658. - gcx*)
  8659. - # Green Hills C++ Compiler
  8660. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8661. -
  8662. - # The C++ compiler must be used to create the archive.
  8663. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  8664. - ;;
  8665. - *)
  8666. - # GNU C++ compiler with Solaris linker
  8667. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  8668. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  8669. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  8670. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8671. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8672. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  8673. -
  8674. - # Commands to make compiler produce verbose output that lists
  8675. - # what "hidden" libraries, object files and flags are used when
  8676. - # linking a shared library.
  8677. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  8678. - else
  8679. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  8680. - # platform.
  8681. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8682. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8683. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  8684. -
  8685. - # Commands to make compiler produce verbose output that lists
  8686. - # what "hidden" libraries, object files and flags are used when
  8687. - # linking a shared library.
  8688. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  8689. - fi
  8690. -
  8691. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  8692. - case $host_os in
  8693. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  8694. - *)
  8695. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8696. - ;;
  8697. - esac
  8698. - fi
  8699. - ;;
  8700. - esac
  8701. - ;;
  8702. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8703. - no_undefined_flag_CXX='${wl}-z,text'
  8704. - archive_cmds_need_lc_CXX=no
  8705. - hardcode_shlibpath_var_CXX=no
  8706. - runpath_var='LD_RUN_PATH'
  8707. -
  8708. - case $cc_basename in
  8709. - CC*)
  8710. - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8711. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8712. - ;;
  8713. - *)
  8714. - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8715. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8716. - ;;
  8717. - esac
  8718. - ;;
  8719. - sysv5* | sco3.2v5* | sco5v6*)
  8720. - # Note: We can NOT use -z defs as we might desire, because we do not
  8721. - # link with -lc, and that would cause any symbols used from libc to
  8722. - # always be unresolved, which means just about no library would
  8723. - # ever link correctly. If we're not using GNU ld we use -z text
  8724. - # though, which does catch some bad symbols but isn't as heavy-handed
  8725. - # as -z defs.
  8726. - # For security reasons, it is highly recommended that you always
  8727. - # use absolute paths for naming shared libraries, and exclude the
  8728. - # DT_RUNPATH tag from executables and libraries. But doing so
  8729. - # requires that you compile everything twice, which is a pain.
  8730. - # So that behaviour is only enabled if SCOABSPATH is set to a
  8731. - # non-empty value in the environment. Most likely only useful for
  8732. - # creating official distributions of packages.
  8733. - # This is a hack until libtool officially supports absolute path
  8734. - # names for shared libraries.
  8735. - no_undefined_flag_CXX='${wl}-z,text'
  8736. - allow_undefined_flag_CXX='${wl}-z,nodefs'
  8737. - archive_cmds_need_lc_CXX=no
  8738. - hardcode_shlibpath_var_CXX=no
  8739. - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  8740. - hardcode_libdir_separator_CXX=':'
  8741. - link_all_deplibs_CXX=yes
  8742. - export_dynamic_flag_spec_CXX='${wl}-Bexport'
  8743. - runpath_var='LD_RUN_PATH'
  8744. -
  8745. - case $cc_basename in
  8746. - CC*)
  8747. - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8748. - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8749. - ;;
  8750. - *)
  8751. - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8752. - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8753. - ;;
  8754. - esac
  8755. - ;;
  8756. - tandem*)
  8757. - case $cc_basename in
  8758. - NCC*)
  8759. - # NonStop-UX NCC 3.20
  8760. - # FIXME: insert proper C++ library support
  8761. - ld_shlibs_CXX=no
  8762. - ;;
  8763. - *)
  8764. - # FIXME: insert proper C++ library support
  8765. - ld_shlibs_CXX=no
  8766. - ;;
  8767. - esac
  8768. - ;;
  8769. - vxworks*)
  8770. - # FIXME: insert proper C++ library support
  8771. - ld_shlibs_CXX=no
  8772. - ;;
  8773. - *)
  8774. - # FIXME: insert proper C++ library support
  8775. - ld_shlibs_CXX=no
  8776. - ;;
  8777. -esac
  8778. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  8779. -$as_echo "$ld_shlibs_CXX" >&6; }
  8780. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  8781. -
  8782. -GCC_CXX="$GXX"
  8783. -LD_CXX="$LD"
  8784. -
  8785. -cat > conftest.$ac_ext <<EOF
  8786. -class Foo
  8787. -{
  8788. -public:
  8789. - Foo (void) { a = 0; }
  8790. -private:
  8791. - int a;
  8792. -};
  8793. -EOF
  8794. -
  8795. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8796. - (eval $ac_compile) 2>&5
  8797. - ac_status=$?
  8798. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8799. - (exit $ac_status); }; then
  8800. - # Parse the compiler output and extract the necessary
  8801. - # objects, libraries and library flags.
  8802. -
  8803. - # Sentinel used to keep track of whether or not we are before
  8804. - # the conftest object file.
  8805. - pre_test_object_deps_done=no
  8806. -
  8807. - # The `*' in the case matches for architectures that use `case' in
  8808. - # $output_verbose_cmd can trigger glob expansion during the loop
  8809. - # eval without this substitution.
  8810. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  8811. -
  8812. - for p in `eval $output_verbose_link_cmd`; do
  8813. - case $p in
  8814. -
  8815. - -L* | -R* | -l*)
  8816. - # Some compilers place space between "-{L,R}" and the path.
  8817. - # Remove the space.
  8818. - if test $p = "-L" \
  8819. - || test $p = "-R"; then
  8820. - prev=$p
  8821. - continue
  8822. - else
  8823. - prev=
  8824. - fi
  8825. -
  8826. - if test "$pre_test_object_deps_done" = no; then
  8827. - case $p in
  8828. - -L* | -R*)
  8829. - # Internal compiler library paths should come after those
  8830. - # provided the user. The postdeps already come after the
  8831. - # user supplied libs so there is no need to process them.
  8832. - if test -z "$compiler_lib_search_path_CXX"; then
  8833. - compiler_lib_search_path_CXX="${prev}${p}"
  8834. - else
  8835. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  8836. - fi
  8837. - ;;
  8838. - # The "-l" case would never come before the object being
  8839. - # linked, so don't bother handling this case.
  8840. - esac
  8841. - else
  8842. - if test -z "$postdeps_CXX"; then
  8843. - postdeps_CXX="${prev}${p}"
  8844. - else
  8845. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  8846. - fi
  8847. - fi
  8848. - ;;
  8849. -
  8850. - *.$objext)
  8851. - # This assumes that the test object file only shows up
  8852. - # once in the compiler output.
  8853. - if test "$p" = "conftest.$objext"; then
  8854. - pre_test_object_deps_done=yes
  8855. - continue
  8856. - fi
  8857. -
  8858. - if test "$pre_test_object_deps_done" = no; then
  8859. - if test -z "$predep_objects_CXX"; then
  8860. - predep_objects_CXX="$p"
  8861. - else
  8862. - predep_objects_CXX="$predep_objects_CXX $p"
  8863. - fi
  8864. - else
  8865. - if test -z "$postdep_objects_CXX"; then
  8866. - postdep_objects_CXX="$p"
  8867. - else
  8868. - postdep_objects_CXX="$postdep_objects_CXX $p"
  8869. - fi
  8870. - fi
  8871. - ;;
  8872. -
  8873. - *) ;; # Ignore the rest.
  8874. -
  8875. - esac
  8876. - done
  8877. -
  8878. - # Clean up.
  8879. - rm -f a.out a.exe
  8880. -else
  8881. - echo "libtool.m4: error: problem compiling CXX test program"
  8882. -fi
  8883. -
  8884. -$rm -f confest.$objext
  8885. -
  8886. -compiler_lib_search_dirs_CXX=
  8887. -if test -n "$compiler_lib_search_path_CXX"; then
  8888. - compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  8889. -fi
  8890. -
  8891. -# PORTME: override above test on systems where it is broken
  8892. -case $host_os in
  8893. -interix[3-9]*)
  8894. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  8895. - # hack all around it, let's just trust "g++" to DTRT.
  8896. - predep_objects_CXX=
  8897. - postdep_objects_CXX=
  8898. - postdeps_CXX=
  8899. - ;;
  8900. -
  8901. -linux*)
  8902. - case `$CC -V 2>&1 | sed 5q` in
  8903. - *Sun\ C*)
  8904. - # Sun C++ 5.9
  8905. - #
  8906. - # The more standards-conforming stlport4 library is
  8907. - # incompatible with the Cstd library. Avoid specifying
  8908. - # it if it's in CXXFLAGS. Ignore libCrun as
  8909. - # -library=stlport4 depends on it.
  8910. - case " $CXX $CXXFLAGS " in
  8911. - *" -library=stlport4 "*)
  8912. - solaris_use_stlport4=yes
  8913. - ;;
  8914. - esac
  8915. - if test "$solaris_use_stlport4" != yes; then
  8916. - postdeps_CXX='-library=Cstd -library=Crun'
  8917. - fi
  8918. - ;;
  8919. - esac
  8920. - ;;
  8921. -
  8922. -solaris*)
  8923. - case $cc_basename in
  8924. - CC*)
  8925. - # The more standards-conforming stlport4 library is
  8926. - # incompatible with the Cstd library. Avoid specifying
  8927. - # it if it's in CXXFLAGS. Ignore libCrun as
  8928. - # -library=stlport4 depends on it.
  8929. - case " $CXX $CXXFLAGS " in
  8930. - *" -library=stlport4 "*)
  8931. - solaris_use_stlport4=yes
  8932. - ;;
  8933. - esac
  8934. -
  8935. - # Adding this requires a known-good setup of shared libraries for
  8936. - # Sun compiler versions before 5.6, else PIC objects from an old
  8937. - # archive will be linked into the output, leading to subtle bugs.
  8938. - if test "$solaris_use_stlport4" != yes; then
  8939. - postdeps_CXX='-library=Cstd -library=Crun'
  8940. - fi
  8941. - ;;
  8942. - esac
  8943. - ;;
  8944. -esac
  8945. -
  8946. -case " $postdeps_CXX " in
  8947. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  8948. -esac
  8949. -
  8950. -lt_prog_compiler_wl_CXX=
  8951. -lt_prog_compiler_pic_CXX=
  8952. -lt_prog_compiler_static_CXX=
  8953. -
  8954. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8955. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8956. -
  8957. - # C++ specific cases for pic, static, wl, etc.
  8958. - if test "$GXX" = yes; then
  8959. - lt_prog_compiler_wl_CXX='-Wl,'
  8960. - lt_prog_compiler_static_CXX='-static'
  8961. -
  8962. - case $host_os in
  8963. - aix*)
  8964. - # All AIX code is PIC.
  8965. - if test "$host_cpu" = ia64; then
  8966. - # AIX 5 now supports IA64 processor
  8967. - lt_prog_compiler_static_CXX='-Bstatic'
  8968. - fi
  8969. - ;;
  8970. - amigaos*)
  8971. - # FIXME: we need at least 68020 code to build shared libraries, but
  8972. - # adding the `-m68020' flag to GCC prevents building anything better,
  8973. - # like `-m68040'.
  8974. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  8975. - ;;
  8976. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8977. - # PIC is the default for these OSes.
  8978. - ;;
  8979. - mingw* | cygwin* | os2* | pw32*)
  8980. - # This hack is so that the source file can tell whether it is being
  8981. - # built for inclusion in a dll (and should export symbols for example).
  8982. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8983. - # (--disable-auto-import) libraries
  8984. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  8985. - ;;
  8986. - darwin* | rhapsody*)
  8987. - # PIC is the default on this platform
  8988. - # Common symbols not allowed in MH_DYLIB files
  8989. - lt_prog_compiler_pic_CXX='-fno-common'
  8990. - ;;
  8991. - *djgpp*)
  8992. - # DJGPP does not support shared libraries at all
  8993. - lt_prog_compiler_pic_CXX=
  8994. - ;;
  8995. - interix[3-9]*)
  8996. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8997. - # Instead, we relocate shared libraries at runtime.
  8998. - ;;
  8999. - sysv4*MP*)
  9000. - if test -d /usr/nec; then
  9001. - lt_prog_compiler_pic_CXX=-Kconform_pic
  9002. - fi
  9003. - ;;
  9004. - hpux*)
  9005. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9006. - # not for PA HP-UX.
  9007. - case $host_cpu in
  9008. - hppa*64*|ia64*)
  9009. - ;;
  9010. - *)
  9011. - lt_prog_compiler_pic_CXX='-fPIC'
  9012. - ;;
  9013. - esac
  9014. - ;;
  9015. - *)
  9016. - lt_prog_compiler_pic_CXX='-fPIC'
  9017. - ;;
  9018. - esac
  9019. - else
  9020. - case $host_os in
  9021. - aix[4-9]*)
  9022. - # All AIX code is PIC.
  9023. - if test "$host_cpu" = ia64; then
  9024. - # AIX 5 now supports IA64 processor
  9025. - lt_prog_compiler_static_CXX='-Bstatic'
  9026. - else
  9027. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  9028. - fi
  9029. - ;;
  9030. - chorus*)
  9031. - case $cc_basename in
  9032. - cxch68*)
  9033. - # Green Hills C++ Compiler
  9034. - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  9035. - ;;
  9036. - esac
  9037. - ;;
  9038. - darwin*)
  9039. - # PIC is the default on this platform
  9040. - # Common symbols not allowed in MH_DYLIB files
  9041. - case $cc_basename in
  9042. - xlc*)
  9043. - lt_prog_compiler_pic_CXX='-qnocommon'
  9044. - lt_prog_compiler_wl_CXX='-Wl,'
  9045. - ;;
  9046. - esac
  9047. - ;;
  9048. - dgux*)
  9049. - case $cc_basename in
  9050. - ec++*)
  9051. - lt_prog_compiler_pic_CXX='-KPIC'
  9052. - ;;
  9053. - ghcx*)
  9054. - # Green Hills C++ Compiler
  9055. - lt_prog_compiler_pic_CXX='-pic'
  9056. - ;;
  9057. - *)
  9058. - ;;
  9059. - esac
  9060. - ;;
  9061. - freebsd* | dragonfly*)
  9062. - # FreeBSD uses GNU C++
  9063. - ;;
  9064. - hpux9* | hpux10* | hpux11*)
  9065. - case $cc_basename in
  9066. - CC*)
  9067. - lt_prog_compiler_wl_CXX='-Wl,'
  9068. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  9069. - if test "$host_cpu" != ia64; then
  9070. - lt_prog_compiler_pic_CXX='+Z'
  9071. - fi
  9072. - ;;
  9073. - aCC*)
  9074. - lt_prog_compiler_wl_CXX='-Wl,'
  9075. - lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  9076. - case $host_cpu in
  9077. - hppa*64*|ia64*)
  9078. - # +Z the default
  9079. - ;;
  9080. - *)
  9081. - lt_prog_compiler_pic_CXX='+Z'
  9082. - ;;
  9083. - esac
  9084. - ;;
  9085. - *)
  9086. - ;;
  9087. - esac
  9088. - ;;
  9089. - interix*)
  9090. - # This is c89, which is MS Visual C++ (no shared libs)
  9091. - # Anyone wants to do a port?
  9092. - ;;
  9093. - irix5* | irix6* | nonstopux*)
  9094. - case $cc_basename in
  9095. - CC*)
  9096. - lt_prog_compiler_wl_CXX='-Wl,'
  9097. - lt_prog_compiler_static_CXX='-non_shared'
  9098. - # CC pic flag -KPIC is the default.
  9099. - ;;
  9100. - *)
  9101. - ;;
  9102. - esac
  9103. - ;;
  9104. - linux* | k*bsd*-gnu)
  9105. - case $cc_basename in
  9106. - KCC*)
  9107. - # KAI C++ Compiler
  9108. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  9109. - lt_prog_compiler_pic_CXX='-fPIC'
  9110. - ;;
  9111. - icpc* | ecpc*)
  9112. - # Intel C++
  9113. - lt_prog_compiler_wl_CXX='-Wl,'
  9114. - lt_prog_compiler_pic_CXX='-KPIC'
  9115. - lt_prog_compiler_static_CXX='-static'
  9116. - ;;
  9117. - pgCC* | pgcpp*)
  9118. - # Portland Group C++ compiler.
  9119. - lt_prog_compiler_wl_CXX='-Wl,'
  9120. - lt_prog_compiler_pic_CXX='-fpic'
  9121. - lt_prog_compiler_static_CXX='-Bstatic'
  9122. - ;;
  9123. - cxx*)
  9124. - # Compaq C++
  9125. - # Make sure the PIC flag is empty. It appears that all Alpha
  9126. - # Linux and Compaq Tru64 Unix objects are PIC.
  9127. - lt_prog_compiler_pic_CXX=
  9128. - lt_prog_compiler_static_CXX='-non_shared'
  9129. - ;;
  9130. - *)
  9131. - case `$CC -V 2>&1 | sed 5q` in
  9132. - *Sun\ C*)
  9133. - # Sun C++ 5.9
  9134. - lt_prog_compiler_pic_CXX='-KPIC'
  9135. - lt_prog_compiler_static_CXX='-Bstatic'
  9136. - lt_prog_compiler_wl_CXX='-Qoption ld '
  9137. - ;;
  9138. - esac
  9139. - ;;
  9140. - esac
  9141. - ;;
  9142. - lynxos*)
  9143. - ;;
  9144. - m88k*)
  9145. - ;;
  9146. - mvs*)
  9147. - case $cc_basename in
  9148. - cxx*)
  9149. - lt_prog_compiler_pic_CXX='-W c,exportall'
  9150. - ;;
  9151. - *)
  9152. - ;;
  9153. - esac
  9154. - ;;
  9155. - netbsd*)
  9156. - ;;
  9157. - osf3* | osf4* | osf5*)
  9158. - case $cc_basename in
  9159. - KCC*)
  9160. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  9161. - ;;
  9162. - RCC*)
  9163. - # Rational C++ 2.4.1
  9164. - lt_prog_compiler_pic_CXX='-pic'
  9165. - ;;
  9166. - cxx*)
  9167. - # Digital/Compaq C++
  9168. - lt_prog_compiler_wl_CXX='-Wl,'
  9169. - # Make sure the PIC flag is empty. It appears that all Alpha
  9170. - # Linux and Compaq Tru64 Unix objects are PIC.
  9171. - lt_prog_compiler_pic_CXX=
  9172. - lt_prog_compiler_static_CXX='-non_shared'
  9173. - ;;
  9174. - *)
  9175. - ;;
  9176. - esac
  9177. - ;;
  9178. - psos*)
  9179. - ;;
  9180. - solaris*)
  9181. - case $cc_basename in
  9182. - CC*)
  9183. - # Sun C++ 4.2, 5.x and Centerline C++
  9184. - lt_prog_compiler_pic_CXX='-KPIC'
  9185. - lt_prog_compiler_static_CXX='-Bstatic'
  9186. - lt_prog_compiler_wl_CXX='-Qoption ld '
  9187. - ;;
  9188. - gcx*)
  9189. - # Green Hills C++ Compiler
  9190. - lt_prog_compiler_pic_CXX='-PIC'
  9191. - ;;
  9192. - *)
  9193. - ;;
  9194. - esac
  9195. - ;;
  9196. - sunos4*)
  9197. - case $cc_basename in
  9198. - CC*)
  9199. - # Sun C++ 4.x
  9200. - lt_prog_compiler_pic_CXX='-pic'
  9201. - lt_prog_compiler_static_CXX='-Bstatic'
  9202. - ;;
  9203. - lcc*)
  9204. - # Lucid
  9205. - lt_prog_compiler_pic_CXX='-pic'
  9206. - ;;
  9207. - *)
  9208. - ;;
  9209. - esac
  9210. - ;;
  9211. - tandem*)
  9212. - case $cc_basename in
  9213. - NCC*)
  9214. - # NonStop-UX NCC 3.20
  9215. - lt_prog_compiler_pic_CXX='-KPIC'
  9216. - ;;
  9217. - *)
  9218. - ;;
  9219. - esac
  9220. - ;;
  9221. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9222. - case $cc_basename in
  9223. - CC*)
  9224. - lt_prog_compiler_wl_CXX='-Wl,'
  9225. - lt_prog_compiler_pic_CXX='-KPIC'
  9226. - lt_prog_compiler_static_CXX='-Bstatic'
  9227. - ;;
  9228. - esac
  9229. - ;;
  9230. - vxworks*)
  9231. - ;;
  9232. - *)
  9233. - lt_prog_compiler_can_build_shared_CXX=no
  9234. - ;;
  9235. - esac
  9236. - fi
  9237. -
  9238. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  9239. -$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  9240. -
  9241. -#
  9242. -# Check to make sure the PIC flag actually works.
  9243. -#
  9244. -if test -n "$lt_prog_compiler_pic_CXX"; then
  9245. -
  9246. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  9247. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  9248. -if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  9249. - $as_echo_n "(cached) " >&6
  9250. -else
  9251. - lt_cv_prog_compiler_pic_works_CXX=no
  9252. - ac_outfile=conftest.$ac_objext
  9253. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9254. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  9255. - # Insert the option either (1) after the last *FLAGS variable, or
  9256. - # (2) before a word containing "conftest.", or (3) at the end.
  9257. - # Note that $ac_compile itself does not contain backslashes and begins
  9258. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  9259. - # The option is referenced via a variable to avoid confusing sed.
  9260. - lt_compile=`echo "$ac_compile" | $SED \
  9261. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9262. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9263. - -e 's:$: $lt_compiler_flag:'`
  9264. - (eval echo "\"\$as_me:13917: $lt_compile\"" >&5)
  9265. - (eval "$lt_compile" 2>conftest.err)
  9266. - ac_status=$?
  9267. - cat conftest.err >&5
  9268. - echo "$as_me:13921: \$? = $ac_status" >&5
  9269. - if (exit $ac_status) && test -s "$ac_outfile"; then
  9270. - # The compiler can only warn and ignore the option if not recognized
  9271. - # So say no if there are warnings other than the usual output.
  9272. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  9273. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9274. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9275. - lt_cv_prog_compiler_pic_works_CXX=yes
  9276. - fi
  9277. - fi
  9278. - $rm conftest*
  9279. -
  9280. -fi
  9281. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  9282. -$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  9283. -
  9284. -if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  9285. - case $lt_prog_compiler_pic_CXX in
  9286. - "" | " "*) ;;
  9287. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  9288. - esac
  9289. -else
  9290. - lt_prog_compiler_pic_CXX=
  9291. - lt_prog_compiler_can_build_shared_CXX=no
  9292. -fi
  9293. -
  9294. -fi
  9295. -case $host_os in
  9296. - # For platforms which do not support PIC, -DPIC is meaningless:
  9297. - *djgpp*)
  9298. - lt_prog_compiler_pic_CXX=
  9299. - ;;
  9300. - *)
  9301. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  9302. - ;;
  9303. -esac
  9304. -
  9305. -#
  9306. -# Check to make sure the static flag actually works.
  9307. -#
  9308. -wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  9309. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9310. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9311. -if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  9312. - $as_echo_n "(cached) " >&6
  9313. -else
  9314. - lt_cv_prog_compiler_static_works_CXX=no
  9315. - save_LDFLAGS="$LDFLAGS"
  9316. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9317. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9318. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9319. - # The linker can only warn and ignore the option if not recognized
  9320. - # So say no if there are warnings
  9321. - if test -s conftest.err; then
  9322. - # Append any errors to the config.log.
  9323. - cat conftest.err 1>&5
  9324. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  9325. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9326. - if diff conftest.exp conftest.er2 >/dev/null; then
  9327. - lt_cv_prog_compiler_static_works_CXX=yes
  9328. - fi
  9329. - else
  9330. - lt_cv_prog_compiler_static_works_CXX=yes
  9331. - fi
  9332. - fi
  9333. - $rm -r conftest*
  9334. - LDFLAGS="$save_LDFLAGS"
  9335. -
  9336. -fi
  9337. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  9338. -$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  9339. -
  9340. -if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  9341. - :
  9342. -else
  9343. - lt_prog_compiler_static_CXX=
  9344. -fi
  9345. -
  9346. -
  9347. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  9348. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9349. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  9350. - $as_echo_n "(cached) " >&6
  9351. -else
  9352. - lt_cv_prog_compiler_c_o_CXX=no
  9353. - $rm -r conftest 2>/dev/null
  9354. - mkdir conftest
  9355. - cd conftest
  9356. - mkdir out
  9357. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9358. -
  9359. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  9360. - # Insert the option either (1) after the last *FLAGS variable, or
  9361. - # (2) before a word containing "conftest.", or (3) at the end.
  9362. - # Note that $ac_compile itself does not contain backslashes and begins
  9363. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  9364. - lt_compile=`echo "$ac_compile" | $SED \
  9365. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9366. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9367. - -e 's:$: $lt_compiler_flag:'`
  9368. - (eval echo "\"\$as_me:14021: $lt_compile\"" >&5)
  9369. - (eval "$lt_compile" 2>out/conftest.err)
  9370. - ac_status=$?
  9371. - cat out/conftest.err >&5
  9372. - echo "$as_me:14025: \$? = $ac_status" >&5
  9373. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9374. - then
  9375. - # The compiler can only warn and ignore the option if not recognized
  9376. - # So say no if there are warnings
  9377. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  9378. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9379. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9380. - lt_cv_prog_compiler_c_o_CXX=yes
  9381. - fi
  9382. - fi
  9383. - chmod u+w . 2>&5
  9384. - $rm conftest*
  9385. - # SGI C++ compiler will create directory out/ii_files/ for
  9386. - # template instantiation
  9387. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  9388. - $rm out/* && rmdir out
  9389. - cd ..
  9390. - rmdir conftest
  9391. - $rm conftest*
  9392. -
  9393. -fi
  9394. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  9395. -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  9396. -
  9397. -
  9398. -hard_links="nottested"
  9399. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  9400. - # do not overwrite the value of need_locks provided by the user
  9401. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  9402. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  9403. - hard_links=yes
  9404. - $rm conftest*
  9405. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9406. - touch conftest.a
  9407. - ln conftest.a conftest.b 2>&5 || hard_links=no
  9408. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9409. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  9410. -$as_echo "$hard_links" >&6; }
  9411. - if test "$hard_links" = no; then
  9412. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9413. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9414. - need_locks=warn
  9415. - fi
  9416. +striplib=
  9417. +old_striplib=
  9418. +{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9419. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9420. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9421. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9422. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9423. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  9424. +$as_echo "yes" >&6; }
  9425. else
  9426. - need_locks=no
  9427. -fi
  9428. -
  9429. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9430. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9431. -
  9432. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9433. - case $host_os in
  9434. - aix[4-9]*)
  9435. - # If we're using GNU nm, then we don't want the "-C" option.
  9436. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9437. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9438. - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  9439. - else
  9440. - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  9441. - fi
  9442. - ;;
  9443. - pw32*)
  9444. - export_symbols_cmds_CXX="$ltdll_cmds"
  9445. - ;;
  9446. - cygwin* | mingw*)
  9447. - export_symbols_cmds_CXX='$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'
  9448. - ;;
  9449. - *)
  9450. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9451. - ;;
  9452. - esac
  9453. - exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9454. -
  9455. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  9456. -$as_echo "$ld_shlibs_CXX" >&6; }
  9457. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  9458. -
  9459. -#
  9460. -# Do we need to explicitly link libc?
  9461. -#
  9462. -case "x$archive_cmds_need_lc_CXX" in
  9463. -x|xyes)
  9464. - # Assume -lc should be added
  9465. - archive_cmds_need_lc_CXX=yes
  9466. -
  9467. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  9468. - case $archive_cmds_CXX in
  9469. - *'~'*)
  9470. - # FIXME: we may have to deal with multi-command sequences.
  9471. - ;;
  9472. - '$CC '*)
  9473. - # Test whether the compiler implicitly links with -lc since on some
  9474. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9475. - # to ld, don't add -lc before -lgcc.
  9476. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9477. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9478. - $rm conftest*
  9479. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9480. -
  9481. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9482. - (eval $ac_compile) 2>&5
  9483. - ac_status=$?
  9484. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9485. - (exit $ac_status); } 2>conftest.err; then
  9486. - soname=conftest
  9487. - lib=conftest
  9488. - libobjs=conftest.$ac_objext
  9489. - deplibs=
  9490. - wl=$lt_prog_compiler_wl_CXX
  9491. - pic_flag=$lt_prog_compiler_pic_CXX
  9492. - compiler_flags=-v
  9493. - linker_flags=-v
  9494. - verstring=
  9495. - output_objdir=.
  9496. - libname=conftest
  9497. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  9498. - allow_undefined_flag_CXX=
  9499. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9500. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9501. - ac_status=$?
  9502. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9503. - (exit $ac_status); }
  9504. - then
  9505. - archive_cmds_need_lc_CXX=no
  9506. - else
  9507. - archive_cmds_need_lc_CXX=yes
  9508. - fi
  9509. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  9510. - else
  9511. - cat conftest.err 1>&5
  9512. - fi
  9513. - $rm conftest*
  9514. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  9515. -$as_echo "$archive_cmds_need_lc_CXX" >&6; }
  9516. - ;;
  9517. - esac
  9518. - fi
  9519. - ;;
  9520. -esac
  9521. -
  9522. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9523. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  9524. -library_names_spec=
  9525. -libname_spec='lib$name'
  9526. -soname_spec=
  9527. -shrext_cmds=".so"
  9528. -postinstall_cmds=
  9529. -postuninstall_cmds=
  9530. -finish_cmds=
  9531. -finish_eval=
  9532. -shlibpath_var=
  9533. -shlibpath_overrides_runpath=unknown
  9534. -version_type=none
  9535. -dynamic_linker="$host_os ld.so"
  9536. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9537. -
  9538. -need_lib_prefix=unknown
  9539. -hardcode_into_libs=no
  9540. -
  9541. -# when you set need_version to no, make sure it does not cause -set_version
  9542. -# flags to be left without arguments
  9543. -need_version=unknown
  9544. -
  9545. -case $host_os in
  9546. -aix3*)
  9547. - version_type=linux
  9548. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9549. - shlibpath_var=LIBPATH
  9550. -
  9551. - # AIX 3 has no versioning support, so we append a major version to the name.
  9552. - soname_spec='${libname}${release}${shared_ext}$major'
  9553. - ;;
  9554. -
  9555. -aix[4-9]*)
  9556. - version_type=linux
  9557. - need_lib_prefix=no
  9558. - need_version=no
  9559. - hardcode_into_libs=yes
  9560. - if test "$host_cpu" = ia64; then
  9561. - # AIX 5 supports IA64
  9562. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9563. - shlibpath_var=LD_LIBRARY_PATH
  9564. - else
  9565. - # With GCC up to 2.95.x, collect2 would create an import file
  9566. - # for dependence libraries. The import file would start with
  9567. - # the line `#! .'. This would cause the generated library to
  9568. - # depend on `.', always an invalid library. This was fixed in
  9569. - # development snapshots of GCC prior to 3.0.
  9570. - case $host_os in
  9571. - aix4 | aix4.[01] | aix4.[01].*)
  9572. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9573. - echo ' yes '
  9574. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9575. - :
  9576. - else
  9577. - can_build_shared=no
  9578. - fi
  9579. - ;;
  9580. - esac
  9581. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9582. - # soname into executable. Probably we can add versioning support to
  9583. - # collect2, so additional links can be useful in future.
  9584. - if test "$aix_use_runtimelinking" = yes; then
  9585. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9586. - # instead of lib<name>.a to let people know that these are not
  9587. - # typical AIX shared libraries.
  9588. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9589. - else
  9590. - # We preserve .a as extension for shared libraries through AIX4.2
  9591. - # and later when we are not doing run time linking.
  9592. - library_names_spec='${libname}${release}.a $libname.a'
  9593. - soname_spec='${libname}${release}${shared_ext}$major'
  9594. - fi
  9595. - shlibpath_var=LIBPATH
  9596. - fi
  9597. - ;;
  9598. -
  9599. -amigaos*)
  9600. - library_names_spec='$libname.ixlibrary $libname.a'
  9601. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9602. - 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'
  9603. - ;;
  9604. -
  9605. -beos*)
  9606. - library_names_spec='${libname}${shared_ext}'
  9607. - dynamic_linker="$host_os ld.so"
  9608. - shlibpath_var=LIBRARY_PATH
  9609. - ;;
  9610. -
  9611. -bsdi[45]*)
  9612. - version_type=linux
  9613. - need_version=no
  9614. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9615. - soname_spec='${libname}${release}${shared_ext}$major'
  9616. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9617. - shlibpath_var=LD_LIBRARY_PATH
  9618. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9619. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9620. - # the default ld.so.conf also contains /usr/contrib/lib and
  9621. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9622. - # libtool to hard-code these into programs
  9623. - ;;
  9624. -
  9625. -cygwin* | mingw* | pw32*)
  9626. - version_type=windows
  9627. - shrext_cmds=".dll"
  9628. - need_version=no
  9629. - need_lib_prefix=no
  9630. -
  9631. - case $GCC,$host_os in
  9632. - yes,cygwin* | yes,mingw* | yes,pw32*)
  9633. - library_names_spec='$libname.dll.a'
  9634. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9635. - postinstall_cmds='base_file=`basename \${file}`~
  9636. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  9637. - dldir=$destdir/`dirname \$dlpath`~
  9638. - test -d \$dldir || mkdir -p \$dldir~
  9639. - $install_prog $dir/$dlname \$dldir/$dlname~
  9640. - chmod a+x \$dldir/$dlname'
  9641. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9642. - dlpath=$dir/\$dldll~
  9643. - $rm \$dlpath'
  9644. - shlibpath_overrides_runpath=yes
  9645. -
  9646. - case $host_os in
  9647. - cygwin*)
  9648. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9649. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9650. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9651. - ;;
  9652. - mingw*)
  9653. - # MinGW DLLs use traditional 'lib' prefix
  9654. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9655. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9656. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  9657. - # It is most probably a Windows format PATH printed by
  9658. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9659. - # path with ; separators, and with drive letters. We can handle the
  9660. - # drive letters (cygwin fileutils understands them), so leave them,
  9661. - # especially as we might pass files found there to a mingw objdump,
  9662. - # which wouldn't understand a cygwinified path. Ahh.
  9663. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9664. - else
  9665. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9666. - fi
  9667. - ;;
  9668. - pw32*)
  9669. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  9670. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9671. - ;;
  9672. - esac
  9673. - ;;
  9674. -
  9675. - *)
  9676. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9677. - ;;
  9678. - esac
  9679. - dynamic_linker='Win32 ld.exe'
  9680. - # FIXME: first we should search . and the directory the executable is in
  9681. - shlibpath_var=PATH
  9682. - ;;
  9683. -
  9684. -darwin* | rhapsody*)
  9685. - dynamic_linker="$host_os dyld"
  9686. - version_type=darwin
  9687. - need_lib_prefix=no
  9688. - need_version=no
  9689. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9690. - soname_spec='${libname}${release}${major}$shared_ext'
  9691. - shlibpath_overrides_runpath=yes
  9692. - shlibpath_var=DYLD_LIBRARY_PATH
  9693. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9694. -
  9695. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9696. - ;;
  9697. -
  9698. -dgux*)
  9699. - version_type=linux
  9700. - need_lib_prefix=no
  9701. - need_version=no
  9702. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9703. - soname_spec='${libname}${release}${shared_ext}$major'
  9704. - shlibpath_var=LD_LIBRARY_PATH
  9705. - ;;
  9706. -
  9707. -freebsd1*)
  9708. - dynamic_linker=no
  9709. - ;;
  9710. -
  9711. -freebsd* | dragonfly*)
  9712. - # DragonFly does not have aout. When/if they implement a new
  9713. - # versioning mechanism, adjust this.
  9714. - if test -x /usr/bin/objformat; then
  9715. - objformat=`/usr/bin/objformat`
  9716. - else
  9717. - case $host_os in
  9718. - freebsd[123]*) objformat=aout ;;
  9719. - *) objformat=elf ;;
  9720. - esac
  9721. - fi
  9722. - version_type=freebsd-$objformat
  9723. - case $version_type in
  9724. - freebsd-elf*)
  9725. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9726. - need_version=no
  9727. - need_lib_prefix=no
  9728. - ;;
  9729. - freebsd-*)
  9730. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9731. - need_version=yes
  9732. - ;;
  9733. - esac
  9734. - shlibpath_var=LD_LIBRARY_PATH
  9735. +# FIXME - insert some real tests, host_os isn't really good enough
  9736. case $host_os in
  9737. - freebsd2*)
  9738. - shlibpath_overrides_runpath=yes
  9739. - ;;
  9740. - freebsd3.[01]* | freebsdelf3.[01]*)
  9741. - shlibpath_overrides_runpath=yes
  9742. - hardcode_into_libs=yes
  9743. - ;;
  9744. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9745. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9746. - shlibpath_overrides_runpath=no
  9747. - hardcode_into_libs=yes
  9748. - ;;
  9749. - *) # from 4.6 on, and DragonFly
  9750. - shlibpath_overrides_runpath=yes
  9751. - hardcode_into_libs=yes
  9752. - ;;
  9753. - esac
  9754. - ;;
  9755. -
  9756. -gnu*)
  9757. - version_type=linux
  9758. - need_lib_prefix=no
  9759. - need_version=no
  9760. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9761. - soname_spec='${libname}${release}${shared_ext}$major'
  9762. - shlibpath_var=LD_LIBRARY_PATH
  9763. - hardcode_into_libs=yes
  9764. - ;;
  9765. -
  9766. -hpux9* | hpux10* | hpux11*)
  9767. - # Give a soname corresponding to the major version so that dld.sl refuses to
  9768. - # link against other versions.
  9769. - version_type=sunos
  9770. - need_lib_prefix=no
  9771. - need_version=no
  9772. - case $host_cpu in
  9773. - ia64*)
  9774. - shrext_cmds='.so'
  9775. - hardcode_into_libs=yes
  9776. - dynamic_linker="$host_os dld.so"
  9777. - shlibpath_var=LD_LIBRARY_PATH
  9778. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9779. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9780. - soname_spec='${libname}${release}${shared_ext}$major'
  9781. - if test "X$HPUX_IA64_MODE" = X32; then
  9782. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9783. + darwin*)
  9784. + if test -n "$STRIP" ; then
  9785. + striplib="$STRIP -x"
  9786. + old_striplib="$STRIP -S"
  9787. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  9788. +$as_echo "yes" >&6; }
  9789. else
  9790. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9791. + { $as_echo "$as_me:$LINENO: result: no" >&5
  9792. +$as_echo "no" >&6; }
  9793. fi
  9794. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9795. - ;;
  9796. - hppa*64*)
  9797. - shrext_cmds='.sl'
  9798. - hardcode_into_libs=yes
  9799. - dynamic_linker="$host_os dld.sl"
  9800. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9801. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9802. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9803. - soname_spec='${libname}${release}${shared_ext}$major'
  9804. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9805. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9806. - ;;
  9807. - *)
  9808. - shrext_cmds='.sl'
  9809. - dynamic_linker="$host_os dld.sl"
  9810. - shlibpath_var=SHLIB_PATH
  9811. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9812. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9813. - soname_spec='${libname}${release}${shared_ext}$major'
  9814. - ;;
  9815. - esac
  9816. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9817. - postinstall_cmds='chmod 555 $lib'
  9818. - ;;
  9819. -
  9820. -interix[3-9]*)
  9821. - version_type=linux
  9822. - need_lib_prefix=no
  9823. - need_version=no
  9824. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9825. - soname_spec='${libname}${release}${shared_ext}$major'
  9826. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9827. - shlibpath_var=LD_LIBRARY_PATH
  9828. - shlibpath_overrides_runpath=no
  9829. - hardcode_into_libs=yes
  9830. - ;;
  9831. -
  9832. -irix5* | irix6* | nonstopux*)
  9833. - case $host_os in
  9834. - nonstopux*) version_type=nonstopux ;;
  9835. - *)
  9836. - if test "$lt_cv_prog_gnu_ld" = yes; then
  9837. - version_type=linux
  9838. - else
  9839. - version_type=irix
  9840. - fi ;;
  9841. - esac
  9842. - need_lib_prefix=no
  9843. - need_version=no
  9844. - soname_spec='${libname}${release}${shared_ext}$major'
  9845. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9846. - case $host_os in
  9847. - irix5* | nonstopux*)
  9848. - libsuff= shlibsuff=
  9849. ;;
  9850. *)
  9851. - case $LD in # libtool.m4 will add one of these switches to LD
  9852. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9853. - libsuff= shlibsuff= libmagic=32-bit;;
  9854. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9855. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  9856. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9857. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9858. - *) libsuff= shlibsuff= libmagic=never-match;;
  9859. - esac
  9860. - ;;
  9861. - esac
  9862. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9863. - shlibpath_overrides_runpath=no
  9864. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9865. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9866. - hardcode_into_libs=yes
  9867. - ;;
  9868. -
  9869. -# No shared lib support for Linux oldld, aout, or coff.
  9870. -linux*oldld* | linux*aout* | linux*coff*)
  9871. - dynamic_linker=no
  9872. - ;;
  9873. -
  9874. -# This must be Linux ELF.
  9875. -linux* | k*bsd*-gnu)
  9876. - version_type=linux
  9877. - need_lib_prefix=no
  9878. - need_version=no
  9879. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9880. - soname_spec='${libname}${release}${shared_ext}$major'
  9881. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9882. - shlibpath_var=LD_LIBRARY_PATH
  9883. - shlibpath_overrides_runpath=no
  9884. - # This implies no fast_install, which is unacceptable.
  9885. - # Some rework will be needed to allow for fast_install
  9886. - # before this can be enabled.
  9887. - hardcode_into_libs=yes
  9888. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9889. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9890. -
  9891. - # Append ld.so.conf contents to the search path
  9892. - if test -f /etc/ld.so.conf; then
  9893. - 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' ' '`
  9894. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9895. - fi
  9896. -
  9897. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  9898. - # powerpc, because MkLinux only supported shared libraries with the
  9899. - # GNU dynamic linker. Since this was broken with cross compilers,
  9900. - # most powerpc-linux boxes support dynamic linking these days and
  9901. - # people can always --disable-shared, the test was removed, and we
  9902. - # assume the GNU/Linux dynamic linker is in use.
  9903. - dynamic_linker='GNU/Linux ld.so'
  9904. - ;;
  9905. -
  9906. -netbsd*)
  9907. - version_type=sunos
  9908. - need_lib_prefix=no
  9909. - need_version=no
  9910. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9911. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9912. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9913. - dynamic_linker='NetBSD (a.out) ld.so'
  9914. - else
  9915. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9916. - soname_spec='${libname}${release}${shared_ext}$major'
  9917. - dynamic_linker='NetBSD ld.elf_so'
  9918. - fi
  9919. - shlibpath_var=LD_LIBRARY_PATH
  9920. - shlibpath_overrides_runpath=yes
  9921. - hardcode_into_libs=yes
  9922. - ;;
  9923. -
  9924. -newsos6)
  9925. - version_type=linux
  9926. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9927. - shlibpath_var=LD_LIBRARY_PATH
  9928. - shlibpath_overrides_runpath=yes
  9929. - ;;
  9930. -
  9931. -nto-qnx*)
  9932. - version_type=linux
  9933. - need_lib_prefix=no
  9934. - need_version=no
  9935. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9936. - soname_spec='${libname}${release}${shared_ext}$major'
  9937. - shlibpath_var=LD_LIBRARY_PATH
  9938. - shlibpath_overrides_runpath=yes
  9939. - ;;
  9940. -
  9941. -openbsd*)
  9942. - version_type=sunos
  9943. - sys_lib_dlsearch_path_spec="/usr/lib"
  9944. - need_lib_prefix=no
  9945. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9946. - case $host_os in
  9947. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9948. - *) need_version=no ;;
  9949. - esac
  9950. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9951. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9952. - shlibpath_var=LD_LIBRARY_PATH
  9953. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9954. - case $host_os in
  9955. - openbsd2.[89] | openbsd2.[89].*)
  9956. - shlibpath_overrides_runpath=no
  9957. - ;;
  9958. - *)
  9959. - shlibpath_overrides_runpath=yes
  9960. - ;;
  9961. - esac
  9962. - else
  9963. - shlibpath_overrides_runpath=yes
  9964. - fi
  9965. - ;;
  9966. -
  9967. -os2*)
  9968. - libname_spec='$name'
  9969. - shrext_cmds=".dll"
  9970. - need_lib_prefix=no
  9971. - library_names_spec='$libname${shared_ext} $libname.a'
  9972. - dynamic_linker='OS/2 ld.exe'
  9973. - shlibpath_var=LIBPATH
  9974. - ;;
  9975. -
  9976. -osf3* | osf4* | osf5*)
  9977. - version_type=osf
  9978. - need_lib_prefix=no
  9979. - need_version=no
  9980. - soname_spec='${libname}${release}${shared_ext}$major'
  9981. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9982. - shlibpath_var=LD_LIBRARY_PATH
  9983. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9984. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9985. - ;;
  9986. -
  9987. -rdos*)
  9988. - dynamic_linker=no
  9989. - ;;
  9990. -
  9991. -solaris*)
  9992. - version_type=linux
  9993. - need_lib_prefix=no
  9994. - need_version=no
  9995. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9996. - soname_spec='${libname}${release}${shared_ext}$major'
  9997. - shlibpath_var=LD_LIBRARY_PATH
  9998. - shlibpath_overrides_runpath=yes
  9999. - hardcode_into_libs=yes
  10000. - # ldd complains unless libraries are executable
  10001. - postinstall_cmds='chmod +x $lib'
  10002. - ;;
  10003. -
  10004. -sunos4*)
  10005. - version_type=sunos
  10006. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10007. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10008. - shlibpath_var=LD_LIBRARY_PATH
  10009. - shlibpath_overrides_runpath=yes
  10010. - if test "$with_gnu_ld" = yes; then
  10011. - need_lib_prefix=no
  10012. - fi
  10013. - need_version=yes
  10014. - ;;
  10015. -
  10016. -sysv4 | sysv4.3*)
  10017. - version_type=linux
  10018. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10019. - soname_spec='${libname}${release}${shared_ext}$major'
  10020. - shlibpath_var=LD_LIBRARY_PATH
  10021. - case $host_vendor in
  10022. - sni)
  10023. - shlibpath_overrides_runpath=no
  10024. - need_lib_prefix=no
  10025. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  10026. - runpath_var=LD_RUN_PATH
  10027. - ;;
  10028. - siemens)
  10029. - need_lib_prefix=no
  10030. - ;;
  10031. - motorola)
  10032. - need_lib_prefix=no
  10033. - need_version=no
  10034. - shlibpath_overrides_runpath=no
  10035. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10036. - ;;
  10037. - esac
  10038. - ;;
  10039. -
  10040. -sysv4*MP*)
  10041. - if test -d /usr/nec ;then
  10042. - version_type=linux
  10043. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10044. - soname_spec='$libname${shared_ext}.$major'
  10045. - shlibpath_var=LD_LIBRARY_PATH
  10046. - fi
  10047. - ;;
  10048. -
  10049. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10050. - version_type=freebsd-elf
  10051. - need_lib_prefix=no
  10052. - need_version=no
  10053. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10054. - soname_spec='${libname}${release}${shared_ext}$major'
  10055. - shlibpath_var=LD_LIBRARY_PATH
  10056. - hardcode_into_libs=yes
  10057. - if test "$with_gnu_ld" = yes; then
  10058. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10059. - shlibpath_overrides_runpath=no
  10060. - else
  10061. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10062. - shlibpath_overrides_runpath=yes
  10063. - case $host_os in
  10064. - sco3.2v5*)
  10065. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10066. - ;;
  10067. - esac
  10068. - fi
  10069. - sys_lib_dlsearch_path_spec='/usr/lib'
  10070. - ;;
  10071. -
  10072. -uts4*)
  10073. - version_type=linux
  10074. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10075. - soname_spec='${libname}${release}${shared_ext}$major'
  10076. - shlibpath_var=LD_LIBRARY_PATH
  10077. - ;;
  10078. -
  10079. -*)
  10080. - dynamic_linker=no
  10081. - ;;
  10082. -esac
  10083. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10084. -$as_echo "$dynamic_linker" >&6; }
  10085. -test "$dynamic_linker" = no && can_build_shared=no
  10086. -
  10087. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10088. - $as_echo_n "(cached) " >&6
  10089. -else
  10090. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  10091. -fi
  10092. -
  10093. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10094. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10095. - $as_echo_n "(cached) " >&6
  10096. -else
  10097. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  10098. -fi
  10099. -
  10100. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10101. -
  10102. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10103. -if test "$GCC" = yes; then
  10104. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10105. -fi
  10106. -
  10107. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10108. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10109. -hardcode_action_CXX=
  10110. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  10111. - test -n "$runpath_var_CXX" || \
  10112. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  10113. -
  10114. - # We can hardcode non-existant directories.
  10115. - if test "$hardcode_direct_CXX" != no &&
  10116. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10117. - # have to relink, otherwise we might link with an installed library
  10118. - # when we should be linking with a yet-to-be-installed one
  10119. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  10120. - test "$hardcode_minus_L_CXX" != no; then
  10121. - # Linking always hardcodes the temporary library directory.
  10122. - hardcode_action_CXX=relink
  10123. - else
  10124. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10125. - hardcode_action_CXX=immediate
  10126. - fi
  10127. -else
  10128. - # We cannot hardcode anything, or else we can only hardcode existing
  10129. - # directories.
  10130. - hardcode_action_CXX=unsupported
  10131. -fi
  10132. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  10133. -$as_echo "$hardcode_action_CXX" >&6; }
  10134. -
  10135. -if test "$hardcode_action_CXX" = relink; then
  10136. - # Fast installation is not supported
  10137. - enable_fast_install=no
  10138. -elif test "$shlibpath_overrides_runpath" = yes ||
  10139. - test "$enable_shared" = no; then
  10140. - # Fast installation is not necessary
  10141. - enable_fast_install=needless
  10142. -fi
  10143. -
  10144. -
  10145. -# The else clause should only fire when bootstrapping the
  10146. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  10147. -# with your package, and you will get complaints that there are
  10148. -# no rules to generate ltmain.sh.
  10149. -if test -f "$ltmain"; then
  10150. - # See if we are running on zsh, and set the options which allow our commands through
  10151. - # without removal of \ escapes.
  10152. - if test -n "${ZSH_VERSION+set}" ; then
  10153. - setopt NO_GLOB_SUBST
  10154. - fi
  10155. - # Now quote all the things that may contain metacharacters while being
  10156. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  10157. - # variables and quote the copies for generation of the libtool script.
  10158. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  10159. - SED SHELL STRIP \
  10160. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  10161. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  10162. - deplibs_check_method reload_flag reload_cmds need_locks \
  10163. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  10164. - lt_cv_sys_global_symbol_to_c_name_address \
  10165. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10166. - old_postinstall_cmds old_postuninstall_cmds \
  10167. - compiler_CXX \
  10168. - CC_CXX \
  10169. - LD_CXX \
  10170. - lt_prog_compiler_wl_CXX \
  10171. - lt_prog_compiler_pic_CXX \
  10172. - lt_prog_compiler_static_CXX \
  10173. - lt_prog_compiler_no_builtin_flag_CXX \
  10174. - export_dynamic_flag_spec_CXX \
  10175. - thread_safe_flag_spec_CXX \
  10176. - whole_archive_flag_spec_CXX \
  10177. - enable_shared_with_static_runtimes_CXX \
  10178. - old_archive_cmds_CXX \
  10179. - old_archive_from_new_cmds_CXX \
  10180. - predep_objects_CXX \
  10181. - postdep_objects_CXX \
  10182. - predeps_CXX \
  10183. - postdeps_CXX \
  10184. - compiler_lib_search_path_CXX \
  10185. - compiler_lib_search_dirs_CXX \
  10186. - archive_cmds_CXX \
  10187. - archive_expsym_cmds_CXX \
  10188. - postinstall_cmds_CXX \
  10189. - postuninstall_cmds_CXX \
  10190. - old_archive_from_expsyms_cmds_CXX \
  10191. - allow_undefined_flag_CXX \
  10192. - no_undefined_flag_CXX \
  10193. - export_symbols_cmds_CXX \
  10194. - hardcode_libdir_flag_spec_CXX \
  10195. - hardcode_libdir_flag_spec_ld_CXX \
  10196. - hardcode_libdir_separator_CXX \
  10197. - hardcode_automatic_CXX \
  10198. - module_cmds_CXX \
  10199. - module_expsym_cmds_CXX \
  10200. - lt_cv_prog_compiler_c_o_CXX \
  10201. - fix_srcfile_path_CXX \
  10202. - exclude_expsyms_CXX \
  10203. - include_expsyms_CXX; do
  10204. -
  10205. - case $var in
  10206. - old_archive_cmds_CXX | \
  10207. - old_archive_from_new_cmds_CXX | \
  10208. - archive_cmds_CXX | \
  10209. - archive_expsym_cmds_CXX | \
  10210. - module_cmds_CXX | \
  10211. - module_expsym_cmds_CXX | \
  10212. - old_archive_from_expsyms_cmds_CXX | \
  10213. - export_symbols_cmds_CXX | \
  10214. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  10215. - postinstall_cmds | postuninstall_cmds | \
  10216. - old_postinstall_cmds | old_postuninstall_cmds | \
  10217. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  10218. - # Double-quote double-evaled strings.
  10219. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  10220. - ;;
  10221. - *)
  10222. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  10223. - ;;
  10224. - esac
  10225. - done
  10226. -
  10227. - case $lt_echo in
  10228. - *'\$0 --fallback-echo"')
  10229. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  10230. + { $as_echo "$as_me:$LINENO: result: no" >&5
  10231. +$as_echo "no" >&6; }
  10232. ;;
  10233. esac
  10234. -
  10235. -cfgfile="$ofile"
  10236. -
  10237. - cat <<__EOF__ >> "$cfgfile"
  10238. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  10239. -
  10240. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10241. -
  10242. -# Shell to use when invoking shell scripts.
  10243. -SHELL=$lt_SHELL
  10244. -
  10245. -# Whether or not to build shared libraries.
  10246. -build_libtool_libs=$enable_shared
  10247. -
  10248. -# Whether or not to build static libraries.
  10249. -build_old_libs=$enable_static
  10250. -
  10251. -# Whether or not to add -lc for building shared libraries.
  10252. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  10253. -
  10254. -# Whether or not to disallow shared libs when runtime libs are static
  10255. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  10256. -
  10257. -# Whether or not to optimize for fast installation.
  10258. -fast_install=$enable_fast_install
  10259. -
  10260. -# The host system.
  10261. -host_alias=$host_alias
  10262. -host=$host
  10263. -host_os=$host_os
  10264. -
  10265. -# The build system.
  10266. -build_alias=$build_alias
  10267. -build=$build
  10268. -build_os=$build_os
  10269. -
  10270. -# An echo program that does not interpret backslashes.
  10271. -echo=$lt_echo
  10272. -
  10273. -# The archiver.
  10274. -AR=$lt_AR
  10275. -AR_FLAGS=$lt_AR_FLAGS
  10276. -
  10277. -# A C compiler.
  10278. -LTCC=$lt_LTCC
  10279. -
  10280. -# LTCC compiler flags.
  10281. -LTCFLAGS=$lt_LTCFLAGS
  10282. -
  10283. -# A language-specific compiler.
  10284. -CC=$lt_compiler_CXX
  10285. -
  10286. -# Is the compiler the GNU C compiler?
  10287. -with_gcc=$GCC_CXX
  10288. -
  10289. -# An ERE matcher.
  10290. -EGREP=$lt_EGREP
  10291. -
  10292. -# The linker used to build libraries.
  10293. -LD=$lt_LD_CXX
  10294. -
  10295. -# Whether we need hard or soft links.
  10296. -LN_S=$lt_LN_S
  10297. -
  10298. -# A BSD-compatible nm program.
  10299. -NM=$lt_NM
  10300. -
  10301. -# A symbol stripping program
  10302. -STRIP=$lt_STRIP
  10303. -
  10304. -# Used to examine libraries when file_magic_cmd begins "file"
  10305. -MAGIC_CMD=$MAGIC_CMD
  10306. -
  10307. -# Used on cygwin: DLL creation program.
  10308. -DLLTOOL="$DLLTOOL"
  10309. -
  10310. -# Used on cygwin: object dumper.
  10311. -OBJDUMP="$OBJDUMP"
  10312. -
  10313. -# Used on cygwin: assembler.
  10314. -AS="$AS"
  10315. -
  10316. -# The name of the directory that contains temporary libtool files.
  10317. -objdir=$objdir
  10318. -
  10319. -# How to create reloadable object files.
  10320. -reload_flag=$lt_reload_flag
  10321. -reload_cmds=$lt_reload_cmds
  10322. -
  10323. -# How to pass a linker flag through the compiler.
  10324. -wl=$lt_lt_prog_compiler_wl_CXX
  10325. -
  10326. -# Object file suffix (normally "o").
  10327. -objext="$ac_objext"
  10328. -
  10329. -# Old archive suffix (normally "a").
  10330. -libext="$libext"
  10331. -
  10332. -# Shared library suffix (normally ".so").
  10333. -shrext_cmds='$shrext_cmds'
  10334. -
  10335. -# Executable file suffix (normally "").
  10336. -exeext="$exeext"
  10337. -
  10338. -# Additional compiler flags for building library objects.
  10339. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  10340. -pic_mode=$pic_mode
  10341. -
  10342. -# What is the maximum length of a command?
  10343. -max_cmd_len=$lt_cv_sys_max_cmd_len
  10344. -
  10345. -# Does compiler simultaneously support -c and -o options?
  10346. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  10347. -
  10348. -# Must we lock files when doing compilation?
  10349. -need_locks=$lt_need_locks
  10350. -
  10351. -# Do we need the lib prefix for modules?
  10352. -need_lib_prefix=$need_lib_prefix
  10353. -
  10354. -# Do we need a version for libraries?
  10355. -need_version=$need_version
  10356. -
  10357. -# Whether dlopen is supported.
  10358. -dlopen_support=$enable_dlopen
  10359. -
  10360. -# Whether dlopen of programs is supported.
  10361. -dlopen_self=$enable_dlopen_self
  10362. -
  10363. -# Whether dlopen of statically linked programs is supported.
  10364. -dlopen_self_static=$enable_dlopen_self_static
  10365. -
  10366. -# Compiler flag to prevent dynamic linking.
  10367. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  10368. -
  10369. -# Compiler flag to turn off builtin functions.
  10370. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  10371. -
  10372. -# Compiler flag to allow reflexive dlopens.
  10373. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  10374. -
  10375. -# Compiler flag to generate shared objects directly from archives.
  10376. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  10377. -
  10378. -# Compiler flag to generate thread-safe objects.
  10379. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  10380. -
  10381. -# Library versioning type.
  10382. -version_type=$version_type
  10383. -
  10384. -# Format of library name prefix.
  10385. -libname_spec=$lt_libname_spec
  10386. -
  10387. -# List of archive names. First name is the real one, the rest are links.
  10388. -# The last name is the one that the linker finds with -lNAME.
  10389. -library_names_spec=$lt_library_names_spec
  10390. -
  10391. -# The coded name of the library, if different from the real name.
  10392. -soname_spec=$lt_soname_spec
  10393. -
  10394. -# Commands used to build and install an old-style archive.
  10395. -RANLIB=$lt_RANLIB
  10396. -old_archive_cmds=$lt_old_archive_cmds_CXX
  10397. -old_postinstall_cmds=$lt_old_postinstall_cmds
  10398. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  10399. -
  10400. -# Create an old-style archive from a shared archive.
  10401. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  10402. -
  10403. -# Create a temporary old-style archive to link instead of a shared archive.
  10404. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  10405. -
  10406. -# Commands used to build and install a shared archive.
  10407. -archive_cmds=$lt_archive_cmds_CXX
  10408. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  10409. -postinstall_cmds=$lt_postinstall_cmds
  10410. -postuninstall_cmds=$lt_postuninstall_cmds
  10411. -
  10412. -# Commands used to build a loadable module (assumed same as above if empty)
  10413. -module_cmds=$lt_module_cmds_CXX
  10414. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  10415. -
  10416. -# Commands to strip libraries.
  10417. -old_striplib=$lt_old_striplib
  10418. -striplib=$lt_striplib
  10419. -
  10420. -# Dependencies to place before the objects being linked to create a
  10421. -# shared library.
  10422. -predep_objects=$lt_predep_objects_CXX
  10423. -
  10424. -# Dependencies to place after the objects being linked to create a
  10425. -# shared library.
  10426. -postdep_objects=$lt_postdep_objects_CXX
  10427. -
  10428. -# Dependencies to place before the objects being linked to create a
  10429. -# shared library.
  10430. -predeps=$lt_predeps_CXX
  10431. -
  10432. -# Dependencies to place after the objects being linked to create a
  10433. -# shared library.
  10434. -postdeps=$lt_postdeps_CXX
  10435. -
  10436. -# The directories searched by this compiler when creating a shared
  10437. -# library
  10438. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  10439. -
  10440. -# The library search path used internally by the compiler when linking
  10441. -# a shared library.
  10442. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  10443. -
  10444. -# Method to check whether dependent libraries are shared objects.
  10445. -deplibs_check_method=$lt_deplibs_check_method
  10446. -
  10447. -# Command to use when deplibs_check_method == file_magic.
  10448. -file_magic_cmd=$lt_file_magic_cmd
  10449. -
  10450. -# Flag that allows shared libraries with undefined symbols to be built.
  10451. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  10452. -
  10453. -# Flag that forces no undefined symbols.
  10454. -no_undefined_flag=$lt_no_undefined_flag_CXX
  10455. -
  10456. -# Commands used to finish a libtool library installation in a directory.
  10457. -finish_cmds=$lt_finish_cmds
  10458. -
  10459. -# Same as above, but a single script fragment to be evaled but not shown.
  10460. -finish_eval=$lt_finish_eval
  10461. -
  10462. -# Take the output of nm and produce a listing of raw symbols and C names.
  10463. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  10464. -
  10465. -# Transform the output of nm in a proper C declaration
  10466. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  10467. -
  10468. -# Transform the output of nm in a C name address pair
  10469. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  10470. -
  10471. -# This is the shared library runtime path variable.
  10472. -runpath_var=$runpath_var
  10473. -
  10474. -# This is the shared library path variable.
  10475. -shlibpath_var=$shlibpath_var
  10476. -
  10477. -# Is shlibpath searched before the hard-coded library search path?
  10478. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  10479. -
  10480. -# How to hardcode a shared library path into an executable.
  10481. -hardcode_action=$hardcode_action_CXX
  10482. -
  10483. -# Whether we should hardcode library paths into libraries.
  10484. -hardcode_into_libs=$hardcode_into_libs
  10485. -
  10486. -# Flag to hardcode \$libdir into a binary during linking.
  10487. -# This must work even if \$libdir does not exist.
  10488. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  10489. -
  10490. -# If ld is used when linking, flag to hardcode \$libdir into
  10491. -# a binary during linking. This must work even if \$libdir does
  10492. -# not exist.
  10493. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  10494. -
  10495. -# Whether we need a single -rpath flag with a separated argument.
  10496. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  10497. -
  10498. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  10499. -# resulting binary.
  10500. -hardcode_direct=$hardcode_direct_CXX
  10501. -
  10502. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  10503. -# resulting binary.
  10504. -hardcode_minus_L=$hardcode_minus_L_CXX
  10505. -
  10506. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  10507. -# the resulting binary.
  10508. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  10509. -
  10510. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  10511. -# and all subsequent libraries and executables linked against it.
  10512. -hardcode_automatic=$hardcode_automatic_CXX
  10513. -
  10514. -# Variables whose values should be saved in libtool wrapper scripts and
  10515. -# restored at relink time.
  10516. -variables_saved_for_relink="$variables_saved_for_relink"
  10517. -
  10518. -# Whether libtool must link a program against all its dependency libraries.
  10519. -link_all_deplibs=$link_all_deplibs_CXX
  10520. -
  10521. -# Compile-time system search path for libraries
  10522. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10523. -
  10524. -# Run-time system search path for libraries
  10525. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10526. -
  10527. -# Fix the shell variable \$srcfile for the compiler.
  10528. -fix_srcfile_path=$lt_fix_srcfile_path
  10529. -
  10530. -# Set to yes if exported symbols are required.
  10531. -always_export_symbols=$always_export_symbols_CXX
  10532. -
  10533. -# The commands to list exported symbols.
  10534. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  10535. -
  10536. -# The commands to extract the exported symbol list from a shared archive.
  10537. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10538. -
  10539. -# Symbols that should not be listed in the preloaded symbols.
  10540. -exclude_expsyms=$lt_exclude_expsyms_CXX
  10541. -
  10542. -# Symbols that must always be exported.
  10543. -include_expsyms=$lt_include_expsyms_CXX
  10544. -
  10545. -# ### END LIBTOOL TAG CONFIG: $tagname
  10546. -
  10547. -__EOF__
  10548. -
  10549. -
  10550. -else
  10551. - # If there is no Makefile yet, we rely on a make rule to execute
  10552. - # `config.status --recheck' to rerun these tests and create the
  10553. - # libtool script then.
  10554. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  10555. - if test -f "$ltmain_in"; then
  10556. - test -f Makefile && make "$ltmain"
  10557. - fi
  10558. fi
  10559. -ac_ext=c
  10560. -ac_cpp='$CPP $CPPFLAGS'
  10561. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10562. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10563. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10564. -CC=$lt_save_CC
  10565. -LDCXX=$LD
  10566. -LD=$lt_save_LD
  10567. -GCC=$lt_save_GCC
  10568. -with_gnu_ldcxx=$with_gnu_ld
  10569. -with_gnu_ld=$lt_save_with_gnu_ld
  10570. -lt_cv_path_LDCXX=$lt_cv_path_LD
  10571. -lt_cv_path_LD=$lt_save_path_LD
  10572. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10573. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10574. - else
  10575. - tagname=""
  10576. - fi
  10577. - ;;
  10578. - F77)
  10579. - if test -n "$F77" && test "X$F77" != "Xno"; then
  10580. -ac_ext=f
  10581. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  10582. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10583. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  10584. -archive_cmds_need_lc_F77=no
  10585. -allow_undefined_flag_F77=
  10586. -always_export_symbols_F77=no
  10587. -archive_expsym_cmds_F77=
  10588. -export_dynamic_flag_spec_F77=
  10589. -hardcode_direct_F77=no
  10590. -hardcode_libdir_flag_spec_F77=
  10591. -hardcode_libdir_flag_spec_ld_F77=
  10592. -hardcode_libdir_separator_F77=
  10593. -hardcode_minus_L_F77=no
  10594. -hardcode_automatic_F77=no
  10595. -module_cmds_F77=
  10596. -module_expsym_cmds_F77=
  10597. -link_all_deplibs_F77=unknown
  10598. -old_archive_cmds_F77=$old_archive_cmds
  10599. -no_undefined_flag_F77=
  10600. -whole_archive_flag_spec_F77=
  10601. -enable_shared_with_static_runtimes_F77=no
  10602. -
  10603. -# Source file extension for f77 test sources.
  10604. -ac_ext=f
  10605. -
  10606. -# Object file extension for compiled f77 test sources.
  10607. -objext=o
  10608. -objext_F77=$objext
  10609. -
  10610. -# Code to be used in simple compile tests
  10611. -lt_simple_compile_test_code="\
  10612. - subroutine t
  10613. - return
  10614. - end
  10615. -"
  10616. -
  10617. -# Code to be used in simple link tests
  10618. -lt_simple_link_test_code="\
  10619. - program t
  10620. - end
  10621. -"
  10622. -
  10623. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10624. -
  10625. -# If no C compiler was specified, use CC.
  10626. -LTCC=${LTCC-"$CC"}
  10627. -# If no C compiler flags were specified, use CFLAGS.
  10628. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10629. -# Allow CC to be a program name with arguments.
  10630. -compiler=$CC
  10631. -# save warnings/boilerplate of simple test code
  10632. -ac_outfile=conftest.$ac_objext
  10633. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10634. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10635. -_lt_compiler_boilerplate=`cat conftest.err`
  10636. -$rm conftest*
  10637. -
  10638. -ac_outfile=conftest.$ac_objext
  10639. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10640. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10641. -_lt_linker_boilerplate=`cat conftest.err`
  10642. -$rm -r conftest*
  10643. -
  10644. -
  10645. -# Allow CC to be a program name with arguments.
  10646. -lt_save_CC="$CC"
  10647. -CC=${F77-"f77"}
  10648. -compiler=$CC
  10649. -compiler_F77=$CC
  10650. -for cc_temp in $compiler""; do
  10651. - case $cc_temp in
  10652. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10653. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10654. - \-*) ;;
  10655. - *) break;;
  10656. - esac
  10657. -done
  10658. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10659. -
  10660. -
  10661. -{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10662. + # Report which library types will actually be built
  10663. + { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10664. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10665. -{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10666. + { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10667. $as_echo "$can_build_shared" >&6; }
  10668. -{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10669. + { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10670. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10671. -test "$can_build_shared" = "no" && enable_shared=no
  10672. -
  10673. -# On AIX, shared libraries and static libraries use the same namespace, and
  10674. -# are all built from PIC.
  10675. -case $host_os in
  10676. -aix3*)
  10677. - test "$enable_shared" = yes && enable_static=no
  10678. - if test -n "$RANLIB"; then
  10679. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10680. - postinstall_cmds='$RANLIB $lib'
  10681. - fi
  10682. - ;;
  10683. -aix[4-9]*)
  10684. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10685. - test "$enable_shared" = yes && enable_static=no
  10686. - fi
  10687. - ;;
  10688. -esac
  10689. -{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  10690. -$as_echo "$enable_shared" >&6; }
  10691. -
  10692. -{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  10693. -$as_echo_n "checking whether to build static libraries... " >&6; }
  10694. -# Make sure either enable_shared or enable_static is yes.
  10695. -test "$enable_shared" = yes || enable_static=yes
  10696. -{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  10697. -$as_echo "$enable_static" >&6; }
  10698. -
  10699. -GCC_F77="$G77"
  10700. -LD_F77="$LD"
  10701. -
  10702. -lt_prog_compiler_wl_F77=
  10703. -lt_prog_compiler_pic_F77=
  10704. -lt_prog_compiler_static_F77=
  10705. -
  10706. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10707. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10708. -
  10709. - if test "$GCC" = yes; then
  10710. - lt_prog_compiler_wl_F77='-Wl,'
  10711. - lt_prog_compiler_static_F77='-static'
  10712. -
  10713. - case $host_os in
  10714. - aix*)
  10715. - # All AIX code is PIC.
  10716. - if test "$host_cpu" = ia64; then
  10717. - # AIX 5 now supports IA64 processor
  10718. - lt_prog_compiler_static_F77='-Bstatic'
  10719. - fi
  10720. - ;;
  10721. -
  10722. - amigaos*)
  10723. - # FIXME: we need at least 68020 code to build shared libraries, but
  10724. - # adding the `-m68020' flag to GCC prevents building anything better,
  10725. - # like `-m68040'.
  10726. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  10727. - ;;
  10728. -
  10729. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10730. - # PIC is the default for these OSes.
  10731. - ;;
  10732. -
  10733. - mingw* | cygwin* | pw32* | os2*)
  10734. - # This hack is so that the source file can tell whether it is being
  10735. - # built for inclusion in a dll (and should export symbols for example).
  10736. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10737. - # (--disable-auto-import) libraries
  10738. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  10739. - ;;
  10740. -
  10741. - darwin* | rhapsody*)
  10742. - # PIC is the default on this platform
  10743. - # Common symbols not allowed in MH_DYLIB files
  10744. - lt_prog_compiler_pic_F77='-fno-common'
  10745. - ;;
  10746. -
  10747. - interix[3-9]*)
  10748. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10749. - # Instead, we relocate shared libraries at runtime.
  10750. - ;;
  10751. -
  10752. - msdosdjgpp*)
  10753. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  10754. - # on systems that don't support them.
  10755. - lt_prog_compiler_can_build_shared_F77=no
  10756. - enable_shared=no
  10757. - ;;
  10758. -
  10759. - sysv4*MP*)
  10760. - if test -d /usr/nec; then
  10761. - lt_prog_compiler_pic_F77=-Kconform_pic
  10762. - fi
  10763. - ;;
  10764. -
  10765. - hpux*)
  10766. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10767. - # not for PA HP-UX.
  10768. - case $host_cpu in
  10769. - hppa*64*|ia64*)
  10770. - # +Z the default
  10771. - ;;
  10772. - *)
  10773. - lt_prog_compiler_pic_F77='-fPIC'
  10774. - ;;
  10775. - esac
  10776. - ;;
  10777. -
  10778. - *)
  10779. - lt_prog_compiler_pic_F77='-fPIC'
  10780. - ;;
  10781. - esac
  10782. - else
  10783. - # PORTME Check for flag to pass linker flags through the system compiler.
  10784. - case $host_os in
  10785. - aix*)
  10786. - lt_prog_compiler_wl_F77='-Wl,'
  10787. - if test "$host_cpu" = ia64; then
  10788. - # AIX 5 now supports IA64 processor
  10789. - lt_prog_compiler_static_F77='-Bstatic'
  10790. - else
  10791. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  10792. - fi
  10793. - ;;
  10794. - darwin*)
  10795. - # PIC is the default on this platform
  10796. - # Common symbols not allowed in MH_DYLIB files
  10797. - case $cc_basename in
  10798. - xlc*)
  10799. - lt_prog_compiler_pic_F77='-qnocommon'
  10800. - lt_prog_compiler_wl_F77='-Wl,'
  10801. - ;;
  10802. - esac
  10803. - ;;
  10804. -
  10805. - mingw* | cygwin* | pw32* | os2*)
  10806. - # This hack is so that the source file can tell whether it is being
  10807. - # built for inclusion in a dll (and should export symbols for example).
  10808. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  10809. - ;;
  10810. -
  10811. - hpux9* | hpux10* | hpux11*)
  10812. - lt_prog_compiler_wl_F77='-Wl,'
  10813. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10814. - # not for PA HP-UX.
  10815. - case $host_cpu in
  10816. - hppa*64*|ia64*)
  10817. - # +Z the default
  10818. - ;;
  10819. - *)
  10820. - lt_prog_compiler_pic_F77='+Z'
  10821. - ;;
  10822. - esac
  10823. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10824. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  10825. - ;;
  10826. -
  10827. - irix5* | irix6* | nonstopux*)
  10828. - lt_prog_compiler_wl_F77='-Wl,'
  10829. - # PIC (with -KPIC) is the default.
  10830. - lt_prog_compiler_static_F77='-non_shared'
  10831. - ;;
  10832. -
  10833. - newsos6)
  10834. - lt_prog_compiler_pic_F77='-KPIC'
  10835. - lt_prog_compiler_static_F77='-Bstatic'
  10836. - ;;
  10837. -
  10838. - linux* | k*bsd*-gnu)
  10839. - case $cc_basename in
  10840. - icc* | ecc*)
  10841. - lt_prog_compiler_wl_F77='-Wl,'
  10842. - lt_prog_compiler_pic_F77='-KPIC'
  10843. - lt_prog_compiler_static_F77='-static'
  10844. - ;;
  10845. - pgcc* | pgf77* | pgf90* | pgf95*)
  10846. - # Portland Group compilers (*not* the Pentium gcc compiler,
  10847. - # which looks to be a dead project)
  10848. - lt_prog_compiler_wl_F77='-Wl,'
  10849. - lt_prog_compiler_pic_F77='-fpic'
  10850. - lt_prog_compiler_static_F77='-Bstatic'
  10851. - ;;
  10852. - ccc*)
  10853. - lt_prog_compiler_wl_F77='-Wl,'
  10854. - # All Alpha code is PIC.
  10855. - lt_prog_compiler_static_F77='-non_shared'
  10856. - ;;
  10857. - *)
  10858. - case `$CC -V 2>&1 | sed 5q` in
  10859. - *Sun\ C*)
  10860. - # Sun C 5.9
  10861. - lt_prog_compiler_pic_F77='-KPIC'
  10862. - lt_prog_compiler_static_F77='-Bstatic'
  10863. - lt_prog_compiler_wl_F77='-Wl,'
  10864. - ;;
  10865. - *Sun\ F*)
  10866. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10867. - lt_prog_compiler_pic_F77='-KPIC'
  10868. - lt_prog_compiler_static_F77='-Bstatic'
  10869. - lt_prog_compiler_wl_F77=''
  10870. - ;;
  10871. - esac
  10872. - ;;
  10873. - esac
  10874. - ;;
  10875. -
  10876. - osf3* | osf4* | osf5*)
  10877. - lt_prog_compiler_wl_F77='-Wl,'
  10878. - # All OSF/1 code is PIC.
  10879. - lt_prog_compiler_static_F77='-non_shared'
  10880. - ;;
  10881. -
  10882. - rdos*)
  10883. - lt_prog_compiler_static_F77='-non_shared'
  10884. - ;;
  10885. -
  10886. - solaris*)
  10887. - lt_prog_compiler_pic_F77='-KPIC'
  10888. - lt_prog_compiler_static_F77='-Bstatic'
  10889. - case $cc_basename in
  10890. - f77* | f90* | f95*)
  10891. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  10892. - *)
  10893. - lt_prog_compiler_wl_F77='-Wl,';;
  10894. - esac
  10895. - ;;
  10896. -
  10897. - sunos4*)
  10898. - lt_prog_compiler_wl_F77='-Qoption ld '
  10899. - lt_prog_compiler_pic_F77='-PIC'
  10900. - lt_prog_compiler_static_F77='-Bstatic'
  10901. - ;;
  10902. -
  10903. - sysv4 | sysv4.2uw2* | sysv4.3*)
  10904. - lt_prog_compiler_wl_F77='-Wl,'
  10905. - lt_prog_compiler_pic_F77='-KPIC'
  10906. - lt_prog_compiler_static_F77='-Bstatic'
  10907. - ;;
  10908. -
  10909. - sysv4*MP*)
  10910. - if test -d /usr/nec ;then
  10911. - lt_prog_compiler_pic_F77='-Kconform_pic'
  10912. - lt_prog_compiler_static_F77='-Bstatic'
  10913. - fi
  10914. - ;;
  10915. -
  10916. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10917. - lt_prog_compiler_wl_F77='-Wl,'
  10918. - lt_prog_compiler_pic_F77='-KPIC'
  10919. - lt_prog_compiler_static_F77='-Bstatic'
  10920. - ;;
  10921. -
  10922. - unicos*)
  10923. - lt_prog_compiler_wl_F77='-Wl,'
  10924. - lt_prog_compiler_can_build_shared_F77=no
  10925. - ;;
  10926. -
  10927. - uts4*)
  10928. - lt_prog_compiler_pic_F77='-pic'
  10929. - lt_prog_compiler_static_F77='-Bstatic'
  10930. - ;;
  10931. -
  10932. - *)
  10933. - lt_prog_compiler_can_build_shared_F77=no
  10934. - ;;
  10935. - esac
  10936. - fi
  10937. -
  10938. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  10939. -$as_echo "$lt_prog_compiler_pic_F77" >&6; }
  10940. -
  10941. -#
  10942. -# Check to make sure the PIC flag actually works.
  10943. -#
  10944. -if test -n "$lt_prog_compiler_pic_F77"; then
  10945. -
  10946. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  10947. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
  10948. -if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  10949. - $as_echo_n "(cached) " >&6
  10950. -else
  10951. - lt_cv_prog_compiler_pic_works_F77=no
  10952. - ac_outfile=conftest.$ac_objext
  10953. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10954. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  10955. - # Insert the option either (1) after the last *FLAGS variable, or
  10956. - # (2) before a word containing "conftest.", or (3) at the end.
  10957. - # Note that $ac_compile itself does not contain backslashes and begins
  10958. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  10959. - # The option is referenced via a variable to avoid confusing sed.
  10960. - lt_compile=`echo "$ac_compile" | $SED \
  10961. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10962. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10963. - -e 's:$: $lt_compiler_flag:'`
  10964. - (eval echo "\"\$as_me:15606: $lt_compile\"" >&5)
  10965. - (eval "$lt_compile" 2>conftest.err)
  10966. - ac_status=$?
  10967. - cat conftest.err >&5
  10968. - echo "$as_me:15610: \$? = $ac_status" >&5
  10969. - if (exit $ac_status) && test -s "$ac_outfile"; then
  10970. - # The compiler can only warn and ignore the option if not recognized
  10971. - # So say no if there are warnings other than the usual output.
  10972. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10973. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10974. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10975. - lt_cv_prog_compiler_pic_works_F77=yes
  10976. - fi
  10977. - fi
  10978. - $rm conftest*
  10979. -
  10980. -fi
  10981. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  10982. -$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
  10983. -
  10984. -if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  10985. - case $lt_prog_compiler_pic_F77 in
  10986. - "" | " "*) ;;
  10987. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  10988. - esac
  10989. -else
  10990. - lt_prog_compiler_pic_F77=
  10991. - lt_prog_compiler_can_build_shared_F77=no
  10992. -fi
  10993. -
  10994. -fi
  10995. -case $host_os in
  10996. - # For platforms which do not support PIC, -DPIC is meaningless:
  10997. - *djgpp*)
  10998. - lt_prog_compiler_pic_F77=
  10999. - ;;
  11000. - *)
  11001. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  11002. - ;;
  11003. -esac
  11004. -
  11005. -#
  11006. -# Check to make sure the static flag actually works.
  11007. -#
  11008. -wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  11009. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11010. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11011. -if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  11012. - $as_echo_n "(cached) " >&6
  11013. -else
  11014. - lt_cv_prog_compiler_static_works_F77=no
  11015. - save_LDFLAGS="$LDFLAGS"
  11016. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11017. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11018. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11019. - # The linker can only warn and ignore the option if not recognized
  11020. - # So say no if there are warnings
  11021. - if test -s conftest.err; then
  11022. - # Append any errors to the config.log.
  11023. - cat conftest.err 1>&5
  11024. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11025. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11026. - if diff conftest.exp conftest.er2 >/dev/null; then
  11027. - lt_cv_prog_compiler_static_works_F77=yes
  11028. - fi
  11029. - else
  11030. - lt_cv_prog_compiler_static_works_F77=yes
  11031. - fi
  11032. - fi
  11033. - $rm -r conftest*
  11034. - LDFLAGS="$save_LDFLAGS"
  11035. -
  11036. -fi
  11037. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  11038. -$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
  11039. -
  11040. -if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  11041. - :
  11042. -else
  11043. - lt_prog_compiler_static_F77=
  11044. -fi
  11045. -
  11046. -
  11047. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11048. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11049. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  11050. - $as_echo_n "(cached) " >&6
  11051. -else
  11052. - lt_cv_prog_compiler_c_o_F77=no
  11053. - $rm -r conftest 2>/dev/null
  11054. - mkdir conftest
  11055. - cd conftest
  11056. - mkdir out
  11057. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11058. -
  11059. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  11060. - # Insert the option either (1) after the last *FLAGS variable, or
  11061. - # (2) before a word containing "conftest.", or (3) at the end.
  11062. - # Note that $ac_compile itself does not contain backslashes and begins
  11063. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  11064. - lt_compile=`echo "$ac_compile" | $SED \
  11065. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11066. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11067. - -e 's:$: $lt_compiler_flag:'`
  11068. - (eval echo "\"\$as_me:15710: $lt_compile\"" >&5)
  11069. - (eval "$lt_compile" 2>out/conftest.err)
  11070. - ac_status=$?
  11071. - cat out/conftest.err >&5
  11072. - echo "$as_me:15714: \$? = $ac_status" >&5
  11073. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11074. - then
  11075. - # The compiler can only warn and ignore the option if not recognized
  11076. - # So say no if there are warnings
  11077. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11078. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11079. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11080. - lt_cv_prog_compiler_c_o_F77=yes
  11081. - fi
  11082. - fi
  11083. - chmod u+w . 2>&5
  11084. - $rm conftest*
  11085. - # SGI C++ compiler will create directory out/ii_files/ for
  11086. - # template instantiation
  11087. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11088. - $rm out/* && rmdir out
  11089. - cd ..
  11090. - rmdir conftest
  11091. - $rm conftest*
  11092. -
  11093. -fi
  11094. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  11095. -$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
  11096. -
  11097. -
  11098. -hard_links="nottested"
  11099. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  11100. - # do not overwrite the value of need_locks provided by the user
  11101. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11102. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  11103. - hard_links=yes
  11104. - $rm conftest*
  11105. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11106. - touch conftest.a
  11107. - ln conftest.a conftest.b 2>&5 || hard_links=no
  11108. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11109. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  11110. -$as_echo "$hard_links" >&6; }
  11111. - if test "$hard_links" = no; then
  11112. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11113. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11114. - need_locks=warn
  11115. - fi
  11116. -else
  11117. - need_locks=no
  11118. -fi
  11119. -
  11120. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11121. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11122. -
  11123. - runpath_var=
  11124. - allow_undefined_flag_F77=
  11125. - enable_shared_with_static_runtimes_F77=no
  11126. - archive_cmds_F77=
  11127. - archive_expsym_cmds_F77=
  11128. - old_archive_From_new_cmds_F77=
  11129. - old_archive_from_expsyms_cmds_F77=
  11130. - export_dynamic_flag_spec_F77=
  11131. - whole_archive_flag_spec_F77=
  11132. - thread_safe_flag_spec_F77=
  11133. - hardcode_libdir_flag_spec_F77=
  11134. - hardcode_libdir_flag_spec_ld_F77=
  11135. - hardcode_libdir_separator_F77=
  11136. - hardcode_direct_F77=no
  11137. - hardcode_minus_L_F77=no
  11138. - hardcode_shlibpath_var_F77=unsupported
  11139. - link_all_deplibs_F77=unknown
  11140. - hardcode_automatic_F77=no
  11141. - module_cmds_F77=
  11142. - module_expsym_cmds_F77=
  11143. - always_export_symbols_F77=no
  11144. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11145. - # include_expsyms should be a list of space-separated symbols to be *always*
  11146. - # included in the symbol list
  11147. - include_expsyms_F77=
  11148. - # exclude_expsyms can be an extended regexp of symbols to exclude
  11149. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11150. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11151. - # as well as any symbol that contains `d'.
  11152. - exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11153. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11154. - # platforms (ab)use it in PIC code, but their linkers get confused if
  11155. - # the symbol is explicitly referenced. Since portable code cannot
  11156. - # rely on this symbol name, it's probably fine to never include it in
  11157. - # preloaded symbol tables.
  11158. - # Exclude shared library initialization/finalization symbols.
  11159. - extract_expsyms_cmds=
  11160. - # Just being paranoid about ensuring that cc_basename is set.
  11161. - for cc_temp in $compiler""; do
  11162. - case $cc_temp in
  11163. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11164. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11165. - \-*) ;;
  11166. - *) break;;
  11167. - esac
  11168. -done
  11169. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11170. -
  11171. - case $host_os in
  11172. - cygwin* | mingw* | pw32*)
  11173. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11174. - # When not using gcc, we currently assume that we are using
  11175. - # Microsoft Visual C++.
  11176. - if test "$GCC" != yes; then
  11177. - with_gnu_ld=no
  11178. - fi
  11179. - ;;
  11180. - interix*)
  11181. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  11182. - with_gnu_ld=yes
  11183. - ;;
  11184. - openbsd*)
  11185. - with_gnu_ld=no
  11186. - ;;
  11187. - esac
  11188. -
  11189. - ld_shlibs_F77=yes
  11190. - if test "$with_gnu_ld" = yes; then
  11191. - # If archive_cmds runs LD, not CC, wlarc should be empty
  11192. - wlarc='${wl}'
  11193. -
  11194. - # Set some defaults for GNU ld with shared library support. These
  11195. - # are reset later if shared libraries are not supported. Putting them
  11196. - # here allows them to be overridden if necessary.
  11197. - runpath_var=LD_RUN_PATH
  11198. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  11199. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  11200. - # ancient GNU ld didn't support --whole-archive et. al.
  11201. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11202. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11203. - else
  11204. - whole_archive_flag_spec_F77=
  11205. - fi
  11206. - supports_anon_versioning=no
  11207. - case `$LD -v 2>/dev/null` in
  11208. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11209. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11210. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11211. - *\ 2.11.*) ;; # other 2.11 versions
  11212. - *) supports_anon_versioning=yes ;;
  11213. - esac
  11214. -
  11215. - # See if GNU ld supports shared libraries.
  11216. - case $host_os in
  11217. - aix[3-9]*)
  11218. - # On AIX/PPC, the GNU linker is very broken
  11219. - if test "$host_cpu" != ia64; then
  11220. - ld_shlibs_F77=no
  11221. - cat <<EOF 1>&2
  11222. -
  11223. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11224. -*** to be unable to reliably create shared libraries on AIX.
  11225. -*** Therefore, libtool is disabling shared libraries support. If you
  11226. -*** really care for shared libraries, you may want to modify your PATH
  11227. -*** so that a non-GNU linker is found, and then restart.
  11228. -
  11229. -EOF
  11230. - fi
  11231. - ;;
  11232. -
  11233. - amigaos*)
  11234. - archive_cmds_F77='$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)'
  11235. - hardcode_libdir_flag_spec_F77='-L$libdir'
  11236. - hardcode_minus_L_F77=yes
  11237. -
  11238. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11239. - # that the semantics of dynamic libraries on AmigaOS, at least up
  11240. - # to version 4, is to share data among multiple programs linked
  11241. - # with the same dynamic library. Since this doesn't match the
  11242. - # behavior of shared libraries on other platforms, we can't use
  11243. - # them.
  11244. - ld_shlibs_F77=no
  11245. - ;;
  11246. -
  11247. - beos*)
  11248. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11249. - allow_undefined_flag_F77=unsupported
  11250. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11251. - # support --undefined. This deserves some investigation. FIXME
  11252. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11253. - else
  11254. - ld_shlibs_F77=no
  11255. - fi
  11256. - ;;
  11257. -
  11258. - cygwin* | mingw* | pw32*)
  11259. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  11260. - # as there is no search path for DLLs.
  11261. - hardcode_libdir_flag_spec_F77='-L$libdir'
  11262. - allow_undefined_flag_F77=unsupported
  11263. - always_export_symbols_F77=no
  11264. - enable_shared_with_static_runtimes_F77=yes
  11265. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11266. -
  11267. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11268. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11269. - # If the export-symbols file already is a .def file (1st line
  11270. - # is EXPORTS), use it as is; otherwise, prepend...
  11271. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11272. - cp $export_symbols $output_objdir/$soname.def;
  11273. - else
  11274. - echo EXPORTS > $output_objdir/$soname.def;
  11275. - cat $export_symbols >> $output_objdir/$soname.def;
  11276. - fi~
  11277. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11278. - else
  11279. - ld_shlibs_F77=no
  11280. - fi
  11281. - ;;
  11282. -
  11283. - interix[3-9]*)
  11284. - hardcode_direct_F77=no
  11285. - hardcode_shlibpath_var_F77=no
  11286. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  11287. - export_dynamic_flag_spec_F77='${wl}-E'
  11288. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11289. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  11290. - # default) and relocated if they conflict, which is a slow very memory
  11291. - # consuming and fragmenting process. To avoid this, we pick a random,
  11292. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11293. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11294. - archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11295. - archive_expsym_cmds_F77='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'
  11296. - ;;
  11297. -
  11298. - gnu* | linux* | k*bsd*-gnu)
  11299. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11300. - tmp_addflag=
  11301. - case $cc_basename,$host_cpu in
  11302. - pgcc*) # Portland Group C compiler
  11303. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  11304. - tmp_addflag=' $pic_flag'
  11305. - ;;
  11306. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  11307. - whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  11308. - tmp_addflag=' $pic_flag -Mnomain' ;;
  11309. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11310. - tmp_addflag=' -i_dynamic' ;;
  11311. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11312. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  11313. - ifc* | ifort*) # Intel Fortran compiler
  11314. - tmp_addflag=' -nofor_main' ;;
  11315. - esac
  11316. - case `$CC -V 2>&1 | sed 5q` in
  11317. - *Sun\ C*) # Sun C 5.9
  11318. - whole_archive_flag_spec_F77='${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'
  11319. - tmp_sharedflag='-G' ;;
  11320. - *Sun\ F*) # Sun Fortran 8.3
  11321. - tmp_sharedflag='-G' ;;
  11322. - *)
  11323. - tmp_sharedflag='-shared' ;;
  11324. - esac
  11325. - archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11326. -
  11327. - if test $supports_anon_versioning = yes; then
  11328. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  11329. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11330. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  11331. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11332. - fi
  11333. - else
  11334. - ld_shlibs_F77=no
  11335. - fi
  11336. - ;;
  11337. -
  11338. - netbsd*)
  11339. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11340. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11341. - wlarc=
  11342. - else
  11343. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11344. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11345. - fi
  11346. - ;;
  11347. -
  11348. - solaris*)
  11349. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11350. - ld_shlibs_F77=no
  11351. - cat <<EOF 1>&2
  11352. -
  11353. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11354. -*** create shared libraries on Solaris systems. Therefore, libtool
  11355. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11356. -*** binutils to release 2.9.1 or newer. Another option is to modify
  11357. -*** your PATH or compiler configuration so that the native linker is
  11358. -*** used, and then restart.
  11359. -
  11360. -EOF
  11361. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11362. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11363. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11364. - else
  11365. - ld_shlibs_F77=no
  11366. - fi
  11367. - ;;
  11368. -
  11369. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11370. - case `$LD -v 2>&1` in
  11371. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11372. - ld_shlibs_F77=no
  11373. - cat <<_LT_EOF 1>&2
  11374. -
  11375. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11376. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  11377. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11378. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11379. -*** your PATH or compiler configuration so that the native linker is
  11380. -*** used, and then restart.
  11381. -
  11382. -_LT_EOF
  11383. - ;;
  11384. - *)
  11385. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11386. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  11387. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  11388. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  11389. - else
  11390. - ld_shlibs_F77=no
  11391. - fi
  11392. - ;;
  11393. - esac
  11394. - ;;
  11395. -
  11396. - sunos4*)
  11397. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11398. - wlarc=
  11399. - hardcode_direct_F77=yes
  11400. - hardcode_shlibpath_var_F77=no
  11401. - ;;
  11402. -
  11403. - *)
  11404. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11405. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11406. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11407. - else
  11408. - ld_shlibs_F77=no
  11409. - fi
  11410. - ;;
  11411. - esac
  11412. -
  11413. - if test "$ld_shlibs_F77" = no; then
  11414. - runpath_var=
  11415. - hardcode_libdir_flag_spec_F77=
  11416. - export_dynamic_flag_spec_F77=
  11417. - whole_archive_flag_spec_F77=
  11418. - fi
  11419. - else
  11420. - # PORTME fill in a description of your system's linker (not GNU ld)
  11421. - case $host_os in
  11422. - aix3*)
  11423. - allow_undefined_flag_F77=unsupported
  11424. - always_export_symbols_F77=yes
  11425. - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  11426. - # Note: this linker hardcodes the directories in LIBPATH if there
  11427. - # are no directories specified by -L.
  11428. - hardcode_minus_L_F77=yes
  11429. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11430. - # Neither direct hardcoding nor static linking is supported with a
  11431. - # broken collect2.
  11432. - hardcode_direct_F77=unsupported
  11433. - fi
  11434. - ;;
  11435. -
  11436. - aix[4-9]*)
  11437. - if test "$host_cpu" = ia64; then
  11438. - # On IA64, the linker does run time linking by default, so we don't
  11439. - # have to do anything special.
  11440. - aix_use_runtimelinking=no
  11441. - exp_sym_flag='-Bexport'
  11442. - no_entry_flag=""
  11443. - else
  11444. - # If we're using GNU nm, then we don't want the "-C" option.
  11445. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11446. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11447. - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11448. - else
  11449. - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11450. - fi
  11451. - aix_use_runtimelinking=no
  11452. -
  11453. - # Test if we are trying to use run time linking or normal
  11454. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11455. - # need to do runtime linking.
  11456. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11457. - for ld_flag in $LDFLAGS; do
  11458. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11459. - aix_use_runtimelinking=yes
  11460. - break
  11461. - fi
  11462. - done
  11463. - ;;
  11464. - esac
  11465. -
  11466. - exp_sym_flag='-bexport'
  11467. - no_entry_flag='-bnoentry'
  11468. - fi
  11469. -
  11470. - # When large executables or shared objects are built, AIX ld can
  11471. - # have problems creating the table of contents. If linking a library
  11472. - # or program results in "error TOC overflow" add -mminimal-toc to
  11473. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11474. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11475. -
  11476. - archive_cmds_F77=''
  11477. - hardcode_direct_F77=yes
  11478. - hardcode_libdir_separator_F77=':'
  11479. - link_all_deplibs_F77=yes
  11480. -
  11481. - if test "$GCC" = yes; then
  11482. - case $host_os in aix4.[012]|aix4.[012].*)
  11483. - # We only want to do this on AIX 4.2 and lower, the check
  11484. - # below for broken collect2 doesn't work under 4.3+
  11485. - collect2name=`${CC} -print-prog-name=collect2`
  11486. - if test -f "$collect2name" && \
  11487. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  11488. - then
  11489. - # We have reworked collect2
  11490. - :
  11491. - else
  11492. - # We have old collect2
  11493. - hardcode_direct_F77=unsupported
  11494. - # It fails to find uninstalled libraries when the uninstalled
  11495. - # path is not listed in the libpath. Setting hardcode_minus_L
  11496. - # to unsupported forces relinking
  11497. - hardcode_minus_L_F77=yes
  11498. - hardcode_libdir_flag_spec_F77='-L$libdir'
  11499. - hardcode_libdir_separator_F77=
  11500. - fi
  11501. - ;;
  11502. - esac
  11503. - shared_flag='-shared'
  11504. - if test "$aix_use_runtimelinking" = yes; then
  11505. - shared_flag="$shared_flag "'${wl}-G'
  11506. - fi
  11507. - else
  11508. - # not using gcc
  11509. - if test "$host_cpu" = ia64; then
  11510. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11511. - # chokes on -Wl,-G. The following line is correct:
  11512. - shared_flag='-G'
  11513. - else
  11514. - if test "$aix_use_runtimelinking" = yes; then
  11515. - shared_flag='${wl}-G'
  11516. - else
  11517. - shared_flag='${wl}-bM:SRE'
  11518. - fi
  11519. - fi
  11520. - fi
  11521. -
  11522. - # It seems that -bexpall does not export symbols beginning with
  11523. - # underscore (_), so it is better to generate a list of symbols to export.
  11524. - always_export_symbols_F77=yes
  11525. - if test "$aix_use_runtimelinking" = yes; then
  11526. - # Warning - without using the other runtime loading flags (-brtl),
  11527. - # -berok will link without error, but may produce a broken library.
  11528. - allow_undefined_flag_F77='-berok'
  11529. - # Determine the default libpath from the value encoded in an empty executable.
  11530. - cat >conftest.$ac_ext <<_ACEOF
  11531. - program main
  11532. -
  11533. - end
  11534. -_ACEOF
  11535. -rm -f conftest.$ac_objext conftest$ac_exeext
  11536. -if { (ac_try="$ac_link"
  11537. -case "(($ac_try" in
  11538. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11539. - *) ac_try_echo=$ac_try;;
  11540. -esac
  11541. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11542. -$as_echo "$ac_try_echo") >&5
  11543. - (eval "$ac_link") 2>conftest.er1
  11544. - ac_status=$?
  11545. - grep -v '^ *+' conftest.er1 >conftest.err
  11546. - rm -f conftest.er1
  11547. - cat conftest.err >&5
  11548. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11549. - (exit $ac_status); } && {
  11550. - test -z "$ac_f77_werror_flag" ||
  11551. - test ! -s conftest.err
  11552. - } && test -s conftest$ac_exeext && {
  11553. - test "$cross_compiling" = yes ||
  11554. - $as_test_x conftest$ac_exeext
  11555. - }; then
  11556. -
  11557. -lt_aix_libpath_sed='
  11558. - /Import File Strings/,/^$/ {
  11559. - /^0/ {
  11560. - s/^0 *\(.*\)$/\1/
  11561. - p
  11562. - }
  11563. - }'
  11564. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11565. -# Check for a 64-bit object if we didn't find anything.
  11566. -if test -z "$aix_libpath"; then
  11567. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11568. -fi
  11569. -else
  11570. - $as_echo "$as_me: failed program was:" >&5
  11571. -sed 's/^/| /' conftest.$ac_ext >&5
  11572. -
  11573. -
  11574. -fi
  11575. -
  11576. -rm -rf conftest.dSYM
  11577. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11578. - conftest$ac_exeext conftest.$ac_ext
  11579. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11580. -
  11581. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  11582. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11583. - else
  11584. - if test "$host_cpu" = ia64; then
  11585. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  11586. - allow_undefined_flag_F77="-z nodefs"
  11587. - archive_expsym_cmds_F77="\$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"
  11588. - else
  11589. - # Determine the default libpath from the value encoded in an empty executable.
  11590. - cat >conftest.$ac_ext <<_ACEOF
  11591. - program main
  11592. -
  11593. - end
  11594. -_ACEOF
  11595. -rm -f conftest.$ac_objext conftest$ac_exeext
  11596. -if { (ac_try="$ac_link"
  11597. -case "(($ac_try" in
  11598. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11599. - *) ac_try_echo=$ac_try;;
  11600. -esac
  11601. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11602. -$as_echo "$ac_try_echo") >&5
  11603. - (eval "$ac_link") 2>conftest.er1
  11604. - ac_status=$?
  11605. - grep -v '^ *+' conftest.er1 >conftest.err
  11606. - rm -f conftest.er1
  11607. - cat conftest.err >&5
  11608. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11609. - (exit $ac_status); } && {
  11610. - test -z "$ac_f77_werror_flag" ||
  11611. - test ! -s conftest.err
  11612. - } && test -s conftest$ac_exeext && {
  11613. - test "$cross_compiling" = yes ||
  11614. - $as_test_x conftest$ac_exeext
  11615. - }; then
  11616. -
  11617. -lt_aix_libpath_sed='
  11618. - /Import File Strings/,/^$/ {
  11619. - /^0/ {
  11620. - s/^0 *\(.*\)$/\1/
  11621. - p
  11622. - }
  11623. - }'
  11624. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11625. -# Check for a 64-bit object if we didn't find anything.
  11626. -if test -z "$aix_libpath"; then
  11627. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11628. -fi
  11629. -else
  11630. - $as_echo "$as_me: failed program was:" >&5
  11631. -sed 's/^/| /' conftest.$ac_ext >&5
  11632. -
  11633. -
  11634. -fi
  11635. -
  11636. -rm -rf conftest.dSYM
  11637. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11638. - conftest$ac_exeext conftest.$ac_ext
  11639. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11640. -
  11641. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  11642. - # Warning - without using the other run time loading flags,
  11643. - # -berok will link without error, but may produce a broken library.
  11644. - no_undefined_flag_F77=' ${wl}-bernotok'
  11645. - allow_undefined_flag_F77=' ${wl}-berok'
  11646. - # Exported symbols can be pulled into shared objects from archives
  11647. - whole_archive_flag_spec_F77='$convenience'
  11648. - archive_cmds_need_lc_F77=yes
  11649. - # This is similar to how AIX traditionally builds its shared libraries.
  11650. - archive_expsym_cmds_F77="\$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'
  11651. - fi
  11652. - fi
  11653. - ;;
  11654. -
  11655. - amigaos*)
  11656. - archive_cmds_F77='$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)'
  11657. - hardcode_libdir_flag_spec_F77='-L$libdir'
  11658. - hardcode_minus_L_F77=yes
  11659. - # see comment about different semantics on the GNU ld section
  11660. - ld_shlibs_F77=no
  11661. - ;;
  11662. -
  11663. - bsdi[45]*)
  11664. - export_dynamic_flag_spec_F77=-rdynamic
  11665. - ;;
  11666. -
  11667. - cygwin* | mingw* | pw32*)
  11668. - # When not using gcc, we currently assume that we are using
  11669. - # Microsoft Visual C++.
  11670. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  11671. - # no search path for DLLs.
  11672. - hardcode_libdir_flag_spec_F77=' '
  11673. - allow_undefined_flag_F77=unsupported
  11674. - # Tell ltmain to make .lib files, not .a files.
  11675. - libext=lib
  11676. - # Tell ltmain to make .dll files, not .so files.
  11677. - shrext_cmds=".dll"
  11678. - # FIXME: Setting linknames here is a bad hack.
  11679. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  11680. - # The linker will automatically build a .lib file if we build a DLL.
  11681. - old_archive_From_new_cmds_F77='true'
  11682. - # FIXME: Should let the user specify the lib program.
  11683. - old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11684. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  11685. - enable_shared_with_static_runtimes_F77=yes
  11686. - ;;
  11687. -
  11688. - darwin* | rhapsody*)
  11689. - case $host_os in
  11690. - rhapsody* | darwin1.[012])
  11691. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  11692. - ;;
  11693. - *) # Darwin 1.3 on
  11694. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  11695. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11696. - else
  11697. - case ${MACOSX_DEPLOYMENT_TARGET} in
  11698. - 10.[012])
  11699. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11700. - ;;
  11701. - 10.*)
  11702. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  11703. - ;;
  11704. - esac
  11705. - fi
  11706. - ;;
  11707. - esac
  11708. - archive_cmds_need_lc_F77=no
  11709. - hardcode_direct_F77=no
  11710. - hardcode_automatic_F77=yes
  11711. - hardcode_shlibpath_var_F77=unsupported
  11712. - whole_archive_flag_spec_F77=''
  11713. - link_all_deplibs_F77=yes
  11714. - if test "$GCC" = yes ; then
  11715. - output_verbose_link_cmd='echo'
  11716. - archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11717. - module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11718. - archive_expsym_cmds_F77="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}"
  11719. - module_expsym_cmds_F77="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}"
  11720. - else
  11721. - case $cc_basename in
  11722. - xlc*)
  11723. - output_verbose_link_cmd='echo'
  11724. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  11725. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11726. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11727. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11728. - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11729. - ;;
  11730. - *)
  11731. - ld_shlibs_F77=no
  11732. - ;;
  11733. - esac
  11734. - fi
  11735. - ;;
  11736. -
  11737. - dgux*)
  11738. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11739. - hardcode_libdir_flag_spec_F77='-L$libdir'
  11740. - hardcode_shlibpath_var_F77=no
  11741. - ;;
  11742. -
  11743. - freebsd1*)
  11744. - ld_shlibs_F77=no
  11745. - ;;
  11746. -
  11747. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11748. - # support. Future versions do this automatically, but an explicit c++rt0.o
  11749. - # does not break anything, and helps significantly (at the cost of a little
  11750. - # extra space).
  11751. - freebsd2.2*)
  11752. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11753. - hardcode_libdir_flag_spec_F77='-R$libdir'
  11754. - hardcode_direct_F77=yes
  11755. - hardcode_shlibpath_var_F77=no
  11756. - ;;
  11757. -
  11758. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11759. - freebsd2*)
  11760. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11761. - hardcode_direct_F77=yes
  11762. - hardcode_minus_L_F77=yes
  11763. - hardcode_shlibpath_var_F77=no
  11764. - ;;
  11765. -
  11766. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11767. - freebsd* | dragonfly*)
  11768. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  11769. - hardcode_libdir_flag_spec_F77='-R$libdir'
  11770. - hardcode_direct_F77=yes
  11771. - hardcode_shlibpath_var_F77=no
  11772. - ;;
  11773. -
  11774. - hpux9*)
  11775. - if test "$GCC" = yes; then
  11776. - archive_cmds_F77='$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'
  11777. - else
  11778. - archive_cmds_F77='$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'
  11779. - fi
  11780. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  11781. - hardcode_libdir_separator_F77=:
  11782. - hardcode_direct_F77=yes
  11783. -
  11784. - # hardcode_minus_L: Not really in the search PATH,
  11785. - # but as the default location of the library.
  11786. - hardcode_minus_L_F77=yes
  11787. - export_dynamic_flag_spec_F77='${wl}-E'
  11788. - ;;
  11789. -
  11790. - hpux10*)
  11791. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  11792. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11793. - else
  11794. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11795. - fi
  11796. - if test "$with_gnu_ld" = no; then
  11797. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  11798. - hardcode_libdir_separator_F77=:
  11799. -
  11800. - hardcode_direct_F77=yes
  11801. - export_dynamic_flag_spec_F77='${wl}-E'
  11802. -
  11803. - # hardcode_minus_L: Not really in the search PATH,
  11804. - # but as the default location of the library.
  11805. - hardcode_minus_L_F77=yes
  11806. - fi
  11807. - ;;
  11808. -
  11809. - hpux11*)
  11810. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  11811. - case $host_cpu in
  11812. - hppa*64*)
  11813. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11814. - ;;
  11815. - ia64*)
  11816. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11817. - ;;
  11818. - *)
  11819. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11820. - ;;
  11821. - esac
  11822. - else
  11823. - case $host_cpu in
  11824. - hppa*64*)
  11825. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11826. - ;;
  11827. - ia64*)
  11828. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11829. - ;;
  11830. - *)
  11831. - archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11832. - ;;
  11833. - esac
  11834. - fi
  11835. - if test "$with_gnu_ld" = no; then
  11836. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  11837. - hardcode_libdir_separator_F77=:
  11838. -
  11839. - case $host_cpu in
  11840. - hppa*64*|ia64*)
  11841. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  11842. - hardcode_direct_F77=no
  11843. - hardcode_shlibpath_var_F77=no
  11844. - ;;
  11845. - *)
  11846. - hardcode_direct_F77=yes
  11847. - export_dynamic_flag_spec_F77='${wl}-E'
  11848. -
  11849. - # hardcode_minus_L: Not really in the search PATH,
  11850. - # but as the default location of the library.
  11851. - hardcode_minus_L_F77=yes
  11852. - ;;
  11853. - esac
  11854. - fi
  11855. - ;;
  11856. -
  11857. - irix5* | irix6* | nonstopux*)
  11858. - if test "$GCC" = yes; then
  11859. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11860. - else
  11861. - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  11862. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  11863. - fi
  11864. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  11865. - hardcode_libdir_separator_F77=:
  11866. - link_all_deplibs_F77=yes
  11867. - ;;
  11868. -
  11869. - netbsd*)
  11870. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11871. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11872. - else
  11873. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11874. - fi
  11875. - hardcode_libdir_flag_spec_F77='-R$libdir'
  11876. - hardcode_direct_F77=yes
  11877. - hardcode_shlibpath_var_F77=no
  11878. - ;;
  11879. -
  11880. - newsos6)
  11881. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11882. - hardcode_direct_F77=yes
  11883. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  11884. - hardcode_libdir_separator_F77=:
  11885. - hardcode_shlibpath_var_F77=no
  11886. - ;;
  11887. -
  11888. - openbsd*)
  11889. - if test -f /usr/libexec/ld.so; then
  11890. - hardcode_direct_F77=yes
  11891. - hardcode_shlibpath_var_F77=no
  11892. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11893. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11894. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11895. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  11896. - export_dynamic_flag_spec_F77='${wl}-E'
  11897. - else
  11898. - case $host_os in
  11899. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  11900. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11901. - hardcode_libdir_flag_spec_F77='-R$libdir'
  11902. - ;;
  11903. - *)
  11904. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11905. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  11906. - ;;
  11907. - esac
  11908. - fi
  11909. - else
  11910. - ld_shlibs_F77=no
  11911. - fi
  11912. - ;;
  11913. -
  11914. - os2*)
  11915. - hardcode_libdir_flag_spec_F77='-L$libdir'
  11916. - hardcode_minus_L_F77=yes
  11917. - allow_undefined_flag_F77=unsupported
  11918. - archive_cmds_F77='$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'
  11919. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11920. - ;;
  11921. -
  11922. - osf3*)
  11923. - if test "$GCC" = yes; then
  11924. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  11925. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11926. - else
  11927. - allow_undefined_flag_F77=' -expect_unresolved \*'
  11928. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  11929. - fi
  11930. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  11931. - hardcode_libdir_separator_F77=:
  11932. - ;;
  11933. -
  11934. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  11935. - if test "$GCC" = yes; then
  11936. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  11937. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11938. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  11939. - else
  11940. - allow_undefined_flag_F77=' -expect_unresolved \*'
  11941. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  11942. - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  11943. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  11944. -
  11945. - # Both c and cxx compiler support -rpath directly
  11946. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  11947. - fi
  11948. - hardcode_libdir_separator_F77=:
  11949. - ;;
  11950. -
  11951. - solaris*)
  11952. - no_undefined_flag_F77=' -z text'
  11953. - if test "$GCC" = yes; then
  11954. - wlarc='${wl}'
  11955. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11956. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11957. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  11958. - else
  11959. - wlarc=''
  11960. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11961. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11962. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  11963. - fi
  11964. - hardcode_libdir_flag_spec_F77='-R$libdir'
  11965. - hardcode_shlibpath_var_F77=no
  11966. - case $host_os in
  11967. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  11968. - *)
  11969. - # The compiler driver will combine and reorder linker options,
  11970. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  11971. - # but is careful enough not to reorder.
  11972. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  11973. - if test "$GCC" = yes; then
  11974. - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11975. - else
  11976. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  11977. - fi
  11978. - ;;
  11979. - esac
  11980. - link_all_deplibs_F77=yes
  11981. - ;;
  11982. -
  11983. - sunos4*)
  11984. - if test "x$host_vendor" = xsequent; then
  11985. - # Use $CC to link under sequent, because it throws in some extra .o
  11986. - # files that make .init and .fini sections work.
  11987. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11988. - else
  11989. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11990. - fi
  11991. - hardcode_libdir_flag_spec_F77='-L$libdir'
  11992. - hardcode_direct_F77=yes
  11993. - hardcode_minus_L_F77=yes
  11994. - hardcode_shlibpath_var_F77=no
  11995. - ;;
  11996. -
  11997. - sysv4)
  11998. - case $host_vendor in
  11999. - sni)
  12000. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12001. - hardcode_direct_F77=yes # is this really true???
  12002. - ;;
  12003. - siemens)
  12004. - ## LD is ld it makes a PLAMLIB
  12005. - ## CC just makes a GrossModule.
  12006. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12007. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  12008. - hardcode_direct_F77=no
  12009. - ;;
  12010. - motorola)
  12011. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12012. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12013. - ;;
  12014. - esac
  12015. - runpath_var='LD_RUN_PATH'
  12016. - hardcode_shlibpath_var_F77=no
  12017. - ;;
  12018. -
  12019. - sysv4.3*)
  12020. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12021. - hardcode_shlibpath_var_F77=no
  12022. - export_dynamic_flag_spec_F77='-Bexport'
  12023. - ;;
  12024. -
  12025. - sysv4*MP*)
  12026. - if test -d /usr/nec; then
  12027. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12028. - hardcode_shlibpath_var_F77=no
  12029. - runpath_var=LD_RUN_PATH
  12030. - hardcode_runpath_var=yes
  12031. - ld_shlibs_F77=yes
  12032. - fi
  12033. - ;;
  12034. -
  12035. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12036. - no_undefined_flag_F77='${wl}-z,text'
  12037. - archive_cmds_need_lc_F77=no
  12038. - hardcode_shlibpath_var_F77=no
  12039. - runpath_var='LD_RUN_PATH'
  12040. -
  12041. - if test "$GCC" = yes; then
  12042. - archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12043. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12044. - else
  12045. - archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12046. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12047. - fi
  12048. - ;;
  12049. -
  12050. - sysv5* | sco3.2v5* | sco5v6*)
  12051. - # Note: We can NOT use -z defs as we might desire, because we do not
  12052. - # link with -lc, and that would cause any symbols used from libc to
  12053. - # always be unresolved, which means just about no library would
  12054. - # ever link correctly. If we're not using GNU ld we use -z text
  12055. - # though, which does catch some bad symbols but isn't as heavy-handed
  12056. - # as -z defs.
  12057. - no_undefined_flag_F77='${wl}-z,text'
  12058. - allow_undefined_flag_F77='${wl}-z,nodefs'
  12059. - archive_cmds_need_lc_F77=no
  12060. - hardcode_shlibpath_var_F77=no
  12061. - hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12062. - hardcode_libdir_separator_F77=':'
  12063. - link_all_deplibs_F77=yes
  12064. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  12065. - runpath_var='LD_RUN_PATH'
  12066. -
  12067. - if test "$GCC" = yes; then
  12068. - archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12069. - archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12070. - else
  12071. - archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12072. - archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12073. - fi
  12074. - ;;
  12075. -
  12076. - uts4*)
  12077. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12078. - hardcode_libdir_flag_spec_F77='-L$libdir'
  12079. - hardcode_shlibpath_var_F77=no
  12080. - ;;
  12081. -
  12082. - *)
  12083. - ld_shlibs_F77=no
  12084. - ;;
  12085. - esac
  12086. - fi
  12087. -
  12088. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  12089. -$as_echo "$ld_shlibs_F77" >&6; }
  12090. -test "$ld_shlibs_F77" = no && can_build_shared=no
  12091. -
  12092. -#
  12093. -# Do we need to explicitly link libc?
  12094. -#
  12095. -case "x$archive_cmds_need_lc_F77" in
  12096. -x|xyes)
  12097. - # Assume -lc should be added
  12098. - archive_cmds_need_lc_F77=yes
  12099. -
  12100. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  12101. - case $archive_cmds_F77 in
  12102. - *'~'*)
  12103. - # FIXME: we may have to deal with multi-command sequences.
  12104. - ;;
  12105. - '$CC '*)
  12106. - # Test whether the compiler implicitly links with -lc since on some
  12107. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12108. - # to ld, don't add -lc before -lgcc.
  12109. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12110. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12111. - $rm conftest*
  12112. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12113. -
  12114. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12115. - (eval $ac_compile) 2>&5
  12116. - ac_status=$?
  12117. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12118. - (exit $ac_status); } 2>conftest.err; then
  12119. - soname=conftest
  12120. - lib=conftest
  12121. - libobjs=conftest.$ac_objext
  12122. - deplibs=
  12123. - wl=$lt_prog_compiler_wl_F77
  12124. - pic_flag=$lt_prog_compiler_pic_F77
  12125. - compiler_flags=-v
  12126. - linker_flags=-v
  12127. - verstring=
  12128. - output_objdir=.
  12129. - libname=conftest
  12130. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  12131. - allow_undefined_flag_F77=
  12132. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12133. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12134. - ac_status=$?
  12135. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12136. - (exit $ac_status); }
  12137. - then
  12138. - archive_cmds_need_lc_F77=no
  12139. - else
  12140. - archive_cmds_need_lc_F77=yes
  12141. - fi
  12142. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  12143. - else
  12144. - cat conftest.err 1>&5
  12145. - fi
  12146. - $rm conftest*
  12147. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  12148. -$as_echo "$archive_cmds_need_lc_F77" >&6; }
  12149. - ;;
  12150. - esac
  12151. - fi
  12152. - ;;
  12153. -esac
  12154. -
  12155. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12156. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  12157. -library_names_spec=
  12158. -libname_spec='lib$name'
  12159. -soname_spec=
  12160. -shrext_cmds=".so"
  12161. -postinstall_cmds=
  12162. -postuninstall_cmds=
  12163. -finish_cmds=
  12164. -finish_eval=
  12165. -shlibpath_var=
  12166. -shlibpath_overrides_runpath=unknown
  12167. -version_type=none
  12168. -dynamic_linker="$host_os ld.so"
  12169. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12170. -
  12171. -need_lib_prefix=unknown
  12172. -hardcode_into_libs=no
  12173. -
  12174. -# when you set need_version to no, make sure it does not cause -set_version
  12175. -# flags to be left without arguments
  12176. -need_version=unknown
  12177. -
  12178. -case $host_os in
  12179. -aix3*)
  12180. - version_type=linux
  12181. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12182. - shlibpath_var=LIBPATH
  12183. -
  12184. - # AIX 3 has no versioning support, so we append a major version to the name.
  12185. - soname_spec='${libname}${release}${shared_ext}$major'
  12186. - ;;
  12187. -
  12188. -aix[4-9]*)
  12189. - version_type=linux
  12190. - need_lib_prefix=no
  12191. - need_version=no
  12192. - hardcode_into_libs=yes
  12193. - if test "$host_cpu" = ia64; then
  12194. - # AIX 5 supports IA64
  12195. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12196. - shlibpath_var=LD_LIBRARY_PATH
  12197. - else
  12198. - # With GCC up to 2.95.x, collect2 would create an import file
  12199. - # for dependence libraries. The import file would start with
  12200. - # the line `#! .'. This would cause the generated library to
  12201. - # depend on `.', always an invalid library. This was fixed in
  12202. - # development snapshots of GCC prior to 3.0.
  12203. - case $host_os in
  12204. - aix4 | aix4.[01] | aix4.[01].*)
  12205. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12206. - echo ' yes '
  12207. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12208. - :
  12209. - else
  12210. - can_build_shared=no
  12211. - fi
  12212. - ;;
  12213. - esac
  12214. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12215. - # soname into executable. Probably we can add versioning support to
  12216. - # collect2, so additional links can be useful in future.
  12217. - if test "$aix_use_runtimelinking" = yes; then
  12218. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12219. - # instead of lib<name>.a to let people know that these are not
  12220. - # typical AIX shared libraries.
  12221. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12222. - else
  12223. - # We preserve .a as extension for shared libraries through AIX4.2
  12224. - # and later when we are not doing run time linking.
  12225. - library_names_spec='${libname}${release}.a $libname.a'
  12226. - soname_spec='${libname}${release}${shared_ext}$major'
  12227. - fi
  12228. - shlibpath_var=LIBPATH
  12229. - fi
  12230. - ;;
  12231. -
  12232. -amigaos*)
  12233. - library_names_spec='$libname.ixlibrary $libname.a'
  12234. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12235. - 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'
  12236. - ;;
  12237. -
  12238. -beos*)
  12239. - library_names_spec='${libname}${shared_ext}'
  12240. - dynamic_linker="$host_os ld.so"
  12241. - shlibpath_var=LIBRARY_PATH
  12242. - ;;
  12243. -
  12244. -bsdi[45]*)
  12245. - version_type=linux
  12246. - need_version=no
  12247. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12248. - soname_spec='${libname}${release}${shared_ext}$major'
  12249. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12250. - shlibpath_var=LD_LIBRARY_PATH
  12251. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12252. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12253. - # the default ld.so.conf also contains /usr/contrib/lib and
  12254. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12255. - # libtool to hard-code these into programs
  12256. - ;;
  12257. -
  12258. -cygwin* | mingw* | pw32*)
  12259. - version_type=windows
  12260. - shrext_cmds=".dll"
  12261. - need_version=no
  12262. - need_lib_prefix=no
  12263. -
  12264. - case $GCC,$host_os in
  12265. - yes,cygwin* | yes,mingw* | yes,pw32*)
  12266. - library_names_spec='$libname.dll.a'
  12267. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12268. - postinstall_cmds='base_file=`basename \${file}`~
  12269. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12270. - dldir=$destdir/`dirname \$dlpath`~
  12271. - test -d \$dldir || mkdir -p \$dldir~
  12272. - $install_prog $dir/$dlname \$dldir/$dlname~
  12273. - chmod a+x \$dldir/$dlname'
  12274. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12275. - dlpath=$dir/\$dldll~
  12276. - $rm \$dlpath'
  12277. - shlibpath_overrides_runpath=yes
  12278. -
  12279. - case $host_os in
  12280. - cygwin*)
  12281. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12282. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12283. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12284. - ;;
  12285. - mingw*)
  12286. - # MinGW DLLs use traditional 'lib' prefix
  12287. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12288. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12289. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  12290. - # It is most probably a Windows format PATH printed by
  12291. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12292. - # path with ; separators, and with drive letters. We can handle the
  12293. - # drive letters (cygwin fileutils understands them), so leave them,
  12294. - # especially as we might pass files found there to a mingw objdump,
  12295. - # which wouldn't understand a cygwinified path. Ahh.
  12296. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12297. - else
  12298. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12299. - fi
  12300. - ;;
  12301. - pw32*)
  12302. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  12303. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12304. - ;;
  12305. - esac
  12306. - ;;
  12307. -
  12308. - *)
  12309. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12310. - ;;
  12311. - esac
  12312. - dynamic_linker='Win32 ld.exe'
  12313. - # FIXME: first we should search . and the directory the executable is in
  12314. - shlibpath_var=PATH
  12315. - ;;
  12316. -
  12317. -darwin* | rhapsody*)
  12318. - dynamic_linker="$host_os dyld"
  12319. - version_type=darwin
  12320. - need_lib_prefix=no
  12321. - need_version=no
  12322. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12323. - soname_spec='${libname}${release}${major}$shared_ext'
  12324. - shlibpath_overrides_runpath=yes
  12325. - shlibpath_var=DYLD_LIBRARY_PATH
  12326. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12327. -
  12328. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12329. - ;;
  12330. -
  12331. -dgux*)
  12332. - version_type=linux
  12333. - need_lib_prefix=no
  12334. - need_version=no
  12335. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12336. - soname_spec='${libname}${release}${shared_ext}$major'
  12337. - shlibpath_var=LD_LIBRARY_PATH
  12338. - ;;
  12339. -
  12340. -freebsd1*)
  12341. - dynamic_linker=no
  12342. - ;;
  12343. -
  12344. -freebsd* | dragonfly*)
  12345. - # DragonFly does not have aout. When/if they implement a new
  12346. - # versioning mechanism, adjust this.
  12347. - if test -x /usr/bin/objformat; then
  12348. - objformat=`/usr/bin/objformat`
  12349. - else
  12350. - case $host_os in
  12351. - freebsd[123]*) objformat=aout ;;
  12352. - *) objformat=elf ;;
  12353. - esac
  12354. - fi
  12355. - version_type=freebsd-$objformat
  12356. - case $version_type in
  12357. - freebsd-elf*)
  12358. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12359. - need_version=no
  12360. - need_lib_prefix=no
  12361. - ;;
  12362. - freebsd-*)
  12363. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12364. - need_version=yes
  12365. - ;;
  12366. - esac
  12367. - shlibpath_var=LD_LIBRARY_PATH
  12368. - case $host_os in
  12369. - freebsd2*)
  12370. - shlibpath_overrides_runpath=yes
  12371. - ;;
  12372. - freebsd3.[01]* | freebsdelf3.[01]*)
  12373. - shlibpath_overrides_runpath=yes
  12374. - hardcode_into_libs=yes
  12375. - ;;
  12376. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12377. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12378. - shlibpath_overrides_runpath=no
  12379. - hardcode_into_libs=yes
  12380. - ;;
  12381. - *) # from 4.6 on, and DragonFly
  12382. - shlibpath_overrides_runpath=yes
  12383. - hardcode_into_libs=yes
  12384. - ;;
  12385. - esac
  12386. - ;;
  12387. -
  12388. -gnu*)
  12389. - version_type=linux
  12390. - need_lib_prefix=no
  12391. - need_version=no
  12392. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12393. - soname_spec='${libname}${release}${shared_ext}$major'
  12394. - shlibpath_var=LD_LIBRARY_PATH
  12395. - hardcode_into_libs=yes
  12396. - ;;
  12397. -
  12398. -hpux9* | hpux10* | hpux11*)
  12399. - # Give a soname corresponding to the major version so that dld.sl refuses to
  12400. - # link against other versions.
  12401. - version_type=sunos
  12402. - need_lib_prefix=no
  12403. - need_version=no
  12404. - case $host_cpu in
  12405. - ia64*)
  12406. - shrext_cmds='.so'
  12407. - hardcode_into_libs=yes
  12408. - dynamic_linker="$host_os dld.so"
  12409. - shlibpath_var=LD_LIBRARY_PATH
  12410. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12411. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12412. - soname_spec='${libname}${release}${shared_ext}$major'
  12413. - if test "X$HPUX_IA64_MODE" = X32; then
  12414. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12415. - else
  12416. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12417. - fi
  12418. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12419. - ;;
  12420. - hppa*64*)
  12421. - shrext_cmds='.sl'
  12422. - hardcode_into_libs=yes
  12423. - dynamic_linker="$host_os dld.sl"
  12424. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12425. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12426. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12427. - soname_spec='${libname}${release}${shared_ext}$major'
  12428. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12429. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12430. - ;;
  12431. - *)
  12432. - shrext_cmds='.sl'
  12433. - dynamic_linker="$host_os dld.sl"
  12434. - shlibpath_var=SHLIB_PATH
  12435. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12436. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12437. - soname_spec='${libname}${release}${shared_ext}$major'
  12438. - ;;
  12439. - esac
  12440. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12441. - postinstall_cmds='chmod 555 $lib'
  12442. - ;;
  12443. -
  12444. -interix[3-9]*)
  12445. - version_type=linux
  12446. - need_lib_prefix=no
  12447. - need_version=no
  12448. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12449. - soname_spec='${libname}${release}${shared_ext}$major'
  12450. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12451. - shlibpath_var=LD_LIBRARY_PATH
  12452. - shlibpath_overrides_runpath=no
  12453. - hardcode_into_libs=yes
  12454. - ;;
  12455. -
  12456. -irix5* | irix6* | nonstopux*)
  12457. - case $host_os in
  12458. - nonstopux*) version_type=nonstopux ;;
  12459. - *)
  12460. - if test "$lt_cv_prog_gnu_ld" = yes; then
  12461. - version_type=linux
  12462. - else
  12463. - version_type=irix
  12464. - fi ;;
  12465. - esac
  12466. - need_lib_prefix=no
  12467. - need_version=no
  12468. - soname_spec='${libname}${release}${shared_ext}$major'
  12469. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12470. - case $host_os in
  12471. - irix5* | nonstopux*)
  12472. - libsuff= shlibsuff=
  12473. - ;;
  12474. - *)
  12475. - case $LD in # libtool.m4 will add one of these switches to LD
  12476. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12477. - libsuff= shlibsuff= libmagic=32-bit;;
  12478. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12479. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  12480. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12481. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12482. - *) libsuff= shlibsuff= libmagic=never-match;;
  12483. - esac
  12484. - ;;
  12485. - esac
  12486. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12487. - shlibpath_overrides_runpath=no
  12488. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12489. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12490. - hardcode_into_libs=yes
  12491. - ;;
  12492. -
  12493. -# No shared lib support for Linux oldld, aout, or coff.
  12494. -linux*oldld* | linux*aout* | linux*coff*)
  12495. - dynamic_linker=no
  12496. - ;;
  12497. -
  12498. -# This must be Linux ELF.
  12499. -linux* | k*bsd*-gnu)
  12500. - version_type=linux
  12501. - need_lib_prefix=no
  12502. - need_version=no
  12503. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12504. - soname_spec='${libname}${release}${shared_ext}$major'
  12505. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12506. - shlibpath_var=LD_LIBRARY_PATH
  12507. - shlibpath_overrides_runpath=no
  12508. - # This implies no fast_install, which is unacceptable.
  12509. - # Some rework will be needed to allow for fast_install
  12510. - # before this can be enabled.
  12511. - hardcode_into_libs=yes
  12512. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12513. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12514. -
  12515. - # Append ld.so.conf contents to the search path
  12516. - if test -f /etc/ld.so.conf; then
  12517. - 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' ' '`
  12518. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  12519. - fi
  12520. -
  12521. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  12522. - # powerpc, because MkLinux only supported shared libraries with the
  12523. - # GNU dynamic linker. Since this was broken with cross compilers,
  12524. - # most powerpc-linux boxes support dynamic linking these days and
  12525. - # people can always --disable-shared, the test was removed, and we
  12526. - # assume the GNU/Linux dynamic linker is in use.
  12527. - dynamic_linker='GNU/Linux ld.so'
  12528. - ;;
  12529. -
  12530. -netbsd*)
  12531. - version_type=sunos
  12532. - need_lib_prefix=no
  12533. - need_version=no
  12534. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12535. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12536. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12537. - dynamic_linker='NetBSD (a.out) ld.so'
  12538. - else
  12539. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12540. - soname_spec='${libname}${release}${shared_ext}$major'
  12541. - dynamic_linker='NetBSD ld.elf_so'
  12542. - fi
  12543. - shlibpath_var=LD_LIBRARY_PATH
  12544. - shlibpath_overrides_runpath=yes
  12545. - hardcode_into_libs=yes
  12546. - ;;
  12547. -
  12548. -newsos6)
  12549. - version_type=linux
  12550. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12551. - shlibpath_var=LD_LIBRARY_PATH
  12552. - shlibpath_overrides_runpath=yes
  12553. - ;;
  12554. -
  12555. -nto-qnx*)
  12556. - version_type=linux
  12557. - need_lib_prefix=no
  12558. - need_version=no
  12559. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12560. - soname_spec='${libname}${release}${shared_ext}$major'
  12561. - shlibpath_var=LD_LIBRARY_PATH
  12562. - shlibpath_overrides_runpath=yes
  12563. - ;;
  12564. -
  12565. -openbsd*)
  12566. - version_type=sunos
  12567. - sys_lib_dlsearch_path_spec="/usr/lib"
  12568. - need_lib_prefix=no
  12569. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12570. - case $host_os in
  12571. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12572. - *) need_version=no ;;
  12573. - esac
  12574. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12575. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12576. - shlibpath_var=LD_LIBRARY_PATH
  12577. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12578. - case $host_os in
  12579. - openbsd2.[89] | openbsd2.[89].*)
  12580. - shlibpath_overrides_runpath=no
  12581. - ;;
  12582. - *)
  12583. - shlibpath_overrides_runpath=yes
  12584. - ;;
  12585. - esac
  12586. - else
  12587. - shlibpath_overrides_runpath=yes
  12588. - fi
  12589. - ;;
  12590. -
  12591. -os2*)
  12592. - libname_spec='$name'
  12593. - shrext_cmds=".dll"
  12594. - need_lib_prefix=no
  12595. - library_names_spec='$libname${shared_ext} $libname.a'
  12596. - dynamic_linker='OS/2 ld.exe'
  12597. - shlibpath_var=LIBPATH
  12598. - ;;
  12599. -
  12600. -osf3* | osf4* | osf5*)
  12601. - version_type=osf
  12602. - need_lib_prefix=no
  12603. - need_version=no
  12604. - soname_spec='${libname}${release}${shared_ext}$major'
  12605. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12606. - shlibpath_var=LD_LIBRARY_PATH
  12607. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12608. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12609. - ;;
  12610. -
  12611. -rdos*)
  12612. - dynamic_linker=no
  12613. - ;;
  12614. -
  12615. -solaris*)
  12616. - version_type=linux
  12617. - need_lib_prefix=no
  12618. - need_version=no
  12619. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12620. - soname_spec='${libname}${release}${shared_ext}$major'
  12621. - shlibpath_var=LD_LIBRARY_PATH
  12622. - shlibpath_overrides_runpath=yes
  12623. - hardcode_into_libs=yes
  12624. - # ldd complains unless libraries are executable
  12625. - postinstall_cmds='chmod +x $lib'
  12626. - ;;
  12627. -
  12628. -sunos4*)
  12629. - version_type=sunos
  12630. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12631. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12632. - shlibpath_var=LD_LIBRARY_PATH
  12633. - shlibpath_overrides_runpath=yes
  12634. - if test "$with_gnu_ld" = yes; then
  12635. - need_lib_prefix=no
  12636. - fi
  12637. - need_version=yes
  12638. - ;;
  12639. -
  12640. -sysv4 | sysv4.3*)
  12641. - version_type=linux
  12642. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12643. - soname_spec='${libname}${release}${shared_ext}$major'
  12644. - shlibpath_var=LD_LIBRARY_PATH
  12645. - case $host_vendor in
  12646. - sni)
  12647. - shlibpath_overrides_runpath=no
  12648. - need_lib_prefix=no
  12649. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  12650. - runpath_var=LD_RUN_PATH
  12651. - ;;
  12652. - siemens)
  12653. - need_lib_prefix=no
  12654. - ;;
  12655. - motorola)
  12656. - need_lib_prefix=no
  12657. - need_version=no
  12658. - shlibpath_overrides_runpath=no
  12659. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12660. - ;;
  12661. - esac
  12662. - ;;
  12663. -
  12664. -sysv4*MP*)
  12665. - if test -d /usr/nec ;then
  12666. - version_type=linux
  12667. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12668. - soname_spec='$libname${shared_ext}.$major'
  12669. - shlibpath_var=LD_LIBRARY_PATH
  12670. - fi
  12671. - ;;
  12672. -
  12673. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12674. - version_type=freebsd-elf
  12675. - need_lib_prefix=no
  12676. - need_version=no
  12677. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12678. - soname_spec='${libname}${release}${shared_ext}$major'
  12679. - shlibpath_var=LD_LIBRARY_PATH
  12680. - hardcode_into_libs=yes
  12681. - if test "$with_gnu_ld" = yes; then
  12682. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12683. - shlibpath_overrides_runpath=no
  12684. - else
  12685. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12686. - shlibpath_overrides_runpath=yes
  12687. - case $host_os in
  12688. - sco3.2v5*)
  12689. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12690. - ;;
  12691. - esac
  12692. - fi
  12693. - sys_lib_dlsearch_path_spec='/usr/lib'
  12694. - ;;
  12695. -
  12696. -uts4*)
  12697. - version_type=linux
  12698. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12699. - soname_spec='${libname}${release}${shared_ext}$major'
  12700. - shlibpath_var=LD_LIBRARY_PATH
  12701. - ;;
  12702. -
  12703. -*)
  12704. - dynamic_linker=no
  12705. - ;;
  12706. -esac
  12707. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12708. -$as_echo "$dynamic_linker" >&6; }
  12709. -test "$dynamic_linker" = no && can_build_shared=no
  12710. -
  12711. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12712. - $as_echo_n "(cached) " >&6
  12713. -else
  12714. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  12715. -fi
  12716. -
  12717. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12718. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12719. - $as_echo_n "(cached) " >&6
  12720. -else
  12721. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  12722. -fi
  12723. -
  12724. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12725. -
  12726. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12727. -if test "$GCC" = yes; then
  12728. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12729. -fi
  12730. -
  12731. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12732. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12733. -hardcode_action_F77=
  12734. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  12735. - test -n "$runpath_var_F77" || \
  12736. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  12737. -
  12738. - # We can hardcode non-existant directories.
  12739. - if test "$hardcode_direct_F77" != no &&
  12740. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12741. - # have to relink, otherwise we might link with an installed library
  12742. - # when we should be linking with a yet-to-be-installed one
  12743. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  12744. - test "$hardcode_minus_L_F77" != no; then
  12745. - # Linking always hardcodes the temporary library directory.
  12746. - hardcode_action_F77=relink
  12747. - else
  12748. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12749. - hardcode_action_F77=immediate
  12750. - fi
  12751. -else
  12752. - # We cannot hardcode anything, or else we can only hardcode existing
  12753. - # directories.
  12754. - hardcode_action_F77=unsupported
  12755. -fi
  12756. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  12757. -$as_echo "$hardcode_action_F77" >&6; }
  12758. -
  12759. -if test "$hardcode_action_F77" = relink; then
  12760. - # Fast installation is not supported
  12761. - enable_fast_install=no
  12762. -elif test "$shlibpath_overrides_runpath" = yes ||
  12763. - test "$enable_shared" = no; then
  12764. - # Fast installation is not necessary
  12765. - enable_fast_install=needless
  12766. -fi
  12767. -
  12768. -
  12769. -# The else clause should only fire when bootstrapping the
  12770. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  12771. -# with your package, and you will get complaints that there are
  12772. -# no rules to generate ltmain.sh.
  12773. -if test -f "$ltmain"; then
  12774. - # See if we are running on zsh, and set the options which allow our commands through
  12775. - # without removal of \ escapes.
  12776. - if test -n "${ZSH_VERSION+set}" ; then
  12777. - setopt NO_GLOB_SUBST
  12778. - fi
  12779. - # Now quote all the things that may contain metacharacters while being
  12780. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  12781. - # variables and quote the copies for generation of the libtool script.
  12782. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12783. - SED SHELL STRIP \
  12784. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12785. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12786. - deplibs_check_method reload_flag reload_cmds need_locks \
  12787. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12788. - lt_cv_sys_global_symbol_to_c_name_address \
  12789. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12790. - old_postinstall_cmds old_postuninstall_cmds \
  12791. - compiler_F77 \
  12792. - CC_F77 \
  12793. - LD_F77 \
  12794. - lt_prog_compiler_wl_F77 \
  12795. - lt_prog_compiler_pic_F77 \
  12796. - lt_prog_compiler_static_F77 \
  12797. - lt_prog_compiler_no_builtin_flag_F77 \
  12798. - export_dynamic_flag_spec_F77 \
  12799. - thread_safe_flag_spec_F77 \
  12800. - whole_archive_flag_spec_F77 \
  12801. - enable_shared_with_static_runtimes_F77 \
  12802. - old_archive_cmds_F77 \
  12803. - old_archive_from_new_cmds_F77 \
  12804. - predep_objects_F77 \
  12805. - postdep_objects_F77 \
  12806. - predeps_F77 \
  12807. - postdeps_F77 \
  12808. - compiler_lib_search_path_F77 \
  12809. - compiler_lib_search_dirs_F77 \
  12810. - archive_cmds_F77 \
  12811. - archive_expsym_cmds_F77 \
  12812. - postinstall_cmds_F77 \
  12813. - postuninstall_cmds_F77 \
  12814. - old_archive_from_expsyms_cmds_F77 \
  12815. - allow_undefined_flag_F77 \
  12816. - no_undefined_flag_F77 \
  12817. - export_symbols_cmds_F77 \
  12818. - hardcode_libdir_flag_spec_F77 \
  12819. - hardcode_libdir_flag_spec_ld_F77 \
  12820. - hardcode_libdir_separator_F77 \
  12821. - hardcode_automatic_F77 \
  12822. - module_cmds_F77 \
  12823. - module_expsym_cmds_F77 \
  12824. - lt_cv_prog_compiler_c_o_F77 \
  12825. - fix_srcfile_path_F77 \
  12826. - exclude_expsyms_F77 \
  12827. - include_expsyms_F77; do
  12828. -
  12829. - case $var in
  12830. - old_archive_cmds_F77 | \
  12831. - old_archive_from_new_cmds_F77 | \
  12832. - archive_cmds_F77 | \
  12833. - archive_expsym_cmds_F77 | \
  12834. - module_cmds_F77 | \
  12835. - module_expsym_cmds_F77 | \
  12836. - old_archive_from_expsyms_cmds_F77 | \
  12837. - export_symbols_cmds_F77 | \
  12838. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12839. - postinstall_cmds | postuninstall_cmds | \
  12840. - old_postinstall_cmds | old_postuninstall_cmds | \
  12841. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12842. - # Double-quote double-evaled strings.
  12843. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12844. - ;;
  12845. - *)
  12846. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12847. - ;;
  12848. - esac
  12849. - done
  12850. -
  12851. - case $lt_echo in
  12852. - *'\$0 --fallback-echo"')
  12853. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12854. - ;;
  12855. - esac
  12856. -
  12857. -cfgfile="$ofile"
  12858. -
  12859. - cat <<__EOF__ >> "$cfgfile"
  12860. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12861. -
  12862. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12863. -
  12864. -# Shell to use when invoking shell scripts.
  12865. -SHELL=$lt_SHELL
  12866. -
  12867. -# Whether or not to build shared libraries.
  12868. -build_libtool_libs=$enable_shared
  12869. -
  12870. -# Whether or not to build static libraries.
  12871. -build_old_libs=$enable_static
  12872. -
  12873. -# Whether or not to add -lc for building shared libraries.
  12874. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  12875. -
  12876. -# Whether or not to disallow shared libs when runtime libs are static
  12877. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  12878. -
  12879. -# Whether or not to optimize for fast installation.
  12880. -fast_install=$enable_fast_install
  12881. -
  12882. -# The host system.
  12883. -host_alias=$host_alias
  12884. -host=$host
  12885. -host_os=$host_os
  12886. -
  12887. -# The build system.
  12888. -build_alias=$build_alias
  12889. -build=$build
  12890. -build_os=$build_os
  12891. -
  12892. -# An echo program that does not interpret backslashes.
  12893. -echo=$lt_echo
  12894. -
  12895. -# The archiver.
  12896. -AR=$lt_AR
  12897. -AR_FLAGS=$lt_AR_FLAGS
  12898. -
  12899. -# A C compiler.
  12900. -LTCC=$lt_LTCC
  12901. -
  12902. -# LTCC compiler flags.
  12903. -LTCFLAGS=$lt_LTCFLAGS
  12904. -
  12905. -# A language-specific compiler.
  12906. -CC=$lt_compiler_F77
  12907. -
  12908. -# Is the compiler the GNU C compiler?
  12909. -with_gcc=$GCC_F77
  12910. -
  12911. -# An ERE matcher.
  12912. -EGREP=$lt_EGREP
  12913. -
  12914. -# The linker used to build libraries.
  12915. -LD=$lt_LD_F77
  12916. -
  12917. -# Whether we need hard or soft links.
  12918. -LN_S=$lt_LN_S
  12919. -
  12920. -# A BSD-compatible nm program.
  12921. -NM=$lt_NM
  12922. -
  12923. -# A symbol stripping program
  12924. -STRIP=$lt_STRIP
  12925. -
  12926. -# Used to examine libraries when file_magic_cmd begins "file"
  12927. -MAGIC_CMD=$MAGIC_CMD
  12928. -
  12929. -# Used on cygwin: DLL creation program.
  12930. -DLLTOOL="$DLLTOOL"
  12931. -
  12932. -# Used on cygwin: object dumper.
  12933. -OBJDUMP="$OBJDUMP"
  12934. -
  12935. -# Used on cygwin: assembler.
  12936. -AS="$AS"
  12937. -
  12938. -# The name of the directory that contains temporary libtool files.
  12939. -objdir=$objdir
  12940. -
  12941. -# How to create reloadable object files.
  12942. -reload_flag=$lt_reload_flag
  12943. -reload_cmds=$lt_reload_cmds
  12944. -
  12945. -# How to pass a linker flag through the compiler.
  12946. -wl=$lt_lt_prog_compiler_wl_F77
  12947. -
  12948. -# Object file suffix (normally "o").
  12949. -objext="$ac_objext"
  12950. -
  12951. -# Old archive suffix (normally "a").
  12952. -libext="$libext"
  12953. -
  12954. -# Shared library suffix (normally ".so").
  12955. -shrext_cmds='$shrext_cmds'
  12956. -
  12957. -# Executable file suffix (normally "").
  12958. -exeext="$exeext"
  12959. -
  12960. -# Additional compiler flags for building library objects.
  12961. -pic_flag=$lt_lt_prog_compiler_pic_F77
  12962. -pic_mode=$pic_mode
  12963. -
  12964. -# What is the maximum length of a command?
  12965. -max_cmd_len=$lt_cv_sys_max_cmd_len
  12966. -
  12967. -# Does compiler simultaneously support -c and -o options?
  12968. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  12969. -
  12970. -# Must we lock files when doing compilation?
  12971. -need_locks=$lt_need_locks
  12972. -
  12973. -# Do we need the lib prefix for modules?
  12974. -need_lib_prefix=$need_lib_prefix
  12975. -
  12976. -# Do we need a version for libraries?
  12977. -need_version=$need_version
  12978. -
  12979. -# Whether dlopen is supported.
  12980. -dlopen_support=$enable_dlopen
  12981. -
  12982. -# Whether dlopen of programs is supported.
  12983. -dlopen_self=$enable_dlopen_self
  12984. -
  12985. -# Whether dlopen of statically linked programs is supported.
  12986. -dlopen_self_static=$enable_dlopen_self_static
  12987. -
  12988. -# Compiler flag to prevent dynamic linking.
  12989. -link_static_flag=$lt_lt_prog_compiler_static_F77
  12990. -
  12991. -# Compiler flag to turn off builtin functions.
  12992. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  12993. -
  12994. -# Compiler flag to allow reflexive dlopens.
  12995. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  12996. -
  12997. -# Compiler flag to generate shared objects directly from archives.
  12998. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  12999. -
  13000. -# Compiler flag to generate thread-safe objects.
  13001. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13002. -
  13003. -# Library versioning type.
  13004. -version_type=$version_type
  13005. -
  13006. -# Format of library name prefix.
  13007. -libname_spec=$lt_libname_spec
  13008. -
  13009. -# List of archive names. First name is the real one, the rest are links.
  13010. -# The last name is the one that the linker finds with -lNAME.
  13011. -library_names_spec=$lt_library_names_spec
  13012. -
  13013. -# The coded name of the library, if different from the real name.
  13014. -soname_spec=$lt_soname_spec
  13015. -
  13016. -# Commands used to build and install an old-style archive.
  13017. -RANLIB=$lt_RANLIB
  13018. -old_archive_cmds=$lt_old_archive_cmds_F77
  13019. -old_postinstall_cmds=$lt_old_postinstall_cmds
  13020. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13021. -
  13022. -# Create an old-style archive from a shared archive.
  13023. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13024. -
  13025. -# Create a temporary old-style archive to link instead of a shared archive.
  13026. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13027. -
  13028. -# Commands used to build and install a shared archive.
  13029. -archive_cmds=$lt_archive_cmds_F77
  13030. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13031. -postinstall_cmds=$lt_postinstall_cmds
  13032. -postuninstall_cmds=$lt_postuninstall_cmds
  13033. -
  13034. -# Commands used to build a loadable module (assumed same as above if empty)
  13035. -module_cmds=$lt_module_cmds_F77
  13036. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  13037. -
  13038. -# Commands to strip libraries.
  13039. -old_striplib=$lt_old_striplib
  13040. -striplib=$lt_striplib
  13041. -
  13042. -# Dependencies to place before the objects being linked to create a
  13043. -# shared library.
  13044. -predep_objects=$lt_predep_objects_F77
  13045. -
  13046. -# Dependencies to place after the objects being linked to create a
  13047. -# shared library.
  13048. -postdep_objects=$lt_postdep_objects_F77
  13049. -
  13050. -# Dependencies to place before the objects being linked to create a
  13051. -# shared library.
  13052. -predeps=$lt_predeps_F77
  13053. -
  13054. -# Dependencies to place after the objects being linked to create a
  13055. -# shared library.
  13056. -postdeps=$lt_postdeps_F77
  13057. -
  13058. -# The directories searched by this compiler when creating a shared
  13059. -# library
  13060. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  13061. -
  13062. -# The library search path used internally by the compiler when linking
  13063. -# a shared library.
  13064. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13065. -
  13066. -# Method to check whether dependent libraries are shared objects.
  13067. -deplibs_check_method=$lt_deplibs_check_method
  13068. -
  13069. -# Command to use when deplibs_check_method == file_magic.
  13070. -file_magic_cmd=$lt_file_magic_cmd
  13071. -
  13072. -# Flag that allows shared libraries with undefined symbols to be built.
  13073. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  13074. -
  13075. -# Flag that forces no undefined symbols.
  13076. -no_undefined_flag=$lt_no_undefined_flag_F77
  13077. -
  13078. -# Commands used to finish a libtool library installation in a directory.
  13079. -finish_cmds=$lt_finish_cmds
  13080. -
  13081. -# Same as above, but a single script fragment to be evaled but not shown.
  13082. -finish_eval=$lt_finish_eval
  13083. -
  13084. -# Take the output of nm and produce a listing of raw symbols and C names.
  13085. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13086. -
  13087. -# Transform the output of nm in a proper C declaration
  13088. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13089. -
  13090. -# Transform the output of nm in a C name address pair
  13091. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13092. -
  13093. -# This is the shared library runtime path variable.
  13094. -runpath_var=$runpath_var
  13095. -
  13096. -# This is the shared library path variable.
  13097. -shlibpath_var=$shlibpath_var
  13098. -
  13099. -# Is shlibpath searched before the hard-coded library search path?
  13100. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13101. -
  13102. -# How to hardcode a shared library path into an executable.
  13103. -hardcode_action=$hardcode_action_F77
  13104. -
  13105. -# Whether we should hardcode library paths into libraries.
  13106. -hardcode_into_libs=$hardcode_into_libs
  13107. -
  13108. -# Flag to hardcode \$libdir into a binary during linking.
  13109. -# This must work even if \$libdir does not exist.
  13110. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13111. -
  13112. -# If ld is used when linking, flag to hardcode \$libdir into
  13113. -# a binary during linking. This must work even if \$libdir does
  13114. -# not exist.
  13115. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13116. -
  13117. -# Whether we need a single -rpath flag with a separated argument.
  13118. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13119. -
  13120. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13121. -# resulting binary.
  13122. -hardcode_direct=$hardcode_direct_F77
  13123. -
  13124. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13125. -# resulting binary.
  13126. -hardcode_minus_L=$hardcode_minus_L_F77
  13127. -
  13128. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13129. -# the resulting binary.
  13130. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13131. -
  13132. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  13133. -# and all subsequent libraries and executables linked against it.
  13134. -hardcode_automatic=$hardcode_automatic_F77
  13135. -
  13136. -# Variables whose values should be saved in libtool wrapper scripts and
  13137. -# restored at relink time.
  13138. -variables_saved_for_relink="$variables_saved_for_relink"
  13139. -
  13140. -# Whether libtool must link a program against all its dependency libraries.
  13141. -link_all_deplibs=$link_all_deplibs_F77
  13142. -
  13143. -# Compile-time system search path for libraries
  13144. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13145. -
  13146. -# Run-time system search path for libraries
  13147. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13148. -
  13149. -# Fix the shell variable \$srcfile for the compiler.
  13150. -fix_srcfile_path=$lt_fix_srcfile_path
  13151. -
  13152. -# Set to yes if exported symbols are required.
  13153. -always_export_symbols=$always_export_symbols_F77
  13154. -
  13155. -# The commands to list exported symbols.
  13156. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  13157. -
  13158. -# The commands to extract the exported symbol list from a shared archive.
  13159. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13160. -
  13161. -# Symbols that should not be listed in the preloaded symbols.
  13162. -exclude_expsyms=$lt_exclude_expsyms_F77
  13163. -
  13164. -# Symbols that must always be exported.
  13165. -include_expsyms=$lt_include_expsyms_F77
  13166. -
  13167. -# ### END LIBTOOL TAG CONFIG: $tagname
  13168. -
  13169. -__EOF__
  13170. -
  13171. -
  13172. -else
  13173. - # If there is no Makefile yet, we rely on a make rule to execute
  13174. - # `config.status --recheck' to rerun these tests and create the
  13175. - # libtool script then.
  13176. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13177. - if test -f "$ltmain_in"; then
  13178. - test -f Makefile && make "$ltmain"
  13179. - fi
  13180. -fi
  13181. -
  13182. -
  13183. -ac_ext=c
  13184. -ac_cpp='$CPP $CPPFLAGS'
  13185. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13186. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13187. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13188. -
  13189. -CC="$lt_save_CC"
  13190. -
  13191. - else
  13192. - tagname=""
  13193. - fi
  13194. - ;;
  13195. -
  13196. - GCJ)
  13197. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  13198. -
  13199. -
  13200. -# Source file extension for Java test sources.
  13201. -ac_ext=java
  13202. -
  13203. -# Object file extension for compiled Java test sources.
  13204. -objext=o
  13205. -objext_GCJ=$objext
  13206. -
  13207. -# Code to be used in simple compile tests
  13208. -lt_simple_compile_test_code="class foo {}"
  13209. -
  13210. -# Code to be used in simple link tests
  13211. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  13212. -
  13213. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13214. -
  13215. -# If no C compiler was specified, use CC.
  13216. -LTCC=${LTCC-"$CC"}
  13217. -
  13218. -# If no C compiler flags were specified, use CFLAGS.
  13219. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13220. -
  13221. -# Allow CC to be a program name with arguments.
  13222. -compiler=$CC
  13223. -
  13224. -
  13225. -# save warnings/boilerplate of simple test code
  13226. -ac_outfile=conftest.$ac_objext
  13227. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13228. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13229. -_lt_compiler_boilerplate=`cat conftest.err`
  13230. -$rm conftest*
  13231. -
  13232. -ac_outfile=conftest.$ac_objext
  13233. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13234. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13235. -_lt_linker_boilerplate=`cat conftest.err`
  13236. -$rm -r conftest*
  13237. -
  13238. -
  13239. -# Allow CC to be a program name with arguments.
  13240. -lt_save_CC="$CC"
  13241. -CC=${GCJ-"gcj"}
  13242. -compiler=$CC
  13243. -compiler_GCJ=$CC
  13244. -for cc_temp in $compiler""; do
  13245. - case $cc_temp in
  13246. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13247. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13248. - \-*) ;;
  13249. - *) break;;
  13250. - esac
  13251. -done
  13252. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13253. -
  13254. -
  13255. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  13256. -archive_cmds_need_lc_GCJ=no
  13257. -
  13258. -old_archive_cmds_GCJ=$old_archive_cmds
  13259. -
  13260. -
  13261. -lt_prog_compiler_no_builtin_flag_GCJ=
  13262. -
  13263. -if test "$GCC" = yes; then
  13264. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  13265. -
  13266. -
  13267. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  13268. -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  13269. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  13270. - $as_echo_n "(cached) " >&6
  13271. -else
  13272. - lt_cv_prog_compiler_rtti_exceptions=no
  13273. - ac_outfile=conftest.$ac_objext
  13274. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13275. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  13276. - # Insert the option either (1) after the last *FLAGS variable, or
  13277. - # (2) before a word containing "conftest.", or (3) at the end.
  13278. - # Note that $ac_compile itself does not contain backslashes and begins
  13279. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  13280. - # The option is referenced via a variable to avoid confusing sed.
  13281. - lt_compile=`echo "$ac_compile" | $SED \
  13282. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13283. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13284. - -e 's:$: $lt_compiler_flag:'`
  13285. - (eval echo "\"\$as_me:17927: $lt_compile\"" >&5)
  13286. - (eval "$lt_compile" 2>conftest.err)
  13287. - ac_status=$?
  13288. - cat conftest.err >&5
  13289. - echo "$as_me:17931: \$? = $ac_status" >&5
  13290. - if (exit $ac_status) && test -s "$ac_outfile"; then
  13291. - # The compiler can only warn and ignore the option if not recognized
  13292. - # So say no if there are warnings other than the usual output.
  13293. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13294. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13295. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13296. - lt_cv_prog_compiler_rtti_exceptions=yes
  13297. - fi
  13298. - fi
  13299. - $rm conftest*
  13300. -
  13301. -fi
  13302. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  13303. -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  13304. -
  13305. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  13306. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  13307. -else
  13308. - :
  13309. -fi
  13310. -
  13311. -fi
  13312. -
  13313. -lt_prog_compiler_wl_GCJ=
  13314. -lt_prog_compiler_pic_GCJ=
  13315. -lt_prog_compiler_static_GCJ=
  13316. -
  13317. -{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13318. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13319. -
  13320. - if test "$GCC" = yes; then
  13321. - lt_prog_compiler_wl_GCJ='-Wl,'
  13322. - lt_prog_compiler_static_GCJ='-static'
  13323. -
  13324. - case $host_os in
  13325. - aix*)
  13326. - # All AIX code is PIC.
  13327. - if test "$host_cpu" = ia64; then
  13328. - # AIX 5 now supports IA64 processor
  13329. - lt_prog_compiler_static_GCJ='-Bstatic'
  13330. - fi
  13331. - ;;
  13332. -
  13333. - amigaos*)
  13334. - # FIXME: we need at least 68020 code to build shared libraries, but
  13335. - # adding the `-m68020' flag to GCC prevents building anything better,
  13336. - # like `-m68040'.
  13337. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  13338. - ;;
  13339. -
  13340. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13341. - # PIC is the default for these OSes.
  13342. - ;;
  13343. -
  13344. - mingw* | cygwin* | pw32* | os2*)
  13345. - # This hack is so that the source file can tell whether it is being
  13346. - # built for inclusion in a dll (and should export symbols for example).
  13347. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13348. - # (--disable-auto-import) libraries
  13349. -
  13350. - ;;
  13351. -
  13352. - darwin* | rhapsody*)
  13353. - # PIC is the default on this platform
  13354. - # Common symbols not allowed in MH_DYLIB files
  13355. - lt_prog_compiler_pic_GCJ='-fno-common'
  13356. - ;;
  13357. -
  13358. - interix[3-9]*)
  13359. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13360. - # Instead, we relocate shared libraries at runtime.
  13361. - ;;
  13362. -
  13363. - msdosdjgpp*)
  13364. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  13365. - # on systems that don't support them.
  13366. - lt_prog_compiler_can_build_shared_GCJ=no
  13367. - enable_shared=no
  13368. - ;;
  13369. -
  13370. - sysv4*MP*)
  13371. - if test -d /usr/nec; then
  13372. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  13373. - fi
  13374. - ;;
  13375. -
  13376. - hpux*)
  13377. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13378. - # not for PA HP-UX.
  13379. - case $host_cpu in
  13380. - hppa*64*|ia64*)
  13381. - # +Z the default
  13382. - ;;
  13383. - *)
  13384. - lt_prog_compiler_pic_GCJ='-fPIC'
  13385. - ;;
  13386. - esac
  13387. - ;;
  13388. -
  13389. - *)
  13390. - lt_prog_compiler_pic_GCJ='-fPIC'
  13391. - ;;
  13392. - esac
  13393. - else
  13394. - # PORTME Check for flag to pass linker flags through the system compiler.
  13395. - case $host_os in
  13396. - aix*)
  13397. - lt_prog_compiler_wl_GCJ='-Wl,'
  13398. - if test "$host_cpu" = ia64; then
  13399. - # AIX 5 now supports IA64 processor
  13400. - lt_prog_compiler_static_GCJ='-Bstatic'
  13401. - else
  13402. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  13403. - fi
  13404. - ;;
  13405. - darwin*)
  13406. - # PIC is the default on this platform
  13407. - # Common symbols not allowed in MH_DYLIB files
  13408. - case $cc_basename in
  13409. - xlc*)
  13410. - lt_prog_compiler_pic_GCJ='-qnocommon'
  13411. - lt_prog_compiler_wl_GCJ='-Wl,'
  13412. - ;;
  13413. - esac
  13414. - ;;
  13415. -
  13416. - mingw* | cygwin* | pw32* | os2*)
  13417. - # This hack is so that the source file can tell whether it is being
  13418. - # built for inclusion in a dll (and should export symbols for example).
  13419. -
  13420. - ;;
  13421. -
  13422. - hpux9* | hpux10* | hpux11*)
  13423. - lt_prog_compiler_wl_GCJ='-Wl,'
  13424. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13425. - # not for PA HP-UX.
  13426. - case $host_cpu in
  13427. - hppa*64*|ia64*)
  13428. - # +Z the default
  13429. - ;;
  13430. - *)
  13431. - lt_prog_compiler_pic_GCJ='+Z'
  13432. - ;;
  13433. - esac
  13434. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13435. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  13436. - ;;
  13437. -
  13438. - irix5* | irix6* | nonstopux*)
  13439. - lt_prog_compiler_wl_GCJ='-Wl,'
  13440. - # PIC (with -KPIC) is the default.
  13441. - lt_prog_compiler_static_GCJ='-non_shared'
  13442. - ;;
  13443. -
  13444. - newsos6)
  13445. - lt_prog_compiler_pic_GCJ='-KPIC'
  13446. - lt_prog_compiler_static_GCJ='-Bstatic'
  13447. - ;;
  13448. -
  13449. - linux* | k*bsd*-gnu)
  13450. - case $cc_basename in
  13451. - icc* | ecc*)
  13452. - lt_prog_compiler_wl_GCJ='-Wl,'
  13453. - lt_prog_compiler_pic_GCJ='-KPIC'
  13454. - lt_prog_compiler_static_GCJ='-static'
  13455. - ;;
  13456. - pgcc* | pgf77* | pgf90* | pgf95*)
  13457. - # Portland Group compilers (*not* the Pentium gcc compiler,
  13458. - # which looks to be a dead project)
  13459. - lt_prog_compiler_wl_GCJ='-Wl,'
  13460. - lt_prog_compiler_pic_GCJ='-fpic'
  13461. - lt_prog_compiler_static_GCJ='-Bstatic'
  13462. - ;;
  13463. - ccc*)
  13464. - lt_prog_compiler_wl_GCJ='-Wl,'
  13465. - # All Alpha code is PIC.
  13466. - lt_prog_compiler_static_GCJ='-non_shared'
  13467. - ;;
  13468. - *)
  13469. - case `$CC -V 2>&1 | sed 5q` in
  13470. - *Sun\ C*)
  13471. - # Sun C 5.9
  13472. - lt_prog_compiler_pic_GCJ='-KPIC'
  13473. - lt_prog_compiler_static_GCJ='-Bstatic'
  13474. - lt_prog_compiler_wl_GCJ='-Wl,'
  13475. - ;;
  13476. - *Sun\ F*)
  13477. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  13478. - lt_prog_compiler_pic_GCJ='-KPIC'
  13479. - lt_prog_compiler_static_GCJ='-Bstatic'
  13480. - lt_prog_compiler_wl_GCJ=''
  13481. - ;;
  13482. - esac
  13483. - ;;
  13484. - esac
  13485. - ;;
  13486. -
  13487. - osf3* | osf4* | osf5*)
  13488. - lt_prog_compiler_wl_GCJ='-Wl,'
  13489. - # All OSF/1 code is PIC.
  13490. - lt_prog_compiler_static_GCJ='-non_shared'
  13491. - ;;
  13492. -
  13493. - rdos*)
  13494. - lt_prog_compiler_static_GCJ='-non_shared'
  13495. - ;;
  13496. -
  13497. - solaris*)
  13498. - lt_prog_compiler_pic_GCJ='-KPIC'
  13499. - lt_prog_compiler_static_GCJ='-Bstatic'
  13500. - case $cc_basename in
  13501. - f77* | f90* | f95*)
  13502. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  13503. - *)
  13504. - lt_prog_compiler_wl_GCJ='-Wl,';;
  13505. - esac
  13506. - ;;
  13507. -
  13508. - sunos4*)
  13509. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  13510. - lt_prog_compiler_pic_GCJ='-PIC'
  13511. - lt_prog_compiler_static_GCJ='-Bstatic'
  13512. - ;;
  13513. -
  13514. - sysv4 | sysv4.2uw2* | sysv4.3*)
  13515. - lt_prog_compiler_wl_GCJ='-Wl,'
  13516. - lt_prog_compiler_pic_GCJ='-KPIC'
  13517. - lt_prog_compiler_static_GCJ='-Bstatic'
  13518. - ;;
  13519. -
  13520. - sysv4*MP*)
  13521. - if test -d /usr/nec ;then
  13522. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  13523. - lt_prog_compiler_static_GCJ='-Bstatic'
  13524. - fi
  13525. - ;;
  13526. -
  13527. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13528. - lt_prog_compiler_wl_GCJ='-Wl,'
  13529. - lt_prog_compiler_pic_GCJ='-KPIC'
  13530. - lt_prog_compiler_static_GCJ='-Bstatic'
  13531. - ;;
  13532. -
  13533. - unicos*)
  13534. - lt_prog_compiler_wl_GCJ='-Wl,'
  13535. - lt_prog_compiler_can_build_shared_GCJ=no
  13536. - ;;
  13537. -
  13538. - uts4*)
  13539. - lt_prog_compiler_pic_GCJ='-pic'
  13540. - lt_prog_compiler_static_GCJ='-Bstatic'
  13541. - ;;
  13542. -
  13543. - *)
  13544. - lt_prog_compiler_can_build_shared_GCJ=no
  13545. - ;;
  13546. - esac
  13547. - fi
  13548. -
  13549. -{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  13550. -$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
  13551. -
  13552. -#
  13553. -# Check to make sure the PIC flag actually works.
  13554. -#
  13555. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  13556. -
  13557. -{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  13558. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
  13559. -if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  13560. - $as_echo_n "(cached) " >&6
  13561. -else
  13562. - lt_cv_prog_compiler_pic_works_GCJ=no
  13563. - ac_outfile=conftest.$ac_objext
  13564. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13565. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  13566. - # Insert the option either (1) after the last *FLAGS variable, or
  13567. - # (2) before a word containing "conftest.", or (3) at the end.
  13568. - # Note that $ac_compile itself does not contain backslashes and begins
  13569. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  13570. - # The option is referenced via a variable to avoid confusing sed.
  13571. - lt_compile=`echo "$ac_compile" | $SED \
  13572. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13573. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13574. - -e 's:$: $lt_compiler_flag:'`
  13575. - (eval echo "\"\$as_me:18217: $lt_compile\"" >&5)
  13576. - (eval "$lt_compile" 2>conftest.err)
  13577. - ac_status=$?
  13578. - cat conftest.err >&5
  13579. - echo "$as_me:18221: \$? = $ac_status" >&5
  13580. - if (exit $ac_status) && test -s "$ac_outfile"; then
  13581. - # The compiler can only warn and ignore the option if not recognized
  13582. - # So say no if there are warnings other than the usual output.
  13583. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13584. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13585. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13586. - lt_cv_prog_compiler_pic_works_GCJ=yes
  13587. - fi
  13588. - fi
  13589. - $rm conftest*
  13590. -
  13591. -fi
  13592. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  13593. -$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  13594. -
  13595. -if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  13596. - case $lt_prog_compiler_pic_GCJ in
  13597. - "" | " "*) ;;
  13598. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  13599. - esac
  13600. -else
  13601. - lt_prog_compiler_pic_GCJ=
  13602. - lt_prog_compiler_can_build_shared_GCJ=no
  13603. -fi
  13604. -
  13605. -fi
  13606. -case $host_os in
  13607. - # For platforms which do not support PIC, -DPIC is meaningless:
  13608. - *djgpp*)
  13609. - lt_prog_compiler_pic_GCJ=
  13610. - ;;
  13611. - *)
  13612. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  13613. - ;;
  13614. -esac
  13615. -
  13616. -#
  13617. -# Check to make sure the static flag actually works.
  13618. -#
  13619. -wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  13620. -{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13621. -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13622. -if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  13623. - $as_echo_n "(cached) " >&6
  13624. -else
  13625. - lt_cv_prog_compiler_static_works_GCJ=no
  13626. - save_LDFLAGS="$LDFLAGS"
  13627. - LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13628. - echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13629. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13630. - # The linker can only warn and ignore the option if not recognized
  13631. - # So say no if there are warnings
  13632. - if test -s conftest.err; then
  13633. - # Append any errors to the config.log.
  13634. - cat conftest.err 1>&5
  13635. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  13636. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13637. - if diff conftest.exp conftest.er2 >/dev/null; then
  13638. - lt_cv_prog_compiler_static_works_GCJ=yes
  13639. - fi
  13640. - else
  13641. - lt_cv_prog_compiler_static_works_GCJ=yes
  13642. - fi
  13643. - fi
  13644. - $rm -r conftest*
  13645. - LDFLAGS="$save_LDFLAGS"
  13646. -
  13647. -fi
  13648. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  13649. -$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  13650. -
  13651. -if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  13652. - :
  13653. -else
  13654. - lt_prog_compiler_static_GCJ=
  13655. -fi
  13656. -
  13657. -
  13658. -{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13659. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13660. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  13661. - $as_echo_n "(cached) " >&6
  13662. -else
  13663. - lt_cv_prog_compiler_c_o_GCJ=no
  13664. - $rm -r conftest 2>/dev/null
  13665. - mkdir conftest
  13666. - cd conftest
  13667. - mkdir out
  13668. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13669. -
  13670. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  13671. - # Insert the option either (1) after the last *FLAGS variable, or
  13672. - # (2) before a word containing "conftest.", or (3) at the end.
  13673. - # Note that $ac_compile itself does not contain backslashes and begins
  13674. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  13675. - lt_compile=`echo "$ac_compile" | $SED \
  13676. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13677. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13678. - -e 's:$: $lt_compiler_flag:'`
  13679. - (eval echo "\"\$as_me:18321: $lt_compile\"" >&5)
  13680. - (eval "$lt_compile" 2>out/conftest.err)
  13681. - ac_status=$?
  13682. - cat out/conftest.err >&5
  13683. - echo "$as_me:18325: \$? = $ac_status" >&5
  13684. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13685. - then
  13686. - # The compiler can only warn and ignore the option if not recognized
  13687. - # So say no if there are warnings
  13688. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13689. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13690. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13691. - lt_cv_prog_compiler_c_o_GCJ=yes
  13692. - fi
  13693. - fi
  13694. - chmod u+w . 2>&5
  13695. - $rm conftest*
  13696. - # SGI C++ compiler will create directory out/ii_files/ for
  13697. - # template instantiation
  13698. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13699. - $rm out/* && rmdir out
  13700. - cd ..
  13701. - rmdir conftest
  13702. - $rm conftest*
  13703. -
  13704. -fi
  13705. -{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  13706. -$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  13707. -
  13708. -
  13709. -hard_links="nottested"
  13710. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  13711. - # do not overwrite the value of need_locks provided by the user
  13712. - { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13713. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  13714. - hard_links=yes
  13715. - $rm conftest*
  13716. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13717. - touch conftest.a
  13718. - ln conftest.a conftest.b 2>&5 || hard_links=no
  13719. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13720. - { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  13721. -$as_echo "$hard_links" >&6; }
  13722. - if test "$hard_links" = no; then
  13723. - { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13724. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13725. - need_locks=warn
  13726. - fi
  13727. -else
  13728. - need_locks=no
  13729. -fi
  13730. -
  13731. -{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13732. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13733. -
  13734. - runpath_var=
  13735. - allow_undefined_flag_GCJ=
  13736. - enable_shared_with_static_runtimes_GCJ=no
  13737. - archive_cmds_GCJ=
  13738. - archive_expsym_cmds_GCJ=
  13739. - old_archive_From_new_cmds_GCJ=
  13740. - old_archive_from_expsyms_cmds_GCJ=
  13741. - export_dynamic_flag_spec_GCJ=
  13742. - whole_archive_flag_spec_GCJ=
  13743. - thread_safe_flag_spec_GCJ=
  13744. - hardcode_libdir_flag_spec_GCJ=
  13745. - hardcode_libdir_flag_spec_ld_GCJ=
  13746. - hardcode_libdir_separator_GCJ=
  13747. - hardcode_direct_GCJ=no
  13748. - hardcode_minus_L_GCJ=no
  13749. - hardcode_shlibpath_var_GCJ=unsupported
  13750. - link_all_deplibs_GCJ=unknown
  13751. - hardcode_automatic_GCJ=no
  13752. - module_cmds_GCJ=
  13753. - module_expsym_cmds_GCJ=
  13754. - always_export_symbols_GCJ=no
  13755. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13756. - # include_expsyms should be a list of space-separated symbols to be *always*
  13757. - # included in the symbol list
  13758. - include_expsyms_GCJ=
  13759. - # exclude_expsyms can be an extended regexp of symbols to exclude
  13760. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13761. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13762. - # as well as any symbol that contains `d'.
  13763. - exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13764. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13765. - # platforms (ab)use it in PIC code, but their linkers get confused if
  13766. - # the symbol is explicitly referenced. Since portable code cannot
  13767. - # rely on this symbol name, it's probably fine to never include it in
  13768. - # preloaded symbol tables.
  13769. - # Exclude shared library initialization/finalization symbols.
  13770. - extract_expsyms_cmds=
  13771. - # Just being paranoid about ensuring that cc_basename is set.
  13772. - for cc_temp in $compiler""; do
  13773. - case $cc_temp in
  13774. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13775. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13776. - \-*) ;;
  13777. - *) break;;
  13778. - esac
  13779. -done
  13780. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13781. + test "$can_build_shared" = "no" && enable_shared=no
  13782. + # On AIX, shared libraries and static libraries use the same namespace, and
  13783. + # are all built from PIC.
  13784. case $host_os in
  13785. - cygwin* | mingw* | pw32*)
  13786. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13787. - # When not using gcc, we currently assume that we are using
  13788. - # Microsoft Visual C++.
  13789. - if test "$GCC" != yes; then
  13790. - with_gnu_ld=no
  13791. - fi
  13792. - ;;
  13793. - interix*)
  13794. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  13795. - with_gnu_ld=yes
  13796. - ;;
  13797. - openbsd*)
  13798. - with_gnu_ld=no
  13799. - ;;
  13800. - esac
  13801. -
  13802. - ld_shlibs_GCJ=yes
  13803. - if test "$with_gnu_ld" = yes; then
  13804. - # If archive_cmds runs LD, not CC, wlarc should be empty
  13805. - wlarc='${wl}'
  13806. -
  13807. - # Set some defaults for GNU ld with shared library support. These
  13808. - # are reset later if shared libraries are not supported. Putting them
  13809. - # here allows them to be overridden if necessary.
  13810. - runpath_var=LD_RUN_PATH
  13811. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  13812. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  13813. - # ancient GNU ld didn't support --whole-archive et. al.
  13814. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13815. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13816. - else
  13817. - whole_archive_flag_spec_GCJ=
  13818. - fi
  13819. - supports_anon_versioning=no
  13820. - case `$LD -v 2>/dev/null` in
  13821. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13822. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13823. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13824. - *\ 2.11.*) ;; # other 2.11 versions
  13825. - *) supports_anon_versioning=yes ;;
  13826. - esac
  13827. -
  13828. - # See if GNU ld supports shared libraries.
  13829. - case $host_os in
  13830. - aix[3-9]*)
  13831. - # On AIX/PPC, the GNU linker is very broken
  13832. - if test "$host_cpu" != ia64; then
  13833. - ld_shlibs_GCJ=no
  13834. - cat <<EOF 1>&2
  13835. -
  13836. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13837. -*** to be unable to reliably create shared libraries on AIX.
  13838. -*** Therefore, libtool is disabling shared libraries support. If you
  13839. -*** really care for shared libraries, you may want to modify your PATH
  13840. -*** so that a non-GNU linker is found, and then restart.
  13841. -
  13842. -EOF
  13843. - fi
  13844. - ;;
  13845. -
  13846. - amigaos*)
  13847. - archive_cmds_GCJ='$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)'
  13848. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13849. - hardcode_minus_L_GCJ=yes
  13850. -
  13851. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13852. - # that the semantics of dynamic libraries on AmigaOS, at least up
  13853. - # to version 4, is to share data among multiple programs linked
  13854. - # with the same dynamic library. Since this doesn't match the
  13855. - # behavior of shared libraries on other platforms, we can't use
  13856. - # them.
  13857. - ld_shlibs_GCJ=no
  13858. - ;;
  13859. -
  13860. - beos*)
  13861. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13862. - allow_undefined_flag_GCJ=unsupported
  13863. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13864. - # support --undefined. This deserves some investigation. FIXME
  13865. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13866. - else
  13867. - ld_shlibs_GCJ=no
  13868. - fi
  13869. - ;;
  13870. -
  13871. - cygwin* | mingw* | pw32*)
  13872. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  13873. - # as there is no search path for DLLs.
  13874. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  13875. - allow_undefined_flag_GCJ=unsupported
  13876. - always_export_symbols_GCJ=no
  13877. - enable_shared_with_static_runtimes_GCJ=yes
  13878. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13879. -
  13880. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13881. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13882. - # If the export-symbols file already is a .def file (1st line
  13883. - # is EXPORTS), use it as is; otherwise, prepend...
  13884. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13885. - cp $export_symbols $output_objdir/$soname.def;
  13886. - else
  13887. - echo EXPORTS > $output_objdir/$soname.def;
  13888. - cat $export_symbols >> $output_objdir/$soname.def;
  13889. - fi~
  13890. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13891. - else
  13892. - ld_shlibs_GCJ=no
  13893. - fi
  13894. - ;;
  13895. -
  13896. - interix[3-9]*)
  13897. - hardcode_direct_GCJ=no
  13898. - hardcode_shlibpath_var_GCJ=no
  13899. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  13900. - export_dynamic_flag_spec_GCJ='${wl}-E'
  13901. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13902. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  13903. - # default) and relocated if they conflict, which is a slow very memory
  13904. - # consuming and fragmenting process. To avoid this, we pick a random,
  13905. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13906. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13907. - archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13908. - archive_expsym_cmds_GCJ='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'
  13909. - ;;
  13910. -
  13911. - gnu* | linux* | k*bsd*-gnu)
  13912. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13913. - tmp_addflag=
  13914. - case $cc_basename,$host_cpu in
  13915. - pgcc*) # Portland Group C compiler
  13916. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13917. - tmp_addflag=' $pic_flag'
  13918. - ;;
  13919. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13920. - whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13921. - tmp_addflag=' $pic_flag -Mnomain' ;;
  13922. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13923. - tmp_addflag=' -i_dynamic' ;;
  13924. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13925. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  13926. - ifc* | ifort*) # Intel Fortran compiler
  13927. - tmp_addflag=' -nofor_main' ;;
  13928. - esac
  13929. - case `$CC -V 2>&1 | sed 5q` in
  13930. - *Sun\ C*) # Sun C 5.9
  13931. - whole_archive_flag_spec_GCJ='${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'
  13932. - tmp_sharedflag='-G' ;;
  13933. - *Sun\ F*) # Sun Fortran 8.3
  13934. - tmp_sharedflag='-G' ;;
  13935. - *)
  13936. - tmp_sharedflag='-shared' ;;
  13937. - esac
  13938. - archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13939. -
  13940. - if test $supports_anon_versioning = yes; then
  13941. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  13942. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13943. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  13944. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13945. - fi
  13946. - else
  13947. - ld_shlibs_GCJ=no
  13948. - fi
  13949. - ;;
  13950. -
  13951. - netbsd*)
  13952. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13953. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13954. - wlarc=
  13955. - else
  13956. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13957. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13958. - fi
  13959. - ;;
  13960. -
  13961. - solaris*)
  13962. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13963. - ld_shlibs_GCJ=no
  13964. - cat <<EOF 1>&2
  13965. -
  13966. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13967. -*** create shared libraries on Solaris systems. Therefore, libtool
  13968. -*** is disabling shared libraries support. We urge you to upgrade GNU
  13969. -*** binutils to release 2.9.1 or newer. Another option is to modify
  13970. -*** your PATH or compiler configuration so that the native linker is
  13971. -*** used, and then restart.
  13972. -
  13973. -EOF
  13974. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13975. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13976. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13977. - else
  13978. - ld_shlibs_GCJ=no
  13979. - fi
  13980. - ;;
  13981. -
  13982. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13983. - case `$LD -v 2>&1` in
  13984. - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13985. - ld_shlibs_GCJ=no
  13986. - cat <<_LT_EOF 1>&2
  13987. -
  13988. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13989. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  13990. -*** is disabling shared libraries support. We urge you to upgrade GNU
  13991. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13992. -*** your PATH or compiler configuration so that the native linker is
  13993. -*** used, and then restart.
  13994. -
  13995. -_LT_EOF
  13996. - ;;
  13997. - *)
  13998. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13999. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14000. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14001. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14002. - else
  14003. - ld_shlibs_GCJ=no
  14004. - fi
  14005. - ;;
  14006. - esac
  14007. - ;;
  14008. -
  14009. - sunos4*)
  14010. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14011. - wlarc=
  14012. - hardcode_direct_GCJ=yes
  14013. - hardcode_shlibpath_var_GCJ=no
  14014. - ;;
  14015. -
  14016. - *)
  14017. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14018. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14019. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14020. - else
  14021. - ld_shlibs_GCJ=no
  14022. - fi
  14023. - ;;
  14024. - esac
  14025. -
  14026. - if test "$ld_shlibs_GCJ" = no; then
  14027. - runpath_var=
  14028. - hardcode_libdir_flag_spec_GCJ=
  14029. - export_dynamic_flag_spec_GCJ=
  14030. - whole_archive_flag_spec_GCJ=
  14031. - fi
  14032. - else
  14033. - # PORTME fill in a description of your system's linker (not GNU ld)
  14034. - case $host_os in
  14035. - aix3*)
  14036. - allow_undefined_flag_GCJ=unsupported
  14037. - always_export_symbols_GCJ=yes
  14038. - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  14039. - # Note: this linker hardcodes the directories in LIBPATH if there
  14040. - # are no directories specified by -L.
  14041. - hardcode_minus_L_GCJ=yes
  14042. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14043. - # Neither direct hardcoding nor static linking is supported with a
  14044. - # broken collect2.
  14045. - hardcode_direct_GCJ=unsupported
  14046. - fi
  14047. - ;;
  14048. -
  14049. - aix[4-9]*)
  14050. - if test "$host_cpu" = ia64; then
  14051. - # On IA64, the linker does run time linking by default, so we don't
  14052. - # have to do anything special.
  14053. - aix_use_runtimelinking=no
  14054. - exp_sym_flag='-Bexport'
  14055. - no_entry_flag=""
  14056. - else
  14057. - # If we're using GNU nm, then we don't want the "-C" option.
  14058. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14059. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14060. - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14061. - else
  14062. - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14063. - fi
  14064. - aix_use_runtimelinking=no
  14065. -
  14066. - # Test if we are trying to use run time linking or normal
  14067. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14068. - # need to do runtime linking.
  14069. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  14070. - for ld_flag in $LDFLAGS; do
  14071. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14072. - aix_use_runtimelinking=yes
  14073. - break
  14074. - fi
  14075. - done
  14076. - ;;
  14077. - esac
  14078. -
  14079. - exp_sym_flag='-bexport'
  14080. - no_entry_flag='-bnoentry'
  14081. - fi
  14082. -
  14083. - # When large executables or shared objects are built, AIX ld can
  14084. - # have problems creating the table of contents. If linking a library
  14085. - # or program results in "error TOC overflow" add -mminimal-toc to
  14086. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14087. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14088. -
  14089. - archive_cmds_GCJ=''
  14090. - hardcode_direct_GCJ=yes
  14091. - hardcode_libdir_separator_GCJ=':'
  14092. - link_all_deplibs_GCJ=yes
  14093. -
  14094. - if test "$GCC" = yes; then
  14095. - case $host_os in aix4.[012]|aix4.[012].*)
  14096. - # We only want to do this on AIX 4.2 and lower, the check
  14097. - # below for broken collect2 doesn't work under 4.3+
  14098. - collect2name=`${CC} -print-prog-name=collect2`
  14099. - if test -f "$collect2name" && \
  14100. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  14101. - then
  14102. - # We have reworked collect2
  14103. - :
  14104. - else
  14105. - # We have old collect2
  14106. - hardcode_direct_GCJ=unsupported
  14107. - # It fails to find uninstalled libraries when the uninstalled
  14108. - # path is not listed in the libpath. Setting hardcode_minus_L
  14109. - # to unsupported forces relinking
  14110. - hardcode_minus_L_GCJ=yes
  14111. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14112. - hardcode_libdir_separator_GCJ=
  14113. - fi
  14114. - ;;
  14115. - esac
  14116. - shared_flag='-shared'
  14117. - if test "$aix_use_runtimelinking" = yes; then
  14118. - shared_flag="$shared_flag "'${wl}-G'
  14119. - fi
  14120. - else
  14121. - # not using gcc
  14122. - if test "$host_cpu" = ia64; then
  14123. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14124. - # chokes on -Wl,-G. The following line is correct:
  14125. - shared_flag='-G'
  14126. - else
  14127. - if test "$aix_use_runtimelinking" = yes; then
  14128. - shared_flag='${wl}-G'
  14129. - else
  14130. - shared_flag='${wl}-bM:SRE'
  14131. - fi
  14132. - fi
  14133. - fi
  14134. -
  14135. - # It seems that -bexpall does not export symbols beginning with
  14136. - # underscore (_), so it is better to generate a list of symbols to export.
  14137. - always_export_symbols_GCJ=yes
  14138. - if test "$aix_use_runtimelinking" = yes; then
  14139. - # Warning - without using the other runtime loading flags (-brtl),
  14140. - # -berok will link without error, but may produce a broken library.
  14141. - allow_undefined_flag_GCJ='-berok'
  14142. - # Determine the default libpath from the value encoded in an empty executable.
  14143. - cat >conftest.$ac_ext <<_ACEOF
  14144. -/* confdefs.h. */
  14145. -_ACEOF
  14146. -cat confdefs.h >>conftest.$ac_ext
  14147. -cat >>conftest.$ac_ext <<_ACEOF
  14148. -/* end confdefs.h. */
  14149. -
  14150. -int
  14151. -main ()
  14152. -{
  14153. -
  14154. - ;
  14155. - return 0;
  14156. -}
  14157. -_ACEOF
  14158. -rm -f conftest.$ac_objext conftest$ac_exeext
  14159. -if { (ac_try="$ac_link"
  14160. -case "(($ac_try" in
  14161. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14162. - *) ac_try_echo=$ac_try;;
  14163. -esac
  14164. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14165. -$as_echo "$ac_try_echo") >&5
  14166. - (eval "$ac_link") 2>conftest.er1
  14167. - ac_status=$?
  14168. - grep -v '^ *+' conftest.er1 >conftest.err
  14169. - rm -f conftest.er1
  14170. - cat conftest.err >&5
  14171. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14172. - (exit $ac_status); } && {
  14173. - test -z "$ac_c_werror_flag" ||
  14174. - test ! -s conftest.err
  14175. - } && test -s conftest$ac_exeext && {
  14176. - test "$cross_compiling" = yes ||
  14177. - $as_test_x conftest$ac_exeext
  14178. - }; then
  14179. -
  14180. -lt_aix_libpath_sed='
  14181. - /Import File Strings/,/^$/ {
  14182. - /^0/ {
  14183. - s/^0 *\(.*\)$/\1/
  14184. - p
  14185. - }
  14186. - }'
  14187. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14188. -# Check for a 64-bit object if we didn't find anything.
  14189. -if test -z "$aix_libpath"; then
  14190. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14191. -fi
  14192. -else
  14193. - $as_echo "$as_me: failed program was:" >&5
  14194. -sed 's/^/| /' conftest.$ac_ext >&5
  14195. -
  14196. -
  14197. -fi
  14198. -
  14199. -rm -rf conftest.dSYM
  14200. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14201. - conftest$ac_exeext conftest.$ac_ext
  14202. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14203. -
  14204. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14205. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  14206. - else
  14207. - if test "$host_cpu" = ia64; then
  14208. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14209. - allow_undefined_flag_GCJ="-z nodefs"
  14210. - archive_expsym_cmds_GCJ="\$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"
  14211. - else
  14212. - # Determine the default libpath from the value encoded in an empty executable.
  14213. - cat >conftest.$ac_ext <<_ACEOF
  14214. -/* confdefs.h. */
  14215. -_ACEOF
  14216. -cat confdefs.h >>conftest.$ac_ext
  14217. -cat >>conftest.$ac_ext <<_ACEOF
  14218. -/* end confdefs.h. */
  14219. -
  14220. -int
  14221. -main ()
  14222. -{
  14223. -
  14224. - ;
  14225. - return 0;
  14226. -}
  14227. -_ACEOF
  14228. -rm -f conftest.$ac_objext conftest$ac_exeext
  14229. -if { (ac_try="$ac_link"
  14230. -case "(($ac_try" in
  14231. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14232. - *) ac_try_echo=$ac_try;;
  14233. -esac
  14234. -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14235. -$as_echo "$ac_try_echo") >&5
  14236. - (eval "$ac_link") 2>conftest.er1
  14237. - ac_status=$?
  14238. - grep -v '^ *+' conftest.er1 >conftest.err
  14239. - rm -f conftest.er1
  14240. - cat conftest.err >&5
  14241. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14242. - (exit $ac_status); } && {
  14243. - test -z "$ac_c_werror_flag" ||
  14244. - test ! -s conftest.err
  14245. - } && test -s conftest$ac_exeext && {
  14246. - test "$cross_compiling" = yes ||
  14247. - $as_test_x conftest$ac_exeext
  14248. - }; then
  14249. -
  14250. -lt_aix_libpath_sed='
  14251. - /Import File Strings/,/^$/ {
  14252. - /^0/ {
  14253. - s/^0 *\(.*\)$/\1/
  14254. - p
  14255. - }
  14256. - }'
  14257. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14258. -# Check for a 64-bit object if we didn't find anything.
  14259. -if test -z "$aix_libpath"; then
  14260. - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14261. -fi
  14262. -else
  14263. - $as_echo "$as_me: failed program was:" >&5
  14264. -sed 's/^/| /' conftest.$ac_ext >&5
  14265. -
  14266. -
  14267. -fi
  14268. -
  14269. -rm -rf conftest.dSYM
  14270. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14271. - conftest$ac_exeext conftest.$ac_ext
  14272. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14273. -
  14274. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14275. - # Warning - without using the other run time loading flags,
  14276. - # -berok will link without error, but may produce a broken library.
  14277. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  14278. - allow_undefined_flag_GCJ=' ${wl}-berok'
  14279. - # Exported symbols can be pulled into shared objects from archives
  14280. - whole_archive_flag_spec_GCJ='$convenience'
  14281. - archive_cmds_need_lc_GCJ=yes
  14282. - # This is similar to how AIX traditionally builds its shared libraries.
  14283. - archive_expsym_cmds_GCJ="\$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'
  14284. - fi
  14285. - fi
  14286. - ;;
  14287. -
  14288. - amigaos*)
  14289. - archive_cmds_GCJ='$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)'
  14290. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14291. - hardcode_minus_L_GCJ=yes
  14292. - # see comment about different semantics on the GNU ld section
  14293. - ld_shlibs_GCJ=no
  14294. - ;;
  14295. -
  14296. - bsdi[45]*)
  14297. - export_dynamic_flag_spec_GCJ=-rdynamic
  14298. - ;;
  14299. -
  14300. - cygwin* | mingw* | pw32*)
  14301. - # When not using gcc, we currently assume that we are using
  14302. - # Microsoft Visual C++.
  14303. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  14304. - # no search path for DLLs.
  14305. - hardcode_libdir_flag_spec_GCJ=' '
  14306. - allow_undefined_flag_GCJ=unsupported
  14307. - # Tell ltmain to make .lib files, not .a files.
  14308. - libext=lib
  14309. - # Tell ltmain to make .dll files, not .so files.
  14310. - shrext_cmds=".dll"
  14311. - # FIXME: Setting linknames here is a bad hack.
  14312. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14313. - # The linker will automatically build a .lib file if we build a DLL.
  14314. - old_archive_From_new_cmds_GCJ='true'
  14315. - # FIXME: Should let the user specify the lib program.
  14316. - old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  14317. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  14318. - enable_shared_with_static_runtimes_GCJ=yes
  14319. - ;;
  14320. -
  14321. - darwin* | rhapsody*)
  14322. - case $host_os in
  14323. - rhapsody* | darwin1.[012])
  14324. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  14325. - ;;
  14326. - *) # Darwin 1.3 on
  14327. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14328. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14329. - else
  14330. - case ${MACOSX_DEPLOYMENT_TARGET} in
  14331. - 10.[012])
  14332. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14333. - ;;
  14334. - 10.*)
  14335. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  14336. - ;;
  14337. - esac
  14338. - fi
  14339. - ;;
  14340. - esac
  14341. - archive_cmds_need_lc_GCJ=no
  14342. - hardcode_direct_GCJ=no
  14343. - hardcode_automatic_GCJ=yes
  14344. - hardcode_shlibpath_var_GCJ=unsupported
  14345. - whole_archive_flag_spec_GCJ=''
  14346. - link_all_deplibs_GCJ=yes
  14347. - if test "$GCC" = yes ; then
  14348. - output_verbose_link_cmd='echo'
  14349. - archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  14350. - module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  14351. - archive_expsym_cmds_GCJ="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}"
  14352. - module_expsym_cmds_GCJ="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}"
  14353. - else
  14354. - case $cc_basename in
  14355. - xlc*)
  14356. - output_verbose_link_cmd='echo'
  14357. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  14358. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14359. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14360. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14361. - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14362. - ;;
  14363. - *)
  14364. - ld_shlibs_GCJ=no
  14365. - ;;
  14366. - esac
  14367. - fi
  14368. - ;;
  14369. -
  14370. - dgux*)
  14371. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14372. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14373. - hardcode_shlibpath_var_GCJ=no
  14374. - ;;
  14375. -
  14376. - freebsd1*)
  14377. - ld_shlibs_GCJ=no
  14378. - ;;
  14379. -
  14380. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14381. - # support. Future versions do this automatically, but an explicit c++rt0.o
  14382. - # does not break anything, and helps significantly (at the cost of a little
  14383. - # extra space).
  14384. - freebsd2.2*)
  14385. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  14386. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14387. - hardcode_direct_GCJ=yes
  14388. - hardcode_shlibpath_var_GCJ=no
  14389. - ;;
  14390. -
  14391. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  14392. - freebsd2*)
  14393. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14394. - hardcode_direct_GCJ=yes
  14395. - hardcode_minus_L_GCJ=yes
  14396. - hardcode_shlibpath_var_GCJ=no
  14397. - ;;
  14398. -
  14399. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  14400. - freebsd* | dragonfly*)
  14401. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  14402. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14403. - hardcode_direct_GCJ=yes
  14404. - hardcode_shlibpath_var_GCJ=no
  14405. - ;;
  14406. -
  14407. - hpux9*)
  14408. - if test "$GCC" = yes; then
  14409. - archive_cmds_GCJ='$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'
  14410. - else
  14411. - archive_cmds_GCJ='$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'
  14412. - fi
  14413. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14414. - hardcode_libdir_separator_GCJ=:
  14415. - hardcode_direct_GCJ=yes
  14416. -
  14417. - # hardcode_minus_L: Not really in the search PATH,
  14418. - # but as the default location of the library.
  14419. - hardcode_minus_L_GCJ=yes
  14420. - export_dynamic_flag_spec_GCJ='${wl}-E'
  14421. - ;;
  14422. -
  14423. - hpux10*)
  14424. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14425. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14426. - else
  14427. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  14428. - fi
  14429. - if test "$with_gnu_ld" = no; then
  14430. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14431. - hardcode_libdir_separator_GCJ=:
  14432. -
  14433. - hardcode_direct_GCJ=yes
  14434. - export_dynamic_flag_spec_GCJ='${wl}-E'
  14435. -
  14436. - # hardcode_minus_L: Not really in the search PATH,
  14437. - # but as the default location of the library.
  14438. - hardcode_minus_L_GCJ=yes
  14439. - fi
  14440. - ;;
  14441. -
  14442. - hpux11*)
  14443. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  14444. - case $host_cpu in
  14445. - hppa*64*)
  14446. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14447. - ;;
  14448. - ia64*)
  14449. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14450. - ;;
  14451. - *)
  14452. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14453. - ;;
  14454. - esac
  14455. - else
  14456. - case $host_cpu in
  14457. - hppa*64*)
  14458. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14459. - ;;
  14460. - ia64*)
  14461. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  14462. - ;;
  14463. - *)
  14464. - archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  14465. - ;;
  14466. - esac
  14467. - fi
  14468. - if test "$with_gnu_ld" = no; then
  14469. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  14470. - hardcode_libdir_separator_GCJ=:
  14471. -
  14472. - case $host_cpu in
  14473. - hppa*64*|ia64*)
  14474. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  14475. - hardcode_direct_GCJ=no
  14476. - hardcode_shlibpath_var_GCJ=no
  14477. - ;;
  14478. - *)
  14479. - hardcode_direct_GCJ=yes
  14480. - export_dynamic_flag_spec_GCJ='${wl}-E'
  14481. -
  14482. - # hardcode_minus_L: Not really in the search PATH,
  14483. - # but as the default location of the library.
  14484. - hardcode_minus_L_GCJ=yes
  14485. - ;;
  14486. - esac
  14487. - fi
  14488. - ;;
  14489. -
  14490. - irix5* | irix6* | nonstopux*)
  14491. - if test "$GCC" = yes; then
  14492. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14493. - else
  14494. - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14495. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  14496. - fi
  14497. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14498. - hardcode_libdir_separator_GCJ=:
  14499. - link_all_deplibs_GCJ=yes
  14500. - ;;
  14501. -
  14502. - netbsd*)
  14503. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14504. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  14505. - else
  14506. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14507. - fi
  14508. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14509. - hardcode_direct_GCJ=yes
  14510. - hardcode_shlibpath_var_GCJ=no
  14511. - ;;
  14512. -
  14513. - newsos6)
  14514. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14515. - hardcode_direct_GCJ=yes
  14516. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14517. - hardcode_libdir_separator_GCJ=:
  14518. - hardcode_shlibpath_var_GCJ=no
  14519. - ;;
  14520. -
  14521. - openbsd*)
  14522. - if test -f /usr/libexec/ld.so; then
  14523. - hardcode_direct_GCJ=yes
  14524. - hardcode_shlibpath_var_GCJ=no
  14525. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14526. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14527. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14528. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14529. - export_dynamic_flag_spec_GCJ='${wl}-E'
  14530. - else
  14531. - case $host_os in
  14532. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14533. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14534. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14535. - ;;
  14536. - *)
  14537. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14538. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14539. - ;;
  14540. - esac
  14541. - fi
  14542. - else
  14543. - ld_shlibs_GCJ=no
  14544. - fi
  14545. - ;;
  14546. -
  14547. - os2*)
  14548. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14549. - hardcode_minus_L_GCJ=yes
  14550. - allow_undefined_flag_GCJ=unsupported
  14551. - archive_cmds_GCJ='$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'
  14552. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14553. - ;;
  14554. -
  14555. - osf3*)
  14556. - if test "$GCC" = yes; then
  14557. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14558. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14559. - else
  14560. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14561. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14562. - fi
  14563. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14564. - hardcode_libdir_separator_GCJ=:
  14565. - ;;
  14566. -
  14567. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  14568. - if test "$GCC" = yes; then
  14569. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  14570. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  14571. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  14572. - else
  14573. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  14574. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  14575. - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  14576. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  14577. -
  14578. - # Both c and cxx compiler support -rpath directly
  14579. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  14580. - fi
  14581. - hardcode_libdir_separator_GCJ=:
  14582. - ;;
  14583. -
  14584. - solaris*)
  14585. - no_undefined_flag_GCJ=' -z text'
  14586. - if test "$GCC" = yes; then
  14587. - wlarc='${wl}'
  14588. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14589. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14590. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14591. - else
  14592. - wlarc=''
  14593. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14594. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14595. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14596. - fi
  14597. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  14598. - hardcode_shlibpath_var_GCJ=no
  14599. - case $host_os in
  14600. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  14601. - *)
  14602. - # The compiler driver will combine and reorder linker options,
  14603. - # but understands `-z linker_flag'. GCC discards it without `$wl',
  14604. - # but is careful enough not to reorder.
  14605. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  14606. - if test "$GCC" = yes; then
  14607. - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  14608. - else
  14609. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  14610. - fi
  14611. - ;;
  14612. - esac
  14613. - link_all_deplibs_GCJ=yes
  14614. - ;;
  14615. -
  14616. - sunos4*)
  14617. - if test "x$host_vendor" = xsequent; then
  14618. - # Use $CC to link under sequent, because it throws in some extra .o
  14619. - # files that make .init and .fini sections work.
  14620. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14621. - else
  14622. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14623. - fi
  14624. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14625. - hardcode_direct_GCJ=yes
  14626. - hardcode_minus_L_GCJ=yes
  14627. - hardcode_shlibpath_var_GCJ=no
  14628. - ;;
  14629. -
  14630. - sysv4)
  14631. - case $host_vendor in
  14632. - sni)
  14633. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14634. - hardcode_direct_GCJ=yes # is this really true???
  14635. - ;;
  14636. - siemens)
  14637. - ## LD is ld it makes a PLAMLIB
  14638. - ## CC just makes a GrossModule.
  14639. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14640. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  14641. - hardcode_direct_GCJ=no
  14642. - ;;
  14643. - motorola)
  14644. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14645. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  14646. - ;;
  14647. - esac
  14648. - runpath_var='LD_RUN_PATH'
  14649. - hardcode_shlibpath_var_GCJ=no
  14650. - ;;
  14651. -
  14652. - sysv4.3*)
  14653. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14654. - hardcode_shlibpath_var_GCJ=no
  14655. - export_dynamic_flag_spec_GCJ='-Bexport'
  14656. - ;;
  14657. -
  14658. - sysv4*MP*)
  14659. - if test -d /usr/nec; then
  14660. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14661. - hardcode_shlibpath_var_GCJ=no
  14662. - runpath_var=LD_RUN_PATH
  14663. - hardcode_runpath_var=yes
  14664. - ld_shlibs_GCJ=yes
  14665. - fi
  14666. - ;;
  14667. -
  14668. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14669. - no_undefined_flag_GCJ='${wl}-z,text'
  14670. - archive_cmds_need_lc_GCJ=no
  14671. - hardcode_shlibpath_var_GCJ=no
  14672. - runpath_var='LD_RUN_PATH'
  14673. -
  14674. - if test "$GCC" = yes; then
  14675. - archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14676. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14677. - else
  14678. - archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14679. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14680. - fi
  14681. - ;;
  14682. -
  14683. - sysv5* | sco3.2v5* | sco5v6*)
  14684. - # Note: We can NOT use -z defs as we might desire, because we do not
  14685. - # link with -lc, and that would cause any symbols used from libc to
  14686. - # always be unresolved, which means just about no library would
  14687. - # ever link correctly. If we're not using GNU ld we use -z text
  14688. - # though, which does catch some bad symbols but isn't as heavy-handed
  14689. - # as -z defs.
  14690. - no_undefined_flag_GCJ='${wl}-z,text'
  14691. - allow_undefined_flag_GCJ='${wl}-z,nodefs'
  14692. - archive_cmds_need_lc_GCJ=no
  14693. - hardcode_shlibpath_var_GCJ=no
  14694. - hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  14695. - hardcode_libdir_separator_GCJ=':'
  14696. - link_all_deplibs_GCJ=yes
  14697. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  14698. - runpath_var='LD_RUN_PATH'
  14699. -
  14700. - if test "$GCC" = yes; then
  14701. - archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14702. - archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14703. - else
  14704. - archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14705. - archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14706. - fi
  14707. - ;;
  14708. -
  14709. - uts4*)
  14710. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14711. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14712. - hardcode_shlibpath_var_GCJ=no
  14713. - ;;
  14714. -
  14715. - *)
  14716. - ld_shlibs_GCJ=no
  14717. - ;;
  14718. - esac
  14719. - fi
  14720. -
  14721. -{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  14722. -$as_echo "$ld_shlibs_GCJ" >&6; }
  14723. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  14724. -
  14725. -#
  14726. -# Do we need to explicitly link libc?
  14727. -#
  14728. -case "x$archive_cmds_need_lc_GCJ" in
  14729. -x|xyes)
  14730. - # Assume -lc should be added
  14731. - archive_cmds_need_lc_GCJ=yes
  14732. -
  14733. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  14734. - case $archive_cmds_GCJ in
  14735. - *'~'*)
  14736. - # FIXME: we may have to deal with multi-command sequences.
  14737. - ;;
  14738. - '$CC '*)
  14739. - # Test whether the compiler implicitly links with -lc since on some
  14740. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14741. - # to ld, don't add -lc before -lgcc.
  14742. - { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14743. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14744. - $rm conftest*
  14745. - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14746. -
  14747. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14748. - (eval $ac_compile) 2>&5
  14749. - ac_status=$?
  14750. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14751. - (exit $ac_status); } 2>conftest.err; then
  14752. - soname=conftest
  14753. - lib=conftest
  14754. - libobjs=conftest.$ac_objext
  14755. - deplibs=
  14756. - wl=$lt_prog_compiler_wl_GCJ
  14757. - pic_flag=$lt_prog_compiler_pic_GCJ
  14758. - compiler_flags=-v
  14759. - linker_flags=-v
  14760. - verstring=
  14761. - output_objdir=.
  14762. - libname=conftest
  14763. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  14764. - allow_undefined_flag_GCJ=
  14765. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14766. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14767. - ac_status=$?
  14768. - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14769. - (exit $ac_status); }
  14770. - then
  14771. - archive_cmds_need_lc_GCJ=no
  14772. - else
  14773. - archive_cmds_need_lc_GCJ=yes
  14774. - fi
  14775. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  14776. - else
  14777. - cat conftest.err 1>&5
  14778. - fi
  14779. - $rm conftest*
  14780. - { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  14781. -$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
  14782. - ;;
  14783. - esac
  14784. - fi
  14785. - ;;
  14786. -esac
  14787. -
  14788. -{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14789. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  14790. -library_names_spec=
  14791. -libname_spec='lib$name'
  14792. -soname_spec=
  14793. -shrext_cmds=".so"
  14794. -postinstall_cmds=
  14795. -postuninstall_cmds=
  14796. -finish_cmds=
  14797. -finish_eval=
  14798. -shlibpath_var=
  14799. -shlibpath_overrides_runpath=unknown
  14800. -version_type=none
  14801. -dynamic_linker="$host_os ld.so"
  14802. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14803. -
  14804. -need_lib_prefix=unknown
  14805. -hardcode_into_libs=no
  14806. -
  14807. -# when you set need_version to no, make sure it does not cause -set_version
  14808. -# flags to be left without arguments
  14809. -need_version=unknown
  14810. -
  14811. -case $host_os in
  14812. -aix3*)
  14813. - version_type=linux
  14814. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14815. - shlibpath_var=LIBPATH
  14816. -
  14817. - # AIX 3 has no versioning support, so we append a major version to the name.
  14818. - soname_spec='${libname}${release}${shared_ext}$major'
  14819. - ;;
  14820. -
  14821. -aix[4-9]*)
  14822. - version_type=linux
  14823. - need_lib_prefix=no
  14824. - need_version=no
  14825. - hardcode_into_libs=yes
  14826. - if test "$host_cpu" = ia64; then
  14827. - # AIX 5 supports IA64
  14828. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14829. - shlibpath_var=LD_LIBRARY_PATH
  14830. - else
  14831. - # With GCC up to 2.95.x, collect2 would create an import file
  14832. - # for dependence libraries. The import file would start with
  14833. - # the line `#! .'. This would cause the generated library to
  14834. - # depend on `.', always an invalid library. This was fixed in
  14835. - # development snapshots of GCC prior to 3.0.
  14836. - case $host_os in
  14837. - aix4 | aix4.[01] | aix4.[01].*)
  14838. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14839. - echo ' yes '
  14840. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14841. - :
  14842. - else
  14843. - can_build_shared=no
  14844. - fi
  14845. - ;;
  14846. - esac
  14847. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14848. - # soname into executable. Probably we can add versioning support to
  14849. - # collect2, so additional links can be useful in future.
  14850. - if test "$aix_use_runtimelinking" = yes; then
  14851. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14852. - # instead of lib<name>.a to let people know that these are not
  14853. - # typical AIX shared libraries.
  14854. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14855. - else
  14856. - # We preserve .a as extension for shared libraries through AIX4.2
  14857. - # and later when we are not doing run time linking.
  14858. - library_names_spec='${libname}${release}.a $libname.a'
  14859. - soname_spec='${libname}${release}${shared_ext}$major'
  14860. + aix3*)
  14861. + test "$enable_shared" = yes && enable_static=no
  14862. + if test -n "$RANLIB"; then
  14863. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  14864. + postinstall_cmds='$RANLIB $lib'
  14865. fi
  14866. - shlibpath_var=LIBPATH
  14867. - fi
  14868. - ;;
  14869. -
  14870. -amigaos*)
  14871. - library_names_spec='$libname.ixlibrary $libname.a'
  14872. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14873. - 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'
  14874. - ;;
  14875. -
  14876. -beos*)
  14877. - library_names_spec='${libname}${shared_ext}'
  14878. - dynamic_linker="$host_os ld.so"
  14879. - shlibpath_var=LIBRARY_PATH
  14880. - ;;
  14881. -
  14882. -bsdi[45]*)
  14883. - version_type=linux
  14884. - need_version=no
  14885. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14886. - soname_spec='${libname}${release}${shared_ext}$major'
  14887. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14888. - shlibpath_var=LD_LIBRARY_PATH
  14889. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14890. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14891. - # the default ld.so.conf also contains /usr/contrib/lib and
  14892. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14893. - # libtool to hard-code these into programs
  14894. - ;;
  14895. -
  14896. -cygwin* | mingw* | pw32*)
  14897. - version_type=windows
  14898. - shrext_cmds=".dll"
  14899. - need_version=no
  14900. - need_lib_prefix=no
  14901. -
  14902. - case $GCC,$host_os in
  14903. - yes,cygwin* | yes,mingw* | yes,pw32*)
  14904. - library_names_spec='$libname.dll.a'
  14905. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14906. - postinstall_cmds='base_file=`basename \${file}`~
  14907. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14908. - dldir=$destdir/`dirname \$dlpath`~
  14909. - test -d \$dldir || mkdir -p \$dldir~
  14910. - $install_prog $dir/$dlname \$dldir/$dlname~
  14911. - chmod a+x \$dldir/$dlname'
  14912. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14913. - dlpath=$dir/\$dldll~
  14914. - $rm \$dlpath'
  14915. - shlibpath_overrides_runpath=yes
  14916. -
  14917. - case $host_os in
  14918. - cygwin*)
  14919. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14920. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14921. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14922. - ;;
  14923. - mingw*)
  14924. - # MinGW DLLs use traditional 'lib' prefix
  14925. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14926. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14927. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14928. - # It is most probably a Windows format PATH printed by
  14929. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14930. - # path with ; separators, and with drive letters. We can handle the
  14931. - # drive letters (cygwin fileutils understands them), so leave them,
  14932. - # especially as we might pass files found there to a mingw objdump,
  14933. - # which wouldn't understand a cygwinified path. Ahh.
  14934. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14935. - else
  14936. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14937. - fi
  14938. - ;;
  14939. - pw32*)
  14940. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  14941. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14942. - ;;
  14943. - esac
  14944. - ;;
  14945. -
  14946. - *)
  14947. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14948. - ;;
  14949. - esac
  14950. - dynamic_linker='Win32 ld.exe'
  14951. - # FIXME: first we should search . and the directory the executable is in
  14952. - shlibpath_var=PATH
  14953. - ;;
  14954. -
  14955. -darwin* | rhapsody*)
  14956. - dynamic_linker="$host_os dyld"
  14957. - version_type=darwin
  14958. - need_lib_prefix=no
  14959. - need_version=no
  14960. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14961. - soname_spec='${libname}${release}${major}$shared_ext'
  14962. - shlibpath_overrides_runpath=yes
  14963. - shlibpath_var=DYLD_LIBRARY_PATH
  14964. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14965. -
  14966. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14967. - ;;
  14968. -
  14969. -dgux*)
  14970. - version_type=linux
  14971. - need_lib_prefix=no
  14972. - need_version=no
  14973. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14974. - soname_spec='${libname}${release}${shared_ext}$major'
  14975. - shlibpath_var=LD_LIBRARY_PATH
  14976. - ;;
  14977. -
  14978. -freebsd1*)
  14979. - dynamic_linker=no
  14980. - ;;
  14981. -
  14982. -freebsd* | dragonfly*)
  14983. - # DragonFly does not have aout. When/if they implement a new
  14984. - # versioning mechanism, adjust this.
  14985. - if test -x /usr/bin/objformat; then
  14986. - objformat=`/usr/bin/objformat`
  14987. - else
  14988. - case $host_os in
  14989. - freebsd[123]*) objformat=aout ;;
  14990. - *) objformat=elf ;;
  14991. - esac
  14992. - fi
  14993. - version_type=freebsd-$objformat
  14994. - case $version_type in
  14995. - freebsd-elf*)
  14996. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14997. - need_version=no
  14998. - need_lib_prefix=no
  14999. - ;;
  15000. - freebsd-*)
  15001. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15002. - need_version=yes
  15003. - ;;
  15004. - esac
  15005. - shlibpath_var=LD_LIBRARY_PATH
  15006. - case $host_os in
  15007. - freebsd2*)
  15008. - shlibpath_overrides_runpath=yes
  15009. - ;;
  15010. - freebsd3.[01]* | freebsdelf3.[01]*)
  15011. - shlibpath_overrides_runpath=yes
  15012. - hardcode_into_libs=yes
  15013. - ;;
  15014. - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15015. - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15016. - shlibpath_overrides_runpath=no
  15017. - hardcode_into_libs=yes
  15018. - ;;
  15019. - *) # from 4.6 on, and DragonFly
  15020. - shlibpath_overrides_runpath=yes
  15021. - hardcode_into_libs=yes
  15022. ;;
  15023. - esac
  15024. - ;;
  15025. -gnu*)
  15026. - version_type=linux
  15027. - need_lib_prefix=no
  15028. - need_version=no
  15029. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15030. - soname_spec='${libname}${release}${shared_ext}$major'
  15031. - shlibpath_var=LD_LIBRARY_PATH
  15032. - hardcode_into_libs=yes
  15033. - ;;
  15034. -
  15035. -hpux9* | hpux10* | hpux11*)
  15036. - # Give a soname corresponding to the major version so that dld.sl refuses to
  15037. - # link against other versions.
  15038. - version_type=sunos
  15039. - need_lib_prefix=no
  15040. - need_version=no
  15041. - case $host_cpu in
  15042. - ia64*)
  15043. - shrext_cmds='.so'
  15044. - hardcode_into_libs=yes
  15045. - dynamic_linker="$host_os dld.so"
  15046. - shlibpath_var=LD_LIBRARY_PATH
  15047. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15048. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15049. - soname_spec='${libname}${release}${shared_ext}$major'
  15050. - if test "X$HPUX_IA64_MODE" = X32; then
  15051. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15052. - else
  15053. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15054. + aix[4-9]*)
  15055. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  15056. + test "$enable_shared" = yes && enable_static=no
  15057. fi
  15058. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15059. - ;;
  15060. - hppa*64*)
  15061. - shrext_cmds='.sl'
  15062. - hardcode_into_libs=yes
  15063. - dynamic_linker="$host_os dld.sl"
  15064. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15065. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15066. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15067. - soname_spec='${libname}${release}${shared_ext}$major'
  15068. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15069. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15070. - ;;
  15071. - *)
  15072. - shrext_cmds='.sl'
  15073. - dynamic_linker="$host_os dld.sl"
  15074. - shlibpath_var=SHLIB_PATH
  15075. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15076. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15077. - soname_spec='${libname}${release}${shared_ext}$major'
  15078. - ;;
  15079. - esac
  15080. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15081. - postinstall_cmds='chmod 555 $lib'
  15082. - ;;
  15083. -
  15084. -interix[3-9]*)
  15085. - version_type=linux
  15086. - need_lib_prefix=no
  15087. - need_version=no
  15088. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15089. - soname_spec='${libname}${release}${shared_ext}$major'
  15090. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15091. - shlibpath_var=LD_LIBRARY_PATH
  15092. - shlibpath_overrides_runpath=no
  15093. - hardcode_into_libs=yes
  15094. - ;;
  15095. -
  15096. -irix5* | irix6* | nonstopux*)
  15097. - case $host_os in
  15098. - nonstopux*) version_type=nonstopux ;;
  15099. - *)
  15100. - if test "$lt_cv_prog_gnu_ld" = yes; then
  15101. - version_type=linux
  15102. - else
  15103. - version_type=irix
  15104. - fi ;;
  15105. - esac
  15106. - need_lib_prefix=no
  15107. - need_version=no
  15108. - soname_spec='${libname}${release}${shared_ext}$major'
  15109. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15110. - case $host_os in
  15111. - irix5* | nonstopux*)
  15112. - libsuff= shlibsuff=
  15113. - ;;
  15114. - *)
  15115. - case $LD in # libtool.m4 will add one of these switches to LD
  15116. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15117. - libsuff= shlibsuff= libmagic=32-bit;;
  15118. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15119. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  15120. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15121. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15122. - *) libsuff= shlibsuff= libmagic=never-match;;
  15123. - esac
  15124. - ;;
  15125. - esac
  15126. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15127. - shlibpath_overrides_runpath=no
  15128. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15129. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15130. - hardcode_into_libs=yes
  15131. - ;;
  15132. -
  15133. -# No shared lib support for Linux oldld, aout, or coff.
  15134. -linux*oldld* | linux*aout* | linux*coff*)
  15135. - dynamic_linker=no
  15136. - ;;
  15137. -
  15138. -# This must be Linux ELF.
  15139. -linux* | k*bsd*-gnu)
  15140. - version_type=linux
  15141. - need_lib_prefix=no
  15142. - need_version=no
  15143. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15144. - soname_spec='${libname}${release}${shared_ext}$major'
  15145. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15146. - shlibpath_var=LD_LIBRARY_PATH
  15147. - shlibpath_overrides_runpath=no
  15148. - # This implies no fast_install, which is unacceptable.
  15149. - # Some rework will be needed to allow for fast_install
  15150. - # before this can be enabled.
  15151. - hardcode_into_libs=yes
  15152. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15153. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15154. -
  15155. - # Append ld.so.conf contents to the search path
  15156. - if test -f /etc/ld.so.conf; then
  15157. - 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' ' '`
  15158. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15159. - fi
  15160. -
  15161. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  15162. - # powerpc, because MkLinux only supported shared libraries with the
  15163. - # GNU dynamic linker. Since this was broken with cross compilers,
  15164. - # most powerpc-linux boxes support dynamic linking these days and
  15165. - # people can always --disable-shared, the test was removed, and we
  15166. - # assume the GNU/Linux dynamic linker is in use.
  15167. - dynamic_linker='GNU/Linux ld.so'
  15168. - ;;
  15169. -
  15170. -netbsd*)
  15171. - version_type=sunos
  15172. - need_lib_prefix=no
  15173. - need_version=no
  15174. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15175. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15176. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15177. - dynamic_linker='NetBSD (a.out) ld.so'
  15178. - else
  15179. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15180. - soname_spec='${libname}${release}${shared_ext}$major'
  15181. - dynamic_linker='NetBSD ld.elf_so'
  15182. - fi
  15183. - shlibpath_var=LD_LIBRARY_PATH
  15184. - shlibpath_overrides_runpath=yes
  15185. - hardcode_into_libs=yes
  15186. - ;;
  15187. -
  15188. -newsos6)
  15189. - version_type=linux
  15190. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15191. - shlibpath_var=LD_LIBRARY_PATH
  15192. - shlibpath_overrides_runpath=yes
  15193. - ;;
  15194. -
  15195. -nto-qnx*)
  15196. - version_type=linux
  15197. - need_lib_prefix=no
  15198. - need_version=no
  15199. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15200. - soname_spec='${libname}${release}${shared_ext}$major'
  15201. - shlibpath_var=LD_LIBRARY_PATH
  15202. - shlibpath_overrides_runpath=yes
  15203. - ;;
  15204. -
  15205. -openbsd*)
  15206. - version_type=sunos
  15207. - sys_lib_dlsearch_path_spec="/usr/lib"
  15208. - need_lib_prefix=no
  15209. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15210. - case $host_os in
  15211. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15212. - *) need_version=no ;;
  15213. - esac
  15214. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15215. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15216. - shlibpath_var=LD_LIBRARY_PATH
  15217. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15218. - case $host_os in
  15219. - openbsd2.[89] | openbsd2.[89].*)
  15220. - shlibpath_overrides_runpath=no
  15221. - ;;
  15222. - *)
  15223. - shlibpath_overrides_runpath=yes
  15224. - ;;
  15225. - esac
  15226. - else
  15227. - shlibpath_overrides_runpath=yes
  15228. - fi
  15229. - ;;
  15230. -
  15231. -os2*)
  15232. - libname_spec='$name'
  15233. - shrext_cmds=".dll"
  15234. - need_lib_prefix=no
  15235. - library_names_spec='$libname${shared_ext} $libname.a'
  15236. - dynamic_linker='OS/2 ld.exe'
  15237. - shlibpath_var=LIBPATH
  15238. - ;;
  15239. -
  15240. -osf3* | osf4* | osf5*)
  15241. - version_type=osf
  15242. - need_lib_prefix=no
  15243. - need_version=no
  15244. - soname_spec='${libname}${release}${shared_ext}$major'
  15245. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15246. - shlibpath_var=LD_LIBRARY_PATH
  15247. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15248. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15249. - ;;
  15250. -
  15251. -rdos*)
  15252. - dynamic_linker=no
  15253. - ;;
  15254. -
  15255. -solaris*)
  15256. - version_type=linux
  15257. - need_lib_prefix=no
  15258. - need_version=no
  15259. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15260. - soname_spec='${libname}${release}${shared_ext}$major'
  15261. - shlibpath_var=LD_LIBRARY_PATH
  15262. - shlibpath_overrides_runpath=yes
  15263. - hardcode_into_libs=yes
  15264. - # ldd complains unless libraries are executable
  15265. - postinstall_cmds='chmod +x $lib'
  15266. - ;;
  15267. -
  15268. -sunos4*)
  15269. - version_type=sunos
  15270. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15271. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15272. - shlibpath_var=LD_LIBRARY_PATH
  15273. - shlibpath_overrides_runpath=yes
  15274. - if test "$with_gnu_ld" = yes; then
  15275. - need_lib_prefix=no
  15276. - fi
  15277. - need_version=yes
  15278. - ;;
  15279. -
  15280. -sysv4 | sysv4.3*)
  15281. - version_type=linux
  15282. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15283. - soname_spec='${libname}${release}${shared_ext}$major'
  15284. - shlibpath_var=LD_LIBRARY_PATH
  15285. - case $host_vendor in
  15286. - sni)
  15287. - shlibpath_overrides_runpath=no
  15288. - need_lib_prefix=no
  15289. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  15290. - runpath_var=LD_RUN_PATH
  15291. - ;;
  15292. - siemens)
  15293. - need_lib_prefix=no
  15294. - ;;
  15295. - motorola)
  15296. - need_lib_prefix=no
  15297. - need_version=no
  15298. - shlibpath_overrides_runpath=no
  15299. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15300. - ;;
  15301. - esac
  15302. - ;;
  15303. -
  15304. -sysv4*MP*)
  15305. - if test -d /usr/nec ;then
  15306. - version_type=linux
  15307. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15308. - soname_spec='$libname${shared_ext}.$major'
  15309. - shlibpath_var=LD_LIBRARY_PATH
  15310. - fi
  15311. - ;;
  15312. -
  15313. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15314. - version_type=freebsd-elf
  15315. - need_lib_prefix=no
  15316. - need_version=no
  15317. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15318. - soname_spec='${libname}${release}${shared_ext}$major'
  15319. - shlibpath_var=LD_LIBRARY_PATH
  15320. - hardcode_into_libs=yes
  15321. - if test "$with_gnu_ld" = yes; then
  15322. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15323. - shlibpath_overrides_runpath=no
  15324. - else
  15325. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15326. - shlibpath_overrides_runpath=yes
  15327. - case $host_os in
  15328. - sco3.2v5*)
  15329. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15330. - ;;
  15331. - esac
  15332. - fi
  15333. - sys_lib_dlsearch_path_spec='/usr/lib'
  15334. - ;;
  15335. -
  15336. -uts4*)
  15337. - version_type=linux
  15338. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15339. - soname_spec='${libname}${release}${shared_ext}$major'
  15340. - shlibpath_var=LD_LIBRARY_PATH
  15341. - ;;
  15342. -
  15343. -*)
  15344. - dynamic_linker=no
  15345. - ;;
  15346. -esac
  15347. -{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15348. -$as_echo "$dynamic_linker" >&6; }
  15349. -test "$dynamic_linker" = no && can_build_shared=no
  15350. -
  15351. -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  15352. - $as_echo_n "(cached) " >&6
  15353. -else
  15354. - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  15355. -fi
  15356. -
  15357. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  15358. -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  15359. - $as_echo_n "(cached) " >&6
  15360. -else
  15361. - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  15362. -fi
  15363. -
  15364. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  15365. -
  15366. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15367. -if test "$GCC" = yes; then
  15368. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15369. -fi
  15370. -
  15371. -{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15372. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15373. -hardcode_action_GCJ=
  15374. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15375. - test -n "$runpath_var_GCJ" || \
  15376. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  15377. -
  15378. - # We can hardcode non-existant directories.
  15379. - if test "$hardcode_direct_GCJ" != no &&
  15380. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15381. - # have to relink, otherwise we might link with an installed library
  15382. - # when we should be linking with a yet-to-be-installed one
  15383. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15384. - test "$hardcode_minus_L_GCJ" != no; then
  15385. - # Linking always hardcodes the temporary library directory.
  15386. - hardcode_action_GCJ=relink
  15387. - else
  15388. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15389. - hardcode_action_GCJ=immediate
  15390. - fi
  15391. -else
  15392. - # We cannot hardcode anything, or else we can only hardcode existing
  15393. - # directories.
  15394. - hardcode_action_GCJ=unsupported
  15395. -fi
  15396. -{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15397. -$as_echo "$hardcode_action_GCJ" >&6; }
  15398. -
  15399. -if test "$hardcode_action_GCJ" = relink; then
  15400. - # Fast installation is not supported
  15401. - enable_fast_install=no
  15402. -elif test "$shlibpath_overrides_runpath" = yes ||
  15403. - test "$enable_shared" = no; then
  15404. - # Fast installation is not necessary
  15405. - enable_fast_install=needless
  15406. -fi
  15407. -
  15408. -
  15409. -# The else clause should only fire when bootstrapping the
  15410. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  15411. -# with your package, and you will get complaints that there are
  15412. -# no rules to generate ltmain.sh.
  15413. -if test -f "$ltmain"; then
  15414. - # See if we are running on zsh, and set the options which allow our commands through
  15415. - # without removal of \ escapes.
  15416. - if test -n "${ZSH_VERSION+set}" ; then
  15417. - setopt NO_GLOB_SUBST
  15418. - fi
  15419. - # Now quote all the things that may contain metacharacters while being
  15420. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  15421. - # variables and quote the copies for generation of the libtool script.
  15422. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15423. - SED SHELL STRIP \
  15424. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15425. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15426. - deplibs_check_method reload_flag reload_cmds need_locks \
  15427. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15428. - lt_cv_sys_global_symbol_to_c_name_address \
  15429. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15430. - old_postinstall_cmds old_postuninstall_cmds \
  15431. - compiler_GCJ \
  15432. - CC_GCJ \
  15433. - LD_GCJ \
  15434. - lt_prog_compiler_wl_GCJ \
  15435. - lt_prog_compiler_pic_GCJ \
  15436. - lt_prog_compiler_static_GCJ \
  15437. - lt_prog_compiler_no_builtin_flag_GCJ \
  15438. - export_dynamic_flag_spec_GCJ \
  15439. - thread_safe_flag_spec_GCJ \
  15440. - whole_archive_flag_spec_GCJ \
  15441. - enable_shared_with_static_runtimes_GCJ \
  15442. - old_archive_cmds_GCJ \
  15443. - old_archive_from_new_cmds_GCJ \
  15444. - predep_objects_GCJ \
  15445. - postdep_objects_GCJ \
  15446. - predeps_GCJ \
  15447. - postdeps_GCJ \
  15448. - compiler_lib_search_path_GCJ \
  15449. - compiler_lib_search_dirs_GCJ \
  15450. - archive_cmds_GCJ \
  15451. - archive_expsym_cmds_GCJ \
  15452. - postinstall_cmds_GCJ \
  15453. - postuninstall_cmds_GCJ \
  15454. - old_archive_from_expsyms_cmds_GCJ \
  15455. - allow_undefined_flag_GCJ \
  15456. - no_undefined_flag_GCJ \
  15457. - export_symbols_cmds_GCJ \
  15458. - hardcode_libdir_flag_spec_GCJ \
  15459. - hardcode_libdir_flag_spec_ld_GCJ \
  15460. - hardcode_libdir_separator_GCJ \
  15461. - hardcode_automatic_GCJ \
  15462. - module_cmds_GCJ \
  15463. - module_expsym_cmds_GCJ \
  15464. - lt_cv_prog_compiler_c_o_GCJ \
  15465. - fix_srcfile_path_GCJ \
  15466. - exclude_expsyms_GCJ \
  15467. - include_expsyms_GCJ; do
  15468. -
  15469. - case $var in
  15470. - old_archive_cmds_GCJ | \
  15471. - old_archive_from_new_cmds_GCJ | \
  15472. - archive_cmds_GCJ | \
  15473. - archive_expsym_cmds_GCJ | \
  15474. - module_cmds_GCJ | \
  15475. - module_expsym_cmds_GCJ | \
  15476. - old_archive_from_expsyms_cmds_GCJ | \
  15477. - export_symbols_cmds_GCJ | \
  15478. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15479. - postinstall_cmds | postuninstall_cmds | \
  15480. - old_postinstall_cmds | old_postuninstall_cmds | \
  15481. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15482. - # Double-quote double-evaled strings.
  15483. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15484. - ;;
  15485. - *)
  15486. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15487. - ;;
  15488. - esac
  15489. - done
  15490. -
  15491. - case $lt_echo in
  15492. - *'\$0 --fallback-echo"')
  15493. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15494. ;;
  15495. esac
  15496. + { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  15497. +$as_echo "$enable_shared" >&6; }
  15498. -cfgfile="$ofile"
  15499. -
  15500. - cat <<__EOF__ >> "$cfgfile"
  15501. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15502. -
  15503. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15504. -
  15505. -# Shell to use when invoking shell scripts.
  15506. -SHELL=$lt_SHELL
  15507. -
  15508. -# Whether or not to build shared libraries.
  15509. -build_libtool_libs=$enable_shared
  15510. -
  15511. -# Whether or not to build static libraries.
  15512. -build_old_libs=$enable_static
  15513. -
  15514. -# Whether or not to add -lc for building shared libraries.
  15515. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  15516. -
  15517. -# Whether or not to disallow shared libs when runtime libs are static
  15518. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  15519. -
  15520. -# Whether or not to optimize for fast installation.
  15521. -fast_install=$enable_fast_install
  15522. -
  15523. -# The host system.
  15524. -host_alias=$host_alias
  15525. -host=$host
  15526. -host_os=$host_os
  15527. -
  15528. -# The build system.
  15529. -build_alias=$build_alias
  15530. -build=$build
  15531. -build_os=$build_os
  15532. -
  15533. -# An echo program that does not interpret backslashes.
  15534. -echo=$lt_echo
  15535. -
  15536. -# The archiver.
  15537. -AR=$lt_AR
  15538. -AR_FLAGS=$lt_AR_FLAGS
  15539. -
  15540. -# A C compiler.
  15541. -LTCC=$lt_LTCC
  15542. -
  15543. -# LTCC compiler flags.
  15544. -LTCFLAGS=$lt_LTCFLAGS
  15545. -
  15546. -# A language-specific compiler.
  15547. -CC=$lt_compiler_GCJ
  15548. -
  15549. -# Is the compiler the GNU C compiler?
  15550. -with_gcc=$GCC_GCJ
  15551. -
  15552. -# An ERE matcher.
  15553. -EGREP=$lt_EGREP
  15554. -
  15555. -# The linker used to build libraries.
  15556. -LD=$lt_LD_GCJ
  15557. -
  15558. -# Whether we need hard or soft links.
  15559. -LN_S=$lt_LN_S
  15560. -
  15561. -# A BSD-compatible nm program.
  15562. -NM=$lt_NM
  15563. -
  15564. -# A symbol stripping program
  15565. -STRIP=$lt_STRIP
  15566. -
  15567. -# Used to examine libraries when file_magic_cmd begins "file"
  15568. -MAGIC_CMD=$MAGIC_CMD
  15569. -
  15570. -# Used on cygwin: DLL creation program.
  15571. -DLLTOOL="$DLLTOOL"
  15572. -
  15573. -# Used on cygwin: object dumper.
  15574. -OBJDUMP="$OBJDUMP"
  15575. -
  15576. -# Used on cygwin: assembler.
  15577. -AS="$AS"
  15578. -
  15579. -# The name of the directory that contains temporary libtool files.
  15580. -objdir=$objdir
  15581. -
  15582. -# How to create reloadable object files.
  15583. -reload_flag=$lt_reload_flag
  15584. -reload_cmds=$lt_reload_cmds
  15585. -
  15586. -# How to pass a linker flag through the compiler.
  15587. -wl=$lt_lt_prog_compiler_wl_GCJ
  15588. -
  15589. -# Object file suffix (normally "o").
  15590. -objext="$ac_objext"
  15591. -
  15592. -# Old archive suffix (normally "a").
  15593. -libext="$libext"
  15594. -
  15595. -# Shared library suffix (normally ".so").
  15596. -shrext_cmds='$shrext_cmds'
  15597. -
  15598. -# Executable file suffix (normally "").
  15599. -exeext="$exeext"
  15600. -
  15601. -# Additional compiler flags for building library objects.
  15602. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  15603. -pic_mode=$pic_mode
  15604. -
  15605. -# What is the maximum length of a command?
  15606. -max_cmd_len=$lt_cv_sys_max_cmd_len
  15607. -
  15608. -# Does compiler simultaneously support -c and -o options?
  15609. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  15610. -
  15611. -# Must we lock files when doing compilation?
  15612. -need_locks=$lt_need_locks
  15613. -
  15614. -# Do we need the lib prefix for modules?
  15615. -need_lib_prefix=$need_lib_prefix
  15616. -
  15617. -# Do we need a version for libraries?
  15618. -need_version=$need_version
  15619. -
  15620. -# Whether dlopen is supported.
  15621. -dlopen_support=$enable_dlopen
  15622. -
  15623. -# Whether dlopen of programs is supported.
  15624. -dlopen_self=$enable_dlopen_self
  15625. -
  15626. -# Whether dlopen of statically linked programs is supported.
  15627. -dlopen_self_static=$enable_dlopen_self_static
  15628. -
  15629. -# Compiler flag to prevent dynamic linking.
  15630. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  15631. -
  15632. -# Compiler flag to turn off builtin functions.
  15633. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  15634. -
  15635. -# Compiler flag to allow reflexive dlopens.
  15636. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  15637. -
  15638. -# Compiler flag to generate shared objects directly from archives.
  15639. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  15640. -
  15641. -# Compiler flag to generate thread-safe objects.
  15642. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  15643. -
  15644. -# Library versioning type.
  15645. -version_type=$version_type
  15646. -
  15647. -# Format of library name prefix.
  15648. -libname_spec=$lt_libname_spec
  15649. -
  15650. -# List of archive names. First name is the real one, the rest are links.
  15651. -# The last name is the one that the linker finds with -lNAME.
  15652. -library_names_spec=$lt_library_names_spec
  15653. -
  15654. -# The coded name of the library, if different from the real name.
  15655. -soname_spec=$lt_soname_spec
  15656. -
  15657. -# Commands used to build and install an old-style archive.
  15658. -RANLIB=$lt_RANLIB
  15659. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  15660. -old_postinstall_cmds=$lt_old_postinstall_cmds
  15661. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15662. -
  15663. -# Create an old-style archive from a shared archive.
  15664. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  15665. -
  15666. -# Create a temporary old-style archive to link instead of a shared archive.
  15667. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  15668. -
  15669. -# Commands used to build and install a shared archive.
  15670. -archive_cmds=$lt_archive_cmds_GCJ
  15671. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  15672. -postinstall_cmds=$lt_postinstall_cmds
  15673. -postuninstall_cmds=$lt_postuninstall_cmds
  15674. -
  15675. -# Commands used to build a loadable module (assumed same as above if empty)
  15676. -module_cmds=$lt_module_cmds_GCJ
  15677. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  15678. -
  15679. -# Commands to strip libraries.
  15680. -old_striplib=$lt_old_striplib
  15681. -striplib=$lt_striplib
  15682. -
  15683. -# Dependencies to place before the objects being linked to create a
  15684. -# shared library.
  15685. -predep_objects=$lt_predep_objects_GCJ
  15686. -
  15687. -# Dependencies to place after the objects being linked to create a
  15688. -# shared library.
  15689. -postdep_objects=$lt_postdep_objects_GCJ
  15690. -
  15691. -# Dependencies to place before the objects being linked to create a
  15692. -# shared library.
  15693. -predeps=$lt_predeps_GCJ
  15694. -
  15695. -# Dependencies to place after the objects being linked to create a
  15696. -# shared library.
  15697. -postdeps=$lt_postdeps_GCJ
  15698. -
  15699. -# The directories searched by this compiler when creating a shared
  15700. -# library
  15701. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  15702. -
  15703. -# The library search path used internally by the compiler when linking
  15704. -# a shared library.
  15705. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  15706. -
  15707. -# Method to check whether dependent libraries are shared objects.
  15708. -deplibs_check_method=$lt_deplibs_check_method
  15709. -
  15710. -# Command to use when deplibs_check_method == file_magic.
  15711. -file_magic_cmd=$lt_file_magic_cmd
  15712. -
  15713. -# Flag that allows shared libraries with undefined symbols to be built.
  15714. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  15715. -
  15716. -# Flag that forces no undefined symbols.
  15717. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  15718. -
  15719. -# Commands used to finish a libtool library installation in a directory.
  15720. -finish_cmds=$lt_finish_cmds
  15721. -
  15722. -# Same as above, but a single script fragment to be evaled but not shown.
  15723. -finish_eval=$lt_finish_eval
  15724. -
  15725. -# Take the output of nm and produce a listing of raw symbols and C names.
  15726. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15727. -
  15728. -# Transform the output of nm in a proper C declaration
  15729. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15730. -
  15731. -# Transform the output of nm in a C name address pair
  15732. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15733. -
  15734. -# This is the shared library runtime path variable.
  15735. -runpath_var=$runpath_var
  15736. -
  15737. -# This is the shared library path variable.
  15738. -shlibpath_var=$shlibpath_var
  15739. -
  15740. -# Is shlibpath searched before the hard-coded library search path?
  15741. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15742. -
  15743. -# How to hardcode a shared library path into an executable.
  15744. -hardcode_action=$hardcode_action_GCJ
  15745. -
  15746. -# Whether we should hardcode library paths into libraries.
  15747. -hardcode_into_libs=$hardcode_into_libs
  15748. -
  15749. -# Flag to hardcode \$libdir into a binary during linking.
  15750. -# This must work even if \$libdir does not exist.
  15751. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  15752. -
  15753. -# If ld is used when linking, flag to hardcode \$libdir into
  15754. -# a binary during linking. This must work even if \$libdir does
  15755. -# not exist.
  15756. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  15757. -
  15758. -# Whether we need a single -rpath flag with a separated argument.
  15759. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  15760. -
  15761. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15762. -# resulting binary.
  15763. -hardcode_direct=$hardcode_direct_GCJ
  15764. -
  15765. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15766. -# resulting binary.
  15767. -hardcode_minus_L=$hardcode_minus_L_GCJ
  15768. -
  15769. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15770. -# the resulting binary.
  15771. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  15772. -
  15773. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  15774. -# and all subsequent libraries and executables linked against it.
  15775. -hardcode_automatic=$hardcode_automatic_GCJ
  15776. -
  15777. -# Variables whose values should be saved in libtool wrapper scripts and
  15778. -# restored at relink time.
  15779. -variables_saved_for_relink="$variables_saved_for_relink"
  15780. -
  15781. -# Whether libtool must link a program against all its dependency libraries.
  15782. -link_all_deplibs=$link_all_deplibs_GCJ
  15783. -
  15784. -# Compile-time system search path for libraries
  15785. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15786. -
  15787. -# Run-time system search path for libraries
  15788. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15789. -
  15790. -# Fix the shell variable \$srcfile for the compiler.
  15791. -fix_srcfile_path=$lt_fix_srcfile_path
  15792. -
  15793. -# Set to yes if exported symbols are required.
  15794. -always_export_symbols=$always_export_symbols_GCJ
  15795. -
  15796. -# The commands to list exported symbols.
  15797. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  15798. -
  15799. -# The commands to extract the exported symbol list from a shared archive.
  15800. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15801. -
  15802. -# Symbols that should not be listed in the preloaded symbols.
  15803. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  15804. -
  15805. -# Symbols that must always be exported.
  15806. -include_expsyms=$lt_include_expsyms_GCJ
  15807. -
  15808. -# ### END LIBTOOL TAG CONFIG: $tagname
  15809. -
  15810. -__EOF__
  15811. -
  15812. -
  15813. -else
  15814. - # If there is no Makefile yet, we rely on a make rule to execute
  15815. - # `config.status --recheck' to rerun these tests and create the
  15816. - # libtool script then.
  15817. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15818. - if test -f "$ltmain_in"; then
  15819. - test -f Makefile && make "$ltmain"
  15820. - fi
  15821. -fi
  15822. -
  15823. -
  15824. -ac_ext=c
  15825. -ac_cpp='$CPP $CPPFLAGS'
  15826. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15827. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15828. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15829. -
  15830. -CC="$lt_save_CC"
  15831. -
  15832. - else
  15833. - tagname=""
  15834. - fi
  15835. - ;;
  15836. -
  15837. - RC)
  15838. -
  15839. -
  15840. -# Source file extension for RC test sources.
  15841. -ac_ext=rc
  15842. -
  15843. -# Object file extension for compiled RC test sources.
  15844. -objext=o
  15845. -objext_RC=$objext
  15846. -
  15847. -# Code to be used in simple compile tests
  15848. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  15849. -
  15850. -# Code to be used in simple link tests
  15851. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  15852. -
  15853. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15854. -
  15855. -# If no C compiler was specified, use CC.
  15856. -LTCC=${LTCC-"$CC"}
  15857. -
  15858. -# If no C compiler flags were specified, use CFLAGS.
  15859. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  15860. -
  15861. -# Allow CC to be a program name with arguments.
  15862. -compiler=$CC
  15863. -
  15864. -
  15865. -# save warnings/boilerplate of simple test code
  15866. -ac_outfile=conftest.$ac_objext
  15867. -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  15868. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15869. -_lt_compiler_boilerplate=`cat conftest.err`
  15870. -$rm conftest*
  15871. -
  15872. -ac_outfile=conftest.$ac_objext
  15873. -echo "$lt_simple_link_test_code" >conftest.$ac_ext
  15874. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15875. -_lt_linker_boilerplate=`cat conftest.err`
  15876. -$rm -r conftest*
  15877. -
  15878. -
  15879. -# Allow CC to be a program name with arguments.
  15880. -lt_save_CC="$CC"
  15881. -CC=${RC-"windres"}
  15882. -compiler=$CC
  15883. -compiler_RC=$CC
  15884. -for cc_temp in $compiler""; do
  15885. - case $cc_temp in
  15886. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15887. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15888. - \-*) ;;
  15889. - *) break;;
  15890. - esac
  15891. -done
  15892. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15893. -
  15894. -lt_cv_prog_compiler_c_o_RC=yes
  15895. -
  15896. -# The else clause should only fire when bootstrapping the
  15897. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  15898. -# with your package, and you will get complaints that there are
  15899. -# no rules to generate ltmain.sh.
  15900. -if test -f "$ltmain"; then
  15901. - # See if we are running on zsh, and set the options which allow our commands through
  15902. - # without removal of \ escapes.
  15903. - if test -n "${ZSH_VERSION+set}" ; then
  15904. - setopt NO_GLOB_SUBST
  15905. - fi
  15906. - # Now quote all the things that may contain metacharacters while being
  15907. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  15908. - # variables and quote the copies for generation of the libtool script.
  15909. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15910. - SED SHELL STRIP \
  15911. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15912. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15913. - deplibs_check_method reload_flag reload_cmds need_locks \
  15914. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15915. - lt_cv_sys_global_symbol_to_c_name_address \
  15916. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15917. - old_postinstall_cmds old_postuninstall_cmds \
  15918. - compiler_RC \
  15919. - CC_RC \
  15920. - LD_RC \
  15921. - lt_prog_compiler_wl_RC \
  15922. - lt_prog_compiler_pic_RC \
  15923. - lt_prog_compiler_static_RC \
  15924. - lt_prog_compiler_no_builtin_flag_RC \
  15925. - export_dynamic_flag_spec_RC \
  15926. - thread_safe_flag_spec_RC \
  15927. - whole_archive_flag_spec_RC \
  15928. - enable_shared_with_static_runtimes_RC \
  15929. - old_archive_cmds_RC \
  15930. - old_archive_from_new_cmds_RC \
  15931. - predep_objects_RC \
  15932. - postdep_objects_RC \
  15933. - predeps_RC \
  15934. - postdeps_RC \
  15935. - compiler_lib_search_path_RC \
  15936. - compiler_lib_search_dirs_RC \
  15937. - archive_cmds_RC \
  15938. - archive_expsym_cmds_RC \
  15939. - postinstall_cmds_RC \
  15940. - postuninstall_cmds_RC \
  15941. - old_archive_from_expsyms_cmds_RC \
  15942. - allow_undefined_flag_RC \
  15943. - no_undefined_flag_RC \
  15944. - export_symbols_cmds_RC \
  15945. - hardcode_libdir_flag_spec_RC \
  15946. - hardcode_libdir_flag_spec_ld_RC \
  15947. - hardcode_libdir_separator_RC \
  15948. - hardcode_automatic_RC \
  15949. - module_cmds_RC \
  15950. - module_expsym_cmds_RC \
  15951. - lt_cv_prog_compiler_c_o_RC \
  15952. - fix_srcfile_path_RC \
  15953. - exclude_expsyms_RC \
  15954. - include_expsyms_RC; do
  15955. -
  15956. - case $var in
  15957. - old_archive_cmds_RC | \
  15958. - old_archive_from_new_cmds_RC | \
  15959. - archive_cmds_RC | \
  15960. - archive_expsym_cmds_RC | \
  15961. - module_cmds_RC | \
  15962. - module_expsym_cmds_RC | \
  15963. - old_archive_from_expsyms_cmds_RC | \
  15964. - export_symbols_cmds_RC | \
  15965. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15966. - postinstall_cmds | postuninstall_cmds | \
  15967. - old_postinstall_cmds | old_postuninstall_cmds | \
  15968. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15969. - # Double-quote double-evaled strings.
  15970. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15971. - ;;
  15972. - *)
  15973. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15974. - ;;
  15975. - esac
  15976. - done
  15977. -
  15978. - case $lt_echo in
  15979. - *'\$0 --fallback-echo"')
  15980. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15981. - ;;
  15982. - esac
  15983. -
  15984. -cfgfile="$ofile"
  15985. -
  15986. - cat <<__EOF__ >> "$cfgfile"
  15987. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15988. -
  15989. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15990. -
  15991. -# Shell to use when invoking shell scripts.
  15992. -SHELL=$lt_SHELL
  15993. -
  15994. -# Whether or not to build shared libraries.
  15995. -build_libtool_libs=$enable_shared
  15996. -
  15997. -# Whether or not to build static libraries.
  15998. -build_old_libs=$enable_static
  15999. -
  16000. -# Whether or not to add -lc for building shared libraries.
  16001. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  16002. -
  16003. -# Whether or not to disallow shared libs when runtime libs are static
  16004. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16005. -
  16006. -# Whether or not to optimize for fast installation.
  16007. -fast_install=$enable_fast_install
  16008. -
  16009. -# The host system.
  16010. -host_alias=$host_alias
  16011. -host=$host
  16012. -host_os=$host_os
  16013. -
  16014. -# The build system.
  16015. -build_alias=$build_alias
  16016. -build=$build
  16017. -build_os=$build_os
  16018. -
  16019. -# An echo program that does not interpret backslashes.
  16020. -echo=$lt_echo
  16021. -
  16022. -# The archiver.
  16023. -AR=$lt_AR
  16024. -AR_FLAGS=$lt_AR_FLAGS
  16025. -
  16026. -# A C compiler.
  16027. -LTCC=$lt_LTCC
  16028. -
  16029. -# LTCC compiler flags.
  16030. -LTCFLAGS=$lt_LTCFLAGS
  16031. -
  16032. -# A language-specific compiler.
  16033. -CC=$lt_compiler_RC
  16034. -
  16035. -# Is the compiler the GNU C compiler?
  16036. -with_gcc=$GCC_RC
  16037. -
  16038. -# An ERE matcher.
  16039. -EGREP=$lt_EGREP
  16040. -
  16041. -# The linker used to build libraries.
  16042. -LD=$lt_LD_RC
  16043. -
  16044. -# Whether we need hard or soft links.
  16045. -LN_S=$lt_LN_S
  16046. -
  16047. -# A BSD-compatible nm program.
  16048. -NM=$lt_NM
  16049. -
  16050. -# A symbol stripping program
  16051. -STRIP=$lt_STRIP
  16052. -
  16053. -# Used to examine libraries when file_magic_cmd begins "file"
  16054. -MAGIC_CMD=$MAGIC_CMD
  16055. -
  16056. -# Used on cygwin: DLL creation program.
  16057. -DLLTOOL="$DLLTOOL"
  16058. -
  16059. -# Used on cygwin: object dumper.
  16060. -OBJDUMP="$OBJDUMP"
  16061. -
  16062. -# Used on cygwin: assembler.
  16063. -AS="$AS"
  16064. -
  16065. -# The name of the directory that contains temporary libtool files.
  16066. -objdir=$objdir
  16067. -
  16068. -# How to create reloadable object files.
  16069. -reload_flag=$lt_reload_flag
  16070. -reload_cmds=$lt_reload_cmds
  16071. -
  16072. -# How to pass a linker flag through the compiler.
  16073. -wl=$lt_lt_prog_compiler_wl_RC
  16074. -
  16075. -# Object file suffix (normally "o").
  16076. -objext="$ac_objext"
  16077. -
  16078. -# Old archive suffix (normally "a").
  16079. -libext="$libext"
  16080. -
  16081. -# Shared library suffix (normally ".so").
  16082. -shrext_cmds='$shrext_cmds'
  16083. -
  16084. -# Executable file suffix (normally "").
  16085. -exeext="$exeext"
  16086. -
  16087. -# Additional compiler flags for building library objects.
  16088. -pic_flag=$lt_lt_prog_compiler_pic_RC
  16089. -pic_mode=$pic_mode
  16090. -
  16091. -# What is the maximum length of a command?
  16092. -max_cmd_len=$lt_cv_sys_max_cmd_len
  16093. -
  16094. -# Does compiler simultaneously support -c and -o options?
  16095. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16096. -
  16097. -# Must we lock files when doing compilation?
  16098. -need_locks=$lt_need_locks
  16099. -
  16100. -# Do we need the lib prefix for modules?
  16101. -need_lib_prefix=$need_lib_prefix
  16102. -
  16103. -# Do we need a version for libraries?
  16104. -need_version=$need_version
  16105. -
  16106. -# Whether dlopen is supported.
  16107. -dlopen_support=$enable_dlopen
  16108. -
  16109. -# Whether dlopen of programs is supported.
  16110. -dlopen_self=$enable_dlopen_self
  16111. -
  16112. -# Whether dlopen of statically linked programs is supported.
  16113. -dlopen_self_static=$enable_dlopen_self_static
  16114. -
  16115. -# Compiler flag to prevent dynamic linking.
  16116. -link_static_flag=$lt_lt_prog_compiler_static_RC
  16117. -
  16118. -# Compiler flag to turn off builtin functions.
  16119. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16120. -
  16121. -# Compiler flag to allow reflexive dlopens.
  16122. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16123. -
  16124. -# Compiler flag to generate shared objects directly from archives.
  16125. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16126. -
  16127. -# Compiler flag to generate thread-safe objects.
  16128. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16129. -
  16130. -# Library versioning type.
  16131. -version_type=$version_type
  16132. -
  16133. -# Format of library name prefix.
  16134. -libname_spec=$lt_libname_spec
  16135. -
  16136. -# List of archive names. First name is the real one, the rest are links.
  16137. -# The last name is the one that the linker finds with -lNAME.
  16138. -library_names_spec=$lt_library_names_spec
  16139. -
  16140. -# The coded name of the library, if different from the real name.
  16141. -soname_spec=$lt_soname_spec
  16142. -
  16143. -# Commands used to build and install an old-style archive.
  16144. -RANLIB=$lt_RANLIB
  16145. -old_archive_cmds=$lt_old_archive_cmds_RC
  16146. -old_postinstall_cmds=$lt_old_postinstall_cmds
  16147. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16148. -
  16149. -# Create an old-style archive from a shared archive.
  16150. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16151. -
  16152. -# Create a temporary old-style archive to link instead of a shared archive.
  16153. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16154. -
  16155. -# Commands used to build and install a shared archive.
  16156. -archive_cmds=$lt_archive_cmds_RC
  16157. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16158. -postinstall_cmds=$lt_postinstall_cmds
  16159. -postuninstall_cmds=$lt_postuninstall_cmds
  16160. -
  16161. -# Commands used to build a loadable module (assumed same as above if empty)
  16162. -module_cmds=$lt_module_cmds_RC
  16163. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  16164. -
  16165. -# Commands to strip libraries.
  16166. -old_striplib=$lt_old_striplib
  16167. -striplib=$lt_striplib
  16168. -
  16169. -# Dependencies to place before the objects being linked to create a
  16170. -# shared library.
  16171. -predep_objects=$lt_predep_objects_RC
  16172. -
  16173. -# Dependencies to place after the objects being linked to create a
  16174. -# shared library.
  16175. -postdep_objects=$lt_postdep_objects_RC
  16176. -
  16177. -# Dependencies to place before the objects being linked to create a
  16178. -# shared library.
  16179. -predeps=$lt_predeps_RC
  16180. -
  16181. -# Dependencies to place after the objects being linked to create a
  16182. -# shared library.
  16183. -postdeps=$lt_postdeps_RC
  16184. -
  16185. -# The directories searched by this compiler when creating a shared
  16186. -# library
  16187. -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  16188. -
  16189. -# The library search path used internally by the compiler when linking
  16190. -# a shared library.
  16191. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  16192. -
  16193. -# Method to check whether dependent libraries are shared objects.
  16194. -deplibs_check_method=$lt_deplibs_check_method
  16195. -
  16196. -# Command to use when deplibs_check_method == file_magic.
  16197. -file_magic_cmd=$lt_file_magic_cmd
  16198. -
  16199. -# Flag that allows shared libraries with undefined symbols to be built.
  16200. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  16201. -
  16202. -# Flag that forces no undefined symbols.
  16203. -no_undefined_flag=$lt_no_undefined_flag_RC
  16204. -
  16205. -# Commands used to finish a libtool library installation in a directory.
  16206. -finish_cmds=$lt_finish_cmds
  16207. -
  16208. -# Same as above, but a single script fragment to be evaled but not shown.
  16209. -finish_eval=$lt_finish_eval
  16210. -
  16211. -# Take the output of nm and produce a listing of raw symbols and C names.
  16212. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16213. -
  16214. -# Transform the output of nm in a proper C declaration
  16215. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16216. -
  16217. -# Transform the output of nm in a C name address pair
  16218. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16219. -
  16220. -# This is the shared library runtime path variable.
  16221. -runpath_var=$runpath_var
  16222. -
  16223. -# This is the shared library path variable.
  16224. -shlibpath_var=$shlibpath_var
  16225. -
  16226. -# Is shlibpath searched before the hard-coded library search path?
  16227. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16228. -
  16229. -# How to hardcode a shared library path into an executable.
  16230. -hardcode_action=$hardcode_action_RC
  16231. -
  16232. -# Whether we should hardcode library paths into libraries.
  16233. -hardcode_into_libs=$hardcode_into_libs
  16234. -
  16235. -# Flag to hardcode \$libdir into a binary during linking.
  16236. -# This must work even if \$libdir does not exist.
  16237. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16238. -
  16239. -# If ld is used when linking, flag to hardcode \$libdir into
  16240. -# a binary during linking. This must work even if \$libdir does
  16241. -# not exist.
  16242. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16243. -
  16244. -# Whether we need a single -rpath flag with a separated argument.
  16245. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16246. -
  16247. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16248. -# resulting binary.
  16249. -hardcode_direct=$hardcode_direct_RC
  16250. -
  16251. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16252. -# resulting binary.
  16253. -hardcode_minus_L=$hardcode_minus_L_RC
  16254. -
  16255. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16256. -# the resulting binary.
  16257. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16258. -
  16259. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  16260. -# and all subsequent libraries and executables linked against it.
  16261. -hardcode_automatic=$hardcode_automatic_RC
  16262. -
  16263. -# Variables whose values should be saved in libtool wrapper scripts and
  16264. -# restored at relink time.
  16265. -variables_saved_for_relink="$variables_saved_for_relink"
  16266. -
  16267. -# Whether libtool must link a program against all its dependency libraries.
  16268. -link_all_deplibs=$link_all_deplibs_RC
  16269. -
  16270. -# Compile-time system search path for libraries
  16271. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16272. -
  16273. -# Run-time system search path for libraries
  16274. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16275. -
  16276. -# Fix the shell variable \$srcfile for the compiler.
  16277. -fix_srcfile_path=$lt_fix_srcfile_path
  16278. -
  16279. -# Set to yes if exported symbols are required.
  16280. -always_export_symbols=$always_export_symbols_RC
  16281. -
  16282. -# The commands to list exported symbols.
  16283. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  16284. -
  16285. -# The commands to extract the exported symbol list from a shared archive.
  16286. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16287. -
  16288. -# Symbols that should not be listed in the preloaded symbols.
  16289. -exclude_expsyms=$lt_exclude_expsyms_RC
  16290. -
  16291. -# Symbols that must always be exported.
  16292. -include_expsyms=$lt_include_expsyms_RC
  16293. + { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  16294. +$as_echo_n "checking whether to build static libraries... " >&6; }
  16295. + # Make sure either enable_shared or enable_static is yes.
  16296. + test "$enable_shared" = yes || enable_static=yes
  16297. + { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  16298. +$as_echo "$enable_static" >&6; }
  16299. -# ### END LIBTOOL TAG CONFIG: $tagname
  16300. -__EOF__
  16301. -else
  16302. - # If there is no Makefile yet, we rely on a make rule to execute
  16303. - # `config.status --recheck' to rerun these tests and create the
  16304. - # libtool script then.
  16305. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16306. - if test -f "$ltmain_in"; then
  16307. - test -f Makefile && make "$ltmain"
  16308. - fi
  16309. fi
  16310. -
  16311. -
  16312. ac_ext=c
  16313. ac_cpp='$CPP $CPPFLAGS'
  16314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16315. @@ -20947,46 +12111,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16316. CC="$lt_save_CC"
  16317. - ;;
  16318. -
  16319. - *)
  16320. - { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16321. -$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16322. - { (exit 1); exit 1; }; }
  16323. - ;;
  16324. - esac
  16325. -
  16326. - # Append the new tag name to the list of available tags.
  16327. - if test -n "$tagname" ; then
  16328. - available_tags="$available_tags $tagname"
  16329. - fi
  16330. - fi
  16331. - done
  16332. - IFS="$lt_save_ifs"
  16333. -
  16334. - # Now substitute the updated list of available tags.
  16335. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16336. - mv "${ofile}T" "$ofile"
  16337. - chmod +x "$ofile"
  16338. - else
  16339. - rm -f "${ofile}T"
  16340. - { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16341. -$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16342. - { (exit 1); exit 1; }; }
  16343. - fi
  16344. -fi
  16345. -
  16346. -
  16347. -
  16348. -# This can be used to rebuild libtool when needed
  16349. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16350. -
  16351. -# Always use our own libtool.
  16352. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16353. -
  16354. -# Prevent multiple expansion
  16355. -
  16356. -
  16357. @@ -20999,10 +12123,12 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtoo
  16358. + ac_config_commands="$ac_config_commands libtool"
  16359. +# Only expand once:
  16360. ##AC_PROG_RANLIB
  16361. @@ -21635,13 +12761,6 @@ $as_echo "$as_me: error: conditional \"a
  16362. Usually this means the macro was only invoked conditionally." >&2;}
  16363. { (exit 1); exit 1; }; }
  16364. fi
  16365. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  16366. - { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  16367. -Usually this means the macro was only invoked conditionally." >&5
  16368. -$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  16369. -Usually this means the macro was only invoked conditionally." >&2;}
  16370. - { (exit 1); exit 1; }; }
  16371. -fi
  16372. : ${CONFIG_STATUS=./config.status}
  16373. ac_write_fail=0
  16374. @@ -22142,6 +13261,261 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
  16375. #
  16376. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16377. +
  16378. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  16379. +# if CDPATH is set.
  16380. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16381. +
  16382. +sed_quote_subst='$sed_quote_subst'
  16383. +double_quote_subst='$double_quote_subst'
  16384. +delay_variable_subst='$delay_variable_subst'
  16385. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  16386. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  16387. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  16388. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  16389. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  16390. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  16391. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  16392. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  16393. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  16394. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  16395. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  16396. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  16397. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  16398. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  16399. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  16400. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  16401. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  16402. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  16403. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  16404. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  16405. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  16406. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  16407. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  16408. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  16409. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  16410. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  16411. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16412. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16413. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  16414. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  16415. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  16416. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  16417. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  16418. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  16419. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  16420. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16421. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16422. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16423. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  16424. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  16425. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  16426. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  16427. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  16428. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  16429. +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  16430. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  16431. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  16432. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  16433. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  16434. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  16435. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16436. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  16437. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  16438. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  16439. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  16440. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  16441. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  16442. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  16443. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  16444. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  16445. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  16446. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  16447. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16448. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16449. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  16450. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  16451. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16452. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16453. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  16454. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16455. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16456. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16457. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16458. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16459. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16460. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  16461. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16462. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  16463. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16464. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  16465. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  16466. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  16467. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  16468. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  16469. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16470. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  16471. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  16472. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  16473. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  16474. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  16475. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16476. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  16477. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  16478. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16479. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16480. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  16481. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  16482. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  16483. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  16484. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16485. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  16486. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  16487. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16488. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16489. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16490. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16491. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16492. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  16493. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  16494. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  16495. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16496. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  16497. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  16498. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  16499. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  16500. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  16501. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  16502. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  16503. +
  16504. +LTCC='$LTCC'
  16505. +LTCFLAGS='$LTCFLAGS'
  16506. +compiler='$compiler_DEFAULT'
  16507. +
  16508. +# Quote evaled strings.
  16509. +for var in SED \
  16510. +GREP \
  16511. +EGREP \
  16512. +FGREP \
  16513. +LD \
  16514. +NM \
  16515. +LN_S \
  16516. +lt_SP2NL \
  16517. +lt_NL2SP \
  16518. +reload_flag \
  16519. +OBJDUMP \
  16520. +deplibs_check_method \
  16521. +file_magic_cmd \
  16522. +AR \
  16523. +AR_FLAGS \
  16524. +STRIP \
  16525. +RANLIB \
  16526. +CC \
  16527. +CFLAGS \
  16528. +compiler \
  16529. +lt_cv_sys_global_symbol_pipe \
  16530. +lt_cv_sys_global_symbol_to_cdecl \
  16531. +lt_cv_sys_global_symbol_to_c_name_address \
  16532. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16533. +SHELL \
  16534. +ECHO \
  16535. +lt_prog_compiler_no_builtin_flag \
  16536. +lt_prog_compiler_wl \
  16537. +lt_prog_compiler_pic \
  16538. +lt_prog_compiler_static \
  16539. +lt_cv_prog_compiler_c_o \
  16540. +need_locks \
  16541. +DSYMUTIL \
  16542. +NMEDIT \
  16543. +LIPO \
  16544. +OTOOL \
  16545. +OTOOL64 \
  16546. +shrext_cmds \
  16547. +export_dynamic_flag_spec \
  16548. +whole_archive_flag_spec \
  16549. +compiler_needs_object \
  16550. +with_gnu_ld \
  16551. +allow_undefined_flag \
  16552. +no_undefined_flag \
  16553. +hardcode_libdir_flag_spec \
  16554. +hardcode_libdir_flag_spec_ld \
  16555. +hardcode_libdir_separator \
  16556. +fix_srcfile_path \
  16557. +exclude_expsyms \
  16558. +include_expsyms \
  16559. +file_list_spec \
  16560. +variables_saved_for_relink \
  16561. +libname_spec \
  16562. +library_names_spec \
  16563. +soname_spec \
  16564. +finish_eval \
  16565. +old_striplib \
  16566. +striplib; do
  16567. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  16568. + *[\\\\\\\`\\"\\\$]*)
  16569. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16570. + ;;
  16571. + *)
  16572. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16573. + ;;
  16574. + esac
  16575. +done
  16576. +
  16577. +# Double-quote double-evaled strings.
  16578. +for var in reload_cmds \
  16579. +old_postinstall_cmds \
  16580. +old_postuninstall_cmds \
  16581. +old_archive_cmds \
  16582. +extract_expsyms_cmds \
  16583. +old_archive_from_new_cmds \
  16584. +old_archive_from_expsyms_cmds \
  16585. +archive_cmds \
  16586. +archive_expsym_cmds \
  16587. +module_cmds \
  16588. +module_expsym_cmds \
  16589. +export_symbols_cmds \
  16590. +prelink_cmds \
  16591. +postinstall_cmds \
  16592. +postuninstall_cmds \
  16593. +finish_cmds \
  16594. +sys_lib_search_path_spec \
  16595. +sys_lib_dlsearch_path_spec; do
  16596. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  16597. + *[\\\\\\\`\\"\\\$]*)
  16598. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16599. + ;;
  16600. + *)
  16601. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16602. + ;;
  16603. + esac
  16604. +done
  16605. +
  16606. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  16607. +case \$lt_ECHO in
  16608. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  16609. + ;;
  16610. +esac
  16611. +
  16612. +ac_aux_dir='$ac_aux_dir'
  16613. +xsi_shell='$xsi_shell'
  16614. +lt_shell_append='$lt_shell_append'
  16615. +
  16616. +# See if we are running on zsh, and set the options which allow our
  16617. +# commands through without removal of \ escapes INIT.
  16618. +if test -n "\${ZSH_VERSION+set}" ; then
  16619. + setopt NO_GLOB_SUBST
  16620. +fi
  16621. +
  16622. +
  16623. + PACKAGE='$PACKAGE'
  16624. + VERSION='$VERSION'
  16625. + TIMESTAMP='$TIMESTAMP'
  16626. + RM='$RM'
  16627. + ofile='$ofile'
  16628. +
  16629. +
  16630. +
  16631. +
  16632. _ACEOF
  16633. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16634. @@ -22152,6 +13526,7 @@ do
  16635. case $ac_config_target in
  16636. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16637. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  16638. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16639. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16640. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  16641. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  16642. @@ -22811,7 +14186,16 @@ $as_echo "$as_me: executing $ac_file com
  16643. case $ac_file$ac_mode in
  16644. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  16645. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16646. +# are listed without --file. Let's play safe and only enable the eval
  16647. +# if we detect the quoting.
  16648. +case $CONFIG_FILES in
  16649. +*\'*) eval set x "$CONFIG_FILES" ;;
  16650. +*) set x $CONFIG_FILES ;;
  16651. +esac
  16652. +shift
  16653. +for mf
  16654. +do
  16655. # Strip MF so we end up with the name of the file.
  16656. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16657. # Check whether this is an Automake generated Makefile or not.
  16658. @@ -22935,6 +14319,641 @@ $as_echo "$as_me: error: cannot create d
  16659. done
  16660. done
  16661. ;;
  16662. + "libtool":C)
  16663. +
  16664. + # See if we are running on zsh, and set the options which allow our
  16665. + # commands through without removal of \ escapes.
  16666. + if test -n "${ZSH_VERSION+set}" ; then
  16667. + setopt NO_GLOB_SUBST
  16668. + fi
  16669. +
  16670. + cfgfile="${ofile}T"
  16671. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16672. + $RM "$cfgfile"
  16673. +
  16674. + cat <<_LT_EOF >> "$cfgfile"
  16675. +#! $SHELL
  16676. +
  16677. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16678. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16679. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16680. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16681. +#
  16682. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16683. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  16684. +# Written by Gordon Matzigkeit, 1996
  16685. +#
  16686. +# This file is part of GNU Libtool.
  16687. +#
  16688. +# GNU Libtool is free software; you can redistribute it and/or
  16689. +# modify it under the terms of the GNU General Public License as
  16690. +# published by the Free Software Foundation; either version 2 of
  16691. +# the License, or (at your option) any later version.
  16692. +#
  16693. +# As a special exception to the GNU General Public License,
  16694. +# if you distribute this file as part of a program or library that
  16695. +# is built using GNU Libtool, you may include this file under the
  16696. +# same distribution terms that you use for the rest of that program.
  16697. +#
  16698. +# GNU Libtool is distributed in the hope that it will be useful,
  16699. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  16700. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16701. +# GNU General Public License for more details.
  16702. +#
  16703. +# You should have received a copy of the GNU General Public License
  16704. +# along with GNU Libtool; see the file COPYING. If not, a copy
  16705. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16706. +# obtained by writing to the Free Software Foundation, Inc.,
  16707. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16708. +
  16709. +
  16710. +# The names of the tagged configurations supported by this script.
  16711. +available_tags=""
  16712. +
  16713. +# ### BEGIN LIBTOOL CONFIG
  16714. +
  16715. +# Which release of libtool.m4 was used?
  16716. +macro_version=$macro_version
  16717. +macro_revision=$macro_revision
  16718. +
  16719. +# Whether or not to build shared libraries.
  16720. +build_libtool_libs=$enable_shared
  16721. +
  16722. +# Whether or not to build static libraries.
  16723. +build_old_libs=$enable_static
  16724. +
  16725. +# What type of objects to build.
  16726. +pic_mode=$pic_mode
  16727. +
  16728. +# Whether or not to optimize for fast installation.
  16729. +fast_install=$enable_fast_install
  16730. +
  16731. +# The host system.
  16732. +host_alias=$host_alias
  16733. +host=$host
  16734. +host_os=$host_os
  16735. +
  16736. +# The build system.
  16737. +build_alias=$build_alias
  16738. +build=$build
  16739. +build_os=$build_os
  16740. +
  16741. +# A sed program that does not truncate output.
  16742. +SED=$lt_SED
  16743. +
  16744. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16745. +Xsed="\$SED -e 1s/^X//"
  16746. +
  16747. +# A grep program that handles long lines.
  16748. +GREP=$lt_GREP
  16749. +
  16750. +# An ERE matcher.
  16751. +EGREP=$lt_EGREP
  16752. +
  16753. +# A literal string matcher.
  16754. +FGREP=$lt_FGREP
  16755. +
  16756. +# A BSD- or MS-compatible name lister.
  16757. +NM=$lt_NM
  16758. +
  16759. +# Whether we need soft or hard links.
  16760. +LN_S=$lt_LN_S
  16761. +
  16762. +# What is the maximum length of a command?
  16763. +max_cmd_len=$max_cmd_len
  16764. +
  16765. +# Object file suffix (normally "o").
  16766. +objext=$ac_objext
  16767. +
  16768. +# Executable file suffix (normally "").
  16769. +exeext=$exeext
  16770. +
  16771. +# whether the shell understands "unset".
  16772. +lt_unset=$lt_unset
  16773. +
  16774. +# turn spaces into newlines.
  16775. +SP2NL=$lt_lt_SP2NL
  16776. +
  16777. +# turn newlines into spaces.
  16778. +NL2SP=$lt_lt_NL2SP
  16779. +
  16780. +# How to create reloadable object files.
  16781. +reload_flag=$lt_reload_flag
  16782. +reload_cmds=$lt_reload_cmds
  16783. +
  16784. +# An object symbol dumper.
  16785. +OBJDUMP=$lt_OBJDUMP
  16786. +
  16787. +# Method to check whether dependent libraries are shared objects.
  16788. +deplibs_check_method=$lt_deplibs_check_method
  16789. +
  16790. +# Command to use when deplibs_check_method == "file_magic".
  16791. +file_magic_cmd=$lt_file_magic_cmd
  16792. +
  16793. +# The archiver.
  16794. +AR=$lt_AR
  16795. +AR_FLAGS=$lt_AR_FLAGS
  16796. +
  16797. +# A symbol stripping program.
  16798. +STRIP=$lt_STRIP
  16799. +
  16800. +# Commands used to install an old-style archive.
  16801. +RANLIB=$lt_RANLIB
  16802. +old_postinstall_cmds=$lt_old_postinstall_cmds
  16803. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16804. +
  16805. +# A C compiler.
  16806. +LTCC=$lt_CC
  16807. +
  16808. +# LTCC compiler flags.
  16809. +LTCFLAGS=$lt_CFLAGS
  16810. +
  16811. +# Take the output of nm and produce a listing of raw symbols and C names.
  16812. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16813. +
  16814. +# Transform the output of nm in a proper C declaration.
  16815. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16816. +
  16817. +# Transform the output of nm in a C name address pair.
  16818. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16819. +
  16820. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  16821. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16822. +
  16823. +# The name of the directory that contains temporary libtool files.
  16824. +objdir=$objdir
  16825. +
  16826. +# Shell to use when invoking shell scripts.
  16827. +SHELL=$lt_SHELL
  16828. +
  16829. +# An echo program that does not interpret backslashes.
  16830. +ECHO=$lt_ECHO
  16831. +
  16832. +# Used to examine libraries when file_magic_cmd begins with "file".
  16833. +MAGIC_CMD=$MAGIC_CMD
  16834. +
  16835. +# Must we lock files when doing compilation?
  16836. +need_locks=$lt_need_locks
  16837. +
  16838. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16839. +DSYMUTIL=$lt_DSYMUTIL
  16840. +
  16841. +# Tool to change global to local symbols on Mac OS X.
  16842. +NMEDIT=$lt_NMEDIT
  16843. +
  16844. +# Tool to manipulate fat objects and archives on Mac OS X.
  16845. +LIPO=$lt_LIPO
  16846. +
  16847. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16848. +OTOOL=$lt_OTOOL
  16849. +
  16850. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16851. +OTOOL64=$lt_OTOOL64
  16852. +
  16853. +# Old archive suffix (normally "a").
  16854. +libext=$libext
  16855. +
  16856. +# Shared library suffix (normally ".so").
  16857. +shrext_cmds=$lt_shrext_cmds
  16858. +
  16859. +# The commands to extract the exported symbol list from a shared archive.
  16860. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16861. +
  16862. +# Variables whose values should be saved in libtool wrapper scripts and
  16863. +# restored at link time.
  16864. +variables_saved_for_relink=$lt_variables_saved_for_relink
  16865. +
  16866. +# Do we need the "lib" prefix for modules?
  16867. +need_lib_prefix=$need_lib_prefix
  16868. +
  16869. +# Do we need a version for libraries?
  16870. +need_version=$need_version
  16871. +
  16872. +# Library versioning type.
  16873. +version_type=$version_type
  16874. +
  16875. +# Shared library runtime path variable.
  16876. +runpath_var=$runpath_var
  16877. +
  16878. +# Shared library path variable.
  16879. +shlibpath_var=$shlibpath_var
  16880. +
  16881. +# Is shlibpath searched before the hard-coded library search path?
  16882. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16883. +
  16884. +# Format of library name prefix.
  16885. +libname_spec=$lt_libname_spec
  16886. +
  16887. +# List of archive names. First name is the real one, the rest are links.
  16888. +# The last name is the one that the linker finds with -lNAME
  16889. +library_names_spec=$lt_library_names_spec
  16890. +
  16891. +# The coded name of the library, if different from the real name.
  16892. +soname_spec=$lt_soname_spec
  16893. +
  16894. +# Command to use after installation of a shared archive.
  16895. +postinstall_cmds=$lt_postinstall_cmds
  16896. +
  16897. +# Command to use after uninstallation of a shared archive.
  16898. +postuninstall_cmds=$lt_postuninstall_cmds
  16899. +
  16900. +# Commands used to finish a libtool library installation in a directory.
  16901. +finish_cmds=$lt_finish_cmds
  16902. +
  16903. +# As "finish_cmds", except a single script fragment to be evaled but
  16904. +# not shown.
  16905. +finish_eval=$lt_finish_eval
  16906. +
  16907. +# Whether we should hardcode library paths into libraries.
  16908. +hardcode_into_libs=$hardcode_into_libs
  16909. +
  16910. +# Compile-time system search path for libraries.
  16911. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16912. +
  16913. +# Run-time system search path for libraries.
  16914. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16915. +
  16916. +# Whether dlopen is supported.
  16917. +dlopen_support=$enable_dlopen
  16918. +
  16919. +# Whether dlopen of programs is supported.
  16920. +dlopen_self=$enable_dlopen_self
  16921. +
  16922. +# Whether dlopen of statically linked programs is supported.
  16923. +dlopen_self_static=$enable_dlopen_self_static
  16924. +
  16925. +# Commands to strip libraries.
  16926. +old_striplib=$lt_old_striplib
  16927. +striplib=$lt_striplib
  16928. +
  16929. +
  16930. +# The linker used to build libraries.
  16931. +LD=$lt_LD
  16932. +
  16933. +# Commands used to build an old-style archive.
  16934. +old_archive_cmds=$lt_old_archive_cmds
  16935. +
  16936. +# A language specific compiler.
  16937. +CC=$lt_compiler
  16938. +
  16939. +# Is the compiler the GNU compiler?
  16940. +with_gcc=$GCC
  16941. +
  16942. +# Compiler flag to turn off builtin functions.
  16943. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16944. +
  16945. +# How to pass a linker flag through the compiler.
  16946. +wl=$lt_lt_prog_compiler_wl
  16947. +
  16948. +# Additional compiler flags for building library objects.
  16949. +pic_flag=$lt_lt_prog_compiler_pic
  16950. +
  16951. +# Compiler flag to prevent dynamic linking.
  16952. +link_static_flag=$lt_lt_prog_compiler_static
  16953. +
  16954. +# Does compiler simultaneously support -c and -o options?
  16955. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16956. +
  16957. +# Whether or not to add -lc for building shared libraries.
  16958. +build_libtool_need_lc=$archive_cmds_need_lc
  16959. +
  16960. +# Whether or not to disallow shared libs when runtime libs are static.
  16961. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16962. +
  16963. +# Compiler flag to allow reflexive dlopens.
  16964. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16965. +
  16966. +# Compiler flag to generate shared objects directly from archives.
  16967. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16968. +
  16969. +# Whether the compiler copes with passing no objects directly.
  16970. +compiler_needs_object=$lt_compiler_needs_object
  16971. +
  16972. +# Create an old-style archive from a shared archive.
  16973. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16974. +
  16975. +# Create a temporary old-style archive to link instead of a shared archive.
  16976. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16977. +
  16978. +# Commands used to build a shared archive.
  16979. +archive_cmds=$lt_archive_cmds
  16980. +archive_expsym_cmds=$lt_archive_expsym_cmds
  16981. +
  16982. +# Commands used to build a loadable module if different from building
  16983. +# a shared archive.
  16984. +module_cmds=$lt_module_cmds
  16985. +module_expsym_cmds=$lt_module_expsym_cmds
  16986. +
  16987. +# Whether we are building with GNU ld or not.
  16988. +with_gnu_ld=$lt_with_gnu_ld
  16989. +
  16990. +# Flag that allows shared libraries with undefined symbols to be built.
  16991. +allow_undefined_flag=$lt_allow_undefined_flag
  16992. +
  16993. +# Flag that enforces no undefined symbols.
  16994. +no_undefined_flag=$lt_no_undefined_flag
  16995. +
  16996. +# Flag to hardcode \$libdir into a binary during linking.
  16997. +# This must work even if \$libdir does not exist
  16998. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16999. +
  17000. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  17001. +# during linking. This must work even if \$libdir does not exist.
  17002. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  17003. +
  17004. +# Whether we need a single "-rpath" flag with a separated argument.
  17005. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17006. +
  17007. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17008. +# DIR into the resulting binary.
  17009. +hardcode_direct=$hardcode_direct
  17010. +
  17011. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17012. +# DIR into the resulting binary and the resulting library dependency is
  17013. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17014. +# library is relocated.
  17015. +hardcode_direct_absolute=$hardcode_direct_absolute
  17016. +
  17017. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17018. +# into the resulting binary.
  17019. +hardcode_minus_L=$hardcode_minus_L
  17020. +
  17021. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17022. +# into the resulting binary.
  17023. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  17024. +
  17025. +# Set to "yes" if building a shared library automatically hardcodes DIR
  17026. +# into the library and all subsequent libraries and executables linked
  17027. +# against it.
  17028. +hardcode_automatic=$hardcode_automatic
  17029. +
  17030. +# Set to yes if linker adds runtime paths of dependent libraries
  17031. +# to runtime path list.
  17032. +inherit_rpath=$inherit_rpath
  17033. +
  17034. +# Whether libtool must link a program against all its dependency libraries.
  17035. +link_all_deplibs=$link_all_deplibs
  17036. +
  17037. +# Fix the shell variable \$srcfile for the compiler.
  17038. +fix_srcfile_path=$lt_fix_srcfile_path
  17039. +
  17040. +# Set to "yes" if exported symbols are required.
  17041. +always_export_symbols=$always_export_symbols
  17042. +
  17043. +# The commands to list exported symbols.
  17044. +export_symbols_cmds=$lt_export_symbols_cmds
  17045. +
  17046. +# Symbols that should not be listed in the preloaded symbols.
  17047. +exclude_expsyms=$lt_exclude_expsyms
  17048. +
  17049. +# Symbols that must always be exported.
  17050. +include_expsyms=$lt_include_expsyms
  17051. +
  17052. +# Commands necessary for linking programs (against libraries) with templates.
  17053. +prelink_cmds=$lt_prelink_cmds
  17054. +
  17055. +# Specify filename containing input files.
  17056. +file_list_spec=$lt_file_list_spec
  17057. +
  17058. +# How to hardcode a shared library path into an executable.
  17059. +hardcode_action=$hardcode_action
  17060. +
  17061. +# ### END LIBTOOL CONFIG
  17062. +
  17063. +_LT_EOF
  17064. +
  17065. + case $host_os in
  17066. + aix3*)
  17067. + cat <<\_LT_EOF >> "$cfgfile"
  17068. +# AIX sometimes has problems with the GCC collect2 program. For some
  17069. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  17070. +# vanish in a puff of smoke.
  17071. +if test "X${COLLECT_NAMES+set}" != Xset; then
  17072. + COLLECT_NAMES=
  17073. + export COLLECT_NAMES
  17074. +fi
  17075. +_LT_EOF
  17076. + ;;
  17077. + esac
  17078. +
  17079. +
  17080. +ltmain="$ac_aux_dir/ltmain.sh"
  17081. +
  17082. +
  17083. + # We use sed instead of cat because bash on DJGPP gets confused if
  17084. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17085. + # text mode, it properly converts lines to CR/LF. This bash problem
  17086. + # is reportedly fixed, but why not run on old versions too?
  17087. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  17088. + || (rm -f "$cfgfile"; exit 1)
  17089. +
  17090. + case $xsi_shell in
  17091. + yes)
  17092. + cat << \_LT_EOF >> "$cfgfile"
  17093. +
  17094. +# func_dirname file append nondir_replacement
  17095. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17096. +# otherwise set result to NONDIR_REPLACEMENT.
  17097. +func_dirname ()
  17098. +{
  17099. + case ${1} in
  17100. + */*) func_dirname_result="${1%/*}${2}" ;;
  17101. + * ) func_dirname_result="${3}" ;;
  17102. + esac
  17103. +}
  17104. +
  17105. +# func_basename file
  17106. +func_basename ()
  17107. +{
  17108. + func_basename_result="${1##*/}"
  17109. +}
  17110. +
  17111. +# func_dirname_and_basename file append nondir_replacement
  17112. +# perform func_basename and func_dirname in a single function
  17113. +# call:
  17114. +# dirname: Compute the dirname of FILE. If nonempty,
  17115. +# add APPEND to the result, otherwise set result
  17116. +# to NONDIR_REPLACEMENT.
  17117. +# value returned in "$func_dirname_result"
  17118. +# basename: Compute filename of FILE.
  17119. +# value retuned in "$func_basename_result"
  17120. +# Implementation must be kept synchronized with func_dirname
  17121. +# and func_basename. For efficiency, we do not delegate to
  17122. +# those functions but instead duplicate the functionality here.
  17123. +func_dirname_and_basename ()
  17124. +{
  17125. + case ${1} in
  17126. + */*) func_dirname_result="${1%/*}${2}" ;;
  17127. + * ) func_dirname_result="${3}" ;;
  17128. + esac
  17129. + func_basename_result="${1##*/}"
  17130. +}
  17131. +
  17132. +# func_stripname prefix suffix name
  17133. +# strip PREFIX and SUFFIX off of NAME.
  17134. +# PREFIX and SUFFIX must not contain globbing or regex special
  17135. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  17136. +# dot (in which case that matches only a dot).
  17137. +func_stripname ()
  17138. +{
  17139. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  17140. + # positional parameters, so assign one to ordinary parameter first.
  17141. + func_stripname_result=${3}
  17142. + func_stripname_result=${func_stripname_result#"${1}"}
  17143. + func_stripname_result=${func_stripname_result%"${2}"}
  17144. +}
  17145. +
  17146. +# func_opt_split
  17147. +func_opt_split ()
  17148. +{
  17149. + func_opt_split_opt=${1%%=*}
  17150. + func_opt_split_arg=${1#*=}
  17151. +}
  17152. +
  17153. +# func_lo2o object
  17154. +func_lo2o ()
  17155. +{
  17156. + case ${1} in
  17157. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  17158. + *) func_lo2o_result=${1} ;;
  17159. + esac
  17160. +}
  17161. +
  17162. +# func_xform libobj-or-source
  17163. +func_xform ()
  17164. +{
  17165. + func_xform_result=${1%.*}.lo
  17166. +}
  17167. +
  17168. +# func_arith arithmetic-term...
  17169. +func_arith ()
  17170. +{
  17171. + func_arith_result=$(( $* ))
  17172. +}
  17173. +
  17174. +# func_len string
  17175. +# STRING may not start with a hyphen.
  17176. +func_len ()
  17177. +{
  17178. + func_len_result=${#1}
  17179. +}
  17180. +
  17181. +_LT_EOF
  17182. + ;;
  17183. + *) # Bourne compatible functions.
  17184. + cat << \_LT_EOF >> "$cfgfile"
  17185. +
  17186. +# func_dirname file append nondir_replacement
  17187. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17188. +# otherwise set result to NONDIR_REPLACEMENT.
  17189. +func_dirname ()
  17190. +{
  17191. + # Extract subdirectory from the argument.
  17192. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  17193. + if test "X$func_dirname_result" = "X${1}"; then
  17194. + func_dirname_result="${3}"
  17195. + else
  17196. + func_dirname_result="$func_dirname_result${2}"
  17197. + fi
  17198. +}
  17199. +
  17200. +# func_basename file
  17201. +func_basename ()
  17202. +{
  17203. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  17204. +}
  17205. +
  17206. +
  17207. +# func_stripname prefix suffix name
  17208. +# strip PREFIX and SUFFIX off of NAME.
  17209. +# PREFIX and SUFFIX must not contain globbing or regex special
  17210. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  17211. +# dot (in which case that matches only a dot).
  17212. +# func_strip_suffix prefix name
  17213. +func_stripname ()
  17214. +{
  17215. + case ${2} in
  17216. + .*) func_stripname_result=`$ECHO "X${3}" \
  17217. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  17218. + *) func_stripname_result=`$ECHO "X${3}" \
  17219. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  17220. + esac
  17221. +}
  17222. +
  17223. +# sed scripts:
  17224. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  17225. +my_sed_long_arg='1s/^-[^=]*=//'
  17226. +
  17227. +# func_opt_split
  17228. +func_opt_split ()
  17229. +{
  17230. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  17231. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  17232. +}
  17233. +
  17234. +# func_lo2o object
  17235. +func_lo2o ()
  17236. +{
  17237. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  17238. +}
  17239. +
  17240. +# func_xform libobj-or-source
  17241. +func_xform ()
  17242. +{
  17243. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  17244. +}
  17245. +
  17246. +# func_arith arithmetic-term...
  17247. +func_arith ()
  17248. +{
  17249. + func_arith_result=`expr "$@"`
  17250. +}
  17251. +
  17252. +# func_len string
  17253. +# STRING may not start with a hyphen.
  17254. +func_len ()
  17255. +{
  17256. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  17257. +}
  17258. +
  17259. +_LT_EOF
  17260. +esac
  17261. +
  17262. +case $lt_shell_append in
  17263. + yes)
  17264. + cat << \_LT_EOF >> "$cfgfile"
  17265. +
  17266. +# func_append var value
  17267. +# Append VALUE to the end of shell variable VAR.
  17268. +func_append ()
  17269. +{
  17270. + eval "$1+=\$2"
  17271. +}
  17272. +_LT_EOF
  17273. + ;;
  17274. + *)
  17275. + cat << \_LT_EOF >> "$cfgfile"
  17276. +
  17277. +# func_append var value
  17278. +# Append VALUE to the end of shell variable VAR.
  17279. +func_append ()
  17280. +{
  17281. + eval "$1=\$$1\$2"
  17282. +}
  17283. +
  17284. +_LT_EOF
  17285. + ;;
  17286. + esac
  17287. +
  17288. +
  17289. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  17290. + || (rm -f "$cfgfile"; exit 1)
  17291. +
  17292. + mv -f "$cfgfile" "$ofile" ||
  17293. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17294. + chmod +x "$ofile"
  17295. +
  17296. + ;;
  17297. esac
  17298. done # for ac_tag