configure 657 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. # Check that we are running under the correct shell.
  474. SHELL=${CONFIG_SHELL-/bin/sh}
  475. case X$ECHO in
  476. X*--fallback-echo)
  477. # Remove one level of quotation (which was required for Make).
  478. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  479. ;;
  480. esac
  481. echo=${ECHO-echo}
  482. if test "X$1" = X--no-reexec; then
  483. # Discard the --no-reexec flag, and continue.
  484. shift
  485. elif test "X$1" = X--fallback-echo; then
  486. # Avoid inline document here, it may be left over
  487. :
  488. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  489. # Yippee, $echo works!
  490. :
  491. else
  492. # Restart under the correct shell.
  493. exec $SHELL "$0" --no-reexec ${1+"$@"}
  494. fi
  495. if test "X$1" = X--fallback-echo; then
  496. # used as fallback echo
  497. shift
  498. cat <<EOF
  499. $*
  500. EOF
  501. exit 0
  502. fi
  503. # The HP-UX ksh and POSIX shell print the target directory to stdout
  504. # if CDPATH is set.
  505. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  506. if test -z "$ECHO"; then
  507. if test "X${echo_test_string+set}" != Xset; then
  508. # find a string as large as possible, as long as the shell can cope with it
  509. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  510. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  511. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  512. echo_test_string=`eval $cmd` &&
  513. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  514. then
  515. break
  516. fi
  517. done
  518. fi
  519. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  520. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  521. test "X$echo_testing_string" = "X$echo_test_string"; then
  522. :
  523. else
  524. # The Solaris, AIX, and Digital Unix default echo programs unquote
  525. # backslashes. This makes it impossible to quote backslashes using
  526. # echo "$something" | sed 's/\\/\\\\/g'
  527. #
  528. # So, first we look for a working echo in the user's PATH.
  529. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  530. for dir in $PATH /usr/ucb; do
  531. IFS="$lt_save_ifs"
  532. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  533. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. echo="$dir/echo"
  537. break
  538. fi
  539. done
  540. IFS="$lt_save_ifs"
  541. if test "X$echo" = Xecho; then
  542. # We didn't find a better echo, so look for alternatives.
  543. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  544. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  545. test "X$echo_testing_string" = "X$echo_test_string"; then
  546. # This shell has a builtin print -r that does the trick.
  547. echo='print -r'
  548. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  549. test "X$CONFIG_SHELL" != X/bin/ksh; then
  550. # If we have ksh, try running configure again with it.
  551. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  552. export ORIGINAL_CONFIG_SHELL
  553. CONFIG_SHELL=/bin/ksh
  554. export CONFIG_SHELL
  555. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  556. else
  557. # Try using printf.
  558. echo='printf %s\n'
  559. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  560. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  561. test "X$echo_testing_string" = "X$echo_test_string"; then
  562. # Cool, printf works
  563. :
  564. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  565. test "X$echo_testing_string" = 'X\t' &&
  566. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  569. export CONFIG_SHELL
  570. SHELL="$CONFIG_SHELL"
  571. export SHELL
  572. echo="$CONFIG_SHELL $0 --fallback-echo"
  573. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  574. test "X$echo_testing_string" = 'X\t' &&
  575. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  576. test "X$echo_testing_string" = "X$echo_test_string"; then
  577. echo="$CONFIG_SHELL $0 --fallback-echo"
  578. else
  579. # maybe with a smaller string...
  580. prev=:
  581. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  582. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  583. then
  584. break
  585. fi
  586. prev="$cmd"
  587. done
  588. if test "$prev" != 'sed 50q "$0"'; then
  589. echo_test_string=`eval $prev`
  590. export echo_test_string
  591. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  592. else
  593. # Oops. We lost completely, so just stick with echo.
  594. echo=echo
  595. fi
  596. fi
  597. fi
  598. fi
  599. fi
  600. fi
  601. # Copy echo and quote the copy suitably for passing to libtool from
  602. # the Makefile, instead of quoting the original, which is used later.
  603. ECHO=$echo
  604. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  605. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  606. fi
  607. tagnames=${tagnames+${tagnames},}CXX
  608. tagnames=${tagnames+${tagnames},}F77
  609. exec 7<&0 </dev/null 6>&1
  610. # Name of the host.
  611. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  612. # so uname gets run too.
  613. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  614. #
  615. # Initializations.
  616. #
  617. ac_default_prefix=/usr/local
  618. ac_clean_files=
  619. ac_config_libobj_dir=.
  620. LIBOBJS=
  621. cross_compiling=no
  622. subdirs=
  623. MFLAGS=
  624. MAKEFLAGS=
  625. SHELL=${CONFIG_SHELL-/bin/sh}
  626. # Identity of this package.
  627. PACKAGE_NAME=
  628. PACKAGE_TARNAME=
  629. PACKAGE_VERSION=
  630. PACKAGE_STRING=
  631. PACKAGE_BUGREPORT=
  632. ac_unique_file="src/graph.cpp"
  633. # Factoring default headers for most tests.
  634. ac_includes_default="\
  635. #include <stdio.h>
  636. #ifdef HAVE_SYS_TYPES_H
  637. # include <sys/types.h>
  638. #endif
  639. #ifdef HAVE_SYS_STAT_H
  640. # include <sys/stat.h>
  641. #endif
  642. #ifdef STDC_HEADERS
  643. # include <stdlib.h>
  644. # include <stddef.h>
  645. #else
  646. # ifdef HAVE_STDLIB_H
  647. # include <stdlib.h>
  648. # endif
  649. #endif
  650. #ifdef HAVE_STRING_H
  651. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  652. # include <memory.h>
  653. # endif
  654. # include <string.h>
  655. #endif
  656. #ifdef HAVE_STRINGS_H
  657. # include <strings.h>
  658. #endif
  659. #ifdef HAVE_INTTYPES_H
  660. # include <inttypes.h>
  661. #endif
  662. #ifdef HAVE_STDINT_H
  663. # include <stdint.h>
  664. #endif
  665. #ifdef HAVE_UNISTD_H
  666. # include <unistd.h>
  667. #endif"
  668. ac_subst_vars='SHELL
  669. PATH_SEPARATOR
  670. PACKAGE_NAME
  671. PACKAGE_TARNAME
  672. PACKAGE_VERSION
  673. PACKAGE_STRING
  674. PACKAGE_BUGREPORT
  675. exec_prefix
  676. prefix
  677. program_transform_name
  678. bindir
  679. sbindir
  680. libexecdir
  681. datarootdir
  682. datadir
  683. sysconfdir
  684. sharedstatedir
  685. localstatedir
  686. includedir
  687. oldincludedir
  688. docdir
  689. infodir
  690. htmldir
  691. dvidir
  692. pdfdir
  693. psdir
  694. libdir
  695. localedir
  696. mandir
  697. DEFS
  698. ECHO_C
  699. ECHO_N
  700. ECHO_T
  701. LIBS
  702. build_alias
  703. host_alias
  704. target_alias
  705. GENERIC_LIBRARY_VERSION
  706. GENERIC_LIBRARY_NAME
  707. GENERIC_RELEASE
  708. GENERIC_VERSION
  709. INSTALL_PROGRAM
  710. INSTALL_SCRIPT
  711. INSTALL_DATA
  712. am__isrc
  713. CYGPATH_W
  714. PACKAGE
  715. VERSION
  716. ACLOCAL
  717. AUTOCONF
  718. AUTOMAKE
  719. AUTOHEADER
  720. MAKEINFO
  721. install_sh
  722. STRIP
  723. INSTALL_STRIP_PROGRAM
  724. mkdir_p
  725. AWK
  726. SET_MAKE
  727. am__leading_dot
  728. AMTAR
  729. am__tar
  730. am__untar
  731. CXX
  732. CXXFLAGS
  733. LDFLAGS
  734. CPPFLAGS
  735. ac_ct_CXX
  736. EXEEXT
  737. OBJEXT
  738. DEPDIR
  739. am__include
  740. am__quote
  741. AMDEP_TRUE
  742. AMDEP_FALSE
  743. AMDEPBACKSLASH
  744. CXXDEPMODE
  745. am__fastdepCXX_TRUE
  746. am__fastdepCXX_FALSE
  747. build
  748. build_cpu
  749. build_vendor
  750. build_os
  751. host
  752. host_cpu
  753. host_vendor
  754. host_os
  755. CC
  756. CFLAGS
  757. ac_ct_CC
  758. CCDEPMODE
  759. am__fastdepCC_TRUE
  760. am__fastdepCC_FALSE
  761. SED
  762. GREP
  763. EGREP
  764. LN_S
  765. ECHO
  766. AR
  767. RANLIB
  768. CPP
  769. CXXCPP
  770. F77
  771. FFLAGS
  772. ac_ct_F77
  773. LIBTOOL
  774. doxygen
  775. LIBOBJS
  776. LTLIBOBJS'
  777. ac_subst_files=''
  778. ac_precious_vars='build_alias
  779. host_alias
  780. target_alias
  781. CXX
  782. CXXFLAGS
  783. LDFLAGS
  784. LIBS
  785. CPPFLAGS
  786. CCC
  787. CC
  788. CFLAGS
  789. CPP
  790. CXXCPP
  791. F77
  792. FFLAGS'
  793. # Initialize some variables set by options.
  794. ac_init_help=
  795. ac_init_version=false
  796. # The variables have the same names as the options, with
  797. # dashes changed to underlines.
  798. cache_file=/dev/null
  799. exec_prefix=NONE
  800. no_create=
  801. no_recursion=
  802. prefix=NONE
  803. program_prefix=NONE
  804. program_suffix=NONE
  805. program_transform_name=s,x,x,
  806. silent=
  807. site=
  808. srcdir=
  809. verbose=
  810. x_includes=NONE
  811. x_libraries=NONE
  812. # Installation directory options.
  813. # These are left unexpanded so users can "make install exec_prefix=/foo"
  814. # and all the variables that are supposed to be based on exec_prefix
  815. # by default will actually change.
  816. # Use braces instead of parens because sh, perl, etc. also accept them.
  817. # (The list follows the same order as the GNU Coding Standards.)
  818. bindir='${exec_prefix}/bin'
  819. sbindir='${exec_prefix}/sbin'
  820. libexecdir='${exec_prefix}/libexec'
  821. datarootdir='${prefix}/share'
  822. datadir='${datarootdir}'
  823. sysconfdir='${prefix}/etc'
  824. sharedstatedir='${prefix}/com'
  825. localstatedir='${prefix}/var'
  826. includedir='${prefix}/include'
  827. oldincludedir='/usr/include'
  828. docdir='${datarootdir}/doc/${PACKAGE}'
  829. infodir='${datarootdir}/info'
  830. htmldir='${docdir}'
  831. dvidir='${docdir}'
  832. pdfdir='${docdir}'
  833. psdir='${docdir}'
  834. libdir='${exec_prefix}/lib'
  835. localedir='${datarootdir}/locale'
  836. mandir='${datarootdir}/man'
  837. ac_prev=
  838. ac_dashdash=
  839. for ac_option
  840. do
  841. # If the previous option needs an argument, assign it.
  842. if test -n "$ac_prev"; then
  843. eval $ac_prev=\$ac_option
  844. ac_prev=
  845. continue
  846. fi
  847. case $ac_option in
  848. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  849. *) ac_optarg=yes ;;
  850. esac
  851. # Accept the important Cygnus configure options, so we can diagnose typos.
  852. case $ac_dashdash$ac_option in
  853. --)
  854. ac_dashdash=yes ;;
  855. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  856. ac_prev=bindir ;;
  857. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  858. bindir=$ac_optarg ;;
  859. -build | --build | --buil | --bui | --bu)
  860. ac_prev=build_alias ;;
  861. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  862. build_alias=$ac_optarg ;;
  863. -cache-file | --cache-file | --cache-fil | --cache-fi \
  864. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  865. ac_prev=cache_file ;;
  866. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  867. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  868. cache_file=$ac_optarg ;;
  869. --config-cache | -C)
  870. cache_file=config.cache ;;
  871. -datadir | --datadir | --datadi | --datad)
  872. ac_prev=datadir ;;
  873. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  874. datadir=$ac_optarg ;;
  875. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  876. | --dataroo | --dataro | --datar)
  877. ac_prev=datarootdir ;;
  878. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  879. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  880. datarootdir=$ac_optarg ;;
  881. -disable-* | --disable-*)
  882. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  883. # Reject names that are not valid shell variable names.
  884. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  885. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  886. { (exit 1); exit 1; }; }
  887. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  888. eval enable_$ac_feature=no ;;
  889. -docdir | --docdir | --docdi | --doc | --do)
  890. ac_prev=docdir ;;
  891. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  892. docdir=$ac_optarg ;;
  893. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  894. ac_prev=dvidir ;;
  895. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  896. dvidir=$ac_optarg ;;
  897. -enable-* | --enable-*)
  898. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  899. # Reject names that are not valid shell variable names.
  900. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  901. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  902. { (exit 1); exit 1; }; }
  903. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  904. eval enable_$ac_feature=\$ac_optarg ;;
  905. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  906. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  907. | --exec | --exe | --ex)
  908. ac_prev=exec_prefix ;;
  909. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  910. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  911. | --exec=* | --exe=* | --ex=*)
  912. exec_prefix=$ac_optarg ;;
  913. -gas | --gas | --ga | --g)
  914. # Obsolete; use --with-gas.
  915. with_gas=yes ;;
  916. -help | --help | --hel | --he | -h)
  917. ac_init_help=long ;;
  918. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  919. ac_init_help=recursive ;;
  920. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  921. ac_init_help=short ;;
  922. -host | --host | --hos | --ho)
  923. ac_prev=host_alias ;;
  924. -host=* | --host=* | --hos=* | --ho=*)
  925. host_alias=$ac_optarg ;;
  926. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  927. ac_prev=htmldir ;;
  928. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  929. | --ht=*)
  930. htmldir=$ac_optarg ;;
  931. -includedir | --includedir | --includedi | --included | --include \
  932. | --includ | --inclu | --incl | --inc)
  933. ac_prev=includedir ;;
  934. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  935. | --includ=* | --inclu=* | --incl=* | --inc=*)
  936. includedir=$ac_optarg ;;
  937. -infodir | --infodir | --infodi | --infod | --info | --inf)
  938. ac_prev=infodir ;;
  939. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  940. infodir=$ac_optarg ;;
  941. -libdir | --libdir | --libdi | --libd)
  942. ac_prev=libdir ;;
  943. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  944. libdir=$ac_optarg ;;
  945. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  946. | --libexe | --libex | --libe)
  947. ac_prev=libexecdir ;;
  948. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  949. | --libexe=* | --libex=* | --libe=*)
  950. libexecdir=$ac_optarg ;;
  951. -localedir | --localedir | --localedi | --localed | --locale)
  952. ac_prev=localedir ;;
  953. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  954. localedir=$ac_optarg ;;
  955. -localstatedir | --localstatedir | --localstatedi | --localstated \
  956. | --localstate | --localstat | --localsta | --localst | --locals)
  957. ac_prev=localstatedir ;;
  958. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  959. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  960. localstatedir=$ac_optarg ;;
  961. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  962. ac_prev=mandir ;;
  963. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  964. mandir=$ac_optarg ;;
  965. -nfp | --nfp | --nf)
  966. # Obsolete; use --without-fp.
  967. with_fp=no ;;
  968. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  969. | --no-cr | --no-c | -n)
  970. no_create=yes ;;
  971. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  972. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  973. no_recursion=yes ;;
  974. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  975. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  976. | --oldin | --oldi | --old | --ol | --o)
  977. ac_prev=oldincludedir ;;
  978. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  979. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  980. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  981. oldincludedir=$ac_optarg ;;
  982. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  983. ac_prev=prefix ;;
  984. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  985. prefix=$ac_optarg ;;
  986. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  987. | --program-pre | --program-pr | --program-p)
  988. ac_prev=program_prefix ;;
  989. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  990. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  991. program_prefix=$ac_optarg ;;
  992. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  993. | --program-suf | --program-su | --program-s)
  994. ac_prev=program_suffix ;;
  995. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  996. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  997. program_suffix=$ac_optarg ;;
  998. -program-transform-name | --program-transform-name \
  999. | --program-transform-nam | --program-transform-na \
  1000. | --program-transform-n | --program-transform- \
  1001. | --program-transform | --program-transfor \
  1002. | --program-transfo | --program-transf \
  1003. | --program-trans | --program-tran \
  1004. | --progr-tra | --program-tr | --program-t)
  1005. ac_prev=program_transform_name ;;
  1006. -program-transform-name=* | --program-transform-name=* \
  1007. | --program-transform-nam=* | --program-transform-na=* \
  1008. | --program-transform-n=* | --program-transform-=* \
  1009. | --program-transform=* | --program-transfor=* \
  1010. | --program-transfo=* | --program-transf=* \
  1011. | --program-trans=* | --program-tran=* \
  1012. | --progr-tra=* | --program-tr=* | --program-t=*)
  1013. program_transform_name=$ac_optarg ;;
  1014. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1015. ac_prev=pdfdir ;;
  1016. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1017. pdfdir=$ac_optarg ;;
  1018. -psdir | --psdir | --psdi | --psd | --ps)
  1019. ac_prev=psdir ;;
  1020. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1021. psdir=$ac_optarg ;;
  1022. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1023. | -silent | --silent | --silen | --sile | --sil)
  1024. silent=yes ;;
  1025. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1026. ac_prev=sbindir ;;
  1027. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1028. | --sbi=* | --sb=*)
  1029. sbindir=$ac_optarg ;;
  1030. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1031. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1032. | --sharedst | --shareds | --shared | --share | --shar \
  1033. | --sha | --sh)
  1034. ac_prev=sharedstatedir ;;
  1035. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1036. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1037. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1038. | --sha=* | --sh=*)
  1039. sharedstatedir=$ac_optarg ;;
  1040. -site | --site | --sit)
  1041. ac_prev=site ;;
  1042. -site=* | --site=* | --sit=*)
  1043. site=$ac_optarg ;;
  1044. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1045. ac_prev=srcdir ;;
  1046. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1047. srcdir=$ac_optarg ;;
  1048. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1049. | --syscon | --sysco | --sysc | --sys | --sy)
  1050. ac_prev=sysconfdir ;;
  1051. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1052. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1053. sysconfdir=$ac_optarg ;;
  1054. -target | --target | --targe | --targ | --tar | --ta | --t)
  1055. ac_prev=target_alias ;;
  1056. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1057. target_alias=$ac_optarg ;;
  1058. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1059. verbose=yes ;;
  1060. -version | --version | --versio | --versi | --vers | -V)
  1061. ac_init_version=: ;;
  1062. -with-* | --with-*)
  1063. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1064. # Reject names that are not valid shell variable names.
  1065. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1066. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1067. { (exit 1); exit 1; }; }
  1068. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1069. eval with_$ac_package=\$ac_optarg ;;
  1070. -without-* | --without-*)
  1071. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1072. # Reject names that are not valid shell variable names.
  1073. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1074. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1075. { (exit 1); exit 1; }; }
  1076. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1077. eval with_$ac_package=no ;;
  1078. --x)
  1079. # Obsolete; use --with-x.
  1080. with_x=yes ;;
  1081. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1082. | --x-incl | --x-inc | --x-in | --x-i)
  1083. ac_prev=x_includes ;;
  1084. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1085. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1086. x_includes=$ac_optarg ;;
  1087. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1088. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1089. ac_prev=x_libraries ;;
  1090. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1091. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1092. x_libraries=$ac_optarg ;;
  1093. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1094. Try \`$0 --help' for more information." >&2
  1095. { (exit 1); exit 1; }; }
  1096. ;;
  1097. *=*)
  1098. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1099. # Reject names that are not valid shell variable names.
  1100. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1101. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1102. { (exit 1); exit 1; }; }
  1103. eval $ac_envvar=\$ac_optarg
  1104. export $ac_envvar ;;
  1105. *)
  1106. # FIXME: should be removed in autoconf 3.0.
  1107. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1108. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1109. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1110. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1111. ;;
  1112. esac
  1113. done
  1114. if test -n "$ac_prev"; then
  1115. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1116. { echo "$as_me: error: missing argument to $ac_option" >&2
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. # Be sure to have absolute directory names.
  1120. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1121. datadir sysconfdir sharedstatedir localstatedir includedir \
  1122. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1123. libdir localedir mandir
  1124. do
  1125. eval ac_val=\$$ac_var
  1126. case $ac_val in
  1127. [\\/$]* | ?:[\\/]* ) continue;;
  1128. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1129. esac
  1130. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1131. { (exit 1); exit 1; }; }
  1132. done
  1133. # There might be people who depend on the old broken behavior: `$host'
  1134. # used to hold the argument of --host etc.
  1135. # FIXME: To remove some day.
  1136. build=$build_alias
  1137. host=$host_alias
  1138. target=$target_alias
  1139. # FIXME: To remove some day.
  1140. if test "x$host_alias" != x; then
  1141. if test "x$build_alias" = x; then
  1142. cross_compiling=maybe
  1143. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1144. If a cross compiler is detected then cross compile mode will be used." >&2
  1145. elif test "x$build_alias" != "x$host_alias"; then
  1146. cross_compiling=yes
  1147. fi
  1148. fi
  1149. ac_tool_prefix=
  1150. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1151. test "$silent" = yes && exec 6>/dev/null
  1152. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1153. ac_ls_di=`ls -di .` &&
  1154. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1155. { echo "$as_me: error: Working directory cannot be determined" >&2
  1156. { (exit 1); exit 1; }; }
  1157. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1158. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1159. { (exit 1); exit 1; }; }
  1160. # Find the source files, if location was not specified.
  1161. if test -z "$srcdir"; then
  1162. ac_srcdir_defaulted=yes
  1163. # Try the directory containing this script, then the parent directory.
  1164. ac_confdir=`$as_dirname -- "$0" ||
  1165. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1166. X"$0" : 'X\(//\)[^/]' \| \
  1167. X"$0" : 'X\(//\)$' \| \
  1168. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1169. echo X"$0" |
  1170. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1171. s//\1/
  1172. q
  1173. }
  1174. /^X\(\/\/\)[^/].*/{
  1175. s//\1/
  1176. q
  1177. }
  1178. /^X\(\/\/\)$/{
  1179. s//\1/
  1180. q
  1181. }
  1182. /^X\(\/\).*/{
  1183. s//\1/
  1184. q
  1185. }
  1186. s/.*/./; q'`
  1187. srcdir=$ac_confdir
  1188. if test ! -r "$srcdir/$ac_unique_file"; then
  1189. srcdir=..
  1190. fi
  1191. else
  1192. ac_srcdir_defaulted=no
  1193. fi
  1194. if test ! -r "$srcdir/$ac_unique_file"; then
  1195. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1196. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1197. { (exit 1); exit 1; }; }
  1198. fi
  1199. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1200. ac_abs_confdir=`(
  1201. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1202. { (exit 1); exit 1; }; }
  1203. pwd)`
  1204. # When building in place, set srcdir=.
  1205. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1206. srcdir=.
  1207. fi
  1208. # Remove unnecessary trailing slashes from srcdir.
  1209. # Double slashes in file names in object file debugging info
  1210. # mess up M-x gdb in Emacs.
  1211. case $srcdir in
  1212. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1213. esac
  1214. for ac_var in $ac_precious_vars; do
  1215. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1216. eval ac_env_${ac_var}_value=\$${ac_var}
  1217. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1218. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1219. done
  1220. #
  1221. # Report the --help message.
  1222. #
  1223. if test "$ac_init_help" = "long"; then
  1224. # Omit some internal or obsolete options to make the list less imposing.
  1225. # This message is too long to be a string in the A/UX 3.1 sh.
  1226. cat <<_ACEOF
  1227. \`configure' configures this package to adapt to many kinds of systems.
  1228. Usage: $0 [OPTION]... [VAR=VALUE]...
  1229. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1230. VAR=VALUE. See below for descriptions of some of the useful variables.
  1231. Defaults for the options are specified in brackets.
  1232. Configuration:
  1233. -h, --help display this help and exit
  1234. --help=short display options specific to this package
  1235. --help=recursive display the short help of all the included packages
  1236. -V, --version display version information and exit
  1237. -q, --quiet, --silent do not print \`checking...' messages
  1238. --cache-file=FILE cache test results in FILE [disabled]
  1239. -C, --config-cache alias for \`--cache-file=config.cache'
  1240. -n, --no-create do not create output files
  1241. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1242. Installation directories:
  1243. --prefix=PREFIX install architecture-independent files in PREFIX
  1244. [$ac_default_prefix]
  1245. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1246. [PREFIX]
  1247. By default, \`make install' will install all the files in
  1248. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1249. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1250. for instance \`--prefix=\$HOME'.
  1251. For better control, use the options below.
  1252. Fine tuning of the installation directories:
  1253. --bindir=DIR user executables [EPREFIX/bin]
  1254. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1255. --libexecdir=DIR program executables [EPREFIX/libexec]
  1256. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1257. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1258. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1259. --libdir=DIR object code libraries [EPREFIX/lib]
  1260. --includedir=DIR C header files [PREFIX/include]
  1261. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1262. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1263. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1264. --infodir=DIR info documentation [DATAROOTDIR/info]
  1265. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1266. --mandir=DIR man documentation [DATAROOTDIR/man]
  1267. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1268. --htmldir=DIR html documentation [DOCDIR]
  1269. --dvidir=DIR dvi documentation [DOCDIR]
  1270. --pdfdir=DIR pdf documentation [DOCDIR]
  1271. --psdir=DIR ps documentation [DOCDIR]
  1272. _ACEOF
  1273. cat <<\_ACEOF
  1274. Program names:
  1275. --program-prefix=PREFIX prepend PREFIX to installed program names
  1276. --program-suffix=SUFFIX append SUFFIX to installed program names
  1277. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1278. System types:
  1279. --build=BUILD configure for building on BUILD [guessed]
  1280. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1281. _ACEOF
  1282. fi
  1283. if test -n "$ac_init_help"; then
  1284. cat <<\_ACEOF
  1285. Optional Features:
  1286. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1287. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1288. --disable-dependency-tracking speeds up one-time build
  1289. --enable-dependency-tracking do not reject slow dependency extractors
  1290. --enable-static[=PKGS] build static libraries [default=no]
  1291. --enable-shared[=PKGS] build shared libraries [default=yes]
  1292. --enable-fast-install[=PKGS]
  1293. optimize for fast installation [default=yes]
  1294. --disable-libtool-lock avoid locking (might break parallel builds)
  1295. Optional Packages:
  1296. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1297. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1298. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1299. --with-pic try to use only PIC/non-PIC objects [default=use
  1300. both]
  1301. --with-tags[=TAGS] include additional configurations [automatic]
  1302. Some influential environment variables:
  1303. CXX C++ compiler command
  1304. CXXFLAGS C++ compiler flags
  1305. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1306. nonstandard directory <lib dir>
  1307. LIBS libraries to pass to the linker, e.g. -l<library>
  1308. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1309. you have headers in a nonstandard directory <include dir>
  1310. CC C compiler command
  1311. CFLAGS C compiler flags
  1312. CPP C preprocessor
  1313. CXXCPP C++ preprocessor
  1314. F77 Fortran 77 compiler command
  1315. FFLAGS Fortran 77 compiler flags
  1316. Use these variables to override the choices made by `configure' or to help
  1317. it to find libraries and programs with nonstandard names/locations.
  1318. _ACEOF
  1319. ac_status=$?
  1320. fi
  1321. if test "$ac_init_help" = "recursive"; then
  1322. # If there are subdirs, report their specific --help.
  1323. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1324. test -d "$ac_dir" || continue
  1325. ac_builddir=.
  1326. case "$ac_dir" in
  1327. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1328. *)
  1329. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1330. # A ".." for each directory in $ac_dir_suffix.
  1331. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1332. case $ac_top_builddir_sub in
  1333. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1334. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1335. esac ;;
  1336. esac
  1337. ac_abs_top_builddir=$ac_pwd
  1338. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1339. # for backward compatibility:
  1340. ac_top_builddir=$ac_top_build_prefix
  1341. case $srcdir in
  1342. .) # We are building in place.
  1343. ac_srcdir=.
  1344. ac_top_srcdir=$ac_top_builddir_sub
  1345. ac_abs_top_srcdir=$ac_pwd ;;
  1346. [\\/]* | ?:[\\/]* ) # Absolute name.
  1347. ac_srcdir=$srcdir$ac_dir_suffix;
  1348. ac_top_srcdir=$srcdir
  1349. ac_abs_top_srcdir=$srcdir ;;
  1350. *) # Relative name.
  1351. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1352. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1353. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1354. esac
  1355. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1356. cd "$ac_dir" || { ac_status=$?; continue; }
  1357. # Check for guested configure.
  1358. if test -f "$ac_srcdir/configure.gnu"; then
  1359. echo &&
  1360. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1361. elif test -f "$ac_srcdir/configure"; then
  1362. echo &&
  1363. $SHELL "$ac_srcdir/configure" --help=recursive
  1364. else
  1365. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1366. fi || ac_status=$?
  1367. cd "$ac_pwd" || { ac_status=$?; break; }
  1368. done
  1369. fi
  1370. test -n "$ac_init_help" && exit $ac_status
  1371. if $ac_init_version; then
  1372. cat <<\_ACEOF
  1373. configure
  1374. generated by GNU Autoconf 2.61
  1375. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1376. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1377. This configure script is free software; the Free Software Foundation
  1378. gives unlimited permission to copy, distribute and modify it.
  1379. _ACEOF
  1380. exit
  1381. fi
  1382. cat >config.log <<_ACEOF
  1383. This file contains any messages produced by compilers while
  1384. running configure, to aid debugging if configure makes a mistake.
  1385. It was created by $as_me, which was
  1386. generated by GNU Autoconf 2.61. Invocation command line was
  1387. $ $0 $@
  1388. _ACEOF
  1389. exec 5>>config.log
  1390. {
  1391. cat <<_ASUNAME
  1392. ## --------- ##
  1393. ## Platform. ##
  1394. ## --------- ##
  1395. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1396. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1397. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1398. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1399. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1400. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1401. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1402. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1403. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1404. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1405. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1406. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1407. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1408. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1409. _ASUNAME
  1410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1411. for as_dir in $PATH
  1412. do
  1413. IFS=$as_save_IFS
  1414. test -z "$as_dir" && as_dir=.
  1415. echo "PATH: $as_dir"
  1416. done
  1417. IFS=$as_save_IFS
  1418. } >&5
  1419. cat >&5 <<_ACEOF
  1420. ## ----------- ##
  1421. ## Core tests. ##
  1422. ## ----------- ##
  1423. _ACEOF
  1424. # Keep a trace of the command line.
  1425. # Strip out --no-create and --no-recursion so they do not pile up.
  1426. # Strip out --silent because we don't want to record it for future runs.
  1427. # Also quote any args containing shell meta-characters.
  1428. # Make two passes to allow for proper duplicate-argument suppression.
  1429. ac_configure_args=
  1430. ac_configure_args0=
  1431. ac_configure_args1=
  1432. ac_must_keep_next=false
  1433. for ac_pass in 1 2
  1434. do
  1435. for ac_arg
  1436. do
  1437. case $ac_arg in
  1438. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1439. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1440. | -silent | --silent | --silen | --sile | --sil)
  1441. continue ;;
  1442. *\'*)
  1443. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1444. esac
  1445. case $ac_pass in
  1446. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1447. 2)
  1448. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1449. if test $ac_must_keep_next = true; then
  1450. ac_must_keep_next=false # Got value, back to normal.
  1451. else
  1452. case $ac_arg in
  1453. *=* | --config-cache | -C | -disable-* | --disable-* \
  1454. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1455. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1456. | -with-* | --with-* | -without-* | --without-* | --x)
  1457. case "$ac_configure_args0 " in
  1458. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1459. esac
  1460. ;;
  1461. -* ) ac_must_keep_next=true ;;
  1462. esac
  1463. fi
  1464. ac_configure_args="$ac_configure_args '$ac_arg'"
  1465. ;;
  1466. esac
  1467. done
  1468. done
  1469. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1470. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1471. # When interrupted or exit'd, cleanup temporary files, and complete
  1472. # config.log. We remove comments because anyway the quotes in there
  1473. # would cause problems or look ugly.
  1474. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1475. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1476. trap 'exit_status=$?
  1477. # Save into config.log some information that might help in debugging.
  1478. {
  1479. echo
  1480. cat <<\_ASBOX
  1481. ## ---------------- ##
  1482. ## Cache variables. ##
  1483. ## ---------------- ##
  1484. _ASBOX
  1485. echo
  1486. # The following way of writing the cache mishandles newlines in values,
  1487. (
  1488. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1489. eval ac_val=\$$ac_var
  1490. case $ac_val in #(
  1491. *${as_nl}*)
  1492. case $ac_var in #(
  1493. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1494. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1495. esac
  1496. case $ac_var in #(
  1497. _ | IFS | as_nl) ;; #(
  1498. *) $as_unset $ac_var ;;
  1499. esac ;;
  1500. esac
  1501. done
  1502. (set) 2>&1 |
  1503. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1504. *${as_nl}ac_space=\ *)
  1505. sed -n \
  1506. "s/'\''/'\''\\\\'\'''\''/g;
  1507. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1508. ;; #(
  1509. *)
  1510. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1511. ;;
  1512. esac |
  1513. sort
  1514. )
  1515. echo
  1516. cat <<\_ASBOX
  1517. ## ----------------- ##
  1518. ## Output variables. ##
  1519. ## ----------------- ##
  1520. _ASBOX
  1521. echo
  1522. for ac_var in $ac_subst_vars
  1523. do
  1524. eval ac_val=\$$ac_var
  1525. case $ac_val in
  1526. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1527. esac
  1528. echo "$ac_var='\''$ac_val'\''"
  1529. done | sort
  1530. echo
  1531. if test -n "$ac_subst_files"; then
  1532. cat <<\_ASBOX
  1533. ## ------------------- ##
  1534. ## File substitutions. ##
  1535. ## ------------------- ##
  1536. _ASBOX
  1537. echo
  1538. for ac_var in $ac_subst_files
  1539. do
  1540. eval ac_val=\$$ac_var
  1541. case $ac_val in
  1542. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1543. esac
  1544. echo "$ac_var='\''$ac_val'\''"
  1545. done | sort
  1546. echo
  1547. fi
  1548. if test -s confdefs.h; then
  1549. cat <<\_ASBOX
  1550. ## ----------- ##
  1551. ## confdefs.h. ##
  1552. ## ----------- ##
  1553. _ASBOX
  1554. echo
  1555. cat confdefs.h
  1556. echo
  1557. fi
  1558. test "$ac_signal" != 0 &&
  1559. echo "$as_me: caught signal $ac_signal"
  1560. echo "$as_me: exit $exit_status"
  1561. } >&5
  1562. rm -f core *.core core.conftest.* &&
  1563. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1564. exit $exit_status
  1565. ' 0
  1566. for ac_signal in 1 2 13 15; do
  1567. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1568. done
  1569. ac_signal=0
  1570. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1571. rm -f -r conftest* confdefs.h
  1572. # Predefined preprocessor variables.
  1573. cat >>confdefs.h <<_ACEOF
  1574. #define PACKAGE_NAME "$PACKAGE_NAME"
  1575. _ACEOF
  1576. cat >>confdefs.h <<_ACEOF
  1577. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1578. _ACEOF
  1579. cat >>confdefs.h <<_ACEOF
  1580. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1581. _ACEOF
  1582. cat >>confdefs.h <<_ACEOF
  1583. #define PACKAGE_STRING "$PACKAGE_STRING"
  1584. _ACEOF
  1585. cat >>confdefs.h <<_ACEOF
  1586. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1587. _ACEOF
  1588. # Let the site file select an alternate cache file if it wants to.
  1589. # Prefer explicitly selected file to automatically selected ones.
  1590. if test -n "$CONFIG_SITE"; then
  1591. set x "$CONFIG_SITE"
  1592. elif test "x$prefix" != xNONE; then
  1593. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1594. else
  1595. set x "$ac_default_prefix/share/config.site" \
  1596. "$ac_default_prefix/etc/config.site"
  1597. fi
  1598. shift
  1599. for ac_site_file
  1600. do
  1601. if test -r "$ac_site_file"; then
  1602. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1603. echo "$as_me: loading site script $ac_site_file" >&6;}
  1604. sed 's/^/| /' "$ac_site_file" >&5
  1605. . "$ac_site_file"
  1606. fi
  1607. done
  1608. if test -r "$cache_file"; then
  1609. # Some versions of bash will fail to source /dev/null (special
  1610. # files actually), so we avoid doing that.
  1611. if test -f "$cache_file"; then
  1612. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1613. echo "$as_me: loading cache $cache_file" >&6;}
  1614. case $cache_file in
  1615. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1616. *) . "./$cache_file";;
  1617. esac
  1618. fi
  1619. else
  1620. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1621. echo "$as_me: creating cache $cache_file" >&6;}
  1622. >$cache_file
  1623. fi
  1624. # Check that the precious variables saved in the cache have kept the same
  1625. # value.
  1626. ac_cache_corrupted=false
  1627. for ac_var in $ac_precious_vars; do
  1628. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1629. eval ac_new_set=\$ac_env_${ac_var}_set
  1630. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1631. eval ac_new_val=\$ac_env_${ac_var}_value
  1632. case $ac_old_set,$ac_new_set in
  1633. set,)
  1634. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1635. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1636. ac_cache_corrupted=: ;;
  1637. ,set)
  1638. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1639. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1640. ac_cache_corrupted=: ;;
  1641. ,);;
  1642. *)
  1643. if test "x$ac_old_val" != "x$ac_new_val"; then
  1644. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1645. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1646. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1647. echo "$as_me: former value: $ac_old_val" >&2;}
  1648. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1649. echo "$as_me: current value: $ac_new_val" >&2;}
  1650. ac_cache_corrupted=:
  1651. fi;;
  1652. esac
  1653. # Pass precious variables to config.status.
  1654. if test "$ac_new_set" = set; then
  1655. case $ac_new_val in
  1656. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1657. *) ac_arg=$ac_var=$ac_new_val ;;
  1658. esac
  1659. case " $ac_configure_args " in
  1660. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1661. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1662. esac
  1663. fi
  1664. done
  1665. if $ac_cache_corrupted; then
  1666. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1667. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1668. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1669. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1670. { (exit 1); exit 1; }; }
  1671. fi
  1672. ac_ext=c
  1673. ac_cpp='$CPP $CPPFLAGS'
  1674. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1675. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1676. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1677. ac_aux_dir=
  1678. for ac_dir in config "$srcdir"/config; do
  1679. if test -f "$ac_dir/install-sh"; then
  1680. ac_aux_dir=$ac_dir
  1681. ac_install_sh="$ac_aux_dir/install-sh -c"
  1682. break
  1683. elif test -f "$ac_dir/install.sh"; then
  1684. ac_aux_dir=$ac_dir
  1685. ac_install_sh="$ac_aux_dir/install.sh -c"
  1686. break
  1687. elif test -f "$ac_dir/shtool"; then
  1688. ac_aux_dir=$ac_dir
  1689. ac_install_sh="$ac_aux_dir/shtool install -c"
  1690. break
  1691. fi
  1692. done
  1693. if test -z "$ac_aux_dir"; then
  1694. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
  1695. echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
  1696. { (exit 1); exit 1; }; }
  1697. fi
  1698. # These three variables are undocumented and unsupported,
  1699. # and are intended to be withdrawn in a future Autoconf release.
  1700. # They can cause serious problems if a builder's source tree is in a directory
  1701. # whose full name contains unusual characters.
  1702. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1703. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1704. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1705. GENERIC_LIBRARY_NAME=GTL
  1706. #release versioning
  1707. GENERIC_MAJOR_VERSION=1
  1708. GENERIC_MINOR_VERSION=2
  1709. GENERIC_MICRO_VERSION=4
  1710. #shared library versioning
  1711. GENERIC_LIBRARY_VERSION=3:4:2
  1712. # | | |
  1713. # +------+ | +---+
  1714. # | | |
  1715. # current:revision:age
  1716. # | | |
  1717. # | | +- increment if interfaces have been added
  1718. # | | set to zero if interfaces have been removed
  1719. # or changed
  1720. # | +- increment if source code has changed
  1721. # | set to zero if current is incremented
  1722. # +- increment if interfaces have been added, removed or changed
  1723. PACKAGE=$GENERIC_LIBRARY_NAME
  1724. GENERIC_VERSION=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION.$GENERIC_MICRO_VERSION
  1725. GENERIC_RELEASE=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION
  1726. cat >>confdefs.h <<_ACEOF
  1727. #define GENERIC_MAJOR_VERSION $GENERIC_MAJOR_VERSION
  1728. _ACEOF
  1729. cat >>confdefs.h <<_ACEOF
  1730. #define GENERIC_MINOR_VERSION $GENERIC_MINOR_VERSION
  1731. _ACEOF
  1732. cat >>confdefs.h <<_ACEOF
  1733. #define GENERIC_MICRO_VERSION $GENERIC_MICRO_VERSION
  1734. _ACEOF
  1735. VERSION=$GENERIC_VERSION
  1736. # automake
  1737. am__api_version='1.10'
  1738. # Find a good install program. We prefer a C program (faster),
  1739. # so one script is as good as another. But avoid the broken or
  1740. # incompatible versions:
  1741. # SysV /etc/install, /usr/sbin/install
  1742. # SunOS /usr/etc/install
  1743. # IRIX /sbin/install
  1744. # AIX /bin/install
  1745. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1746. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1747. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1748. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1749. # OS/2's system install, which has a completely different semantic
  1750. # ./install, which can be erroneously created by make from ./install.sh.
  1751. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1752. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1753. if test -z "$INSTALL"; then
  1754. if test "${ac_cv_path_install+set}" = set; then
  1755. echo $ECHO_N "(cached) $ECHO_C" >&6
  1756. else
  1757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1758. for as_dir in $PATH
  1759. do
  1760. IFS=$as_save_IFS
  1761. test -z "$as_dir" && as_dir=.
  1762. # Account for people who put trailing slashes in PATH elements.
  1763. case $as_dir/ in
  1764. ./ | .// | /cC/* | \
  1765. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1766. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1767. /usr/ucb/* ) ;;
  1768. *)
  1769. # OSF1 and SCO ODT 3.0 have their own names for install.
  1770. # Don't use installbsd from OSF since it installs stuff as root
  1771. # by default.
  1772. for ac_prog in ginstall scoinst install; do
  1773. for ac_exec_ext in '' $ac_executable_extensions; do
  1774. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1775. if test $ac_prog = install &&
  1776. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1777. # AIX install. It has an incompatible calling convention.
  1778. :
  1779. elif test $ac_prog = install &&
  1780. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1781. # program-specific install script used by HP pwplus--don't use.
  1782. :
  1783. else
  1784. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1785. break 3
  1786. fi
  1787. fi
  1788. done
  1789. done
  1790. ;;
  1791. esac
  1792. done
  1793. IFS=$as_save_IFS
  1794. fi
  1795. if test "${ac_cv_path_install+set}" = set; then
  1796. INSTALL=$ac_cv_path_install
  1797. else
  1798. # As a last resort, use the slow shell script. Don't cache a
  1799. # value for INSTALL within a source directory, because that will
  1800. # break other packages using the cache if that directory is
  1801. # removed, or if the value is a relative name.
  1802. INSTALL=$ac_install_sh
  1803. fi
  1804. fi
  1805. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1806. echo "${ECHO_T}$INSTALL" >&6; }
  1807. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1808. # It thinks the first close brace ends the variable substitution.
  1809. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1810. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1811. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1812. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1813. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1814. # Just in case
  1815. sleep 1
  1816. echo timestamp > conftest.file
  1817. # Do `set' in a subshell so we don't clobber the current shell's
  1818. # arguments. Must try -L first in case configure is actually a
  1819. # symlink; some systems play weird games with the mod time of symlinks
  1820. # (eg FreeBSD returns the mod time of the symlink's containing
  1821. # directory).
  1822. if (
  1823. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1824. if test "$*" = "X"; then
  1825. # -L didn't work.
  1826. set X `ls -t $srcdir/configure conftest.file`
  1827. fi
  1828. rm -f conftest.file
  1829. if test "$*" != "X $srcdir/configure conftest.file" \
  1830. && test "$*" != "X conftest.file $srcdir/configure"; then
  1831. # If neither matched, then we have a broken ls. This can happen
  1832. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1833. # broken ls alias from the environment. This has actually
  1834. # happened. Such a system could not be considered "sane".
  1835. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1836. alias in your environment" >&5
  1837. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1838. alias in your environment" >&2;}
  1839. { (exit 1); exit 1; }; }
  1840. fi
  1841. test "$2" = conftest.file
  1842. )
  1843. then
  1844. # Ok.
  1845. :
  1846. else
  1847. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1848. Check your system clock" >&5
  1849. echo "$as_me: error: newly created file is older than distributed files!
  1850. Check your system clock" >&2;}
  1851. { (exit 1); exit 1; }; }
  1852. fi
  1853. { echo "$as_me:$LINENO: result: yes" >&5
  1854. echo "${ECHO_T}yes" >&6; }
  1855. test "$program_prefix" != NONE &&
  1856. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1857. # Use a double $ so make ignores it.
  1858. test "$program_suffix" != NONE &&
  1859. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1860. # Double any \ or $. echo might interpret backslashes.
  1861. # By default was `s,x,x', remove it if useless.
  1862. cat <<\_ACEOF >conftest.sed
  1863. s/[\\$]/&&/g;s/;s,x,x,$//
  1864. _ACEOF
  1865. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1866. rm -f conftest.sed
  1867. # expand $ac_aux_dir to an absolute path
  1868. am_aux_dir=`cd $ac_aux_dir && pwd`
  1869. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1870. # Use eval to expand $SHELL
  1871. if eval "$MISSING --run true"; then
  1872. am_missing_run="$MISSING --run "
  1873. else
  1874. am_missing_run=
  1875. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1876. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1877. fi
  1878. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1879. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1880. if test -z "$MKDIR_P"; then
  1881. if test "${ac_cv_path_mkdir+set}" = set; then
  1882. echo $ECHO_N "(cached) $ECHO_C" >&6
  1883. else
  1884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1885. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1886. do
  1887. IFS=$as_save_IFS
  1888. test -z "$as_dir" && as_dir=.
  1889. for ac_prog in mkdir gmkdir; do
  1890. for ac_exec_ext in '' $ac_executable_extensions; do
  1891. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1892. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1893. 'mkdir (GNU coreutils) '* | \
  1894. 'mkdir (coreutils) '* | \
  1895. 'mkdir (fileutils) '4.1*)
  1896. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1897. break 3;;
  1898. esac
  1899. done
  1900. done
  1901. done
  1902. IFS=$as_save_IFS
  1903. fi
  1904. if test "${ac_cv_path_mkdir+set}" = set; then
  1905. MKDIR_P="$ac_cv_path_mkdir -p"
  1906. else
  1907. # As a last resort, use the slow shell script. Don't cache a
  1908. # value for MKDIR_P within a source directory, because that will
  1909. # break other packages using the cache if that directory is
  1910. # removed, or if the value is a relative name.
  1911. test -d ./--version && rmdir ./--version
  1912. MKDIR_P="$ac_install_sh -d"
  1913. fi
  1914. fi
  1915. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1916. echo "${ECHO_T}$MKDIR_P" >&6; }
  1917. mkdir_p="$MKDIR_P"
  1918. case $mkdir_p in
  1919. [\\/$]* | ?:[\\/]*) ;;
  1920. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1921. esac
  1922. for ac_prog in gawk mawk nawk awk
  1923. do
  1924. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1925. set dummy $ac_prog; ac_word=$2
  1926. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1927. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1928. if test "${ac_cv_prog_AWK+set}" = set; then
  1929. echo $ECHO_N "(cached) $ECHO_C" >&6
  1930. else
  1931. if test -n "$AWK"; then
  1932. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1933. else
  1934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1935. for as_dir in $PATH
  1936. do
  1937. IFS=$as_save_IFS
  1938. test -z "$as_dir" && as_dir=.
  1939. for ac_exec_ext in '' $ac_executable_extensions; do
  1940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1941. ac_cv_prog_AWK="$ac_prog"
  1942. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1943. break 2
  1944. fi
  1945. done
  1946. done
  1947. IFS=$as_save_IFS
  1948. fi
  1949. fi
  1950. AWK=$ac_cv_prog_AWK
  1951. if test -n "$AWK"; then
  1952. { echo "$as_me:$LINENO: result: $AWK" >&5
  1953. echo "${ECHO_T}$AWK" >&6; }
  1954. else
  1955. { echo "$as_me:$LINENO: result: no" >&5
  1956. echo "${ECHO_T}no" >&6; }
  1957. fi
  1958. test -n "$AWK" && break
  1959. done
  1960. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1961. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1962. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1963. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1964. echo $ECHO_N "(cached) $ECHO_C" >&6
  1965. else
  1966. cat >conftest.make <<\_ACEOF
  1967. SHELL = /bin/sh
  1968. all:
  1969. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1970. _ACEOF
  1971. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1972. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1973. *@@@%%%=?*=@@@%%%*)
  1974. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1975. *)
  1976. eval ac_cv_prog_make_${ac_make}_set=no;;
  1977. esac
  1978. rm -f conftest.make
  1979. fi
  1980. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1981. { echo "$as_me:$LINENO: result: yes" >&5
  1982. echo "${ECHO_T}yes" >&6; }
  1983. SET_MAKE=
  1984. else
  1985. { echo "$as_me:$LINENO: result: no" >&5
  1986. echo "${ECHO_T}no" >&6; }
  1987. SET_MAKE="MAKE=${MAKE-make}"
  1988. fi
  1989. rm -rf .tst 2>/dev/null
  1990. mkdir .tst 2>/dev/null
  1991. if test -d .tst; then
  1992. am__leading_dot=.
  1993. else
  1994. am__leading_dot=_
  1995. fi
  1996. rmdir .tst 2>/dev/null
  1997. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  1998. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  1999. # is not polluted with repeated "-I."
  2000. am__isrc=' -I$(srcdir)'
  2001. # test to see if srcdir already configured
  2002. if test -f $srcdir/config.status; then
  2003. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2004. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2005. { (exit 1); exit 1; }; }
  2006. fi
  2007. fi
  2008. # test whether we have cygpath
  2009. if test -z "$CYGPATH_W"; then
  2010. if (cygpath --version) >/dev/null 2>/dev/null; then
  2011. CYGPATH_W='cygpath -w'
  2012. else
  2013. CYGPATH_W=echo
  2014. fi
  2015. fi
  2016. # Define the identity of the package.
  2017. PACKAGE=$PACKAGE
  2018. VERSION=$VERSION
  2019. cat >>confdefs.h <<_ACEOF
  2020. #define PACKAGE "$PACKAGE"
  2021. _ACEOF
  2022. cat >>confdefs.h <<_ACEOF
  2023. #define VERSION "$VERSION"
  2024. _ACEOF
  2025. # Some tools Automake needs.
  2026. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2027. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2028. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2029. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2030. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2031. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2032. # Installed binaries are usually stripped using `strip' when the user
  2033. # run `make install-strip'. However `strip' might not be the right
  2034. # tool to use in cross-compilation environments, therefore Automake
  2035. # will honor the `STRIP' environment variable to overrule this program.
  2036. if test "$cross_compiling" != no; then
  2037. if test -n "$ac_tool_prefix"; then
  2038. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2039. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2040. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2041. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2042. if test "${ac_cv_prog_STRIP+set}" = set; then
  2043. echo $ECHO_N "(cached) $ECHO_C" >&6
  2044. else
  2045. if test -n "$STRIP"; then
  2046. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2047. else
  2048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2049. for as_dir in $PATH
  2050. do
  2051. IFS=$as_save_IFS
  2052. test -z "$as_dir" && as_dir=.
  2053. for ac_exec_ext in '' $ac_executable_extensions; do
  2054. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2055. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2056. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2057. break 2
  2058. fi
  2059. done
  2060. done
  2061. IFS=$as_save_IFS
  2062. fi
  2063. fi
  2064. STRIP=$ac_cv_prog_STRIP
  2065. if test -n "$STRIP"; then
  2066. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2067. echo "${ECHO_T}$STRIP" >&6; }
  2068. else
  2069. { echo "$as_me:$LINENO: result: no" >&5
  2070. echo "${ECHO_T}no" >&6; }
  2071. fi
  2072. fi
  2073. if test -z "$ac_cv_prog_STRIP"; then
  2074. ac_ct_STRIP=$STRIP
  2075. # Extract the first word of "strip", so it can be a program name with args.
  2076. set dummy strip; ac_word=$2
  2077. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2078. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2079. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2080. echo $ECHO_N "(cached) $ECHO_C" >&6
  2081. else
  2082. if test -n "$ac_ct_STRIP"; then
  2083. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2084. else
  2085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2086. for as_dir in $PATH
  2087. do
  2088. IFS=$as_save_IFS
  2089. test -z "$as_dir" && as_dir=.
  2090. for ac_exec_ext in '' $ac_executable_extensions; do
  2091. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2092. ac_cv_prog_ac_ct_STRIP="strip"
  2093. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2094. break 2
  2095. fi
  2096. done
  2097. done
  2098. IFS=$as_save_IFS
  2099. fi
  2100. fi
  2101. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2102. if test -n "$ac_ct_STRIP"; then
  2103. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2104. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2105. else
  2106. { echo "$as_me:$LINENO: result: no" >&5
  2107. echo "${ECHO_T}no" >&6; }
  2108. fi
  2109. if test "x$ac_ct_STRIP" = x; then
  2110. STRIP=":"
  2111. else
  2112. case $cross_compiling:$ac_tool_warned in
  2113. yes:)
  2114. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2115. whose name does not start with the host triplet. If you think this
  2116. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2117. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2118. whose name does not start with the host triplet. If you think this
  2119. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2120. ac_tool_warned=yes ;;
  2121. esac
  2122. STRIP=$ac_ct_STRIP
  2123. fi
  2124. else
  2125. STRIP="$ac_cv_prog_STRIP"
  2126. fi
  2127. fi
  2128. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2129. # We need awk for the "check" target. The system "awk" is bad on
  2130. # some platforms.
  2131. # Always define AMTAR for backward compatibility.
  2132. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2133. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2134. # libtool
  2135. ac_ext=cpp
  2136. ac_cpp='$CXXCPP $CPPFLAGS'
  2137. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2138. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2139. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2140. if test -z "$CXX"; then
  2141. if test -n "$CCC"; then
  2142. CXX=$CCC
  2143. else
  2144. if test -n "$ac_tool_prefix"; then
  2145. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2146. do
  2147. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2148. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2149. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2150. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2151. if test "${ac_cv_prog_CXX+set}" = set; then
  2152. echo $ECHO_N "(cached) $ECHO_C" >&6
  2153. else
  2154. if test -n "$CXX"; then
  2155. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2156. else
  2157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2158. for as_dir in $PATH
  2159. do
  2160. IFS=$as_save_IFS
  2161. test -z "$as_dir" && as_dir=.
  2162. for ac_exec_ext in '' $ac_executable_extensions; do
  2163. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2164. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2165. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2166. break 2
  2167. fi
  2168. done
  2169. done
  2170. IFS=$as_save_IFS
  2171. fi
  2172. fi
  2173. CXX=$ac_cv_prog_CXX
  2174. if test -n "$CXX"; then
  2175. { echo "$as_me:$LINENO: result: $CXX" >&5
  2176. echo "${ECHO_T}$CXX" >&6; }
  2177. else
  2178. { echo "$as_me:$LINENO: result: no" >&5
  2179. echo "${ECHO_T}no" >&6; }
  2180. fi
  2181. test -n "$CXX" && break
  2182. done
  2183. fi
  2184. if test -z "$CXX"; then
  2185. ac_ct_CXX=$CXX
  2186. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2187. do
  2188. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2189. set dummy $ac_prog; ac_word=$2
  2190. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2191. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2192. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2193. echo $ECHO_N "(cached) $ECHO_C" >&6
  2194. else
  2195. if test -n "$ac_ct_CXX"; then
  2196. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2197. else
  2198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2199. for as_dir in $PATH
  2200. do
  2201. IFS=$as_save_IFS
  2202. test -z "$as_dir" && as_dir=.
  2203. for ac_exec_ext in '' $ac_executable_extensions; do
  2204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2205. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2206. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2207. break 2
  2208. fi
  2209. done
  2210. done
  2211. IFS=$as_save_IFS
  2212. fi
  2213. fi
  2214. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2215. if test -n "$ac_ct_CXX"; then
  2216. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2217. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2218. else
  2219. { echo "$as_me:$LINENO: result: no" >&5
  2220. echo "${ECHO_T}no" >&6; }
  2221. fi
  2222. test -n "$ac_ct_CXX" && break
  2223. done
  2224. if test "x$ac_ct_CXX" = x; then
  2225. CXX="g++"
  2226. else
  2227. case $cross_compiling:$ac_tool_warned in
  2228. yes:)
  2229. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2230. whose name does not start with the host triplet. If you think this
  2231. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2232. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2233. whose name does not start with the host triplet. If you think this
  2234. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2235. ac_tool_warned=yes ;;
  2236. esac
  2237. CXX=$ac_ct_CXX
  2238. fi
  2239. fi
  2240. fi
  2241. fi
  2242. # Provide some information about the compiler.
  2243. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2244. ac_compiler=`set X $ac_compile; echo $2`
  2245. { (ac_try="$ac_compiler --version >&5"
  2246. case "(($ac_try" in
  2247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2248. *) ac_try_echo=$ac_try;;
  2249. esac
  2250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2251. (eval "$ac_compiler --version >&5") 2>&5
  2252. ac_status=$?
  2253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2254. (exit $ac_status); }
  2255. { (ac_try="$ac_compiler -v >&5"
  2256. case "(($ac_try" in
  2257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2258. *) ac_try_echo=$ac_try;;
  2259. esac
  2260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2261. (eval "$ac_compiler -v >&5") 2>&5
  2262. ac_status=$?
  2263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2264. (exit $ac_status); }
  2265. { (ac_try="$ac_compiler -V >&5"
  2266. case "(($ac_try" in
  2267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2268. *) ac_try_echo=$ac_try;;
  2269. esac
  2270. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2271. (eval "$ac_compiler -V >&5") 2>&5
  2272. ac_status=$?
  2273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2274. (exit $ac_status); }
  2275. cat >conftest.$ac_ext <<_ACEOF
  2276. /* confdefs.h. */
  2277. _ACEOF
  2278. cat confdefs.h >>conftest.$ac_ext
  2279. cat >>conftest.$ac_ext <<_ACEOF
  2280. /* end confdefs.h. */
  2281. int
  2282. main ()
  2283. {
  2284. ;
  2285. return 0;
  2286. }
  2287. _ACEOF
  2288. ac_clean_files_save=$ac_clean_files
  2289. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2290. # Try to create an executable without -o first, disregard a.out.
  2291. # It will help us diagnose broken compilers, and finding out an intuition
  2292. # of exeext.
  2293. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2294. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2295. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2296. #
  2297. # List of possible output files, starting from the most likely.
  2298. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2299. # only as a last resort. b.out is created by i960 compilers.
  2300. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2301. #
  2302. # The IRIX 6 linker writes into existing files which may not be
  2303. # executable, retaining their permissions. Remove them first so a
  2304. # subsequent execution test works.
  2305. ac_rmfiles=
  2306. for ac_file in $ac_files
  2307. do
  2308. case $ac_file in
  2309. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2310. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2311. esac
  2312. done
  2313. rm -f $ac_rmfiles
  2314. if { (ac_try="$ac_link_default"
  2315. case "(($ac_try" in
  2316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2317. *) ac_try_echo=$ac_try;;
  2318. esac
  2319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2320. (eval "$ac_link_default") 2>&5
  2321. ac_status=$?
  2322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2323. (exit $ac_status); }; then
  2324. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2325. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2326. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2327. # so that the user can short-circuit this test for compilers unknown to
  2328. # Autoconf.
  2329. for ac_file in $ac_files ''
  2330. do
  2331. test -f "$ac_file" || continue
  2332. case $ac_file in
  2333. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2334. ;;
  2335. [ab].out )
  2336. # We found the default executable, but exeext='' is most
  2337. # certainly right.
  2338. break;;
  2339. *.* )
  2340. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2341. then :; else
  2342. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2343. fi
  2344. # We set ac_cv_exeext here because the later test for it is not
  2345. # safe: cross compilers may not add the suffix if given an `-o'
  2346. # argument, so we may need to know it at that point already.
  2347. # Even if this section looks crufty: it has the advantage of
  2348. # actually working.
  2349. break;;
  2350. * )
  2351. break;;
  2352. esac
  2353. done
  2354. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2355. else
  2356. ac_file=''
  2357. fi
  2358. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2359. echo "${ECHO_T}$ac_file" >&6; }
  2360. if test -z "$ac_file"; then
  2361. echo "$as_me: failed program was:" >&5
  2362. sed 's/^/| /' conftest.$ac_ext >&5
  2363. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2364. See \`config.log' for more details." >&5
  2365. echo "$as_me: error: C++ compiler cannot create executables
  2366. See \`config.log' for more details." >&2;}
  2367. { (exit 77); exit 77; }; }
  2368. fi
  2369. ac_exeext=$ac_cv_exeext
  2370. # Check that the compiler produces executables we can run. If not, either
  2371. # the compiler is broken, or we cross compile.
  2372. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2373. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2374. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2375. # If not cross compiling, check that we can run a simple program.
  2376. if test "$cross_compiling" != yes; then
  2377. if { ac_try='./$ac_file'
  2378. { (case "(($ac_try" in
  2379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2380. *) ac_try_echo=$ac_try;;
  2381. esac
  2382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2383. (eval "$ac_try") 2>&5
  2384. ac_status=$?
  2385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2386. (exit $ac_status); }; }; then
  2387. cross_compiling=no
  2388. else
  2389. if test "$cross_compiling" = maybe; then
  2390. cross_compiling=yes
  2391. else
  2392. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2393. If you meant to cross compile, use \`--host'.
  2394. See \`config.log' for more details." >&5
  2395. echo "$as_me: error: cannot run C++ compiled programs.
  2396. If you meant to cross compile, use \`--host'.
  2397. See \`config.log' for more details." >&2;}
  2398. { (exit 1); exit 1; }; }
  2399. fi
  2400. fi
  2401. fi
  2402. { echo "$as_me:$LINENO: result: yes" >&5
  2403. echo "${ECHO_T}yes" >&6; }
  2404. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2405. ac_clean_files=$ac_clean_files_save
  2406. # Check that the compiler produces executables we can run. If not, either
  2407. # the compiler is broken, or we cross compile.
  2408. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2409. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2410. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2411. echo "${ECHO_T}$cross_compiling" >&6; }
  2412. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2413. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2414. if { (ac_try="$ac_link"
  2415. case "(($ac_try" in
  2416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2417. *) ac_try_echo=$ac_try;;
  2418. esac
  2419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2420. (eval "$ac_link") 2>&5
  2421. ac_status=$?
  2422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2423. (exit $ac_status); }; then
  2424. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2425. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2426. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2427. # `rm'.
  2428. for ac_file in conftest.exe conftest conftest.*; do
  2429. test -f "$ac_file" || continue
  2430. case $ac_file in
  2431. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2432. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2433. break;;
  2434. * ) break;;
  2435. esac
  2436. done
  2437. else
  2438. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2439. See \`config.log' for more details." >&5
  2440. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2441. See \`config.log' for more details." >&2;}
  2442. { (exit 1); exit 1; }; }
  2443. fi
  2444. rm -f conftest$ac_cv_exeext
  2445. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2446. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2447. rm -f conftest.$ac_ext
  2448. EXEEXT=$ac_cv_exeext
  2449. ac_exeext=$EXEEXT
  2450. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2451. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2452. if test "${ac_cv_objext+set}" = set; then
  2453. echo $ECHO_N "(cached) $ECHO_C" >&6
  2454. else
  2455. cat >conftest.$ac_ext <<_ACEOF
  2456. /* confdefs.h. */
  2457. _ACEOF
  2458. cat confdefs.h >>conftest.$ac_ext
  2459. cat >>conftest.$ac_ext <<_ACEOF
  2460. /* end confdefs.h. */
  2461. int
  2462. main ()
  2463. {
  2464. ;
  2465. return 0;
  2466. }
  2467. _ACEOF
  2468. rm -f conftest.o conftest.obj
  2469. if { (ac_try="$ac_compile"
  2470. case "(($ac_try" in
  2471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2472. *) ac_try_echo=$ac_try;;
  2473. esac
  2474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2475. (eval "$ac_compile") 2>&5
  2476. ac_status=$?
  2477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2478. (exit $ac_status); }; then
  2479. for ac_file in conftest.o conftest.obj conftest.*; do
  2480. test -f "$ac_file" || continue;
  2481. case $ac_file in
  2482. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2483. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2484. break;;
  2485. esac
  2486. done
  2487. else
  2488. echo "$as_me: failed program was:" >&5
  2489. sed 's/^/| /' conftest.$ac_ext >&5
  2490. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2491. See \`config.log' for more details." >&5
  2492. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2493. See \`config.log' for more details." >&2;}
  2494. { (exit 1); exit 1; }; }
  2495. fi
  2496. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2497. fi
  2498. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2499. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2500. OBJEXT=$ac_cv_objext
  2501. ac_objext=$OBJEXT
  2502. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2503. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2504. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2505. echo $ECHO_N "(cached) $ECHO_C" >&6
  2506. else
  2507. cat >conftest.$ac_ext <<_ACEOF
  2508. /* confdefs.h. */
  2509. _ACEOF
  2510. cat confdefs.h >>conftest.$ac_ext
  2511. cat >>conftest.$ac_ext <<_ACEOF
  2512. /* end confdefs.h. */
  2513. int
  2514. main ()
  2515. {
  2516. #ifndef __GNUC__
  2517. choke me
  2518. #endif
  2519. ;
  2520. return 0;
  2521. }
  2522. _ACEOF
  2523. rm -f conftest.$ac_objext
  2524. if { (ac_try="$ac_compile"
  2525. case "(($ac_try" in
  2526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2527. *) ac_try_echo=$ac_try;;
  2528. esac
  2529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2530. (eval "$ac_compile") 2>conftest.er1
  2531. ac_status=$?
  2532. grep -v '^ *+' conftest.er1 >conftest.err
  2533. rm -f conftest.er1
  2534. cat conftest.err >&5
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); } && {
  2537. test -z "$ac_cxx_werror_flag" ||
  2538. test ! -s conftest.err
  2539. } && test -s conftest.$ac_objext; then
  2540. ac_compiler_gnu=yes
  2541. else
  2542. echo "$as_me: failed program was:" >&5
  2543. sed 's/^/| /' conftest.$ac_ext >&5
  2544. ac_compiler_gnu=no
  2545. fi
  2546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2547. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2548. fi
  2549. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2550. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2551. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2552. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2553. ac_save_CXXFLAGS=$CXXFLAGS
  2554. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2555. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2556. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2557. echo $ECHO_N "(cached) $ECHO_C" >&6
  2558. else
  2559. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2560. ac_cxx_werror_flag=yes
  2561. ac_cv_prog_cxx_g=no
  2562. CXXFLAGS="-g"
  2563. cat >conftest.$ac_ext <<_ACEOF
  2564. /* confdefs.h. */
  2565. _ACEOF
  2566. cat confdefs.h >>conftest.$ac_ext
  2567. cat >>conftest.$ac_ext <<_ACEOF
  2568. /* end confdefs.h. */
  2569. int
  2570. main ()
  2571. {
  2572. ;
  2573. return 0;
  2574. }
  2575. _ACEOF
  2576. rm -f conftest.$ac_objext
  2577. if { (ac_try="$ac_compile"
  2578. case "(($ac_try" in
  2579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2580. *) ac_try_echo=$ac_try;;
  2581. esac
  2582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2583. (eval "$ac_compile") 2>conftest.er1
  2584. ac_status=$?
  2585. grep -v '^ *+' conftest.er1 >conftest.err
  2586. rm -f conftest.er1
  2587. cat conftest.err >&5
  2588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2589. (exit $ac_status); } && {
  2590. test -z "$ac_cxx_werror_flag" ||
  2591. test ! -s conftest.err
  2592. } && test -s conftest.$ac_objext; then
  2593. ac_cv_prog_cxx_g=yes
  2594. else
  2595. echo "$as_me: failed program was:" >&5
  2596. sed 's/^/| /' conftest.$ac_ext >&5
  2597. CXXFLAGS=""
  2598. cat >conftest.$ac_ext <<_ACEOF
  2599. /* confdefs.h. */
  2600. _ACEOF
  2601. cat confdefs.h >>conftest.$ac_ext
  2602. cat >>conftest.$ac_ext <<_ACEOF
  2603. /* end confdefs.h. */
  2604. int
  2605. main ()
  2606. {
  2607. ;
  2608. return 0;
  2609. }
  2610. _ACEOF
  2611. rm -f conftest.$ac_objext
  2612. if { (ac_try="$ac_compile"
  2613. case "(($ac_try" in
  2614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2615. *) ac_try_echo=$ac_try;;
  2616. esac
  2617. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2618. (eval "$ac_compile") 2>conftest.er1
  2619. ac_status=$?
  2620. grep -v '^ *+' conftest.er1 >conftest.err
  2621. rm -f conftest.er1
  2622. cat conftest.err >&5
  2623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2624. (exit $ac_status); } && {
  2625. test -z "$ac_cxx_werror_flag" ||
  2626. test ! -s conftest.err
  2627. } && test -s conftest.$ac_objext; then
  2628. :
  2629. else
  2630. echo "$as_me: failed program was:" >&5
  2631. sed 's/^/| /' conftest.$ac_ext >&5
  2632. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2633. CXXFLAGS="-g"
  2634. cat >conftest.$ac_ext <<_ACEOF
  2635. /* confdefs.h. */
  2636. _ACEOF
  2637. cat confdefs.h >>conftest.$ac_ext
  2638. cat >>conftest.$ac_ext <<_ACEOF
  2639. /* end confdefs.h. */
  2640. int
  2641. main ()
  2642. {
  2643. ;
  2644. return 0;
  2645. }
  2646. _ACEOF
  2647. rm -f conftest.$ac_objext
  2648. if { (ac_try="$ac_compile"
  2649. case "(($ac_try" in
  2650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2651. *) ac_try_echo=$ac_try;;
  2652. esac
  2653. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2654. (eval "$ac_compile") 2>conftest.er1
  2655. ac_status=$?
  2656. grep -v '^ *+' conftest.er1 >conftest.err
  2657. rm -f conftest.er1
  2658. cat conftest.err >&5
  2659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2660. (exit $ac_status); } && {
  2661. test -z "$ac_cxx_werror_flag" ||
  2662. test ! -s conftest.err
  2663. } && test -s conftest.$ac_objext; then
  2664. ac_cv_prog_cxx_g=yes
  2665. else
  2666. echo "$as_me: failed program was:" >&5
  2667. sed 's/^/| /' conftest.$ac_ext >&5
  2668. fi
  2669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2670. fi
  2671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2672. fi
  2673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2674. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2675. fi
  2676. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2677. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2678. if test "$ac_test_CXXFLAGS" = set; then
  2679. CXXFLAGS=$ac_save_CXXFLAGS
  2680. elif test $ac_cv_prog_cxx_g = yes; then
  2681. if test "$GXX" = yes; then
  2682. CXXFLAGS="-g -O2"
  2683. else
  2684. CXXFLAGS="-g"
  2685. fi
  2686. else
  2687. if test "$GXX" = yes; then
  2688. CXXFLAGS="-O2"
  2689. else
  2690. CXXFLAGS=
  2691. fi
  2692. fi
  2693. ac_ext=c
  2694. ac_cpp='$CPP $CPPFLAGS'
  2695. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2696. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2697. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2698. DEPDIR="${am__leading_dot}deps"
  2699. ac_config_commands="$ac_config_commands depfiles"
  2700. am_make=${MAKE-make}
  2701. cat > confinc << 'END'
  2702. am__doit:
  2703. @echo done
  2704. .PHONY: am__doit
  2705. END
  2706. # If we don't find an include directive, just comment out the code.
  2707. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2708. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2709. am__include="#"
  2710. am__quote=
  2711. _am_result=none
  2712. # First try GNU make style include.
  2713. echo "include confinc" > confmf
  2714. # We grep out `Entering directory' and `Leaving directory'
  2715. # messages which can occur if `w' ends up in MAKEFLAGS.
  2716. # In particular we don't look at `^make:' because GNU make might
  2717. # be invoked under some other name (usually "gmake"), in which
  2718. # case it prints its new name instead of `make'.
  2719. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2720. am__include=include
  2721. am__quote=
  2722. _am_result=GNU
  2723. fi
  2724. # Now try BSD make style include.
  2725. if test "$am__include" = "#"; then
  2726. echo '.include "confinc"' > confmf
  2727. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2728. am__include=.include
  2729. am__quote="\""
  2730. _am_result=BSD
  2731. fi
  2732. fi
  2733. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2734. echo "${ECHO_T}$_am_result" >&6; }
  2735. rm -f confinc confmf
  2736. # Check whether --enable-dependency-tracking was given.
  2737. if test "${enable_dependency_tracking+set}" = set; then
  2738. enableval=$enable_dependency_tracking;
  2739. fi
  2740. if test "x$enable_dependency_tracking" != xno; then
  2741. am_depcomp="$ac_aux_dir/depcomp"
  2742. AMDEPBACKSLASH='\'
  2743. fi
  2744. if test "x$enable_dependency_tracking" != xno; then
  2745. AMDEP_TRUE=
  2746. AMDEP_FALSE='#'
  2747. else
  2748. AMDEP_TRUE='#'
  2749. AMDEP_FALSE=
  2750. fi
  2751. depcc="$CXX" am_compiler_list=
  2752. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2753. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2754. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2755. echo $ECHO_N "(cached) $ECHO_C" >&6
  2756. else
  2757. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2758. # We make a subdir and do the tests there. Otherwise we can end up
  2759. # making bogus files that we don't know about and never remove. For
  2760. # instance it was reported that on HP-UX the gcc test will end up
  2761. # making a dummy file named `D' -- because `-MD' means `put the output
  2762. # in D'.
  2763. mkdir conftest.dir
  2764. # Copy depcomp to subdir because otherwise we won't find it if we're
  2765. # using a relative directory.
  2766. cp "$am_depcomp" conftest.dir
  2767. cd conftest.dir
  2768. # We will build objects and dependencies in a subdirectory because
  2769. # it helps to detect inapplicable dependency modes. For instance
  2770. # both Tru64's cc and ICC support -MD to output dependencies as a
  2771. # side effect of compilation, but ICC will put the dependencies in
  2772. # the current directory while Tru64 will put them in the object
  2773. # directory.
  2774. mkdir sub
  2775. am_cv_CXX_dependencies_compiler_type=none
  2776. if test "$am_compiler_list" = ""; then
  2777. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2778. fi
  2779. for depmode in $am_compiler_list; do
  2780. # Setup a source with many dependencies, because some compilers
  2781. # like to wrap large dependency lists on column 80 (with \), and
  2782. # we should not choose a depcomp mode which is confused by this.
  2783. #
  2784. # We need to recreate these files for each test, as the compiler may
  2785. # overwrite some of them when testing with obscure command lines.
  2786. # This happens at least with the AIX C compiler.
  2787. : > sub/conftest.c
  2788. for i in 1 2 3 4 5 6; do
  2789. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2790. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2791. # Solaris 8's {/usr,}/bin/sh.
  2792. touch sub/conftst$i.h
  2793. done
  2794. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2795. case $depmode in
  2796. nosideeffect)
  2797. # after this tag, mechanisms are not by side-effect, so they'll
  2798. # only be used when explicitly requested
  2799. if test "x$enable_dependency_tracking" = xyes; then
  2800. continue
  2801. else
  2802. break
  2803. fi
  2804. ;;
  2805. none) break ;;
  2806. esac
  2807. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2808. # mode. It turns out that the SunPro C++ compiler does not properly
  2809. # handle `-M -o', and we need to detect this.
  2810. if depmode=$depmode \
  2811. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2812. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2813. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2814. >/dev/null 2>conftest.err &&
  2815. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  2816. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2817. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2818. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2819. # icc doesn't choke on unknown options, it will just issue warnings
  2820. # or remarks (even with -Werror). So we grep stderr for any message
  2821. # that says an option was ignored or not supported.
  2822. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2823. # icc: Command line warning: ignoring option '-M'; no argument required
  2824. # The diagnosis changed in icc 8.0:
  2825. # icc: Command line remark: option '-MP' not supported
  2826. if (grep 'ignoring option' conftest.err ||
  2827. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2828. am_cv_CXX_dependencies_compiler_type=$depmode
  2829. break
  2830. fi
  2831. fi
  2832. done
  2833. cd ..
  2834. rm -rf conftest.dir
  2835. else
  2836. am_cv_CXX_dependencies_compiler_type=none
  2837. fi
  2838. fi
  2839. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2840. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  2841. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2842. if
  2843. test "x$enable_dependency_tracking" != xno \
  2844. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2845. am__fastdepCXX_TRUE=
  2846. am__fastdepCXX_FALSE='#'
  2847. else
  2848. am__fastdepCXX_TRUE='#'
  2849. am__fastdepCXX_FALSE=
  2850. fi
  2851. ac_ext=cpp
  2852. ac_cpp='$CXXCPP $CPPFLAGS'
  2853. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2854. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2855. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2856. # Check whether --enable-static was given.
  2857. if test "${enable_static+set}" = set; then
  2858. enableval=$enable_static; p=${PACKAGE-default}
  2859. case $enableval in
  2860. yes) enable_static=yes ;;
  2861. no) enable_static=no ;;
  2862. *)
  2863. enable_static=no
  2864. # Look at the argument we got. We use all the common list separators.
  2865. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2866. for pkg in $enableval; do
  2867. IFS="$lt_save_ifs"
  2868. if test "X$pkg" = "X$p"; then
  2869. enable_static=yes
  2870. fi
  2871. done
  2872. IFS="$lt_save_ifs"
  2873. ;;
  2874. esac
  2875. else
  2876. enable_static=no
  2877. fi
  2878. # Check whether --enable-shared was given.
  2879. if test "${enable_shared+set}" = set; then
  2880. enableval=$enable_shared; p=${PACKAGE-default}
  2881. case $enableval in
  2882. yes) enable_shared=yes ;;
  2883. no) enable_shared=no ;;
  2884. *)
  2885. enable_shared=no
  2886. # Look at the argument we got. We use all the common list separators.
  2887. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2888. for pkg in $enableval; do
  2889. IFS="$lt_save_ifs"
  2890. if test "X$pkg" = "X$p"; then
  2891. enable_shared=yes
  2892. fi
  2893. done
  2894. IFS="$lt_save_ifs"
  2895. ;;
  2896. esac
  2897. else
  2898. enable_shared=yes
  2899. fi
  2900. # Check whether --enable-fast-install was given.
  2901. if test "${enable_fast_install+set}" = set; then
  2902. enableval=$enable_fast_install; p=${PACKAGE-default}
  2903. case $enableval in
  2904. yes) enable_fast_install=yes ;;
  2905. no) enable_fast_install=no ;;
  2906. *)
  2907. enable_fast_install=no
  2908. # Look at the argument we got. We use all the common list separators.
  2909. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2910. for pkg in $enableval; do
  2911. IFS="$lt_save_ifs"
  2912. if test "X$pkg" = "X$p"; then
  2913. enable_fast_install=yes
  2914. fi
  2915. done
  2916. IFS="$lt_save_ifs"
  2917. ;;
  2918. esac
  2919. else
  2920. enable_fast_install=yes
  2921. fi
  2922. # Make sure we can run config.sub.
  2923. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2924. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2925. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2926. { (exit 1); exit 1; }; }
  2927. { echo "$as_me:$LINENO: checking build system type" >&5
  2928. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2929. if test "${ac_cv_build+set}" = set; then
  2930. echo $ECHO_N "(cached) $ECHO_C" >&6
  2931. else
  2932. ac_build_alias=$build_alias
  2933. test "x$ac_build_alias" = x &&
  2934. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2935. test "x$ac_build_alias" = x &&
  2936. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2937. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2938. { (exit 1); exit 1; }; }
  2939. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2940. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2941. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2942. { (exit 1); exit 1; }; }
  2943. fi
  2944. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2945. echo "${ECHO_T}$ac_cv_build" >&6; }
  2946. case $ac_cv_build in
  2947. *-*-*) ;;
  2948. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2949. echo "$as_me: error: invalid value of canonical build" >&2;}
  2950. { (exit 1); exit 1; }; };;
  2951. esac
  2952. build=$ac_cv_build
  2953. ac_save_IFS=$IFS; IFS='-'
  2954. set x $ac_cv_build
  2955. shift
  2956. build_cpu=$1
  2957. build_vendor=$2
  2958. shift; shift
  2959. # Remember, the first character of IFS is used to create $*,
  2960. # except with old shells:
  2961. build_os=$*
  2962. IFS=$ac_save_IFS
  2963. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2964. { echo "$as_me:$LINENO: checking host system type" >&5
  2965. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2966. if test "${ac_cv_host+set}" = set; then
  2967. echo $ECHO_N "(cached) $ECHO_C" >&6
  2968. else
  2969. if test "x$host_alias" = x; then
  2970. ac_cv_host=$ac_cv_build
  2971. else
  2972. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2973. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2974. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2975. { (exit 1); exit 1; }; }
  2976. fi
  2977. fi
  2978. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2979. echo "${ECHO_T}$ac_cv_host" >&6; }
  2980. case $ac_cv_host in
  2981. *-*-*) ;;
  2982. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2983. echo "$as_me: error: invalid value of canonical host" >&2;}
  2984. { (exit 1); exit 1; }; };;
  2985. esac
  2986. host=$ac_cv_host
  2987. ac_save_IFS=$IFS; IFS='-'
  2988. set x $ac_cv_host
  2989. shift
  2990. host_cpu=$1
  2991. host_vendor=$2
  2992. shift; shift
  2993. # Remember, the first character of IFS is used to create $*,
  2994. # except with old shells:
  2995. host_os=$*
  2996. IFS=$ac_save_IFS
  2997. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2998. ac_ext=c
  2999. ac_cpp='$CPP $CPPFLAGS'
  3000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3003. if test -n "$ac_tool_prefix"; then
  3004. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3005. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3006. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3007. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3008. if test "${ac_cv_prog_CC+set}" = set; then
  3009. echo $ECHO_N "(cached) $ECHO_C" >&6
  3010. else
  3011. if test -n "$CC"; then
  3012. ac_cv_prog_CC="$CC" # Let the user override the test.
  3013. else
  3014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3015. for as_dir in $PATH
  3016. do
  3017. IFS=$as_save_IFS
  3018. test -z "$as_dir" && as_dir=.
  3019. for ac_exec_ext in '' $ac_executable_extensions; do
  3020. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3021. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3022. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3023. break 2
  3024. fi
  3025. done
  3026. done
  3027. IFS=$as_save_IFS
  3028. fi
  3029. fi
  3030. CC=$ac_cv_prog_CC
  3031. if test -n "$CC"; then
  3032. { echo "$as_me:$LINENO: result: $CC" >&5
  3033. echo "${ECHO_T}$CC" >&6; }
  3034. else
  3035. { echo "$as_me:$LINENO: result: no" >&5
  3036. echo "${ECHO_T}no" >&6; }
  3037. fi
  3038. fi
  3039. if test -z "$ac_cv_prog_CC"; then
  3040. ac_ct_CC=$CC
  3041. # Extract the first word of "gcc", so it can be a program name with args.
  3042. set dummy gcc; ac_word=$2
  3043. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3044. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3045. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3046. echo $ECHO_N "(cached) $ECHO_C" >&6
  3047. else
  3048. if test -n "$ac_ct_CC"; then
  3049. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3050. else
  3051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3052. for as_dir in $PATH
  3053. do
  3054. IFS=$as_save_IFS
  3055. test -z "$as_dir" && as_dir=.
  3056. for ac_exec_ext in '' $ac_executable_extensions; do
  3057. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3058. ac_cv_prog_ac_ct_CC="gcc"
  3059. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3060. break 2
  3061. fi
  3062. done
  3063. done
  3064. IFS=$as_save_IFS
  3065. fi
  3066. fi
  3067. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3068. if test -n "$ac_ct_CC"; then
  3069. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3070. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3071. else
  3072. { echo "$as_me:$LINENO: result: no" >&5
  3073. echo "${ECHO_T}no" >&6; }
  3074. fi
  3075. if test "x$ac_ct_CC" = x; then
  3076. CC=""
  3077. else
  3078. case $cross_compiling:$ac_tool_warned in
  3079. yes:)
  3080. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3081. whose name does not start with the host triplet. If you think this
  3082. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3083. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3084. whose name does not start with the host triplet. If you think this
  3085. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3086. ac_tool_warned=yes ;;
  3087. esac
  3088. CC=$ac_ct_CC
  3089. fi
  3090. else
  3091. CC="$ac_cv_prog_CC"
  3092. fi
  3093. if test -z "$CC"; then
  3094. if test -n "$ac_tool_prefix"; then
  3095. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3096. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3097. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3098. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3099. if test "${ac_cv_prog_CC+set}" = set; then
  3100. echo $ECHO_N "(cached) $ECHO_C" >&6
  3101. else
  3102. if test -n "$CC"; then
  3103. ac_cv_prog_CC="$CC" # Let the user override the test.
  3104. else
  3105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3106. for as_dir in $PATH
  3107. do
  3108. IFS=$as_save_IFS
  3109. test -z "$as_dir" && as_dir=.
  3110. for ac_exec_ext in '' $ac_executable_extensions; do
  3111. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3112. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3113. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3114. break 2
  3115. fi
  3116. done
  3117. done
  3118. IFS=$as_save_IFS
  3119. fi
  3120. fi
  3121. CC=$ac_cv_prog_CC
  3122. if test -n "$CC"; then
  3123. { echo "$as_me:$LINENO: result: $CC" >&5
  3124. echo "${ECHO_T}$CC" >&6; }
  3125. else
  3126. { echo "$as_me:$LINENO: result: no" >&5
  3127. echo "${ECHO_T}no" >&6; }
  3128. fi
  3129. fi
  3130. fi
  3131. if test -z "$CC"; then
  3132. # Extract the first word of "cc", so it can be a program name with args.
  3133. set dummy cc; ac_word=$2
  3134. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3135. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3136. if test "${ac_cv_prog_CC+set}" = set; then
  3137. echo $ECHO_N "(cached) $ECHO_C" >&6
  3138. else
  3139. if test -n "$CC"; then
  3140. ac_cv_prog_CC="$CC" # Let the user override the test.
  3141. else
  3142. ac_prog_rejected=no
  3143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3144. for as_dir in $PATH
  3145. do
  3146. IFS=$as_save_IFS
  3147. test -z "$as_dir" && as_dir=.
  3148. for ac_exec_ext in '' $ac_executable_extensions; do
  3149. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3150. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3151. ac_prog_rejected=yes
  3152. continue
  3153. fi
  3154. ac_cv_prog_CC="cc"
  3155. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3156. break 2
  3157. fi
  3158. done
  3159. done
  3160. IFS=$as_save_IFS
  3161. if test $ac_prog_rejected = yes; then
  3162. # We found a bogon in the path, so make sure we never use it.
  3163. set dummy $ac_cv_prog_CC
  3164. shift
  3165. if test $# != 0; then
  3166. # We chose a different compiler from the bogus one.
  3167. # However, it has the same basename, so the bogon will be chosen
  3168. # first if we set CC to just the basename; use the full file name.
  3169. shift
  3170. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3171. fi
  3172. fi
  3173. fi
  3174. fi
  3175. CC=$ac_cv_prog_CC
  3176. if test -n "$CC"; then
  3177. { echo "$as_me:$LINENO: result: $CC" >&5
  3178. echo "${ECHO_T}$CC" >&6; }
  3179. else
  3180. { echo "$as_me:$LINENO: result: no" >&5
  3181. echo "${ECHO_T}no" >&6; }
  3182. fi
  3183. fi
  3184. if test -z "$CC"; then
  3185. if test -n "$ac_tool_prefix"; then
  3186. for ac_prog in cl.exe
  3187. do
  3188. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3189. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3190. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3191. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3192. if test "${ac_cv_prog_CC+set}" = set; then
  3193. echo $ECHO_N "(cached) $ECHO_C" >&6
  3194. else
  3195. if test -n "$CC"; then
  3196. ac_cv_prog_CC="$CC" # Let the user override the test.
  3197. else
  3198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3199. for as_dir in $PATH
  3200. do
  3201. IFS=$as_save_IFS
  3202. test -z "$as_dir" && as_dir=.
  3203. for ac_exec_ext in '' $ac_executable_extensions; do
  3204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3205. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3206. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3207. break 2
  3208. fi
  3209. done
  3210. done
  3211. IFS=$as_save_IFS
  3212. fi
  3213. fi
  3214. CC=$ac_cv_prog_CC
  3215. if test -n "$CC"; then
  3216. { echo "$as_me:$LINENO: result: $CC" >&5
  3217. echo "${ECHO_T}$CC" >&6; }
  3218. else
  3219. { echo "$as_me:$LINENO: result: no" >&5
  3220. echo "${ECHO_T}no" >&6; }
  3221. fi
  3222. test -n "$CC" && break
  3223. done
  3224. fi
  3225. if test -z "$CC"; then
  3226. ac_ct_CC=$CC
  3227. for ac_prog in cl.exe
  3228. do
  3229. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3230. set dummy $ac_prog; ac_word=$2
  3231. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3232. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3233. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3234. echo $ECHO_N "(cached) $ECHO_C" >&6
  3235. else
  3236. if test -n "$ac_ct_CC"; then
  3237. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3238. else
  3239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3240. for as_dir in $PATH
  3241. do
  3242. IFS=$as_save_IFS
  3243. test -z "$as_dir" && as_dir=.
  3244. for ac_exec_ext in '' $ac_executable_extensions; do
  3245. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3246. ac_cv_prog_ac_ct_CC="$ac_prog"
  3247. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3248. break 2
  3249. fi
  3250. done
  3251. done
  3252. IFS=$as_save_IFS
  3253. fi
  3254. fi
  3255. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3256. if test -n "$ac_ct_CC"; then
  3257. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3258. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3259. else
  3260. { echo "$as_me:$LINENO: result: no" >&5
  3261. echo "${ECHO_T}no" >&6; }
  3262. fi
  3263. test -n "$ac_ct_CC" && break
  3264. done
  3265. if test "x$ac_ct_CC" = x; then
  3266. CC=""
  3267. else
  3268. case $cross_compiling:$ac_tool_warned in
  3269. yes:)
  3270. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3271. whose name does not start with the host triplet. If you think this
  3272. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3273. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3274. whose name does not start with the host triplet. If you think this
  3275. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3276. ac_tool_warned=yes ;;
  3277. esac
  3278. CC=$ac_ct_CC
  3279. fi
  3280. fi
  3281. fi
  3282. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3283. See \`config.log' for more details." >&5
  3284. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3285. See \`config.log' for more details." >&2;}
  3286. { (exit 1); exit 1; }; }
  3287. # Provide some information about the compiler.
  3288. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3289. ac_compiler=`set X $ac_compile; echo $2`
  3290. { (ac_try="$ac_compiler --version >&5"
  3291. case "(($ac_try" in
  3292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3293. *) ac_try_echo=$ac_try;;
  3294. esac
  3295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3296. (eval "$ac_compiler --version >&5") 2>&5
  3297. ac_status=$?
  3298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3299. (exit $ac_status); }
  3300. { (ac_try="$ac_compiler -v >&5"
  3301. case "(($ac_try" in
  3302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3303. *) ac_try_echo=$ac_try;;
  3304. esac
  3305. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3306. (eval "$ac_compiler -v >&5") 2>&5
  3307. ac_status=$?
  3308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3309. (exit $ac_status); }
  3310. { (ac_try="$ac_compiler -V >&5"
  3311. case "(($ac_try" in
  3312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3313. *) ac_try_echo=$ac_try;;
  3314. esac
  3315. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3316. (eval "$ac_compiler -V >&5") 2>&5
  3317. ac_status=$?
  3318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3319. (exit $ac_status); }
  3320. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3321. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3322. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3323. echo $ECHO_N "(cached) $ECHO_C" >&6
  3324. else
  3325. cat >conftest.$ac_ext <<_ACEOF
  3326. /* confdefs.h. */
  3327. _ACEOF
  3328. cat confdefs.h >>conftest.$ac_ext
  3329. cat >>conftest.$ac_ext <<_ACEOF
  3330. /* end confdefs.h. */
  3331. int
  3332. main ()
  3333. {
  3334. #ifndef __GNUC__
  3335. choke me
  3336. #endif
  3337. ;
  3338. return 0;
  3339. }
  3340. _ACEOF
  3341. rm -f conftest.$ac_objext
  3342. if { (ac_try="$ac_compile"
  3343. case "(($ac_try" in
  3344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3345. *) ac_try_echo=$ac_try;;
  3346. esac
  3347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3348. (eval "$ac_compile") 2>conftest.er1
  3349. ac_status=$?
  3350. grep -v '^ *+' conftest.er1 >conftest.err
  3351. rm -f conftest.er1
  3352. cat conftest.err >&5
  3353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3354. (exit $ac_status); } && {
  3355. test -z "$ac_c_werror_flag" ||
  3356. test ! -s conftest.err
  3357. } && test -s conftest.$ac_objext; then
  3358. ac_compiler_gnu=yes
  3359. else
  3360. echo "$as_me: failed program was:" >&5
  3361. sed 's/^/| /' conftest.$ac_ext >&5
  3362. ac_compiler_gnu=no
  3363. fi
  3364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3365. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3366. fi
  3367. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3368. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3369. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3370. ac_test_CFLAGS=${CFLAGS+set}
  3371. ac_save_CFLAGS=$CFLAGS
  3372. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3373. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3374. if test "${ac_cv_prog_cc_g+set}" = set; then
  3375. echo $ECHO_N "(cached) $ECHO_C" >&6
  3376. else
  3377. ac_save_c_werror_flag=$ac_c_werror_flag
  3378. ac_c_werror_flag=yes
  3379. ac_cv_prog_cc_g=no
  3380. CFLAGS="-g"
  3381. cat >conftest.$ac_ext <<_ACEOF
  3382. /* confdefs.h. */
  3383. _ACEOF
  3384. cat confdefs.h >>conftest.$ac_ext
  3385. cat >>conftest.$ac_ext <<_ACEOF
  3386. /* end confdefs.h. */
  3387. int
  3388. main ()
  3389. {
  3390. ;
  3391. return 0;
  3392. }
  3393. _ACEOF
  3394. rm -f conftest.$ac_objext
  3395. if { (ac_try="$ac_compile"
  3396. case "(($ac_try" in
  3397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3398. *) ac_try_echo=$ac_try;;
  3399. esac
  3400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3401. (eval "$ac_compile") 2>conftest.er1
  3402. ac_status=$?
  3403. grep -v '^ *+' conftest.er1 >conftest.err
  3404. rm -f conftest.er1
  3405. cat conftest.err >&5
  3406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3407. (exit $ac_status); } && {
  3408. test -z "$ac_c_werror_flag" ||
  3409. test ! -s conftest.err
  3410. } && test -s conftest.$ac_objext; then
  3411. ac_cv_prog_cc_g=yes
  3412. else
  3413. echo "$as_me: failed program was:" >&5
  3414. sed 's/^/| /' conftest.$ac_ext >&5
  3415. CFLAGS=""
  3416. cat >conftest.$ac_ext <<_ACEOF
  3417. /* confdefs.h. */
  3418. _ACEOF
  3419. cat confdefs.h >>conftest.$ac_ext
  3420. cat >>conftest.$ac_ext <<_ACEOF
  3421. /* end confdefs.h. */
  3422. int
  3423. main ()
  3424. {
  3425. ;
  3426. return 0;
  3427. }
  3428. _ACEOF
  3429. rm -f conftest.$ac_objext
  3430. if { (ac_try="$ac_compile"
  3431. case "(($ac_try" in
  3432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433. *) ac_try_echo=$ac_try;;
  3434. esac
  3435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3436. (eval "$ac_compile") 2>conftest.er1
  3437. ac_status=$?
  3438. grep -v '^ *+' conftest.er1 >conftest.err
  3439. rm -f conftest.er1
  3440. cat conftest.err >&5
  3441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3442. (exit $ac_status); } && {
  3443. test -z "$ac_c_werror_flag" ||
  3444. test ! -s conftest.err
  3445. } && test -s conftest.$ac_objext; then
  3446. :
  3447. else
  3448. echo "$as_me: failed program was:" >&5
  3449. sed 's/^/| /' conftest.$ac_ext >&5
  3450. ac_c_werror_flag=$ac_save_c_werror_flag
  3451. CFLAGS="-g"
  3452. cat >conftest.$ac_ext <<_ACEOF
  3453. /* confdefs.h. */
  3454. _ACEOF
  3455. cat confdefs.h >>conftest.$ac_ext
  3456. cat >>conftest.$ac_ext <<_ACEOF
  3457. /* end confdefs.h. */
  3458. int
  3459. main ()
  3460. {
  3461. ;
  3462. return 0;
  3463. }
  3464. _ACEOF
  3465. rm -f conftest.$ac_objext
  3466. if { (ac_try="$ac_compile"
  3467. case "(($ac_try" in
  3468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3469. *) ac_try_echo=$ac_try;;
  3470. esac
  3471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3472. (eval "$ac_compile") 2>conftest.er1
  3473. ac_status=$?
  3474. grep -v '^ *+' conftest.er1 >conftest.err
  3475. rm -f conftest.er1
  3476. cat conftest.err >&5
  3477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3478. (exit $ac_status); } && {
  3479. test -z "$ac_c_werror_flag" ||
  3480. test ! -s conftest.err
  3481. } && test -s conftest.$ac_objext; then
  3482. ac_cv_prog_cc_g=yes
  3483. else
  3484. echo "$as_me: failed program was:" >&5
  3485. sed 's/^/| /' conftest.$ac_ext >&5
  3486. fi
  3487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3488. fi
  3489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3490. fi
  3491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3492. ac_c_werror_flag=$ac_save_c_werror_flag
  3493. fi
  3494. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3495. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3496. if test "$ac_test_CFLAGS" = set; then
  3497. CFLAGS=$ac_save_CFLAGS
  3498. elif test $ac_cv_prog_cc_g = yes; then
  3499. if test "$GCC" = yes; then
  3500. CFLAGS="-g -O2"
  3501. else
  3502. CFLAGS="-g"
  3503. fi
  3504. else
  3505. if test "$GCC" = yes; then
  3506. CFLAGS="-O2"
  3507. else
  3508. CFLAGS=
  3509. fi
  3510. fi
  3511. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3512. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3513. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3514. echo $ECHO_N "(cached) $ECHO_C" >&6
  3515. else
  3516. ac_cv_prog_cc_c89=no
  3517. ac_save_CC=$CC
  3518. cat >conftest.$ac_ext <<_ACEOF
  3519. /* confdefs.h. */
  3520. _ACEOF
  3521. cat confdefs.h >>conftest.$ac_ext
  3522. cat >>conftest.$ac_ext <<_ACEOF
  3523. /* end confdefs.h. */
  3524. #include <stdarg.h>
  3525. #include <stdio.h>
  3526. #include <sys/types.h>
  3527. #include <sys/stat.h>
  3528. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3529. struct buf { int x; };
  3530. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3531. static char *e (p, i)
  3532. char **p;
  3533. int i;
  3534. {
  3535. return p[i];
  3536. }
  3537. static char *f (char * (*g) (char **, int), char **p, ...)
  3538. {
  3539. char *s;
  3540. va_list v;
  3541. va_start (v,p);
  3542. s = g (p, va_arg (v,int));
  3543. va_end (v);
  3544. return s;
  3545. }
  3546. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3547. function prototypes and stuff, but not '\xHH' hex character constants.
  3548. These don't provoke an error unfortunately, instead are silently treated
  3549. as 'x'. The following induces an error, until -std is added to get
  3550. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3551. array size at least. It's necessary to write '\x00'==0 to get something
  3552. that's true only with -std. */
  3553. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3554. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3555. inside strings and character constants. */
  3556. #define FOO(x) 'x'
  3557. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3558. int test (int i, double x);
  3559. struct s1 {int (*f) (int a);};
  3560. struct s2 {int (*f) (double a);};
  3561. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3562. int argc;
  3563. char **argv;
  3564. int
  3565. main ()
  3566. {
  3567. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3568. ;
  3569. return 0;
  3570. }
  3571. _ACEOF
  3572. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3573. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3574. do
  3575. CC="$ac_save_CC $ac_arg"
  3576. rm -f conftest.$ac_objext
  3577. if { (ac_try="$ac_compile"
  3578. case "(($ac_try" in
  3579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3580. *) ac_try_echo=$ac_try;;
  3581. esac
  3582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3583. (eval "$ac_compile") 2>conftest.er1
  3584. ac_status=$?
  3585. grep -v '^ *+' conftest.er1 >conftest.err
  3586. rm -f conftest.er1
  3587. cat conftest.err >&5
  3588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3589. (exit $ac_status); } && {
  3590. test -z "$ac_c_werror_flag" ||
  3591. test ! -s conftest.err
  3592. } && test -s conftest.$ac_objext; then
  3593. ac_cv_prog_cc_c89=$ac_arg
  3594. else
  3595. echo "$as_me: failed program was:" >&5
  3596. sed 's/^/| /' conftest.$ac_ext >&5
  3597. fi
  3598. rm -f core conftest.err conftest.$ac_objext
  3599. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3600. done
  3601. rm -f conftest.$ac_ext
  3602. CC=$ac_save_CC
  3603. fi
  3604. # AC_CACHE_VAL
  3605. case "x$ac_cv_prog_cc_c89" in
  3606. x)
  3607. { echo "$as_me:$LINENO: result: none needed" >&5
  3608. echo "${ECHO_T}none needed" >&6; } ;;
  3609. xno)
  3610. { echo "$as_me:$LINENO: result: unsupported" >&5
  3611. echo "${ECHO_T}unsupported" >&6; } ;;
  3612. *)
  3613. CC="$CC $ac_cv_prog_cc_c89"
  3614. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3615. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3616. esac
  3617. ac_ext=cpp
  3618. ac_cpp='$CXXCPP $CPPFLAGS'
  3619. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3620. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3621. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3622. depcc="$CC" am_compiler_list=
  3623. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3624. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3625. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3626. echo $ECHO_N "(cached) $ECHO_C" >&6
  3627. else
  3628. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3629. # We make a subdir and do the tests there. Otherwise we can end up
  3630. # making bogus files that we don't know about and never remove. For
  3631. # instance it was reported that on HP-UX the gcc test will end up
  3632. # making a dummy file named `D' -- because `-MD' means `put the output
  3633. # in D'.
  3634. mkdir conftest.dir
  3635. # Copy depcomp to subdir because otherwise we won't find it if we're
  3636. # using a relative directory.
  3637. cp "$am_depcomp" conftest.dir
  3638. cd conftest.dir
  3639. # We will build objects and dependencies in a subdirectory because
  3640. # it helps to detect inapplicable dependency modes. For instance
  3641. # both Tru64's cc and ICC support -MD to output dependencies as a
  3642. # side effect of compilation, but ICC will put the dependencies in
  3643. # the current directory while Tru64 will put them in the object
  3644. # directory.
  3645. mkdir sub
  3646. am_cv_CC_dependencies_compiler_type=none
  3647. if test "$am_compiler_list" = ""; then
  3648. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3649. fi
  3650. for depmode in $am_compiler_list; do
  3651. # Setup a source with many dependencies, because some compilers
  3652. # like to wrap large dependency lists on column 80 (with \), and
  3653. # we should not choose a depcomp mode which is confused by this.
  3654. #
  3655. # We need to recreate these files for each test, as the compiler may
  3656. # overwrite some of them when testing with obscure command lines.
  3657. # This happens at least with the AIX C compiler.
  3658. : > sub/conftest.c
  3659. for i in 1 2 3 4 5 6; do
  3660. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3661. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3662. # Solaris 8's {/usr,}/bin/sh.
  3663. touch sub/conftst$i.h
  3664. done
  3665. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3666. case $depmode in
  3667. nosideeffect)
  3668. # after this tag, mechanisms are not by side-effect, so they'll
  3669. # only be used when explicitly requested
  3670. if test "x$enable_dependency_tracking" = xyes; then
  3671. continue
  3672. else
  3673. break
  3674. fi
  3675. ;;
  3676. none) break ;;
  3677. esac
  3678. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3679. # mode. It turns out that the SunPro C++ compiler does not properly
  3680. # handle `-M -o', and we need to detect this.
  3681. if depmode=$depmode \
  3682. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3683. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3684. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3685. >/dev/null 2>conftest.err &&
  3686. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3687. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3688. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3689. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3690. # icc doesn't choke on unknown options, it will just issue warnings
  3691. # or remarks (even with -Werror). So we grep stderr for any message
  3692. # that says an option was ignored or not supported.
  3693. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3694. # icc: Command line warning: ignoring option '-M'; no argument required
  3695. # The diagnosis changed in icc 8.0:
  3696. # icc: Command line remark: option '-MP' not supported
  3697. if (grep 'ignoring option' conftest.err ||
  3698. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3699. am_cv_CC_dependencies_compiler_type=$depmode
  3700. break
  3701. fi
  3702. fi
  3703. done
  3704. cd ..
  3705. rm -rf conftest.dir
  3706. else
  3707. am_cv_CC_dependencies_compiler_type=none
  3708. fi
  3709. fi
  3710. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3711. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3712. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3713. if
  3714. test "x$enable_dependency_tracking" != xno \
  3715. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3716. am__fastdepCC_TRUE=
  3717. am__fastdepCC_FALSE='#'
  3718. else
  3719. am__fastdepCC_TRUE='#'
  3720. am__fastdepCC_FALSE=
  3721. fi
  3722. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3723. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3724. if test "${lt_cv_path_SED+set}" = set; then
  3725. echo $ECHO_N "(cached) $ECHO_C" >&6
  3726. else
  3727. # Loop through the user's path and test for sed and gsed.
  3728. # Then use that list of sed's as ones to test for truncation.
  3729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3730. for as_dir in $PATH
  3731. do
  3732. IFS=$as_save_IFS
  3733. test -z "$as_dir" && as_dir=.
  3734. for lt_ac_prog in sed gsed; do
  3735. for ac_exec_ext in '' $ac_executable_extensions; do
  3736. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  3737. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3738. fi
  3739. done
  3740. done
  3741. done
  3742. IFS=$as_save_IFS
  3743. lt_ac_max=0
  3744. lt_ac_count=0
  3745. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3746. # along with /bin/sed that truncates output.
  3747. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3748. test ! -f $lt_ac_sed && continue
  3749. cat /dev/null > conftest.in
  3750. lt_ac_count=0
  3751. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3752. # Check for GNU sed and select it if it is found.
  3753. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3754. lt_cv_path_SED=$lt_ac_sed
  3755. break
  3756. fi
  3757. while true; do
  3758. cat conftest.in conftest.in >conftest.tmp
  3759. mv conftest.tmp conftest.in
  3760. cp conftest.in conftest.nl
  3761. echo >>conftest.nl
  3762. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3763. cmp -s conftest.out conftest.nl || break
  3764. # 10000 chars as input seems more than enough
  3765. test $lt_ac_count -gt 10 && break
  3766. lt_ac_count=`expr $lt_ac_count + 1`
  3767. if test $lt_ac_count -gt $lt_ac_max; then
  3768. lt_ac_max=$lt_ac_count
  3769. lt_cv_path_SED=$lt_ac_sed
  3770. fi
  3771. done
  3772. done
  3773. fi
  3774. SED=$lt_cv_path_SED
  3775. { echo "$as_me:$LINENO: result: $SED" >&5
  3776. echo "${ECHO_T}$SED" >&6; }
  3777. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3778. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3779. if test "${ac_cv_path_GREP+set}" = set; then
  3780. echo $ECHO_N "(cached) $ECHO_C" >&6
  3781. else
  3782. # Extract the first word of "grep ggrep" to use in msg output
  3783. if test -z "$GREP"; then
  3784. set dummy grep ggrep; ac_prog_name=$2
  3785. if test "${ac_cv_path_GREP+set}" = set; then
  3786. echo $ECHO_N "(cached) $ECHO_C" >&6
  3787. else
  3788. ac_path_GREP_found=false
  3789. # Loop through the user's path and test for each of PROGNAME-LIST
  3790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3791. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3792. do
  3793. IFS=$as_save_IFS
  3794. test -z "$as_dir" && as_dir=.
  3795. for ac_prog in grep ggrep; do
  3796. for ac_exec_ext in '' $ac_executable_extensions; do
  3797. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3798. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3799. # Check for GNU ac_path_GREP and select it if it is found.
  3800. # Check for GNU $ac_path_GREP
  3801. case `"$ac_path_GREP" --version 2>&1` in
  3802. *GNU*)
  3803. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3804. *)
  3805. ac_count=0
  3806. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3807. while :
  3808. do
  3809. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3810. mv "conftest.tmp" "conftest.in"
  3811. cp "conftest.in" "conftest.nl"
  3812. echo 'GREP' >> "conftest.nl"
  3813. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3814. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3815. ac_count=`expr $ac_count + 1`
  3816. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3817. # Best one so far, save it but keep looking for a better one
  3818. ac_cv_path_GREP="$ac_path_GREP"
  3819. ac_path_GREP_max=$ac_count
  3820. fi
  3821. # 10*(2^10) chars as input seems more than enough
  3822. test $ac_count -gt 10 && break
  3823. done
  3824. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3825. esac
  3826. $ac_path_GREP_found && break 3
  3827. done
  3828. done
  3829. done
  3830. IFS=$as_save_IFS
  3831. fi
  3832. GREP="$ac_cv_path_GREP"
  3833. if test -z "$GREP"; then
  3834. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3835. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3836. { (exit 1); exit 1; }; }
  3837. fi
  3838. else
  3839. ac_cv_path_GREP=$GREP
  3840. fi
  3841. fi
  3842. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3843. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3844. GREP="$ac_cv_path_GREP"
  3845. { echo "$as_me:$LINENO: checking for egrep" >&5
  3846. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3847. if test "${ac_cv_path_EGREP+set}" = set; then
  3848. echo $ECHO_N "(cached) $ECHO_C" >&6
  3849. else
  3850. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3851. then ac_cv_path_EGREP="$GREP -E"
  3852. else
  3853. # Extract the first word of "egrep" to use in msg output
  3854. if test -z "$EGREP"; then
  3855. set dummy egrep; ac_prog_name=$2
  3856. if test "${ac_cv_path_EGREP+set}" = set; then
  3857. echo $ECHO_N "(cached) $ECHO_C" >&6
  3858. else
  3859. ac_path_EGREP_found=false
  3860. # Loop through the user's path and test for each of PROGNAME-LIST
  3861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3862. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3863. do
  3864. IFS=$as_save_IFS
  3865. test -z "$as_dir" && as_dir=.
  3866. for ac_prog in egrep; do
  3867. for ac_exec_ext in '' $ac_executable_extensions; do
  3868. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3869. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3870. # Check for GNU ac_path_EGREP and select it if it is found.
  3871. # Check for GNU $ac_path_EGREP
  3872. case `"$ac_path_EGREP" --version 2>&1` in
  3873. *GNU*)
  3874. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3875. *)
  3876. ac_count=0
  3877. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3878. while :
  3879. do
  3880. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3881. mv "conftest.tmp" "conftest.in"
  3882. cp "conftest.in" "conftest.nl"
  3883. echo 'EGREP' >> "conftest.nl"
  3884. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3885. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3886. ac_count=`expr $ac_count + 1`
  3887. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3888. # Best one so far, save it but keep looking for a better one
  3889. ac_cv_path_EGREP="$ac_path_EGREP"
  3890. ac_path_EGREP_max=$ac_count
  3891. fi
  3892. # 10*(2^10) chars as input seems more than enough
  3893. test $ac_count -gt 10 && break
  3894. done
  3895. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3896. esac
  3897. $ac_path_EGREP_found && break 3
  3898. done
  3899. done
  3900. done
  3901. IFS=$as_save_IFS
  3902. fi
  3903. EGREP="$ac_cv_path_EGREP"
  3904. if test -z "$EGREP"; then
  3905. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3906. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3907. { (exit 1); exit 1; }; }
  3908. fi
  3909. else
  3910. ac_cv_path_EGREP=$EGREP
  3911. fi
  3912. fi
  3913. fi
  3914. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3915. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3916. EGREP="$ac_cv_path_EGREP"
  3917. # Check whether --with-gnu-ld was given.
  3918. if test "${with_gnu_ld+set}" = set; then
  3919. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3920. else
  3921. with_gnu_ld=no
  3922. fi
  3923. ac_prog=ld
  3924. if test "$GCC" = yes; then
  3925. # Check if gcc -print-prog-name=ld gives a path.
  3926. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3927. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3928. case $host in
  3929. *-*-mingw*)
  3930. # gcc leaves a trailing carriage return which upsets mingw
  3931. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3932. *)
  3933. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3934. esac
  3935. case $ac_prog in
  3936. # Accept absolute paths.
  3937. [\\/]* | ?:[\\/]*)
  3938. re_direlt='/[^/][^/]*/\.\./'
  3939. # Canonicalize the pathname of ld
  3940. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3941. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3942. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3943. done
  3944. test -z "$LD" && LD="$ac_prog"
  3945. ;;
  3946. "")
  3947. # If it fails, then pretend we aren't using GCC.
  3948. ac_prog=ld
  3949. ;;
  3950. *)
  3951. # If it is relative, then search for the first ld in PATH.
  3952. with_gnu_ld=unknown
  3953. ;;
  3954. esac
  3955. elif test "$with_gnu_ld" = yes; then
  3956. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3957. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3958. else
  3959. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3960. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3961. fi
  3962. if test "${lt_cv_path_LD+set}" = set; then
  3963. echo $ECHO_N "(cached) $ECHO_C" >&6
  3964. else
  3965. if test -z "$LD"; then
  3966. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3967. for ac_dir in $PATH; do
  3968. IFS="$lt_save_ifs"
  3969. test -z "$ac_dir" && ac_dir=.
  3970. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3971. lt_cv_path_LD="$ac_dir/$ac_prog"
  3972. # Check to see if the program is GNU ld. I'd rather use --version,
  3973. # but apparently some variants of GNU ld only accept -v.
  3974. # Break only if it was the GNU/non-GNU ld that we prefer.
  3975. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3976. *GNU* | *'with BFD'*)
  3977. test "$with_gnu_ld" != no && break
  3978. ;;
  3979. *)
  3980. test "$with_gnu_ld" != yes && break
  3981. ;;
  3982. esac
  3983. fi
  3984. done
  3985. IFS="$lt_save_ifs"
  3986. else
  3987. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3988. fi
  3989. fi
  3990. LD="$lt_cv_path_LD"
  3991. if test -n "$LD"; then
  3992. { echo "$as_me:$LINENO: result: $LD" >&5
  3993. echo "${ECHO_T}$LD" >&6; }
  3994. else
  3995. { echo "$as_me:$LINENO: result: no" >&5
  3996. echo "${ECHO_T}no" >&6; }
  3997. fi
  3998. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3999. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4000. { (exit 1); exit 1; }; }
  4001. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4002. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  4003. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4004. echo $ECHO_N "(cached) $ECHO_C" >&6
  4005. else
  4006. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4007. case `$LD -v 2>&1 </dev/null` in
  4008. *GNU* | *'with BFD'*)
  4009. lt_cv_prog_gnu_ld=yes
  4010. ;;
  4011. *)
  4012. lt_cv_prog_gnu_ld=no
  4013. ;;
  4014. esac
  4015. fi
  4016. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4017. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  4018. with_gnu_ld=$lt_cv_prog_gnu_ld
  4019. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4020. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  4021. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4022. echo $ECHO_N "(cached) $ECHO_C" >&6
  4023. else
  4024. lt_cv_ld_reload_flag='-r'
  4025. fi
  4026. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4027. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  4028. reload_flag=$lt_cv_ld_reload_flag
  4029. case $reload_flag in
  4030. "" | " "*) ;;
  4031. *) reload_flag=" $reload_flag" ;;
  4032. esac
  4033. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4034. case $host_os in
  4035. darwin*)
  4036. if test "$GCC" = yes; then
  4037. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4038. else
  4039. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4040. fi
  4041. ;;
  4042. esac
  4043. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  4044. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  4045. if test "${lt_cv_path_NM+set}" = set; then
  4046. echo $ECHO_N "(cached) $ECHO_C" >&6
  4047. else
  4048. if test -n "$NM"; then
  4049. # Let the user override the test.
  4050. lt_cv_path_NM="$NM"
  4051. else
  4052. lt_nm_to_check="${ac_tool_prefix}nm"
  4053. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4054. lt_nm_to_check="$lt_nm_to_check nm"
  4055. fi
  4056. for lt_tmp_nm in $lt_nm_to_check; do
  4057. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4058. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4059. IFS="$lt_save_ifs"
  4060. test -z "$ac_dir" && ac_dir=.
  4061. tmp_nm="$ac_dir/$lt_tmp_nm"
  4062. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4063. # Check to see if the nm accepts a BSD-compat flag.
  4064. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4065. # nm: unknown option "B" ignored
  4066. # Tru64's nm complains that /dev/null is an invalid object file
  4067. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4068. */dev/null* | *'Invalid file or object type'*)
  4069. lt_cv_path_NM="$tmp_nm -B"
  4070. break
  4071. ;;
  4072. *)
  4073. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4074. */dev/null*)
  4075. lt_cv_path_NM="$tmp_nm -p"
  4076. break
  4077. ;;
  4078. *)
  4079. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4080. continue # so that we can try to find one that supports BSD flags
  4081. ;;
  4082. esac
  4083. ;;
  4084. esac
  4085. fi
  4086. done
  4087. IFS="$lt_save_ifs"
  4088. done
  4089. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4090. fi
  4091. fi
  4092. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4093. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  4094. NM="$lt_cv_path_NM"
  4095. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4096. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  4097. LN_S=$as_ln_s
  4098. if test "$LN_S" = "ln -s"; then
  4099. { echo "$as_me:$LINENO: result: yes" >&5
  4100. echo "${ECHO_T}yes" >&6; }
  4101. else
  4102. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4103. echo "${ECHO_T}no, using $LN_S" >&6; }
  4104. fi
  4105. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4106. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  4107. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4108. echo $ECHO_N "(cached) $ECHO_C" >&6
  4109. else
  4110. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4111. lt_cv_file_magic_test_file=
  4112. lt_cv_deplibs_check_method='unknown'
  4113. # Need to set the preceding variable on all platforms that support
  4114. # interlibrary dependencies.
  4115. # 'none' -- dependencies not supported.
  4116. # `unknown' -- same as none, but documents that we really don't know.
  4117. # 'pass_all' -- all dependencies passed with no checks.
  4118. # 'test_compile' -- check by making test program.
  4119. # 'file_magic [[regex]]' -- check by looking for files in library path
  4120. # which responds to the $file_magic_cmd with a given extended regex.
  4121. # If you have `file' or equivalent on your system and you're not sure
  4122. # whether `pass_all' will *always* work, you probably want this one.
  4123. case $host_os in
  4124. aix4* | aix5*)
  4125. lt_cv_deplibs_check_method=pass_all
  4126. ;;
  4127. beos*)
  4128. lt_cv_deplibs_check_method=pass_all
  4129. ;;
  4130. bsdi[45]*)
  4131. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4132. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4133. lt_cv_file_magic_test_file=/shlib/libc.so
  4134. ;;
  4135. cygwin*)
  4136. # func_win32_libid is a shell function defined in ltmain.sh
  4137. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4138. lt_cv_file_magic_cmd='func_win32_libid'
  4139. ;;
  4140. mingw* | pw32*)
  4141. # Base MSYS/MinGW do not provide the 'file' command needed by
  4142. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4143. # unless we find 'file', for example because we are cross-compiling.
  4144. if ( file / ) >/dev/null 2>&1; then
  4145. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4146. lt_cv_file_magic_cmd='func_win32_libid'
  4147. else
  4148. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4149. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4150. fi
  4151. ;;
  4152. darwin* | rhapsody*)
  4153. lt_cv_deplibs_check_method=pass_all
  4154. ;;
  4155. freebsd* | dragonfly*)
  4156. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4157. case $host_cpu in
  4158. i*86 )
  4159. # Not sure whether the presence of OpenBSD here was a mistake.
  4160. # Let's accept both of them until this is cleared up.
  4161. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4162. lt_cv_file_magic_cmd=/usr/bin/file
  4163. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4164. ;;
  4165. esac
  4166. else
  4167. lt_cv_deplibs_check_method=pass_all
  4168. fi
  4169. ;;
  4170. gnu*)
  4171. lt_cv_deplibs_check_method=pass_all
  4172. ;;
  4173. hpux10.20* | hpux11*)
  4174. lt_cv_file_magic_cmd=/usr/bin/file
  4175. case $host_cpu in
  4176. ia64*)
  4177. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4178. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4179. ;;
  4180. hppa*64*)
  4181. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4182. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4183. ;;
  4184. *)
  4185. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4186. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4187. ;;
  4188. esac
  4189. ;;
  4190. interix[3-9]*)
  4191. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4192. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4193. ;;
  4194. irix5* | irix6* | nonstopux*)
  4195. case $LD in
  4196. *-32|*"-32 ") libmagic=32-bit;;
  4197. *-n32|*"-n32 ") libmagic=N32;;
  4198. *-64|*"-64 ") libmagic=64-bit;;
  4199. *) libmagic=never-match;;
  4200. esac
  4201. lt_cv_deplibs_check_method=pass_all
  4202. ;;
  4203. # This must be Linux ELF.
  4204. linux* | k*bsd*-gnu)
  4205. lt_cv_deplibs_check_method=pass_all
  4206. ;;
  4207. netbsd*)
  4208. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4209. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4210. else
  4211. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4212. fi
  4213. ;;
  4214. newos6*)
  4215. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4216. lt_cv_file_magic_cmd=/usr/bin/file
  4217. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4218. ;;
  4219. nto-qnx*)
  4220. lt_cv_deplibs_check_method=unknown
  4221. ;;
  4222. openbsd*)
  4223. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4224. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4225. else
  4226. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4227. fi
  4228. ;;
  4229. osf3* | osf4* | osf5*)
  4230. lt_cv_deplibs_check_method=pass_all
  4231. ;;
  4232. rdos*)
  4233. lt_cv_deplibs_check_method=pass_all
  4234. ;;
  4235. solaris*)
  4236. lt_cv_deplibs_check_method=pass_all
  4237. ;;
  4238. sysv4 | sysv4.3*)
  4239. case $host_vendor in
  4240. motorola)
  4241. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4242. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4243. ;;
  4244. ncr)
  4245. lt_cv_deplibs_check_method=pass_all
  4246. ;;
  4247. sequent)
  4248. lt_cv_file_magic_cmd='/bin/file'
  4249. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4250. ;;
  4251. sni)
  4252. lt_cv_file_magic_cmd='/bin/file'
  4253. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4254. lt_cv_file_magic_test_file=/lib/libc.so
  4255. ;;
  4256. siemens)
  4257. lt_cv_deplibs_check_method=pass_all
  4258. ;;
  4259. pc)
  4260. lt_cv_deplibs_check_method=pass_all
  4261. ;;
  4262. esac
  4263. ;;
  4264. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4265. lt_cv_deplibs_check_method=pass_all
  4266. ;;
  4267. esac
  4268. fi
  4269. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4270. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4271. file_magic_cmd=$lt_cv_file_magic_cmd
  4272. deplibs_check_method=$lt_cv_deplibs_check_method
  4273. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4274. # If no C compiler was specified, use CC.
  4275. LTCC=${LTCC-"$CC"}
  4276. # If no C compiler flags were specified, use CFLAGS.
  4277. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4278. # Allow CC to be a program name with arguments.
  4279. compiler=$CC
  4280. # Check whether --enable-libtool-lock was given.
  4281. if test "${enable_libtool_lock+set}" = set; then
  4282. enableval=$enable_libtool_lock;
  4283. fi
  4284. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4285. # Some flags need to be propagated to the compiler or linker for good
  4286. # libtool support.
  4287. case $host in
  4288. ia64-*-hpux*)
  4289. # Find out which ABI we are using.
  4290. echo 'int i;' > conftest.$ac_ext
  4291. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4292. (eval $ac_compile) 2>&5
  4293. ac_status=$?
  4294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4295. (exit $ac_status); }; then
  4296. case `/usr/bin/file conftest.$ac_objext` in
  4297. *ELF-32*)
  4298. HPUX_IA64_MODE="32"
  4299. ;;
  4300. *ELF-64*)
  4301. HPUX_IA64_MODE="64"
  4302. ;;
  4303. esac
  4304. fi
  4305. rm -rf conftest*
  4306. ;;
  4307. *-*-irix6*)
  4308. # Find out which ABI we are using.
  4309. echo '#line 4839 "configure"' > conftest.$ac_ext
  4310. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4311. (eval $ac_compile) 2>&5
  4312. ac_status=$?
  4313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4314. (exit $ac_status); }; then
  4315. if test "$lt_cv_prog_gnu_ld" = yes; then
  4316. case `/usr/bin/file conftest.$ac_objext` in
  4317. *32-bit*)
  4318. LD="${LD-ld} -melf32bsmip"
  4319. ;;
  4320. *N32*)
  4321. LD="${LD-ld} -melf32bmipn32"
  4322. ;;
  4323. *64-bit*)
  4324. LD="${LD-ld} -melf64bmip"
  4325. ;;
  4326. esac
  4327. else
  4328. case `/usr/bin/file conftest.$ac_objext` in
  4329. *32-bit*)
  4330. LD="${LD-ld} -32"
  4331. ;;
  4332. *N32*)
  4333. LD="${LD-ld} -n32"
  4334. ;;
  4335. *64-bit*)
  4336. LD="${LD-ld} -64"
  4337. ;;
  4338. esac
  4339. fi
  4340. fi
  4341. rm -rf conftest*
  4342. ;;
  4343. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4344. s390*-*linux*|sparc*-*linux*)
  4345. # Find out which ABI we are using.
  4346. echo 'int i;' > conftest.$ac_ext
  4347. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4348. (eval $ac_compile) 2>&5
  4349. ac_status=$?
  4350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4351. (exit $ac_status); }; then
  4352. case `/usr/bin/file conftest.o` in
  4353. *32-bit*)
  4354. case $host in
  4355. x86_64-*kfreebsd*-gnu)
  4356. LD="${LD-ld} -m elf_i386_fbsd"
  4357. ;;
  4358. x86_64-*linux*)
  4359. LD="${LD-ld} -m elf_i386"
  4360. ;;
  4361. ppc64-*linux*|powerpc64-*linux*)
  4362. LD="${LD-ld} -m elf32ppclinux"
  4363. ;;
  4364. s390x-*linux*)
  4365. LD="${LD-ld} -m elf_s390"
  4366. ;;
  4367. sparc64-*linux*)
  4368. LD="${LD-ld} -m elf32_sparc"
  4369. ;;
  4370. esac
  4371. ;;
  4372. *64-bit*)
  4373. case $host in
  4374. x86_64-*kfreebsd*-gnu)
  4375. LD="${LD-ld} -m elf_x86_64_fbsd"
  4376. ;;
  4377. x86_64-*linux*)
  4378. LD="${LD-ld} -m elf_x86_64"
  4379. ;;
  4380. ppc*-*linux*|powerpc*-*linux*)
  4381. LD="${LD-ld} -m elf64ppc"
  4382. ;;
  4383. s390*-*linux*)
  4384. LD="${LD-ld} -m elf64_s390"
  4385. ;;
  4386. sparc*-*linux*)
  4387. LD="${LD-ld} -m elf64_sparc"
  4388. ;;
  4389. esac
  4390. ;;
  4391. esac
  4392. fi
  4393. rm -rf conftest*
  4394. ;;
  4395. *-*-sco3.2v5*)
  4396. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4397. SAVE_CFLAGS="$CFLAGS"
  4398. CFLAGS="$CFLAGS -belf"
  4399. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4400. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4401. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4402. echo $ECHO_N "(cached) $ECHO_C" >&6
  4403. else
  4404. ac_ext=c
  4405. ac_cpp='$CPP $CPPFLAGS'
  4406. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4407. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4408. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4409. cat >conftest.$ac_ext <<_ACEOF
  4410. /* confdefs.h. */
  4411. _ACEOF
  4412. cat confdefs.h >>conftest.$ac_ext
  4413. cat >>conftest.$ac_ext <<_ACEOF
  4414. /* end confdefs.h. */
  4415. int
  4416. main ()
  4417. {
  4418. ;
  4419. return 0;
  4420. }
  4421. _ACEOF
  4422. rm -f conftest.$ac_objext conftest$ac_exeext
  4423. if { (ac_try="$ac_link"
  4424. case "(($ac_try" in
  4425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4426. *) ac_try_echo=$ac_try;;
  4427. esac
  4428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4429. (eval "$ac_link") 2>conftest.er1
  4430. ac_status=$?
  4431. grep -v '^ *+' conftest.er1 >conftest.err
  4432. rm -f conftest.er1
  4433. cat conftest.err >&5
  4434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4435. (exit $ac_status); } && {
  4436. test -z "$ac_c_werror_flag" ||
  4437. test ! -s conftest.err
  4438. } && test -s conftest$ac_exeext &&
  4439. $as_test_x conftest$ac_exeext; then
  4440. lt_cv_cc_needs_belf=yes
  4441. else
  4442. echo "$as_me: failed program was:" >&5
  4443. sed 's/^/| /' conftest.$ac_ext >&5
  4444. lt_cv_cc_needs_belf=no
  4445. fi
  4446. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4447. conftest$ac_exeext conftest.$ac_ext
  4448. ac_ext=c
  4449. ac_cpp='$CPP $CPPFLAGS'
  4450. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4451. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4452. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4453. fi
  4454. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4455. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4456. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4457. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4458. CFLAGS="$SAVE_CFLAGS"
  4459. fi
  4460. ;;
  4461. sparc*-*solaris*)
  4462. # Find out which ABI we are using.
  4463. echo 'int i;' > conftest.$ac_ext
  4464. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4465. (eval $ac_compile) 2>&5
  4466. ac_status=$?
  4467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4468. (exit $ac_status); }; then
  4469. case `/usr/bin/file conftest.o` in
  4470. *64-bit*)
  4471. case $lt_cv_prog_gnu_ld in
  4472. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4473. *) LD="${LD-ld} -64" ;;
  4474. esac
  4475. ;;
  4476. esac
  4477. fi
  4478. rm -rf conftest*
  4479. ;;
  4480. esac
  4481. need_locks="$enable_libtool_lock"
  4482. ac_ext=c
  4483. ac_cpp='$CPP $CPPFLAGS'
  4484. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4485. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4486. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4487. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4488. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4489. # On Suns, sometimes $CPP names a directory.
  4490. if test -n "$CPP" && test -d "$CPP"; then
  4491. CPP=
  4492. fi
  4493. if test -z "$CPP"; then
  4494. if test "${ac_cv_prog_CPP+set}" = set; then
  4495. echo $ECHO_N "(cached) $ECHO_C" >&6
  4496. else
  4497. # Double quotes because CPP needs to be expanded
  4498. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4499. do
  4500. ac_preproc_ok=false
  4501. for ac_c_preproc_warn_flag in '' yes
  4502. do
  4503. # Use a header file that comes with gcc, so configuring glibc
  4504. # with a fresh cross-compiler works.
  4505. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4506. # <limits.h> exists even on freestanding compilers.
  4507. # On the NeXT, cc -E runs the code through the compiler's parser,
  4508. # not just through cpp. "Syntax error" is here to catch this case.
  4509. cat >conftest.$ac_ext <<_ACEOF
  4510. /* confdefs.h. */
  4511. _ACEOF
  4512. cat confdefs.h >>conftest.$ac_ext
  4513. cat >>conftest.$ac_ext <<_ACEOF
  4514. /* end confdefs.h. */
  4515. #ifdef __STDC__
  4516. # include <limits.h>
  4517. #else
  4518. # include <assert.h>
  4519. #endif
  4520. Syntax error
  4521. _ACEOF
  4522. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4523. case "(($ac_try" in
  4524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4525. *) ac_try_echo=$ac_try;;
  4526. esac
  4527. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4528. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4529. ac_status=$?
  4530. grep -v '^ *+' conftest.er1 >conftest.err
  4531. rm -f conftest.er1
  4532. cat conftest.err >&5
  4533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4534. (exit $ac_status); } >/dev/null && {
  4535. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4536. test ! -s conftest.err
  4537. }; then
  4538. :
  4539. else
  4540. echo "$as_me: failed program was:" >&5
  4541. sed 's/^/| /' conftest.$ac_ext >&5
  4542. # Broken: fails on valid input.
  4543. continue
  4544. fi
  4545. rm -f conftest.err conftest.$ac_ext
  4546. # OK, works on sane cases. Now check whether nonexistent headers
  4547. # can be detected and how.
  4548. cat >conftest.$ac_ext <<_ACEOF
  4549. /* confdefs.h. */
  4550. _ACEOF
  4551. cat confdefs.h >>conftest.$ac_ext
  4552. cat >>conftest.$ac_ext <<_ACEOF
  4553. /* end confdefs.h. */
  4554. #include <ac_nonexistent.h>
  4555. _ACEOF
  4556. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4557. case "(($ac_try" in
  4558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4559. *) ac_try_echo=$ac_try;;
  4560. esac
  4561. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4562. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4563. ac_status=$?
  4564. grep -v '^ *+' conftest.er1 >conftest.err
  4565. rm -f conftest.er1
  4566. cat conftest.err >&5
  4567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4568. (exit $ac_status); } >/dev/null && {
  4569. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4570. test ! -s conftest.err
  4571. }; then
  4572. # Broken: success on invalid input.
  4573. continue
  4574. else
  4575. echo "$as_me: failed program was:" >&5
  4576. sed 's/^/| /' conftest.$ac_ext >&5
  4577. # Passes both tests.
  4578. ac_preproc_ok=:
  4579. break
  4580. fi
  4581. rm -f conftest.err conftest.$ac_ext
  4582. done
  4583. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4584. rm -f conftest.err conftest.$ac_ext
  4585. if $ac_preproc_ok; then
  4586. break
  4587. fi
  4588. done
  4589. ac_cv_prog_CPP=$CPP
  4590. fi
  4591. CPP=$ac_cv_prog_CPP
  4592. else
  4593. ac_cv_prog_CPP=$CPP
  4594. fi
  4595. { echo "$as_me:$LINENO: result: $CPP" >&5
  4596. echo "${ECHO_T}$CPP" >&6; }
  4597. ac_preproc_ok=false
  4598. for ac_c_preproc_warn_flag in '' yes
  4599. do
  4600. # Use a header file that comes with gcc, so configuring glibc
  4601. # with a fresh cross-compiler works.
  4602. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4603. # <limits.h> exists even on freestanding compilers.
  4604. # On the NeXT, cc -E runs the code through the compiler's parser,
  4605. # not just through cpp. "Syntax error" is here to catch this case.
  4606. cat >conftest.$ac_ext <<_ACEOF
  4607. /* confdefs.h. */
  4608. _ACEOF
  4609. cat confdefs.h >>conftest.$ac_ext
  4610. cat >>conftest.$ac_ext <<_ACEOF
  4611. /* end confdefs.h. */
  4612. #ifdef __STDC__
  4613. # include <limits.h>
  4614. #else
  4615. # include <assert.h>
  4616. #endif
  4617. Syntax error
  4618. _ACEOF
  4619. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4620. case "(($ac_try" in
  4621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4622. *) ac_try_echo=$ac_try;;
  4623. esac
  4624. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4625. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4626. ac_status=$?
  4627. grep -v '^ *+' conftest.er1 >conftest.err
  4628. rm -f conftest.er1
  4629. cat conftest.err >&5
  4630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4631. (exit $ac_status); } >/dev/null && {
  4632. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4633. test ! -s conftest.err
  4634. }; then
  4635. :
  4636. else
  4637. echo "$as_me: failed program was:" >&5
  4638. sed 's/^/| /' conftest.$ac_ext >&5
  4639. # Broken: fails on valid input.
  4640. continue
  4641. fi
  4642. rm -f conftest.err conftest.$ac_ext
  4643. # OK, works on sane cases. Now check whether nonexistent headers
  4644. # can be detected and how.
  4645. cat >conftest.$ac_ext <<_ACEOF
  4646. /* confdefs.h. */
  4647. _ACEOF
  4648. cat confdefs.h >>conftest.$ac_ext
  4649. cat >>conftest.$ac_ext <<_ACEOF
  4650. /* end confdefs.h. */
  4651. #include <ac_nonexistent.h>
  4652. _ACEOF
  4653. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4654. case "(($ac_try" in
  4655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4656. *) ac_try_echo=$ac_try;;
  4657. esac
  4658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4659. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4660. ac_status=$?
  4661. grep -v '^ *+' conftest.er1 >conftest.err
  4662. rm -f conftest.er1
  4663. cat conftest.err >&5
  4664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4665. (exit $ac_status); } >/dev/null && {
  4666. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4667. test ! -s conftest.err
  4668. }; then
  4669. # Broken: success on invalid input.
  4670. continue
  4671. else
  4672. echo "$as_me: failed program was:" >&5
  4673. sed 's/^/| /' conftest.$ac_ext >&5
  4674. # Passes both tests.
  4675. ac_preproc_ok=:
  4676. break
  4677. fi
  4678. rm -f conftest.err conftest.$ac_ext
  4679. done
  4680. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4681. rm -f conftest.err conftest.$ac_ext
  4682. if $ac_preproc_ok; then
  4683. :
  4684. else
  4685. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4686. See \`config.log' for more details." >&5
  4687. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4688. See \`config.log' for more details." >&2;}
  4689. { (exit 1); exit 1; }; }
  4690. fi
  4691. ac_ext=c
  4692. ac_cpp='$CPP $CPPFLAGS'
  4693. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4694. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4695. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4696. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4697. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4698. if test "${ac_cv_header_stdc+set}" = set; then
  4699. echo $ECHO_N "(cached) $ECHO_C" >&6
  4700. else
  4701. cat >conftest.$ac_ext <<_ACEOF
  4702. /* confdefs.h. */
  4703. _ACEOF
  4704. cat confdefs.h >>conftest.$ac_ext
  4705. cat >>conftest.$ac_ext <<_ACEOF
  4706. /* end confdefs.h. */
  4707. #include <stdlib.h>
  4708. #include <stdarg.h>
  4709. #include <string.h>
  4710. #include <float.h>
  4711. int
  4712. main ()
  4713. {
  4714. ;
  4715. return 0;
  4716. }
  4717. _ACEOF
  4718. rm -f conftest.$ac_objext
  4719. if { (ac_try="$ac_compile"
  4720. case "(($ac_try" in
  4721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4722. *) ac_try_echo=$ac_try;;
  4723. esac
  4724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4725. (eval "$ac_compile") 2>conftest.er1
  4726. ac_status=$?
  4727. grep -v '^ *+' conftest.er1 >conftest.err
  4728. rm -f conftest.er1
  4729. cat conftest.err >&5
  4730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4731. (exit $ac_status); } && {
  4732. test -z "$ac_c_werror_flag" ||
  4733. test ! -s conftest.err
  4734. } && test -s conftest.$ac_objext; then
  4735. ac_cv_header_stdc=yes
  4736. else
  4737. echo "$as_me: failed program was:" >&5
  4738. sed 's/^/| /' conftest.$ac_ext >&5
  4739. ac_cv_header_stdc=no
  4740. fi
  4741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4742. if test $ac_cv_header_stdc = yes; then
  4743. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4744. cat >conftest.$ac_ext <<_ACEOF
  4745. /* confdefs.h. */
  4746. _ACEOF
  4747. cat confdefs.h >>conftest.$ac_ext
  4748. cat >>conftest.$ac_ext <<_ACEOF
  4749. /* end confdefs.h. */
  4750. #include <string.h>
  4751. _ACEOF
  4752. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4753. $EGREP "memchr" >/dev/null 2>&1; then
  4754. :
  4755. else
  4756. ac_cv_header_stdc=no
  4757. fi
  4758. rm -f conftest*
  4759. fi
  4760. if test $ac_cv_header_stdc = yes; then
  4761. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4762. cat >conftest.$ac_ext <<_ACEOF
  4763. /* confdefs.h. */
  4764. _ACEOF
  4765. cat confdefs.h >>conftest.$ac_ext
  4766. cat >>conftest.$ac_ext <<_ACEOF
  4767. /* end confdefs.h. */
  4768. #include <stdlib.h>
  4769. _ACEOF
  4770. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4771. $EGREP "free" >/dev/null 2>&1; then
  4772. :
  4773. else
  4774. ac_cv_header_stdc=no
  4775. fi
  4776. rm -f conftest*
  4777. fi
  4778. if test $ac_cv_header_stdc = yes; then
  4779. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4780. if test "$cross_compiling" = yes; then
  4781. :
  4782. else
  4783. cat >conftest.$ac_ext <<_ACEOF
  4784. /* confdefs.h. */
  4785. _ACEOF
  4786. cat confdefs.h >>conftest.$ac_ext
  4787. cat >>conftest.$ac_ext <<_ACEOF
  4788. /* end confdefs.h. */
  4789. #include <ctype.h>
  4790. #include <stdlib.h>
  4791. #if ((' ' & 0x0FF) == 0x020)
  4792. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4793. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4794. #else
  4795. # define ISLOWER(c) \
  4796. (('a' <= (c) && (c) <= 'i') \
  4797. || ('j' <= (c) && (c) <= 'r') \
  4798. || ('s' <= (c) && (c) <= 'z'))
  4799. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4800. #endif
  4801. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4802. int
  4803. main ()
  4804. {
  4805. int i;
  4806. for (i = 0; i < 256; i++)
  4807. if (XOR (islower (i), ISLOWER (i))
  4808. || toupper (i) != TOUPPER (i))
  4809. return 2;
  4810. return 0;
  4811. }
  4812. _ACEOF
  4813. rm -f conftest$ac_exeext
  4814. if { (ac_try="$ac_link"
  4815. case "(($ac_try" in
  4816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4817. *) ac_try_echo=$ac_try;;
  4818. esac
  4819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4820. (eval "$ac_link") 2>&5
  4821. ac_status=$?
  4822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4823. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4824. { (case "(($ac_try" in
  4825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4826. *) ac_try_echo=$ac_try;;
  4827. esac
  4828. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4829. (eval "$ac_try") 2>&5
  4830. ac_status=$?
  4831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4832. (exit $ac_status); }; }; then
  4833. :
  4834. else
  4835. echo "$as_me: program exited with status $ac_status" >&5
  4836. echo "$as_me: failed program was:" >&5
  4837. sed 's/^/| /' conftest.$ac_ext >&5
  4838. ( exit $ac_status )
  4839. ac_cv_header_stdc=no
  4840. fi
  4841. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4842. fi
  4843. fi
  4844. fi
  4845. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4846. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4847. if test $ac_cv_header_stdc = yes; then
  4848. cat >>confdefs.h <<\_ACEOF
  4849. #define STDC_HEADERS 1
  4850. _ACEOF
  4851. fi
  4852. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4853. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4854. inttypes.h stdint.h unistd.h
  4855. do
  4856. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4857. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4858. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4859. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4860. echo $ECHO_N "(cached) $ECHO_C" >&6
  4861. else
  4862. cat >conftest.$ac_ext <<_ACEOF
  4863. /* confdefs.h. */
  4864. _ACEOF
  4865. cat confdefs.h >>conftest.$ac_ext
  4866. cat >>conftest.$ac_ext <<_ACEOF
  4867. /* end confdefs.h. */
  4868. $ac_includes_default
  4869. #include <$ac_header>
  4870. _ACEOF
  4871. rm -f conftest.$ac_objext
  4872. if { (ac_try="$ac_compile"
  4873. case "(($ac_try" in
  4874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4875. *) ac_try_echo=$ac_try;;
  4876. esac
  4877. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4878. (eval "$ac_compile") 2>conftest.er1
  4879. ac_status=$?
  4880. grep -v '^ *+' conftest.er1 >conftest.err
  4881. rm -f conftest.er1
  4882. cat conftest.err >&5
  4883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4884. (exit $ac_status); } && {
  4885. test -z "$ac_c_werror_flag" ||
  4886. test ! -s conftest.err
  4887. } && test -s conftest.$ac_objext; then
  4888. eval "$as_ac_Header=yes"
  4889. else
  4890. echo "$as_me: failed program was:" >&5
  4891. sed 's/^/| /' conftest.$ac_ext >&5
  4892. eval "$as_ac_Header=no"
  4893. fi
  4894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4895. fi
  4896. ac_res=`eval echo '${'$as_ac_Header'}'`
  4897. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4898. echo "${ECHO_T}$ac_res" >&6; }
  4899. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4900. cat >>confdefs.h <<_ACEOF
  4901. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4902. _ACEOF
  4903. fi
  4904. done
  4905. for ac_header in dlfcn.h
  4906. do
  4907. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4908. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4909. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4910. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4911. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4912. echo $ECHO_N "(cached) $ECHO_C" >&6
  4913. fi
  4914. ac_res=`eval echo '${'$as_ac_Header'}'`
  4915. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4916. echo "${ECHO_T}$ac_res" >&6; }
  4917. else
  4918. # Is the header compilable?
  4919. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4920. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4921. cat >conftest.$ac_ext <<_ACEOF
  4922. /* confdefs.h. */
  4923. _ACEOF
  4924. cat confdefs.h >>conftest.$ac_ext
  4925. cat >>conftest.$ac_ext <<_ACEOF
  4926. /* end confdefs.h. */
  4927. $ac_includes_default
  4928. #include <$ac_header>
  4929. _ACEOF
  4930. rm -f conftest.$ac_objext
  4931. if { (ac_try="$ac_compile"
  4932. case "(($ac_try" in
  4933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4934. *) ac_try_echo=$ac_try;;
  4935. esac
  4936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4937. (eval "$ac_compile") 2>conftest.er1
  4938. ac_status=$?
  4939. grep -v '^ *+' conftest.er1 >conftest.err
  4940. rm -f conftest.er1
  4941. cat conftest.err >&5
  4942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4943. (exit $ac_status); } && {
  4944. test -z "$ac_c_werror_flag" ||
  4945. test ! -s conftest.err
  4946. } && test -s conftest.$ac_objext; then
  4947. ac_header_compiler=yes
  4948. else
  4949. echo "$as_me: failed program was:" >&5
  4950. sed 's/^/| /' conftest.$ac_ext >&5
  4951. ac_header_compiler=no
  4952. fi
  4953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4954. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4955. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4956. # Is the header present?
  4957. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4958. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4959. cat >conftest.$ac_ext <<_ACEOF
  4960. /* confdefs.h. */
  4961. _ACEOF
  4962. cat confdefs.h >>conftest.$ac_ext
  4963. cat >>conftest.$ac_ext <<_ACEOF
  4964. /* end confdefs.h. */
  4965. #include <$ac_header>
  4966. _ACEOF
  4967. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4968. case "(($ac_try" in
  4969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4970. *) ac_try_echo=$ac_try;;
  4971. esac
  4972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4973. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4974. ac_status=$?
  4975. grep -v '^ *+' conftest.er1 >conftest.err
  4976. rm -f conftest.er1
  4977. cat conftest.err >&5
  4978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4979. (exit $ac_status); } >/dev/null && {
  4980. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4981. test ! -s conftest.err
  4982. }; then
  4983. ac_header_preproc=yes
  4984. else
  4985. echo "$as_me: failed program was:" >&5
  4986. sed 's/^/| /' conftest.$ac_ext >&5
  4987. ac_header_preproc=no
  4988. fi
  4989. rm -f conftest.err conftest.$ac_ext
  4990. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4991. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4992. # So? What about this header?
  4993. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4994. yes:no: )
  4995. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4996. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4997. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4998. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4999. ac_header_preproc=yes
  5000. ;;
  5001. no:yes:* )
  5002. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5003. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5004. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5005. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5006. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5007. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5008. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5009. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5010. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5011. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5012. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5013. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5014. ;;
  5015. esac
  5016. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5017. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5018. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5019. echo $ECHO_N "(cached) $ECHO_C" >&6
  5020. else
  5021. eval "$as_ac_Header=\$ac_header_preproc"
  5022. fi
  5023. ac_res=`eval echo '${'$as_ac_Header'}'`
  5024. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5025. echo "${ECHO_T}$ac_res" >&6; }
  5026. fi
  5027. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5028. cat >>confdefs.h <<_ACEOF
  5029. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5030. _ACEOF
  5031. fi
  5032. done
  5033. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5034. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5035. (test "X$CXX" != "Xg++"))) ; then
  5036. ac_ext=cpp
  5037. ac_cpp='$CXXCPP $CPPFLAGS'
  5038. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5039. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5040. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5041. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5042. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5043. if test -z "$CXXCPP"; then
  5044. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5045. echo $ECHO_N "(cached) $ECHO_C" >&6
  5046. else
  5047. # Double quotes because CXXCPP needs to be expanded
  5048. for CXXCPP in "$CXX -E" "/lib/cpp"
  5049. do
  5050. ac_preproc_ok=false
  5051. for ac_cxx_preproc_warn_flag in '' yes
  5052. do
  5053. # Use a header file that comes with gcc, so configuring glibc
  5054. # with a fresh cross-compiler works.
  5055. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5056. # <limits.h> exists even on freestanding compilers.
  5057. # On the NeXT, cc -E runs the code through the compiler's parser,
  5058. # not just through cpp. "Syntax error" is here to catch this case.
  5059. cat >conftest.$ac_ext <<_ACEOF
  5060. /* confdefs.h. */
  5061. _ACEOF
  5062. cat confdefs.h >>conftest.$ac_ext
  5063. cat >>conftest.$ac_ext <<_ACEOF
  5064. /* end confdefs.h. */
  5065. #ifdef __STDC__
  5066. # include <limits.h>
  5067. #else
  5068. # include <assert.h>
  5069. #endif
  5070. Syntax error
  5071. _ACEOF
  5072. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5073. case "(($ac_try" in
  5074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5075. *) ac_try_echo=$ac_try;;
  5076. esac
  5077. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5078. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5079. ac_status=$?
  5080. grep -v '^ *+' conftest.er1 >conftest.err
  5081. rm -f conftest.er1
  5082. cat conftest.err >&5
  5083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5084. (exit $ac_status); } >/dev/null && {
  5085. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5086. test ! -s conftest.err
  5087. }; then
  5088. :
  5089. else
  5090. echo "$as_me: failed program was:" >&5
  5091. sed 's/^/| /' conftest.$ac_ext >&5
  5092. # Broken: fails on valid input.
  5093. continue
  5094. fi
  5095. rm -f conftest.err conftest.$ac_ext
  5096. # OK, works on sane cases. Now check whether nonexistent headers
  5097. # can be detected and how.
  5098. cat >conftest.$ac_ext <<_ACEOF
  5099. /* confdefs.h. */
  5100. _ACEOF
  5101. cat confdefs.h >>conftest.$ac_ext
  5102. cat >>conftest.$ac_ext <<_ACEOF
  5103. /* end confdefs.h. */
  5104. #include <ac_nonexistent.h>
  5105. _ACEOF
  5106. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5107. case "(($ac_try" in
  5108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5109. *) ac_try_echo=$ac_try;;
  5110. esac
  5111. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5112. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5113. ac_status=$?
  5114. grep -v '^ *+' conftest.er1 >conftest.err
  5115. rm -f conftest.er1
  5116. cat conftest.err >&5
  5117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5118. (exit $ac_status); } >/dev/null && {
  5119. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5120. test ! -s conftest.err
  5121. }; then
  5122. # Broken: success on invalid input.
  5123. continue
  5124. else
  5125. echo "$as_me: failed program was:" >&5
  5126. sed 's/^/| /' conftest.$ac_ext >&5
  5127. # Passes both tests.
  5128. ac_preproc_ok=:
  5129. break
  5130. fi
  5131. rm -f conftest.err conftest.$ac_ext
  5132. done
  5133. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5134. rm -f conftest.err conftest.$ac_ext
  5135. if $ac_preproc_ok; then
  5136. break
  5137. fi
  5138. done
  5139. ac_cv_prog_CXXCPP=$CXXCPP
  5140. fi
  5141. CXXCPP=$ac_cv_prog_CXXCPP
  5142. else
  5143. ac_cv_prog_CXXCPP=$CXXCPP
  5144. fi
  5145. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5146. echo "${ECHO_T}$CXXCPP" >&6; }
  5147. ac_preproc_ok=false
  5148. for ac_cxx_preproc_warn_flag in '' yes
  5149. do
  5150. # Use a header file that comes with gcc, so configuring glibc
  5151. # with a fresh cross-compiler works.
  5152. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5153. # <limits.h> exists even on freestanding compilers.
  5154. # On the NeXT, cc -E runs the code through the compiler's parser,
  5155. # not just through cpp. "Syntax error" is here to catch this case.
  5156. cat >conftest.$ac_ext <<_ACEOF
  5157. /* confdefs.h. */
  5158. _ACEOF
  5159. cat confdefs.h >>conftest.$ac_ext
  5160. cat >>conftest.$ac_ext <<_ACEOF
  5161. /* end confdefs.h. */
  5162. #ifdef __STDC__
  5163. # include <limits.h>
  5164. #else
  5165. # include <assert.h>
  5166. #endif
  5167. Syntax error
  5168. _ACEOF
  5169. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5170. case "(($ac_try" in
  5171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5172. *) ac_try_echo=$ac_try;;
  5173. esac
  5174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5175. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5176. ac_status=$?
  5177. grep -v '^ *+' conftest.er1 >conftest.err
  5178. rm -f conftest.er1
  5179. cat conftest.err >&5
  5180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5181. (exit $ac_status); } >/dev/null && {
  5182. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5183. test ! -s conftest.err
  5184. }; then
  5185. :
  5186. else
  5187. echo "$as_me: failed program was:" >&5
  5188. sed 's/^/| /' conftest.$ac_ext >&5
  5189. # Broken: fails on valid input.
  5190. continue
  5191. fi
  5192. rm -f conftest.err conftest.$ac_ext
  5193. # OK, works on sane cases. Now check whether nonexistent headers
  5194. # can be detected and how.
  5195. cat >conftest.$ac_ext <<_ACEOF
  5196. /* confdefs.h. */
  5197. _ACEOF
  5198. cat confdefs.h >>conftest.$ac_ext
  5199. cat >>conftest.$ac_ext <<_ACEOF
  5200. /* end confdefs.h. */
  5201. #include <ac_nonexistent.h>
  5202. _ACEOF
  5203. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5204. case "(($ac_try" in
  5205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5206. *) ac_try_echo=$ac_try;;
  5207. esac
  5208. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5209. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5210. ac_status=$?
  5211. grep -v '^ *+' conftest.er1 >conftest.err
  5212. rm -f conftest.er1
  5213. cat conftest.err >&5
  5214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5215. (exit $ac_status); } >/dev/null && {
  5216. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5217. test ! -s conftest.err
  5218. }; then
  5219. # Broken: success on invalid input.
  5220. continue
  5221. else
  5222. echo "$as_me: failed program was:" >&5
  5223. sed 's/^/| /' conftest.$ac_ext >&5
  5224. # Passes both tests.
  5225. ac_preproc_ok=:
  5226. break
  5227. fi
  5228. rm -f conftest.err conftest.$ac_ext
  5229. done
  5230. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5231. rm -f conftest.err conftest.$ac_ext
  5232. if $ac_preproc_ok; then
  5233. :
  5234. else
  5235. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5236. See \`config.log' for more details." >&5
  5237. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5238. See \`config.log' for more details." >&2;}
  5239. { (exit 1); exit 1; }; }
  5240. fi
  5241. ac_ext=cpp
  5242. ac_cpp='$CXXCPP $CPPFLAGS'
  5243. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5244. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5245. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5246. fi
  5247. ac_ext=f
  5248. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5249. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5250. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5251. if test -n "$ac_tool_prefix"; then
  5252. 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
  5253. do
  5254. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5255. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5256. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5257. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5258. if test "${ac_cv_prog_F77+set}" = set; then
  5259. echo $ECHO_N "(cached) $ECHO_C" >&6
  5260. else
  5261. if test -n "$F77"; then
  5262. ac_cv_prog_F77="$F77" # Let the user override the test.
  5263. else
  5264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5265. for as_dir in $PATH
  5266. do
  5267. IFS=$as_save_IFS
  5268. test -z "$as_dir" && as_dir=.
  5269. for ac_exec_ext in '' $ac_executable_extensions; do
  5270. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5271. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5272. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5273. break 2
  5274. fi
  5275. done
  5276. done
  5277. IFS=$as_save_IFS
  5278. fi
  5279. fi
  5280. F77=$ac_cv_prog_F77
  5281. if test -n "$F77"; then
  5282. { echo "$as_me:$LINENO: result: $F77" >&5
  5283. echo "${ECHO_T}$F77" >&6; }
  5284. else
  5285. { echo "$as_me:$LINENO: result: no" >&5
  5286. echo "${ECHO_T}no" >&6; }
  5287. fi
  5288. test -n "$F77" && break
  5289. done
  5290. fi
  5291. if test -z "$F77"; then
  5292. ac_ct_F77=$F77
  5293. 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
  5294. do
  5295. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5296. set dummy $ac_prog; ac_word=$2
  5297. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5298. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5299. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5300. echo $ECHO_N "(cached) $ECHO_C" >&6
  5301. else
  5302. if test -n "$ac_ct_F77"; then
  5303. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5304. else
  5305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5306. for as_dir in $PATH
  5307. do
  5308. IFS=$as_save_IFS
  5309. test -z "$as_dir" && as_dir=.
  5310. for ac_exec_ext in '' $ac_executable_extensions; do
  5311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5312. ac_cv_prog_ac_ct_F77="$ac_prog"
  5313. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5314. break 2
  5315. fi
  5316. done
  5317. done
  5318. IFS=$as_save_IFS
  5319. fi
  5320. fi
  5321. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5322. if test -n "$ac_ct_F77"; then
  5323. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5324. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5325. else
  5326. { echo "$as_me:$LINENO: result: no" >&5
  5327. echo "${ECHO_T}no" >&6; }
  5328. fi
  5329. test -n "$ac_ct_F77" && break
  5330. done
  5331. if test "x$ac_ct_F77" = x; then
  5332. F77=""
  5333. else
  5334. case $cross_compiling:$ac_tool_warned in
  5335. yes:)
  5336. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5337. whose name does not start with the host triplet. If you think this
  5338. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5339. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5340. whose name does not start with the host triplet. If you think this
  5341. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5342. ac_tool_warned=yes ;;
  5343. esac
  5344. F77=$ac_ct_F77
  5345. fi
  5346. fi
  5347. # Provide some information about the compiler.
  5348. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5349. ac_compiler=`set X $ac_compile; echo $2`
  5350. { (ac_try="$ac_compiler --version >&5"
  5351. case "(($ac_try" in
  5352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5353. *) ac_try_echo=$ac_try;;
  5354. esac
  5355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5356. (eval "$ac_compiler --version >&5") 2>&5
  5357. ac_status=$?
  5358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5359. (exit $ac_status); }
  5360. { (ac_try="$ac_compiler -v >&5"
  5361. case "(($ac_try" in
  5362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5363. *) ac_try_echo=$ac_try;;
  5364. esac
  5365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5366. (eval "$ac_compiler -v >&5") 2>&5
  5367. ac_status=$?
  5368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5369. (exit $ac_status); }
  5370. { (ac_try="$ac_compiler -V >&5"
  5371. case "(($ac_try" in
  5372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5373. *) ac_try_echo=$ac_try;;
  5374. esac
  5375. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5376. (eval "$ac_compiler -V >&5") 2>&5
  5377. ac_status=$?
  5378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5379. (exit $ac_status); }
  5380. rm -f a.out
  5381. # If we don't use `.F' as extension, the preprocessor is not run on the
  5382. # input file. (Note that this only needs to work for GNU compilers.)
  5383. ac_save_ext=$ac_ext
  5384. ac_ext=F
  5385. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5386. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5387. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5388. echo $ECHO_N "(cached) $ECHO_C" >&6
  5389. else
  5390. cat >conftest.$ac_ext <<_ACEOF
  5391. program main
  5392. #ifndef __GNUC__
  5393. choke me
  5394. #endif
  5395. end
  5396. _ACEOF
  5397. rm -f conftest.$ac_objext
  5398. if { (ac_try="$ac_compile"
  5399. case "(($ac_try" in
  5400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5401. *) ac_try_echo=$ac_try;;
  5402. esac
  5403. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5404. (eval "$ac_compile") 2>conftest.er1
  5405. ac_status=$?
  5406. grep -v '^ *+' conftest.er1 >conftest.err
  5407. rm -f conftest.er1
  5408. cat conftest.err >&5
  5409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5410. (exit $ac_status); } && {
  5411. test -z "$ac_f77_werror_flag" ||
  5412. test ! -s conftest.err
  5413. } && test -s conftest.$ac_objext; then
  5414. ac_compiler_gnu=yes
  5415. else
  5416. echo "$as_me: failed program was:" >&5
  5417. sed 's/^/| /' conftest.$ac_ext >&5
  5418. ac_compiler_gnu=no
  5419. fi
  5420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5421. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5422. fi
  5423. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5424. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5425. ac_ext=$ac_save_ext
  5426. ac_test_FFLAGS=${FFLAGS+set}
  5427. ac_save_FFLAGS=$FFLAGS
  5428. FFLAGS=
  5429. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5430. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5431. if test "${ac_cv_prog_f77_g+set}" = set; then
  5432. echo $ECHO_N "(cached) $ECHO_C" >&6
  5433. else
  5434. FFLAGS=-g
  5435. cat >conftest.$ac_ext <<_ACEOF
  5436. program main
  5437. end
  5438. _ACEOF
  5439. rm -f conftest.$ac_objext
  5440. if { (ac_try="$ac_compile"
  5441. case "(($ac_try" in
  5442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5443. *) ac_try_echo=$ac_try;;
  5444. esac
  5445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5446. (eval "$ac_compile") 2>conftest.er1
  5447. ac_status=$?
  5448. grep -v '^ *+' conftest.er1 >conftest.err
  5449. rm -f conftest.er1
  5450. cat conftest.err >&5
  5451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5452. (exit $ac_status); } && {
  5453. test -z "$ac_f77_werror_flag" ||
  5454. test ! -s conftest.err
  5455. } && test -s conftest.$ac_objext; then
  5456. ac_cv_prog_f77_g=yes
  5457. else
  5458. echo "$as_me: failed program was:" >&5
  5459. sed 's/^/| /' conftest.$ac_ext >&5
  5460. ac_cv_prog_f77_g=no
  5461. fi
  5462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5463. fi
  5464. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5465. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5466. if test "$ac_test_FFLAGS" = set; then
  5467. FFLAGS=$ac_save_FFLAGS
  5468. elif test $ac_cv_prog_f77_g = yes; then
  5469. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5470. FFLAGS="-g -O2"
  5471. else
  5472. FFLAGS="-g"
  5473. fi
  5474. else
  5475. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5476. FFLAGS="-O2"
  5477. else
  5478. FFLAGS=
  5479. fi
  5480. fi
  5481. G77=`test $ac_compiler_gnu = yes && echo yes`
  5482. ac_ext=cpp
  5483. ac_cpp='$CXXCPP $CPPFLAGS'
  5484. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5485. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5486. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5487. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5488. # find the maximum length of command line arguments
  5489. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5490. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5491. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5492. echo $ECHO_N "(cached) $ECHO_C" >&6
  5493. else
  5494. i=0
  5495. teststring="ABCD"
  5496. case $build_os in
  5497. msdosdjgpp*)
  5498. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5499. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5500. # during glob expansion). Even if it were fixed, the result of this
  5501. # check would be larger than it should be.
  5502. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5503. ;;
  5504. gnu*)
  5505. # Under GNU Hurd, this test is not required because there is
  5506. # no limit to the length of command line arguments.
  5507. # Libtool will interpret -1 as no limit whatsoever
  5508. lt_cv_sys_max_cmd_len=-1;
  5509. ;;
  5510. cygwin* | mingw*)
  5511. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5512. # about 5 minutes as the teststring grows exponentially.
  5513. # Worse, since 9x/ME are not pre-emptively multitasking,
  5514. # you end up with a "frozen" computer, even though with patience
  5515. # the test eventually succeeds (with a max line length of 256k).
  5516. # Instead, let's just punt: use the minimum linelength reported by
  5517. # all of the supported platforms: 8192 (on NT/2K/XP).
  5518. lt_cv_sys_max_cmd_len=8192;
  5519. ;;
  5520. amigaos*)
  5521. # On AmigaOS with pdksh, this test takes hours, literally.
  5522. # So we just punt and use a minimum line length of 8192.
  5523. lt_cv_sys_max_cmd_len=8192;
  5524. ;;
  5525. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5526. # This has been around since 386BSD, at least. Likely further.
  5527. if test -x /sbin/sysctl; then
  5528. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5529. elif test -x /usr/sbin/sysctl; then
  5530. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5531. else
  5532. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5533. fi
  5534. # And add a safety zone
  5535. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5536. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5537. ;;
  5538. interix*)
  5539. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5540. lt_cv_sys_max_cmd_len=196608
  5541. ;;
  5542. osf*)
  5543. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5544. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5545. # nice to cause kernel panics so lets avoid the loop below.
  5546. # First set a reasonable default.
  5547. lt_cv_sys_max_cmd_len=16384
  5548. #
  5549. if test -x /sbin/sysconfig; then
  5550. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5551. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5552. esac
  5553. fi
  5554. ;;
  5555. sco3.2v5*)
  5556. lt_cv_sys_max_cmd_len=102400
  5557. ;;
  5558. sysv5* | sco5v6* | sysv4.2uw2*)
  5559. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5560. if test -n "$kargmax"; then
  5561. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5562. else
  5563. lt_cv_sys_max_cmd_len=32768
  5564. fi
  5565. ;;
  5566. *)
  5567. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5568. if test -n "$lt_cv_sys_max_cmd_len"; then
  5569. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5570. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5571. else
  5572. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5573. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5574. = "XX$teststring") >/dev/null 2>&1 &&
  5575. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5576. lt_cv_sys_max_cmd_len=$new_result &&
  5577. test $i != 17 # 1/2 MB should be enough
  5578. do
  5579. i=`expr $i + 1`
  5580. teststring=$teststring$teststring
  5581. done
  5582. teststring=
  5583. # Add a significant safety factor because C++ compilers can tack on massive
  5584. # amounts of additional arguments before passing them to the linker.
  5585. # It appears as though 1/2 is a usable value.
  5586. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5587. fi
  5588. ;;
  5589. esac
  5590. fi
  5591. if test -n $lt_cv_sys_max_cmd_len ; then
  5592. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5593. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5594. else
  5595. { echo "$as_me:$LINENO: result: none" >&5
  5596. echo "${ECHO_T}none" >&6; }
  5597. fi
  5598. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5599. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5600. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5601. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5602. echo $ECHO_N "(cached) $ECHO_C" >&6
  5603. else
  5604. # These are sane defaults that work on at least a few old systems.
  5605. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5606. # Character class describing NM global symbol codes.
  5607. symcode='[BCDEGRST]'
  5608. # Regexp to match symbols that can be accessed directly from C.
  5609. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5610. # Transform an extracted symbol line into a proper C declaration
  5611. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5612. # Transform an extracted symbol line into symbol name and symbol address
  5613. 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'"
  5614. # Define system-specific variables.
  5615. case $host_os in
  5616. aix*)
  5617. symcode='[BCDT]'
  5618. ;;
  5619. cygwin* | mingw* | pw32*)
  5620. symcode='[ABCDGISTW]'
  5621. ;;
  5622. hpux*) # Its linker distinguishes data from code symbols
  5623. if test "$host_cpu" = ia64; then
  5624. symcode='[ABCDEGRST]'
  5625. fi
  5626. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5627. 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'"
  5628. ;;
  5629. linux* | k*bsd*-gnu)
  5630. if test "$host_cpu" = ia64; then
  5631. symcode='[ABCDGIRSTW]'
  5632. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5633. 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'"
  5634. fi
  5635. ;;
  5636. irix* | nonstopux*)
  5637. symcode='[BCDEGRST]'
  5638. ;;
  5639. osf*)
  5640. symcode='[BCDEGQRST]'
  5641. ;;
  5642. solaris*)
  5643. symcode='[BDRT]'
  5644. ;;
  5645. sco3.2v5*)
  5646. symcode='[DT]'
  5647. ;;
  5648. sysv4.2uw2*)
  5649. symcode='[DT]'
  5650. ;;
  5651. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5652. symcode='[ABDT]'
  5653. ;;
  5654. sysv4)
  5655. symcode='[DFNSTU]'
  5656. ;;
  5657. esac
  5658. # Handle CRLF in mingw tool chain
  5659. opt_cr=
  5660. case $build_os in
  5661. mingw*)
  5662. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5663. ;;
  5664. esac
  5665. # If we're using GNU nm, then use its standard symbol codes.
  5666. case `$NM -V 2>&1` in
  5667. *GNU* | *'with BFD'*)
  5668. symcode='[ABCDGIRSTW]' ;;
  5669. esac
  5670. # Try without a prefix undercore, then with it.
  5671. for ac_symprfx in "" "_"; do
  5672. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5673. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5674. # Write the raw and C identifiers.
  5675. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5676. # Check to see that the pipe works correctly.
  5677. pipe_works=no
  5678. rm -f conftest*
  5679. cat > conftest.$ac_ext <<EOF
  5680. #ifdef __cplusplus
  5681. extern "C" {
  5682. #endif
  5683. char nm_test_var;
  5684. void nm_test_func(){}
  5685. #ifdef __cplusplus
  5686. }
  5687. #endif
  5688. int main(){nm_test_var='a';nm_test_func();return(0);}
  5689. EOF
  5690. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5691. (eval $ac_compile) 2>&5
  5692. ac_status=$?
  5693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5694. (exit $ac_status); }; then
  5695. # Now try to grab the symbols.
  5696. nlist=conftest.nm
  5697. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5698. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5699. ac_status=$?
  5700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5701. (exit $ac_status); } && test -s "$nlist"; then
  5702. # Try sorting and uniquifying the output.
  5703. if sort "$nlist" | uniq > "$nlist"T; then
  5704. mv -f "$nlist"T "$nlist"
  5705. else
  5706. rm -f "$nlist"T
  5707. fi
  5708. # Make sure that we snagged all the symbols we need.
  5709. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5710. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5711. cat <<EOF > conftest.$ac_ext
  5712. #ifdef __cplusplus
  5713. extern "C" {
  5714. #endif
  5715. EOF
  5716. # Now generate the symbol file.
  5717. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5718. cat <<EOF >> conftest.$ac_ext
  5719. #if defined (__STDC__) && __STDC__
  5720. # define lt_ptr_t void *
  5721. #else
  5722. # define lt_ptr_t char *
  5723. # define const
  5724. #endif
  5725. /* The mapping between symbol names and symbols. */
  5726. const struct {
  5727. const char *name;
  5728. lt_ptr_t address;
  5729. }
  5730. lt_preloaded_symbols[] =
  5731. {
  5732. EOF
  5733. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5734. cat <<\EOF >> conftest.$ac_ext
  5735. {0, (lt_ptr_t) 0}
  5736. };
  5737. #ifdef __cplusplus
  5738. }
  5739. #endif
  5740. EOF
  5741. # Now try linking the two files.
  5742. mv conftest.$ac_objext conftstm.$ac_objext
  5743. lt_save_LIBS="$LIBS"
  5744. lt_save_CFLAGS="$CFLAGS"
  5745. LIBS="conftstm.$ac_objext"
  5746. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5747. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5748. (eval $ac_link) 2>&5
  5749. ac_status=$?
  5750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5751. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5752. pipe_works=yes
  5753. fi
  5754. LIBS="$lt_save_LIBS"
  5755. CFLAGS="$lt_save_CFLAGS"
  5756. else
  5757. echo "cannot find nm_test_func in $nlist" >&5
  5758. fi
  5759. else
  5760. echo "cannot find nm_test_var in $nlist" >&5
  5761. fi
  5762. else
  5763. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5764. fi
  5765. else
  5766. echo "$progname: failed program was:" >&5
  5767. cat conftest.$ac_ext >&5
  5768. fi
  5769. rm -f conftest* conftst*
  5770. # Do not use the global_symbol_pipe unless it works.
  5771. if test "$pipe_works" = yes; then
  5772. break
  5773. else
  5774. lt_cv_sys_global_symbol_pipe=
  5775. fi
  5776. done
  5777. fi
  5778. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5779. lt_cv_sys_global_symbol_to_cdecl=
  5780. fi
  5781. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5782. { echo "$as_me:$LINENO: result: failed" >&5
  5783. echo "${ECHO_T}failed" >&6; }
  5784. else
  5785. { echo "$as_me:$LINENO: result: ok" >&5
  5786. echo "${ECHO_T}ok" >&6; }
  5787. fi
  5788. { echo "$as_me:$LINENO: checking for objdir" >&5
  5789. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5790. if test "${lt_cv_objdir+set}" = set; then
  5791. echo $ECHO_N "(cached) $ECHO_C" >&6
  5792. else
  5793. rm -f .libs 2>/dev/null
  5794. mkdir .libs 2>/dev/null
  5795. if test -d .libs; then
  5796. lt_cv_objdir=.libs
  5797. else
  5798. # MS-DOS does not allow filenames that begin with a dot.
  5799. lt_cv_objdir=_libs
  5800. fi
  5801. rmdir .libs 2>/dev/null
  5802. fi
  5803. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5804. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  5805. objdir=$lt_cv_objdir
  5806. case $host_os in
  5807. aix3*)
  5808. # AIX sometimes has problems with the GCC collect2 program. For some
  5809. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5810. # vanish in a puff of smoke.
  5811. if test "X${COLLECT_NAMES+set}" != Xset; then
  5812. COLLECT_NAMES=
  5813. export COLLECT_NAMES
  5814. fi
  5815. ;;
  5816. esac
  5817. # Sed substitution that helps us do robust quoting. It backslashifies
  5818. # metacharacters that are still active within double-quoted strings.
  5819. Xsed='sed -e 1s/^X//'
  5820. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5821. # Same as above, but do not quote variable references.
  5822. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5823. # Sed substitution to delay expansion of an escaped shell variable in a
  5824. # double_quote_subst'ed string.
  5825. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5826. # Sed substitution to avoid accidental globbing in evaled expressions
  5827. no_glob_subst='s/\*/\\\*/g'
  5828. # Constants:
  5829. rm="rm -f"
  5830. # Global variables:
  5831. default_ofile=libtool
  5832. can_build_shared=yes
  5833. # All known linkers require a `.a' archive for static linking (except MSVC,
  5834. # which needs '.lib').
  5835. libext=a
  5836. ltmain="$ac_aux_dir/ltmain.sh"
  5837. ofile="$default_ofile"
  5838. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5839. if test -n "$ac_tool_prefix"; then
  5840. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5841. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5842. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5843. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5844. if test "${ac_cv_prog_AR+set}" = set; then
  5845. echo $ECHO_N "(cached) $ECHO_C" >&6
  5846. else
  5847. if test -n "$AR"; then
  5848. ac_cv_prog_AR="$AR" # Let the user override the test.
  5849. else
  5850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5851. for as_dir in $PATH
  5852. do
  5853. IFS=$as_save_IFS
  5854. test -z "$as_dir" && as_dir=.
  5855. for ac_exec_ext in '' $ac_executable_extensions; do
  5856. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5857. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5858. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5859. break 2
  5860. fi
  5861. done
  5862. done
  5863. IFS=$as_save_IFS
  5864. fi
  5865. fi
  5866. AR=$ac_cv_prog_AR
  5867. if test -n "$AR"; then
  5868. { echo "$as_me:$LINENO: result: $AR" >&5
  5869. echo "${ECHO_T}$AR" >&6; }
  5870. else
  5871. { echo "$as_me:$LINENO: result: no" >&5
  5872. echo "${ECHO_T}no" >&6; }
  5873. fi
  5874. fi
  5875. if test -z "$ac_cv_prog_AR"; then
  5876. ac_ct_AR=$AR
  5877. # Extract the first word of "ar", so it can be a program name with args.
  5878. set dummy ar; ac_word=$2
  5879. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5880. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5881. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5882. echo $ECHO_N "(cached) $ECHO_C" >&6
  5883. else
  5884. if test -n "$ac_ct_AR"; then
  5885. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5886. else
  5887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5888. for as_dir in $PATH
  5889. do
  5890. IFS=$as_save_IFS
  5891. test -z "$as_dir" && as_dir=.
  5892. for ac_exec_ext in '' $ac_executable_extensions; do
  5893. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5894. ac_cv_prog_ac_ct_AR="ar"
  5895. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5896. break 2
  5897. fi
  5898. done
  5899. done
  5900. IFS=$as_save_IFS
  5901. fi
  5902. fi
  5903. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5904. if test -n "$ac_ct_AR"; then
  5905. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5906. echo "${ECHO_T}$ac_ct_AR" >&6; }
  5907. else
  5908. { echo "$as_me:$LINENO: result: no" >&5
  5909. echo "${ECHO_T}no" >&6; }
  5910. fi
  5911. if test "x$ac_ct_AR" = x; then
  5912. AR="false"
  5913. else
  5914. case $cross_compiling:$ac_tool_warned in
  5915. yes:)
  5916. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5917. whose name does not start with the host triplet. If you think this
  5918. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5919. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5920. whose name does not start with the host triplet. If you think this
  5921. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5922. ac_tool_warned=yes ;;
  5923. esac
  5924. AR=$ac_ct_AR
  5925. fi
  5926. else
  5927. AR="$ac_cv_prog_AR"
  5928. fi
  5929. if test -n "$ac_tool_prefix"; then
  5930. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5931. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5932. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5933. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5934. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5935. echo $ECHO_N "(cached) $ECHO_C" >&6
  5936. else
  5937. if test -n "$RANLIB"; then
  5938. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5939. else
  5940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5941. for as_dir in $PATH
  5942. do
  5943. IFS=$as_save_IFS
  5944. test -z "$as_dir" && as_dir=.
  5945. for ac_exec_ext in '' $ac_executable_extensions; do
  5946. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5947. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5948. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5949. break 2
  5950. fi
  5951. done
  5952. done
  5953. IFS=$as_save_IFS
  5954. fi
  5955. fi
  5956. RANLIB=$ac_cv_prog_RANLIB
  5957. if test -n "$RANLIB"; then
  5958. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  5959. echo "${ECHO_T}$RANLIB" >&6; }
  5960. else
  5961. { echo "$as_me:$LINENO: result: no" >&5
  5962. echo "${ECHO_T}no" >&6; }
  5963. fi
  5964. fi
  5965. if test -z "$ac_cv_prog_RANLIB"; then
  5966. ac_ct_RANLIB=$RANLIB
  5967. # Extract the first word of "ranlib", so it can be a program name with args.
  5968. set dummy ranlib; ac_word=$2
  5969. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5970. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5971. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5972. echo $ECHO_N "(cached) $ECHO_C" >&6
  5973. else
  5974. if test -n "$ac_ct_RANLIB"; then
  5975. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5976. else
  5977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5978. for as_dir in $PATH
  5979. do
  5980. IFS=$as_save_IFS
  5981. test -z "$as_dir" && as_dir=.
  5982. for ac_exec_ext in '' $ac_executable_extensions; do
  5983. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5984. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5985. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5986. break 2
  5987. fi
  5988. done
  5989. done
  5990. IFS=$as_save_IFS
  5991. fi
  5992. fi
  5993. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5994. if test -n "$ac_ct_RANLIB"; then
  5995. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5996. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  5997. else
  5998. { echo "$as_me:$LINENO: result: no" >&5
  5999. echo "${ECHO_T}no" >&6; }
  6000. fi
  6001. if test "x$ac_ct_RANLIB" = x; then
  6002. RANLIB=":"
  6003. else
  6004. case $cross_compiling:$ac_tool_warned in
  6005. yes:)
  6006. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6007. whose name does not start with the host triplet. If you think this
  6008. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6009. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6010. whose name does not start with the host triplet. If you think this
  6011. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6012. ac_tool_warned=yes ;;
  6013. esac
  6014. RANLIB=$ac_ct_RANLIB
  6015. fi
  6016. else
  6017. RANLIB="$ac_cv_prog_RANLIB"
  6018. fi
  6019. if test -n "$ac_tool_prefix"; then
  6020. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6021. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6022. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6023. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6024. if test "${ac_cv_prog_STRIP+set}" = set; then
  6025. echo $ECHO_N "(cached) $ECHO_C" >&6
  6026. else
  6027. if test -n "$STRIP"; then
  6028. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6029. else
  6030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6031. for as_dir in $PATH
  6032. do
  6033. IFS=$as_save_IFS
  6034. test -z "$as_dir" && as_dir=.
  6035. for ac_exec_ext in '' $ac_executable_extensions; do
  6036. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6037. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6038. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6039. break 2
  6040. fi
  6041. done
  6042. done
  6043. IFS=$as_save_IFS
  6044. fi
  6045. fi
  6046. STRIP=$ac_cv_prog_STRIP
  6047. if test -n "$STRIP"; then
  6048. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6049. echo "${ECHO_T}$STRIP" >&6; }
  6050. else
  6051. { echo "$as_me:$LINENO: result: no" >&5
  6052. echo "${ECHO_T}no" >&6; }
  6053. fi
  6054. fi
  6055. if test -z "$ac_cv_prog_STRIP"; then
  6056. ac_ct_STRIP=$STRIP
  6057. # Extract the first word of "strip", so it can be a program name with args.
  6058. set dummy strip; ac_word=$2
  6059. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6060. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6061. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6062. echo $ECHO_N "(cached) $ECHO_C" >&6
  6063. else
  6064. if test -n "$ac_ct_STRIP"; then
  6065. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6066. else
  6067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6068. for as_dir in $PATH
  6069. do
  6070. IFS=$as_save_IFS
  6071. test -z "$as_dir" && as_dir=.
  6072. for ac_exec_ext in '' $ac_executable_extensions; do
  6073. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6074. ac_cv_prog_ac_ct_STRIP="strip"
  6075. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6076. break 2
  6077. fi
  6078. done
  6079. done
  6080. IFS=$as_save_IFS
  6081. fi
  6082. fi
  6083. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6084. if test -n "$ac_ct_STRIP"; then
  6085. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6086. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6087. else
  6088. { echo "$as_me:$LINENO: result: no" >&5
  6089. echo "${ECHO_T}no" >&6; }
  6090. fi
  6091. if test "x$ac_ct_STRIP" = x; then
  6092. STRIP=":"
  6093. else
  6094. case $cross_compiling:$ac_tool_warned in
  6095. yes:)
  6096. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6097. whose name does not start with the host triplet. If you think this
  6098. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6099. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6100. whose name does not start with the host triplet. If you think this
  6101. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6102. ac_tool_warned=yes ;;
  6103. esac
  6104. STRIP=$ac_ct_STRIP
  6105. fi
  6106. else
  6107. STRIP="$ac_cv_prog_STRIP"
  6108. fi
  6109. old_CC="$CC"
  6110. old_CFLAGS="$CFLAGS"
  6111. # Set sane defaults for various variables
  6112. test -z "$AR" && AR=ar
  6113. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6114. test -z "$AS" && AS=as
  6115. test -z "$CC" && CC=cc
  6116. test -z "$LTCC" && LTCC=$CC
  6117. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6118. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6119. test -z "$LD" && LD=ld
  6120. test -z "$LN_S" && LN_S="ln -s"
  6121. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6122. test -z "$NM" && NM=nm
  6123. test -z "$SED" && SED=sed
  6124. test -z "$OBJDUMP" && OBJDUMP=objdump
  6125. test -z "$RANLIB" && RANLIB=:
  6126. test -z "$STRIP" && STRIP=:
  6127. test -z "$ac_objext" && ac_objext=o
  6128. # Determine commands to create old-style static archives.
  6129. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6130. old_postinstall_cmds='chmod 644 $oldlib'
  6131. old_postuninstall_cmds=
  6132. if test -n "$RANLIB"; then
  6133. case $host_os in
  6134. openbsd*)
  6135. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6136. ;;
  6137. *)
  6138. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6139. ;;
  6140. esac
  6141. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6142. fi
  6143. for cc_temp in $compiler""; do
  6144. case $cc_temp in
  6145. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6146. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6147. \-*) ;;
  6148. *) break;;
  6149. esac
  6150. done
  6151. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6152. # Only perform the check for file, if the check method requires it
  6153. case $deplibs_check_method in
  6154. file_magic*)
  6155. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6156. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6157. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6158. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6159. echo $ECHO_N "(cached) $ECHO_C" >&6
  6160. else
  6161. case $MAGIC_CMD in
  6162. [\\/*] | ?:[\\/]*)
  6163. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6164. ;;
  6165. *)
  6166. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6167. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6168. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6169. for ac_dir in $ac_dummy; do
  6170. IFS="$lt_save_ifs"
  6171. test -z "$ac_dir" && ac_dir=.
  6172. if test -f $ac_dir/${ac_tool_prefix}file; then
  6173. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6174. if test -n "$file_magic_test_file"; then
  6175. case $deplibs_check_method in
  6176. "file_magic "*)
  6177. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6178. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6179. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6180. $EGREP "$file_magic_regex" > /dev/null; then
  6181. :
  6182. else
  6183. cat <<EOF 1>&2
  6184. *** Warning: the command libtool uses to detect shared libraries,
  6185. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6186. *** The result is that libtool may fail to recognize shared libraries
  6187. *** as such. This will affect the creation of libtool libraries that
  6188. *** depend on shared libraries, but programs linked with such libtool
  6189. *** libraries will work regardless of this problem. Nevertheless, you
  6190. *** may want to report the problem to your system manager and/or to
  6191. *** bug-libtool@gnu.org
  6192. EOF
  6193. fi ;;
  6194. esac
  6195. fi
  6196. break
  6197. fi
  6198. done
  6199. IFS="$lt_save_ifs"
  6200. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6201. ;;
  6202. esac
  6203. fi
  6204. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6205. if test -n "$MAGIC_CMD"; then
  6206. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6207. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6208. else
  6209. { echo "$as_me:$LINENO: result: no" >&5
  6210. echo "${ECHO_T}no" >&6; }
  6211. fi
  6212. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6213. if test -n "$ac_tool_prefix"; then
  6214. { echo "$as_me:$LINENO: checking for file" >&5
  6215. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6216. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6217. echo $ECHO_N "(cached) $ECHO_C" >&6
  6218. else
  6219. case $MAGIC_CMD in
  6220. [\\/*] | ?:[\\/]*)
  6221. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6222. ;;
  6223. *)
  6224. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6225. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6226. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6227. for ac_dir in $ac_dummy; do
  6228. IFS="$lt_save_ifs"
  6229. test -z "$ac_dir" && ac_dir=.
  6230. if test -f $ac_dir/file; then
  6231. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6232. if test -n "$file_magic_test_file"; then
  6233. case $deplibs_check_method in
  6234. "file_magic "*)
  6235. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6236. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6237. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6238. $EGREP "$file_magic_regex" > /dev/null; then
  6239. :
  6240. else
  6241. cat <<EOF 1>&2
  6242. *** Warning: the command libtool uses to detect shared libraries,
  6243. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6244. *** The result is that libtool may fail to recognize shared libraries
  6245. *** as such. This will affect the creation of libtool libraries that
  6246. *** depend on shared libraries, but programs linked with such libtool
  6247. *** libraries will work regardless of this problem. Nevertheless, you
  6248. *** may want to report the problem to your system manager and/or to
  6249. *** bug-libtool@gnu.org
  6250. EOF
  6251. fi ;;
  6252. esac
  6253. fi
  6254. break
  6255. fi
  6256. done
  6257. IFS="$lt_save_ifs"
  6258. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6259. ;;
  6260. esac
  6261. fi
  6262. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6263. if test -n "$MAGIC_CMD"; then
  6264. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6265. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6266. else
  6267. { echo "$as_me:$LINENO: result: no" >&5
  6268. echo "${ECHO_T}no" >&6; }
  6269. fi
  6270. else
  6271. MAGIC_CMD=:
  6272. fi
  6273. fi
  6274. fi
  6275. ;;
  6276. esac
  6277. enable_dlopen=no
  6278. enable_win32_dll=no
  6279. # Check whether --enable-libtool-lock was given.
  6280. if test "${enable_libtool_lock+set}" = set; then
  6281. enableval=$enable_libtool_lock;
  6282. fi
  6283. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6284. # Check whether --with-pic was given.
  6285. if test "${with_pic+set}" = set; then
  6286. withval=$with_pic; pic_mode="$withval"
  6287. else
  6288. pic_mode=default
  6289. fi
  6290. test -z "$pic_mode" && pic_mode=default
  6291. # Use C for the default configuration in the libtool script
  6292. tagname=
  6293. lt_save_CC="$CC"
  6294. ac_ext=c
  6295. ac_cpp='$CPP $CPPFLAGS'
  6296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6299. # Source file extension for C test sources.
  6300. ac_ext=c
  6301. # Object file extension for compiled C test sources.
  6302. objext=o
  6303. objext=$objext
  6304. # Code to be used in simple compile tests
  6305. lt_simple_compile_test_code="int some_variable = 0;"
  6306. # Code to be used in simple link tests
  6307. lt_simple_link_test_code='int main(){return(0);}'
  6308. # If no C compiler was specified, use CC.
  6309. LTCC=${LTCC-"$CC"}
  6310. # If no C compiler flags were specified, use CFLAGS.
  6311. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6312. # Allow CC to be a program name with arguments.
  6313. compiler=$CC
  6314. # save warnings/boilerplate of simple test code
  6315. ac_outfile=conftest.$ac_objext
  6316. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6317. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6318. _lt_compiler_boilerplate=`cat conftest.err`
  6319. $rm conftest*
  6320. ac_outfile=conftest.$ac_objext
  6321. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6322. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6323. _lt_linker_boilerplate=`cat conftest.err`
  6324. $rm conftest*
  6325. lt_prog_compiler_no_builtin_flag=
  6326. if test "$GCC" = yes; then
  6327. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6328. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6329. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6330. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6331. echo $ECHO_N "(cached) $ECHO_C" >&6
  6332. else
  6333. lt_cv_prog_compiler_rtti_exceptions=no
  6334. ac_outfile=conftest.$ac_objext
  6335. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6336. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6337. # Insert the option either (1) after the last *FLAGS variable, or
  6338. # (2) before a word containing "conftest.", or (3) at the end.
  6339. # Note that $ac_compile itself does not contain backslashes and begins
  6340. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6341. # The option is referenced via a variable to avoid confusing sed.
  6342. lt_compile=`echo "$ac_compile" | $SED \
  6343. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6344. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6345. -e 's:$: $lt_compiler_flag:'`
  6346. (eval echo "\"\$as_me:7104: $lt_compile\"" >&5)
  6347. (eval "$lt_compile" 2>conftest.err)
  6348. ac_status=$?
  6349. cat conftest.err >&5
  6350. echo "$as_me:7108: \$? = $ac_status" >&5
  6351. if (exit $ac_status) && test -s "$ac_outfile"; then
  6352. # The compiler can only warn and ignore the option if not recognized
  6353. # So say no if there are warnings other than the usual output.
  6354. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6355. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6356. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6357. lt_cv_prog_compiler_rtti_exceptions=yes
  6358. fi
  6359. fi
  6360. $rm conftest*
  6361. fi
  6362. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6363. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6364. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6365. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6366. else
  6367. :
  6368. fi
  6369. fi
  6370. lt_prog_compiler_wl=
  6371. lt_prog_compiler_pic=
  6372. lt_prog_compiler_static=
  6373. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6374. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6375. if test "$GCC" = yes; then
  6376. lt_prog_compiler_wl='-Wl,'
  6377. lt_prog_compiler_static='-static'
  6378. case $host_os in
  6379. aix*)
  6380. # All AIX code is PIC.
  6381. if test "$host_cpu" = ia64; then
  6382. # AIX 5 now supports IA64 processor
  6383. lt_prog_compiler_static='-Bstatic'
  6384. fi
  6385. ;;
  6386. amigaos*)
  6387. # FIXME: we need at least 68020 code to build shared libraries, but
  6388. # adding the `-m68020' flag to GCC prevents building anything better,
  6389. # like `-m68040'.
  6390. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6391. ;;
  6392. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6393. # PIC is the default for these OSes.
  6394. ;;
  6395. mingw* | cygwin* | pw32* | os2*)
  6396. # This hack is so that the source file can tell whether it is being
  6397. # built for inclusion in a dll (and should export symbols for example).
  6398. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6399. # (--disable-auto-import) libraries
  6400. lt_prog_compiler_pic='-DDLL_EXPORT'
  6401. ;;
  6402. darwin* | rhapsody*)
  6403. # PIC is the default on this platform
  6404. # Common symbols not allowed in MH_DYLIB files
  6405. lt_prog_compiler_pic='-fno-common'
  6406. ;;
  6407. interix[3-9]*)
  6408. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6409. # Instead, we relocate shared libraries at runtime.
  6410. ;;
  6411. msdosdjgpp*)
  6412. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6413. # on systems that don't support them.
  6414. lt_prog_compiler_can_build_shared=no
  6415. enable_shared=no
  6416. ;;
  6417. sysv4*MP*)
  6418. if test -d /usr/nec; then
  6419. lt_prog_compiler_pic=-Kconform_pic
  6420. fi
  6421. ;;
  6422. hpux*)
  6423. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6424. # not for PA HP-UX.
  6425. case $host_cpu in
  6426. hppa*64*|ia64*)
  6427. # +Z the default
  6428. ;;
  6429. *)
  6430. lt_prog_compiler_pic='-fPIC'
  6431. ;;
  6432. esac
  6433. ;;
  6434. *)
  6435. lt_prog_compiler_pic='-fPIC'
  6436. ;;
  6437. esac
  6438. else
  6439. # PORTME Check for flag to pass linker flags through the system compiler.
  6440. case $host_os in
  6441. aix*)
  6442. lt_prog_compiler_wl='-Wl,'
  6443. if test "$host_cpu" = ia64; then
  6444. # AIX 5 now supports IA64 processor
  6445. lt_prog_compiler_static='-Bstatic'
  6446. else
  6447. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6448. fi
  6449. ;;
  6450. darwin*)
  6451. # PIC is the default on this platform
  6452. # Common symbols not allowed in MH_DYLIB files
  6453. case $cc_basename in
  6454. xlc*)
  6455. lt_prog_compiler_pic='-qnocommon'
  6456. lt_prog_compiler_wl='-Wl,'
  6457. ;;
  6458. esac
  6459. ;;
  6460. mingw* | cygwin* | pw32* | os2*)
  6461. # This hack is so that the source file can tell whether it is being
  6462. # built for inclusion in a dll (and should export symbols for example).
  6463. lt_prog_compiler_pic='-DDLL_EXPORT'
  6464. ;;
  6465. hpux9* | hpux10* | hpux11*)
  6466. lt_prog_compiler_wl='-Wl,'
  6467. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6468. # not for PA HP-UX.
  6469. case $host_cpu in
  6470. hppa*64*|ia64*)
  6471. # +Z the default
  6472. ;;
  6473. *)
  6474. lt_prog_compiler_pic='+Z'
  6475. ;;
  6476. esac
  6477. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6478. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6479. ;;
  6480. irix5* | irix6* | nonstopux*)
  6481. lt_prog_compiler_wl='-Wl,'
  6482. # PIC (with -KPIC) is the default.
  6483. lt_prog_compiler_static='-non_shared'
  6484. ;;
  6485. newsos6)
  6486. lt_prog_compiler_pic='-KPIC'
  6487. lt_prog_compiler_static='-Bstatic'
  6488. ;;
  6489. linux* | k*bsd*-gnu)
  6490. case $cc_basename in
  6491. icc* | ecc*)
  6492. lt_prog_compiler_wl='-Wl,'
  6493. lt_prog_compiler_pic='-KPIC'
  6494. lt_prog_compiler_static='-static'
  6495. ;;
  6496. pgcc* | pgf77* | pgf90* | pgf95*)
  6497. # Portland Group compilers (*not* the Pentium gcc compiler,
  6498. # which looks to be a dead project)
  6499. lt_prog_compiler_wl='-Wl,'
  6500. lt_prog_compiler_pic='-fpic'
  6501. lt_prog_compiler_static='-Bstatic'
  6502. ;;
  6503. ccc*)
  6504. lt_prog_compiler_wl='-Wl,'
  6505. # All Alpha code is PIC.
  6506. lt_prog_compiler_static='-non_shared'
  6507. ;;
  6508. *)
  6509. case `$CC -V 2>&1 | sed 5q` in
  6510. *Sun\ C*)
  6511. # Sun C 5.9
  6512. lt_prog_compiler_pic='-KPIC'
  6513. lt_prog_compiler_static='-Bstatic'
  6514. lt_prog_compiler_wl='-Wl,'
  6515. ;;
  6516. *Sun\ F*)
  6517. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6518. lt_prog_compiler_pic='-KPIC'
  6519. lt_prog_compiler_static='-Bstatic'
  6520. lt_prog_compiler_wl=''
  6521. ;;
  6522. esac
  6523. ;;
  6524. esac
  6525. ;;
  6526. osf3* | osf4* | osf5*)
  6527. lt_prog_compiler_wl='-Wl,'
  6528. # All OSF/1 code is PIC.
  6529. lt_prog_compiler_static='-non_shared'
  6530. ;;
  6531. rdos*)
  6532. lt_prog_compiler_static='-non_shared'
  6533. ;;
  6534. solaris*)
  6535. lt_prog_compiler_pic='-KPIC'
  6536. lt_prog_compiler_static='-Bstatic'
  6537. case $cc_basename in
  6538. f77* | f90* | f95*)
  6539. lt_prog_compiler_wl='-Qoption ld ';;
  6540. *)
  6541. lt_prog_compiler_wl='-Wl,';;
  6542. esac
  6543. ;;
  6544. sunos4*)
  6545. lt_prog_compiler_wl='-Qoption ld '
  6546. lt_prog_compiler_pic='-PIC'
  6547. lt_prog_compiler_static='-Bstatic'
  6548. ;;
  6549. sysv4 | sysv4.2uw2* | sysv4.3*)
  6550. lt_prog_compiler_wl='-Wl,'
  6551. lt_prog_compiler_pic='-KPIC'
  6552. lt_prog_compiler_static='-Bstatic'
  6553. ;;
  6554. sysv4*MP*)
  6555. if test -d /usr/nec ;then
  6556. lt_prog_compiler_pic='-Kconform_pic'
  6557. lt_prog_compiler_static='-Bstatic'
  6558. fi
  6559. ;;
  6560. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6561. lt_prog_compiler_wl='-Wl,'
  6562. lt_prog_compiler_pic='-KPIC'
  6563. lt_prog_compiler_static='-Bstatic'
  6564. ;;
  6565. unicos*)
  6566. lt_prog_compiler_wl='-Wl,'
  6567. lt_prog_compiler_can_build_shared=no
  6568. ;;
  6569. uts4*)
  6570. lt_prog_compiler_pic='-pic'
  6571. lt_prog_compiler_static='-Bstatic'
  6572. ;;
  6573. *)
  6574. lt_prog_compiler_can_build_shared=no
  6575. ;;
  6576. esac
  6577. fi
  6578. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6579. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6580. #
  6581. # Check to make sure the PIC flag actually works.
  6582. #
  6583. if test -n "$lt_prog_compiler_pic"; then
  6584. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6585. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6586. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6587. echo $ECHO_N "(cached) $ECHO_C" >&6
  6588. else
  6589. lt_prog_compiler_pic_works=no
  6590. ac_outfile=conftest.$ac_objext
  6591. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6592. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6593. # Insert the option either (1) after the last *FLAGS variable, or
  6594. # (2) before a word containing "conftest.", or (3) at the end.
  6595. # Note that $ac_compile itself does not contain backslashes and begins
  6596. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6597. # The option is referenced via a variable to avoid confusing sed.
  6598. lt_compile=`echo "$ac_compile" | $SED \
  6599. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6600. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6601. -e 's:$: $lt_compiler_flag:'`
  6602. (eval echo "\"\$as_me:7394: $lt_compile\"" >&5)
  6603. (eval "$lt_compile" 2>conftest.err)
  6604. ac_status=$?
  6605. cat conftest.err >&5
  6606. echo "$as_me:7398: \$? = $ac_status" >&5
  6607. if (exit $ac_status) && test -s "$ac_outfile"; then
  6608. # The compiler can only warn and ignore the option if not recognized
  6609. # So say no if there are warnings other than the usual output.
  6610. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6611. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6612. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6613. lt_prog_compiler_pic_works=yes
  6614. fi
  6615. fi
  6616. $rm conftest*
  6617. fi
  6618. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6619. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6620. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6621. case $lt_prog_compiler_pic in
  6622. "" | " "*) ;;
  6623. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6624. esac
  6625. else
  6626. lt_prog_compiler_pic=
  6627. lt_prog_compiler_can_build_shared=no
  6628. fi
  6629. fi
  6630. case $host_os in
  6631. # For platforms which do not support PIC, -DPIC is meaningless:
  6632. *djgpp*)
  6633. lt_prog_compiler_pic=
  6634. ;;
  6635. *)
  6636. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6637. ;;
  6638. esac
  6639. #
  6640. # Check to make sure the static flag actually works.
  6641. #
  6642. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6643. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6644. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6645. if test "${lt_prog_compiler_static_works+set}" = set; then
  6646. echo $ECHO_N "(cached) $ECHO_C" >&6
  6647. else
  6648. lt_prog_compiler_static_works=no
  6649. save_LDFLAGS="$LDFLAGS"
  6650. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6651. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6652. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6653. # The linker can only warn and ignore the option if not recognized
  6654. # So say no if there are warnings
  6655. if test -s conftest.err; then
  6656. # Append any errors to the config.log.
  6657. cat conftest.err 1>&5
  6658. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6659. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6660. if diff conftest.exp conftest.er2 >/dev/null; then
  6661. lt_prog_compiler_static_works=yes
  6662. fi
  6663. else
  6664. lt_prog_compiler_static_works=yes
  6665. fi
  6666. fi
  6667. $rm conftest*
  6668. LDFLAGS="$save_LDFLAGS"
  6669. fi
  6670. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6671. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6672. if test x"$lt_prog_compiler_static_works" = xyes; then
  6673. :
  6674. else
  6675. lt_prog_compiler_static=
  6676. fi
  6677. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6678. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6679. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6680. echo $ECHO_N "(cached) $ECHO_C" >&6
  6681. else
  6682. lt_cv_prog_compiler_c_o=no
  6683. $rm -r conftest 2>/dev/null
  6684. mkdir conftest
  6685. cd conftest
  6686. mkdir out
  6687. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6688. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6689. # Insert the option either (1) after the last *FLAGS variable, or
  6690. # (2) before a word containing "conftest.", or (3) at the end.
  6691. # Note that $ac_compile itself does not contain backslashes and begins
  6692. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6693. lt_compile=`echo "$ac_compile" | $SED \
  6694. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6695. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6696. -e 's:$: $lt_compiler_flag:'`
  6697. (eval echo "\"\$as_me:7498: $lt_compile\"" >&5)
  6698. (eval "$lt_compile" 2>out/conftest.err)
  6699. ac_status=$?
  6700. cat out/conftest.err >&5
  6701. echo "$as_me:7502: \$? = $ac_status" >&5
  6702. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6703. then
  6704. # The compiler can only warn and ignore the option if not recognized
  6705. # So say no if there are warnings
  6706. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6707. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6708. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6709. lt_cv_prog_compiler_c_o=yes
  6710. fi
  6711. fi
  6712. chmod u+w . 2>&5
  6713. $rm conftest*
  6714. # SGI C++ compiler will create directory out/ii_files/ for
  6715. # template instantiation
  6716. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6717. $rm out/* && rmdir out
  6718. cd ..
  6719. rmdir conftest
  6720. $rm conftest*
  6721. fi
  6722. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6723. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6724. hard_links="nottested"
  6725. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6726. # do not overwrite the value of need_locks provided by the user
  6727. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6728. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6729. hard_links=yes
  6730. $rm conftest*
  6731. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6732. touch conftest.a
  6733. ln conftest.a conftest.b 2>&5 || hard_links=no
  6734. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6735. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6736. echo "${ECHO_T}$hard_links" >&6; }
  6737. if test "$hard_links" = no; then
  6738. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6739. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6740. need_locks=warn
  6741. fi
  6742. else
  6743. need_locks=no
  6744. fi
  6745. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6746. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6747. runpath_var=
  6748. allow_undefined_flag=
  6749. enable_shared_with_static_runtimes=no
  6750. archive_cmds=
  6751. archive_expsym_cmds=
  6752. old_archive_From_new_cmds=
  6753. old_archive_from_expsyms_cmds=
  6754. export_dynamic_flag_spec=
  6755. whole_archive_flag_spec=
  6756. thread_safe_flag_spec=
  6757. hardcode_libdir_flag_spec=
  6758. hardcode_libdir_flag_spec_ld=
  6759. hardcode_libdir_separator=
  6760. hardcode_direct=no
  6761. hardcode_minus_L=no
  6762. hardcode_shlibpath_var=unsupported
  6763. link_all_deplibs=unknown
  6764. hardcode_automatic=no
  6765. module_cmds=
  6766. module_expsym_cmds=
  6767. always_export_symbols=no
  6768. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6769. # include_expsyms should be a list of space-separated symbols to be *always*
  6770. # included in the symbol list
  6771. include_expsyms=
  6772. # exclude_expsyms can be an extended regexp of symbols to exclude
  6773. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6774. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6775. # as well as any symbol that contains `d'.
  6776. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6777. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6778. # platforms (ab)use it in PIC code, but their linkers get confused if
  6779. # the symbol is explicitly referenced. Since portable code cannot
  6780. # rely on this symbol name, it's probably fine to never include it in
  6781. # preloaded symbol tables.
  6782. extract_expsyms_cmds=
  6783. # Just being paranoid about ensuring that cc_basename is set.
  6784. for cc_temp in $compiler""; do
  6785. case $cc_temp in
  6786. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6787. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6788. \-*) ;;
  6789. *) break;;
  6790. esac
  6791. done
  6792. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6793. case $host_os in
  6794. cygwin* | mingw* | pw32*)
  6795. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6796. # When not using gcc, we currently assume that we are using
  6797. # Microsoft Visual C++.
  6798. if test "$GCC" != yes; then
  6799. with_gnu_ld=no
  6800. fi
  6801. ;;
  6802. interix*)
  6803. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6804. with_gnu_ld=yes
  6805. ;;
  6806. openbsd*)
  6807. with_gnu_ld=no
  6808. ;;
  6809. esac
  6810. ld_shlibs=yes
  6811. if test "$with_gnu_ld" = yes; then
  6812. # If archive_cmds runs LD, not CC, wlarc should be empty
  6813. wlarc='${wl}'
  6814. # Set some defaults for GNU ld with shared library support. These
  6815. # are reset later if shared libraries are not supported. Putting them
  6816. # here allows them to be overridden if necessary.
  6817. runpath_var=LD_RUN_PATH
  6818. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6819. export_dynamic_flag_spec='${wl}--export-dynamic'
  6820. # ancient GNU ld didn't support --whole-archive et. al.
  6821. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6822. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6823. else
  6824. whole_archive_flag_spec=
  6825. fi
  6826. supports_anon_versioning=no
  6827. case `$LD -v 2>/dev/null` in
  6828. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6829. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6830. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6831. *\ 2.11.*) ;; # other 2.11 versions
  6832. *) supports_anon_versioning=yes ;;
  6833. esac
  6834. # See if GNU ld supports shared libraries.
  6835. case $host_os in
  6836. aix3* | aix4* | aix5*)
  6837. # On AIX/PPC, the GNU linker is very broken
  6838. if test "$host_cpu" != ia64; then
  6839. ld_shlibs=no
  6840. cat <<EOF 1>&2
  6841. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6842. *** to be unable to reliably create shared libraries on AIX.
  6843. *** Therefore, libtool is disabling shared libraries support. If you
  6844. *** really care for shared libraries, you may want to modify your PATH
  6845. *** so that a non-GNU linker is found, and then restart.
  6846. EOF
  6847. fi
  6848. ;;
  6849. amigaos*)
  6850. 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)'
  6851. hardcode_libdir_flag_spec='-L$libdir'
  6852. hardcode_minus_L=yes
  6853. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6854. # that the semantics of dynamic libraries on AmigaOS, at least up
  6855. # to version 4, is to share data among multiple programs linked
  6856. # with the same dynamic library. Since this doesn't match the
  6857. # behavior of shared libraries on other platforms, we can't use
  6858. # them.
  6859. ld_shlibs=no
  6860. ;;
  6861. beos*)
  6862. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6863. allow_undefined_flag=unsupported
  6864. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6865. # support --undefined. This deserves some investigation. FIXME
  6866. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6867. else
  6868. ld_shlibs=no
  6869. fi
  6870. ;;
  6871. cygwin* | mingw* | pw32*)
  6872. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6873. # as there is no search path for DLLs.
  6874. hardcode_libdir_flag_spec='-L$libdir'
  6875. allow_undefined_flag=unsupported
  6876. always_export_symbols=no
  6877. enable_shared_with_static_runtimes=yes
  6878. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6879. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6880. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6881. # If the export-symbols file already is a .def file (1st line
  6882. # is EXPORTS), use it as is; otherwise, prepend...
  6883. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6884. cp $export_symbols $output_objdir/$soname.def;
  6885. else
  6886. echo EXPORTS > $output_objdir/$soname.def;
  6887. cat $export_symbols >> $output_objdir/$soname.def;
  6888. fi~
  6889. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6890. else
  6891. ld_shlibs=no
  6892. fi
  6893. ;;
  6894. interix[3-9]*)
  6895. hardcode_direct=no
  6896. hardcode_shlibpath_var=no
  6897. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6898. export_dynamic_flag_spec='${wl}-E'
  6899. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6900. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6901. # default) and relocated if they conflict, which is a slow very memory
  6902. # consuming and fragmenting process. To avoid this, we pick a random,
  6903. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6904. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6905. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6906. 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'
  6907. ;;
  6908. gnu* | linux* | k*bsd*-gnu)
  6909. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6910. tmp_addflag=
  6911. case $cc_basename,$host_cpu in
  6912. pgcc*) # Portland Group C compiler
  6913. 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'
  6914. tmp_addflag=' $pic_flag'
  6915. ;;
  6916. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6917. 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'
  6918. tmp_addflag=' $pic_flag -Mnomain' ;;
  6919. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6920. tmp_addflag=' -i_dynamic' ;;
  6921. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6922. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6923. ifc* | ifort*) # Intel Fortran compiler
  6924. tmp_addflag=' -nofor_main' ;;
  6925. esac
  6926. case `$CC -V 2>&1 | sed 5q` in
  6927. *Sun\ C*) # Sun C 5.9
  6928. 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'
  6929. tmp_sharedflag='-G' ;;
  6930. *Sun\ F*) # Sun Fortran 8.3
  6931. tmp_sharedflag='-G' ;;
  6932. *)
  6933. tmp_sharedflag='-shared' ;;
  6934. esac
  6935. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6936. if test $supports_anon_versioning = yes; then
  6937. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6938. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6939. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6940. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6941. fi
  6942. else
  6943. ld_shlibs=no
  6944. fi
  6945. ;;
  6946. netbsd*)
  6947. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6948. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6949. wlarc=
  6950. else
  6951. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6952. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6953. fi
  6954. ;;
  6955. solaris*)
  6956. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6957. ld_shlibs=no
  6958. cat <<EOF 1>&2
  6959. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6960. *** create shared libraries on Solaris systems. Therefore, libtool
  6961. *** is disabling shared libraries support. We urge you to upgrade GNU
  6962. *** binutils to release 2.9.1 or newer. Another option is to modify
  6963. *** your PATH or compiler configuration so that the native linker is
  6964. *** used, and then restart.
  6965. EOF
  6966. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6967. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6968. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6969. else
  6970. ld_shlibs=no
  6971. fi
  6972. ;;
  6973. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6974. case `$LD -v 2>&1` in
  6975. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6976. ld_shlibs=no
  6977. cat <<_LT_EOF 1>&2
  6978. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6979. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6980. *** is disabling shared libraries support. We urge you to upgrade GNU
  6981. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6982. *** your PATH or compiler configuration so that the native linker is
  6983. *** used, and then restart.
  6984. _LT_EOF
  6985. ;;
  6986. *)
  6987. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6988. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6989. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6990. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6991. else
  6992. ld_shlibs=no
  6993. fi
  6994. ;;
  6995. esac
  6996. ;;
  6997. sunos4*)
  6998. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6999. wlarc=
  7000. hardcode_direct=yes
  7001. hardcode_shlibpath_var=no
  7002. ;;
  7003. *)
  7004. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7005. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7006. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7007. else
  7008. ld_shlibs=no
  7009. fi
  7010. ;;
  7011. esac
  7012. if test "$ld_shlibs" = no; then
  7013. runpath_var=
  7014. hardcode_libdir_flag_spec=
  7015. export_dynamic_flag_spec=
  7016. whole_archive_flag_spec=
  7017. fi
  7018. else
  7019. # PORTME fill in a description of your system's linker (not GNU ld)
  7020. case $host_os in
  7021. aix3*)
  7022. allow_undefined_flag=unsupported
  7023. always_export_symbols=yes
  7024. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  7025. # Note: this linker hardcodes the directories in LIBPATH if there
  7026. # are no directories specified by -L.
  7027. hardcode_minus_L=yes
  7028. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7029. # Neither direct hardcoding nor static linking is supported with a
  7030. # broken collect2.
  7031. hardcode_direct=unsupported
  7032. fi
  7033. ;;
  7034. aix4* | aix5*)
  7035. if test "$host_cpu" = ia64; then
  7036. # On IA64, the linker does run time linking by default, so we don't
  7037. # have to do anything special.
  7038. aix_use_runtimelinking=no
  7039. exp_sym_flag='-Bexport'
  7040. no_entry_flag=""
  7041. else
  7042. # If we're using GNU nm, then we don't want the "-C" option.
  7043. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7044. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7045. 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'
  7046. else
  7047. 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'
  7048. fi
  7049. aix_use_runtimelinking=no
  7050. # Test if we are trying to use run time linking or normal
  7051. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7052. # need to do runtime linking.
  7053. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7054. for ld_flag in $LDFLAGS; do
  7055. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7056. aix_use_runtimelinking=yes
  7057. break
  7058. fi
  7059. done
  7060. ;;
  7061. esac
  7062. exp_sym_flag='-bexport'
  7063. no_entry_flag='-bnoentry'
  7064. fi
  7065. # When large executables or shared objects are built, AIX ld can
  7066. # have problems creating the table of contents. If linking a library
  7067. # or program results in "error TOC overflow" add -mminimal-toc to
  7068. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7069. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7070. archive_cmds=''
  7071. hardcode_direct=yes
  7072. hardcode_libdir_separator=':'
  7073. link_all_deplibs=yes
  7074. if test "$GCC" = yes; then
  7075. case $host_os in aix4.[012]|aix4.[012].*)
  7076. # We only want to do this on AIX 4.2 and lower, the check
  7077. # below for broken collect2 doesn't work under 4.3+
  7078. collect2name=`${CC} -print-prog-name=collect2`
  7079. if test -f "$collect2name" && \
  7080. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7081. then
  7082. # We have reworked collect2
  7083. :
  7084. else
  7085. # We have old collect2
  7086. hardcode_direct=unsupported
  7087. # It fails to find uninstalled libraries when the uninstalled
  7088. # path is not listed in the libpath. Setting hardcode_minus_L
  7089. # to unsupported forces relinking
  7090. hardcode_minus_L=yes
  7091. hardcode_libdir_flag_spec='-L$libdir'
  7092. hardcode_libdir_separator=
  7093. fi
  7094. ;;
  7095. esac
  7096. shared_flag='-shared'
  7097. if test "$aix_use_runtimelinking" = yes; then
  7098. shared_flag="$shared_flag "'${wl}-G'
  7099. fi
  7100. else
  7101. # not using gcc
  7102. if test "$host_cpu" = ia64; then
  7103. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7104. # chokes on -Wl,-G. The following line is correct:
  7105. shared_flag='-G'
  7106. else
  7107. if test "$aix_use_runtimelinking" = yes; then
  7108. shared_flag='${wl}-G'
  7109. else
  7110. shared_flag='${wl}-bM:SRE'
  7111. fi
  7112. fi
  7113. fi
  7114. # It seems that -bexpall does not export symbols beginning with
  7115. # underscore (_), so it is better to generate a list of symbols to export.
  7116. always_export_symbols=yes
  7117. if test "$aix_use_runtimelinking" = yes; then
  7118. # Warning - without using the other runtime loading flags (-brtl),
  7119. # -berok will link without error, but may produce a broken library.
  7120. allow_undefined_flag='-berok'
  7121. # Determine the default libpath from the value encoded in an empty executable.
  7122. cat >conftest.$ac_ext <<_ACEOF
  7123. /* confdefs.h. */
  7124. _ACEOF
  7125. cat confdefs.h >>conftest.$ac_ext
  7126. cat >>conftest.$ac_ext <<_ACEOF
  7127. /* end confdefs.h. */
  7128. int
  7129. main ()
  7130. {
  7131. ;
  7132. return 0;
  7133. }
  7134. _ACEOF
  7135. rm -f conftest.$ac_objext conftest$ac_exeext
  7136. if { (ac_try="$ac_link"
  7137. case "(($ac_try" in
  7138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7139. *) ac_try_echo=$ac_try;;
  7140. esac
  7141. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7142. (eval "$ac_link") 2>conftest.er1
  7143. ac_status=$?
  7144. grep -v '^ *+' conftest.er1 >conftest.err
  7145. rm -f conftest.er1
  7146. cat conftest.err >&5
  7147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7148. (exit $ac_status); } && {
  7149. test -z "$ac_c_werror_flag" ||
  7150. test ! -s conftest.err
  7151. } && test -s conftest$ac_exeext &&
  7152. $as_test_x conftest$ac_exeext; then
  7153. lt_aix_libpath_sed='
  7154. /Import File Strings/,/^$/ {
  7155. /^0/ {
  7156. s/^0 *\(.*\)$/\1/
  7157. p
  7158. }
  7159. }'
  7160. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7161. # Check for a 64-bit object if we didn't find anything.
  7162. if test -z "$aix_libpath"; then
  7163. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7164. fi
  7165. else
  7166. echo "$as_me: failed program was:" >&5
  7167. sed 's/^/| /' conftest.$ac_ext >&5
  7168. fi
  7169. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7170. conftest$ac_exeext conftest.$ac_ext
  7171. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7172. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7173. 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"
  7174. else
  7175. if test "$host_cpu" = ia64; then
  7176. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7177. allow_undefined_flag="-z nodefs"
  7178. 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"
  7179. else
  7180. # Determine the default libpath from the value encoded in an empty executable.
  7181. cat >conftest.$ac_ext <<_ACEOF
  7182. /* confdefs.h. */
  7183. _ACEOF
  7184. cat confdefs.h >>conftest.$ac_ext
  7185. cat >>conftest.$ac_ext <<_ACEOF
  7186. /* end confdefs.h. */
  7187. int
  7188. main ()
  7189. {
  7190. ;
  7191. return 0;
  7192. }
  7193. _ACEOF
  7194. rm -f conftest.$ac_objext conftest$ac_exeext
  7195. if { (ac_try="$ac_link"
  7196. case "(($ac_try" in
  7197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7198. *) ac_try_echo=$ac_try;;
  7199. esac
  7200. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7201. (eval "$ac_link") 2>conftest.er1
  7202. ac_status=$?
  7203. grep -v '^ *+' conftest.er1 >conftest.err
  7204. rm -f conftest.er1
  7205. cat conftest.err >&5
  7206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7207. (exit $ac_status); } && {
  7208. test -z "$ac_c_werror_flag" ||
  7209. test ! -s conftest.err
  7210. } && test -s conftest$ac_exeext &&
  7211. $as_test_x conftest$ac_exeext; then
  7212. lt_aix_libpath_sed='
  7213. /Import File Strings/,/^$/ {
  7214. /^0/ {
  7215. s/^0 *\(.*\)$/\1/
  7216. p
  7217. }
  7218. }'
  7219. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7220. # Check for a 64-bit object if we didn't find anything.
  7221. if test -z "$aix_libpath"; then
  7222. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7223. fi
  7224. else
  7225. echo "$as_me: failed program was:" >&5
  7226. sed 's/^/| /' conftest.$ac_ext >&5
  7227. fi
  7228. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7229. conftest$ac_exeext conftest.$ac_ext
  7230. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7231. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7232. # Warning - without using the other run time loading flags,
  7233. # -berok will link without error, but may produce a broken library.
  7234. no_undefined_flag=' ${wl}-bernotok'
  7235. allow_undefined_flag=' ${wl}-berok'
  7236. # Exported symbols can be pulled into shared objects from archives
  7237. whole_archive_flag_spec='$convenience'
  7238. archive_cmds_need_lc=yes
  7239. # This is similar to how AIX traditionally builds its shared libraries.
  7240. archive_expsym_cmds="\$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'
  7241. fi
  7242. fi
  7243. ;;
  7244. amigaos*)
  7245. 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)'
  7246. hardcode_libdir_flag_spec='-L$libdir'
  7247. hardcode_minus_L=yes
  7248. # see comment about different semantics on the GNU ld section
  7249. ld_shlibs=no
  7250. ;;
  7251. bsdi[45]*)
  7252. export_dynamic_flag_spec=-rdynamic
  7253. ;;
  7254. cygwin* | mingw* | pw32*)
  7255. # When not using gcc, we currently assume that we are using
  7256. # Microsoft Visual C++.
  7257. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7258. # no search path for DLLs.
  7259. hardcode_libdir_flag_spec=' '
  7260. allow_undefined_flag=unsupported
  7261. # Tell ltmain to make .lib files, not .a files.
  7262. libext=lib
  7263. # Tell ltmain to make .dll files, not .so files.
  7264. shrext_cmds=".dll"
  7265. # FIXME: Setting linknames here is a bad hack.
  7266. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7267. # The linker will automatically build a .lib file if we build a DLL.
  7268. old_archive_From_new_cmds='true'
  7269. # FIXME: Should let the user specify the lib program.
  7270. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7271. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7272. enable_shared_with_static_runtimes=yes
  7273. ;;
  7274. darwin* | rhapsody*)
  7275. case $host_os in
  7276. rhapsody* | darwin1.[012])
  7277. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7278. ;;
  7279. *) # Darwin 1.3 on
  7280. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7281. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7282. else
  7283. case ${MACOSX_DEPLOYMENT_TARGET} in
  7284. 10.[012])
  7285. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7286. ;;
  7287. 10.*)
  7288. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7289. ;;
  7290. esac
  7291. fi
  7292. ;;
  7293. esac
  7294. archive_cmds_need_lc=no
  7295. hardcode_direct=no
  7296. hardcode_automatic=yes
  7297. hardcode_shlibpath_var=unsupported
  7298. whole_archive_flag_spec=''
  7299. link_all_deplibs=yes
  7300. if test "$GCC" = yes ; then
  7301. output_verbose_link_cmd='echo'
  7302. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7303. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7304. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7305. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7306. 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}'
  7307. else
  7308. case $cc_basename in
  7309. xlc*)
  7310. output_verbose_link_cmd='echo'
  7311. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  7312. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7313. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7314. 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}'
  7315. 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}'
  7316. ;;
  7317. *)
  7318. ld_shlibs=no
  7319. ;;
  7320. esac
  7321. fi
  7322. ;;
  7323. dgux*)
  7324. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7325. hardcode_libdir_flag_spec='-L$libdir'
  7326. hardcode_shlibpath_var=no
  7327. ;;
  7328. freebsd1*)
  7329. ld_shlibs=no
  7330. ;;
  7331. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7332. # support. Future versions do this automatically, but an explicit c++rt0.o
  7333. # does not break anything, and helps significantly (at the cost of a little
  7334. # extra space).
  7335. freebsd2.2*)
  7336. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7337. hardcode_libdir_flag_spec='-R$libdir'
  7338. hardcode_direct=yes
  7339. hardcode_shlibpath_var=no
  7340. ;;
  7341. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7342. freebsd2*)
  7343. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7344. hardcode_direct=yes
  7345. hardcode_minus_L=yes
  7346. hardcode_shlibpath_var=no
  7347. ;;
  7348. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7349. freebsd* | dragonfly*)
  7350. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7351. hardcode_libdir_flag_spec='-R$libdir'
  7352. hardcode_direct=yes
  7353. hardcode_shlibpath_var=no
  7354. ;;
  7355. hpux9*)
  7356. if test "$GCC" = yes; then
  7357. 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'
  7358. else
  7359. 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'
  7360. fi
  7361. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7362. hardcode_libdir_separator=:
  7363. hardcode_direct=yes
  7364. # hardcode_minus_L: Not really in the search PATH,
  7365. # but as the default location of the library.
  7366. hardcode_minus_L=yes
  7367. export_dynamic_flag_spec='${wl}-E'
  7368. ;;
  7369. hpux10*)
  7370. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7371. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7372. else
  7373. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7374. fi
  7375. if test "$with_gnu_ld" = no; then
  7376. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7377. hardcode_libdir_separator=:
  7378. hardcode_direct=yes
  7379. export_dynamic_flag_spec='${wl}-E'
  7380. # hardcode_minus_L: Not really in the search PATH,
  7381. # but as the default location of the library.
  7382. hardcode_minus_L=yes
  7383. fi
  7384. ;;
  7385. hpux11*)
  7386. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7387. case $host_cpu in
  7388. hppa*64*)
  7389. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7390. ;;
  7391. ia64*)
  7392. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7393. ;;
  7394. *)
  7395. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7396. ;;
  7397. esac
  7398. else
  7399. case $host_cpu in
  7400. hppa*64*)
  7401. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7402. ;;
  7403. ia64*)
  7404. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7405. ;;
  7406. *)
  7407. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7408. ;;
  7409. esac
  7410. fi
  7411. if test "$with_gnu_ld" = no; then
  7412. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7413. hardcode_libdir_separator=:
  7414. case $host_cpu in
  7415. hppa*64*|ia64*)
  7416. hardcode_libdir_flag_spec_ld='+b $libdir'
  7417. hardcode_direct=no
  7418. hardcode_shlibpath_var=no
  7419. ;;
  7420. *)
  7421. hardcode_direct=yes
  7422. export_dynamic_flag_spec='${wl}-E'
  7423. # hardcode_minus_L: Not really in the search PATH,
  7424. # but as the default location of the library.
  7425. hardcode_minus_L=yes
  7426. ;;
  7427. esac
  7428. fi
  7429. ;;
  7430. irix5* | irix6* | nonstopux*)
  7431. if test "$GCC" = yes; then
  7432. 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'
  7433. else
  7434. 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'
  7435. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7436. fi
  7437. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7438. hardcode_libdir_separator=:
  7439. link_all_deplibs=yes
  7440. ;;
  7441. netbsd*)
  7442. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7443. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7444. else
  7445. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7446. fi
  7447. hardcode_libdir_flag_spec='-R$libdir'
  7448. hardcode_direct=yes
  7449. hardcode_shlibpath_var=no
  7450. ;;
  7451. newsos6)
  7452. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7453. hardcode_direct=yes
  7454. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7455. hardcode_libdir_separator=:
  7456. hardcode_shlibpath_var=no
  7457. ;;
  7458. openbsd*)
  7459. if test -f /usr/libexec/ld.so; then
  7460. hardcode_direct=yes
  7461. hardcode_shlibpath_var=no
  7462. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7463. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7464. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7465. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7466. export_dynamic_flag_spec='${wl}-E'
  7467. else
  7468. case $host_os in
  7469. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7470. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7471. hardcode_libdir_flag_spec='-R$libdir'
  7472. ;;
  7473. *)
  7474. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7475. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7476. ;;
  7477. esac
  7478. fi
  7479. else
  7480. ld_shlibs=no
  7481. fi
  7482. ;;
  7483. os2*)
  7484. hardcode_libdir_flag_spec='-L$libdir'
  7485. hardcode_minus_L=yes
  7486. allow_undefined_flag=unsupported
  7487. 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'
  7488. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7489. ;;
  7490. osf3*)
  7491. if test "$GCC" = yes; then
  7492. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7493. 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'
  7494. else
  7495. allow_undefined_flag=' -expect_unresolved \*'
  7496. 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'
  7497. fi
  7498. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7499. hardcode_libdir_separator=:
  7500. ;;
  7501. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7502. if test "$GCC" = yes; then
  7503. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7504. 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'
  7505. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7506. else
  7507. allow_undefined_flag=' -expect_unresolved \*'
  7508. 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'
  7509. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7510. $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'
  7511. # Both c and cxx compiler support -rpath directly
  7512. hardcode_libdir_flag_spec='-rpath $libdir'
  7513. fi
  7514. hardcode_libdir_separator=:
  7515. ;;
  7516. solaris*)
  7517. no_undefined_flag=' -z text'
  7518. if test "$GCC" = yes; then
  7519. wlarc='${wl}'
  7520. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7521. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7522. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7523. else
  7524. wlarc=''
  7525. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7526. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7527. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7528. fi
  7529. hardcode_libdir_flag_spec='-R$libdir'
  7530. hardcode_shlibpath_var=no
  7531. case $host_os in
  7532. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7533. *)
  7534. # The compiler driver will combine and reorder linker options,
  7535. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7536. # but is careful enough not to reorder.
  7537. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7538. if test "$GCC" = yes; then
  7539. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7540. else
  7541. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7542. fi
  7543. ;;
  7544. esac
  7545. link_all_deplibs=yes
  7546. ;;
  7547. sunos4*)
  7548. if test "x$host_vendor" = xsequent; then
  7549. # Use $CC to link under sequent, because it throws in some extra .o
  7550. # files that make .init and .fini sections work.
  7551. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7552. else
  7553. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7554. fi
  7555. hardcode_libdir_flag_spec='-L$libdir'
  7556. hardcode_direct=yes
  7557. hardcode_minus_L=yes
  7558. hardcode_shlibpath_var=no
  7559. ;;
  7560. sysv4)
  7561. case $host_vendor in
  7562. sni)
  7563. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7564. hardcode_direct=yes # is this really true???
  7565. ;;
  7566. siemens)
  7567. ## LD is ld it makes a PLAMLIB
  7568. ## CC just makes a GrossModule.
  7569. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7570. reload_cmds='$CC -r -o $output$reload_objs'
  7571. hardcode_direct=no
  7572. ;;
  7573. motorola)
  7574. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7575. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7576. ;;
  7577. esac
  7578. runpath_var='LD_RUN_PATH'
  7579. hardcode_shlibpath_var=no
  7580. ;;
  7581. sysv4.3*)
  7582. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7583. hardcode_shlibpath_var=no
  7584. export_dynamic_flag_spec='-Bexport'
  7585. ;;
  7586. sysv4*MP*)
  7587. if test -d /usr/nec; then
  7588. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7589. hardcode_shlibpath_var=no
  7590. runpath_var=LD_RUN_PATH
  7591. hardcode_runpath_var=yes
  7592. ld_shlibs=yes
  7593. fi
  7594. ;;
  7595. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7596. no_undefined_flag='${wl}-z,text'
  7597. archive_cmds_need_lc=no
  7598. hardcode_shlibpath_var=no
  7599. runpath_var='LD_RUN_PATH'
  7600. if test "$GCC" = yes; then
  7601. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7602. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7603. else
  7604. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7605. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7606. fi
  7607. ;;
  7608. sysv5* | sco3.2v5* | sco5v6*)
  7609. # Note: We can NOT use -z defs as we might desire, because we do not
  7610. # link with -lc, and that would cause any symbols used from libc to
  7611. # always be unresolved, which means just about no library would
  7612. # ever link correctly. If we're not using GNU ld we use -z text
  7613. # though, which does catch some bad symbols but isn't as heavy-handed
  7614. # as -z defs.
  7615. no_undefined_flag='${wl}-z,text'
  7616. allow_undefined_flag='${wl}-z,nodefs'
  7617. archive_cmds_need_lc=no
  7618. hardcode_shlibpath_var=no
  7619. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7620. hardcode_libdir_separator=':'
  7621. link_all_deplibs=yes
  7622. export_dynamic_flag_spec='${wl}-Bexport'
  7623. runpath_var='LD_RUN_PATH'
  7624. if test "$GCC" = yes; then
  7625. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7626. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7627. else
  7628. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7629. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7630. fi
  7631. ;;
  7632. uts4*)
  7633. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7634. hardcode_libdir_flag_spec='-L$libdir'
  7635. hardcode_shlibpath_var=no
  7636. ;;
  7637. *)
  7638. ld_shlibs=no
  7639. ;;
  7640. esac
  7641. fi
  7642. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7643. echo "${ECHO_T}$ld_shlibs" >&6; }
  7644. test "$ld_shlibs" = no && can_build_shared=no
  7645. #
  7646. # Do we need to explicitly link libc?
  7647. #
  7648. case "x$archive_cmds_need_lc" in
  7649. x|xyes)
  7650. # Assume -lc should be added
  7651. archive_cmds_need_lc=yes
  7652. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7653. case $archive_cmds in
  7654. *'~'*)
  7655. # FIXME: we may have to deal with multi-command sequences.
  7656. ;;
  7657. '$CC '*)
  7658. # Test whether the compiler implicitly links with -lc since on some
  7659. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7660. # to ld, don't add -lc before -lgcc.
  7661. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7662. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7663. $rm conftest*
  7664. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7665. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7666. (eval $ac_compile) 2>&5
  7667. ac_status=$?
  7668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7669. (exit $ac_status); } 2>conftest.err; then
  7670. soname=conftest
  7671. lib=conftest
  7672. libobjs=conftest.$ac_objext
  7673. deplibs=
  7674. wl=$lt_prog_compiler_wl
  7675. pic_flag=$lt_prog_compiler_pic
  7676. compiler_flags=-v
  7677. linker_flags=-v
  7678. verstring=
  7679. output_objdir=.
  7680. libname=conftest
  7681. lt_save_allow_undefined_flag=$allow_undefined_flag
  7682. allow_undefined_flag=
  7683. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7684. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7685. ac_status=$?
  7686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7687. (exit $ac_status); }
  7688. then
  7689. archive_cmds_need_lc=no
  7690. else
  7691. archive_cmds_need_lc=yes
  7692. fi
  7693. allow_undefined_flag=$lt_save_allow_undefined_flag
  7694. else
  7695. cat conftest.err 1>&5
  7696. fi
  7697. $rm conftest*
  7698. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7699. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7700. ;;
  7701. esac
  7702. fi
  7703. ;;
  7704. esac
  7705. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7706. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7707. library_names_spec=
  7708. libname_spec='lib$name'
  7709. soname_spec=
  7710. shrext_cmds=".so"
  7711. postinstall_cmds=
  7712. postuninstall_cmds=
  7713. finish_cmds=
  7714. finish_eval=
  7715. shlibpath_var=
  7716. shlibpath_overrides_runpath=unknown
  7717. version_type=none
  7718. dynamic_linker="$host_os ld.so"
  7719. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7720. if test "$GCC" = yes; then
  7721. case $host_os in
  7722. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7723. *) lt_awk_arg="/^libraries:/" ;;
  7724. esac
  7725. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7726. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  7727. # if the path contains ";" then we assume it to be the separator
  7728. # otherwise default to the standard path separator (i.e. ":") - it is
  7729. # assumed that no part of a normal pathname contains ";" but that should
  7730. # okay in the real world where ";" in dirpaths is itself problematic.
  7731. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7732. else
  7733. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7734. fi
  7735. # Ok, now we have the path, separated by spaces, we can step through it
  7736. # and add multilib dir if necessary.
  7737. lt_tmp_lt_search_path_spec=
  7738. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7739. for lt_sys_path in $lt_search_path_spec; do
  7740. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7741. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7742. else
  7743. test -d "$lt_sys_path" && \
  7744. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7745. fi
  7746. done
  7747. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  7748. BEGIN {RS=" "; FS="/|\n";} {
  7749. lt_foo="";
  7750. lt_count=0;
  7751. for (lt_i = NF; lt_i > 0; lt_i--) {
  7752. if ($lt_i != "" && $lt_i != ".") {
  7753. if ($lt_i == "..") {
  7754. lt_count++;
  7755. } else {
  7756. if (lt_count == 0) {
  7757. lt_foo="/" $lt_i lt_foo;
  7758. } else {
  7759. lt_count--;
  7760. }
  7761. }
  7762. }
  7763. }
  7764. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7765. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7766. }'`
  7767. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  7768. else
  7769. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7770. fi
  7771. need_lib_prefix=unknown
  7772. hardcode_into_libs=no
  7773. # when you set need_version to no, make sure it does not cause -set_version
  7774. # flags to be left without arguments
  7775. need_version=unknown
  7776. case $host_os in
  7777. aix3*)
  7778. version_type=linux
  7779. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7780. shlibpath_var=LIBPATH
  7781. # AIX 3 has no versioning support, so we append a major version to the name.
  7782. soname_spec='${libname}${release}${shared_ext}$major'
  7783. ;;
  7784. aix4* | aix5*)
  7785. version_type=linux
  7786. need_lib_prefix=no
  7787. need_version=no
  7788. hardcode_into_libs=yes
  7789. if test "$host_cpu" = ia64; then
  7790. # AIX 5 supports IA64
  7791. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7792. shlibpath_var=LD_LIBRARY_PATH
  7793. else
  7794. # With GCC up to 2.95.x, collect2 would create an import file
  7795. # for dependence libraries. The import file would start with
  7796. # the line `#! .'. This would cause the generated library to
  7797. # depend on `.', always an invalid library. This was fixed in
  7798. # development snapshots of GCC prior to 3.0.
  7799. case $host_os in
  7800. aix4 | aix4.[01] | aix4.[01].*)
  7801. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7802. echo ' yes '
  7803. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7804. :
  7805. else
  7806. can_build_shared=no
  7807. fi
  7808. ;;
  7809. esac
  7810. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7811. # soname into executable. Probably we can add versioning support to
  7812. # collect2, so additional links can be useful in future.
  7813. if test "$aix_use_runtimelinking" = yes; then
  7814. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7815. # instead of lib<name>.a to let people know that these are not
  7816. # typical AIX shared libraries.
  7817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7818. else
  7819. # We preserve .a as extension for shared libraries through AIX4.2
  7820. # and later when we are not doing run time linking.
  7821. library_names_spec='${libname}${release}.a $libname.a'
  7822. soname_spec='${libname}${release}${shared_ext}$major'
  7823. fi
  7824. shlibpath_var=LIBPATH
  7825. fi
  7826. ;;
  7827. amigaos*)
  7828. library_names_spec='$libname.ixlibrary $libname.a'
  7829. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7830. 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'
  7831. ;;
  7832. beos*)
  7833. library_names_spec='${libname}${shared_ext}'
  7834. dynamic_linker="$host_os ld.so"
  7835. shlibpath_var=LIBRARY_PATH
  7836. ;;
  7837. bsdi[45]*)
  7838. version_type=linux
  7839. need_version=no
  7840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7841. soname_spec='${libname}${release}${shared_ext}$major'
  7842. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7843. shlibpath_var=LD_LIBRARY_PATH
  7844. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7845. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7846. # the default ld.so.conf also contains /usr/contrib/lib and
  7847. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7848. # libtool to hard-code these into programs
  7849. ;;
  7850. cygwin* | mingw* | pw32*)
  7851. version_type=windows
  7852. shrext_cmds=".dll"
  7853. need_version=no
  7854. need_lib_prefix=no
  7855. case $GCC,$host_os in
  7856. yes,cygwin* | yes,mingw* | yes,pw32*)
  7857. library_names_spec='$libname.dll.a'
  7858. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7859. postinstall_cmds='base_file=`basename \${file}`~
  7860. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7861. dldir=$destdir/`dirname \$dlpath`~
  7862. test -d \$dldir || mkdir -p \$dldir~
  7863. $install_prog $dir/$dlname \$dldir/$dlname~
  7864. chmod a+x \$dldir/$dlname'
  7865. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7866. dlpath=$dir/\$dldll~
  7867. $rm \$dlpath'
  7868. shlibpath_overrides_runpath=yes
  7869. case $host_os in
  7870. cygwin*)
  7871. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7872. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7873. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7874. ;;
  7875. mingw*)
  7876. # MinGW DLLs use traditional 'lib' prefix
  7877. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7878. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7879. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7880. # It is most probably a Windows format PATH printed by
  7881. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7882. # path with ; separators, and with drive letters. We can handle the
  7883. # drive letters (cygwin fileutils understands them), so leave them,
  7884. # especially as we might pass files found there to a mingw objdump,
  7885. # which wouldn't understand a cygwinified path. Ahh.
  7886. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7887. else
  7888. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7889. fi
  7890. ;;
  7891. pw32*)
  7892. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7893. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7894. ;;
  7895. esac
  7896. ;;
  7897. *)
  7898. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7899. ;;
  7900. esac
  7901. dynamic_linker='Win32 ld.exe'
  7902. # FIXME: first we should search . and the directory the executable is in
  7903. shlibpath_var=PATH
  7904. ;;
  7905. darwin* | rhapsody*)
  7906. dynamic_linker="$host_os dyld"
  7907. version_type=darwin
  7908. need_lib_prefix=no
  7909. need_version=no
  7910. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7911. soname_spec='${libname}${release}${major}$shared_ext'
  7912. shlibpath_overrides_runpath=yes
  7913. shlibpath_var=DYLD_LIBRARY_PATH
  7914. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7915. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  7916. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7917. ;;
  7918. dgux*)
  7919. version_type=linux
  7920. need_lib_prefix=no
  7921. need_version=no
  7922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7923. soname_spec='${libname}${release}${shared_ext}$major'
  7924. shlibpath_var=LD_LIBRARY_PATH
  7925. ;;
  7926. freebsd1*)
  7927. dynamic_linker=no
  7928. ;;
  7929. freebsd* | dragonfly*)
  7930. # DragonFly does not have aout. When/if they implement a new
  7931. # versioning mechanism, adjust this.
  7932. if test -x /usr/bin/objformat; then
  7933. objformat=`/usr/bin/objformat`
  7934. else
  7935. case $host_os in
  7936. freebsd[123]*) objformat=aout ;;
  7937. *) objformat=elf ;;
  7938. esac
  7939. fi
  7940. version_type=freebsd-$objformat
  7941. case $version_type in
  7942. freebsd-elf*)
  7943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7944. need_version=no
  7945. need_lib_prefix=no
  7946. ;;
  7947. freebsd-*)
  7948. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7949. need_version=yes
  7950. ;;
  7951. esac
  7952. shlibpath_var=LD_LIBRARY_PATH
  7953. case $host_os in
  7954. freebsd2*)
  7955. shlibpath_overrides_runpath=yes
  7956. ;;
  7957. freebsd3.[01]* | freebsdelf3.[01]*)
  7958. shlibpath_overrides_runpath=yes
  7959. hardcode_into_libs=yes
  7960. ;;
  7961. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7962. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7963. shlibpath_overrides_runpath=no
  7964. hardcode_into_libs=yes
  7965. ;;
  7966. *) # from 4.6 on, and DragonFly
  7967. shlibpath_overrides_runpath=yes
  7968. hardcode_into_libs=yes
  7969. ;;
  7970. esac
  7971. ;;
  7972. gnu*)
  7973. version_type=linux
  7974. need_lib_prefix=no
  7975. need_version=no
  7976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7977. soname_spec='${libname}${release}${shared_ext}$major'
  7978. shlibpath_var=LD_LIBRARY_PATH
  7979. hardcode_into_libs=yes
  7980. ;;
  7981. hpux9* | hpux10* | hpux11*)
  7982. # Give a soname corresponding to the major version so that dld.sl refuses to
  7983. # link against other versions.
  7984. version_type=sunos
  7985. need_lib_prefix=no
  7986. need_version=no
  7987. case $host_cpu in
  7988. ia64*)
  7989. shrext_cmds='.so'
  7990. hardcode_into_libs=yes
  7991. dynamic_linker="$host_os dld.so"
  7992. shlibpath_var=LD_LIBRARY_PATH
  7993. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7995. soname_spec='${libname}${release}${shared_ext}$major'
  7996. if test "X$HPUX_IA64_MODE" = X32; then
  7997. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7998. else
  7999. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8000. fi
  8001. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8002. ;;
  8003. hppa*64*)
  8004. shrext_cmds='.sl'
  8005. hardcode_into_libs=yes
  8006. dynamic_linker="$host_os dld.sl"
  8007. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8008. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8010. soname_spec='${libname}${release}${shared_ext}$major'
  8011. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8012. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8013. ;;
  8014. *)
  8015. shrext_cmds='.sl'
  8016. dynamic_linker="$host_os dld.sl"
  8017. shlibpath_var=SHLIB_PATH
  8018. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8020. soname_spec='${libname}${release}${shared_ext}$major'
  8021. ;;
  8022. esac
  8023. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8024. postinstall_cmds='chmod 555 $lib'
  8025. ;;
  8026. interix[3-9]*)
  8027. version_type=linux
  8028. need_lib_prefix=no
  8029. need_version=no
  8030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8031. soname_spec='${libname}${release}${shared_ext}$major'
  8032. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8033. shlibpath_var=LD_LIBRARY_PATH
  8034. shlibpath_overrides_runpath=no
  8035. hardcode_into_libs=yes
  8036. ;;
  8037. irix5* | irix6* | nonstopux*)
  8038. case $host_os in
  8039. nonstopux*) version_type=nonstopux ;;
  8040. *)
  8041. if test "$lt_cv_prog_gnu_ld" = yes; then
  8042. version_type=linux
  8043. else
  8044. version_type=irix
  8045. fi ;;
  8046. esac
  8047. need_lib_prefix=no
  8048. need_version=no
  8049. soname_spec='${libname}${release}${shared_ext}$major'
  8050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8051. case $host_os in
  8052. irix5* | nonstopux*)
  8053. libsuff= shlibsuff=
  8054. ;;
  8055. *)
  8056. case $LD in # libtool.m4 will add one of these switches to LD
  8057. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8058. libsuff= shlibsuff= libmagic=32-bit;;
  8059. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8060. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8061. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8062. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8063. *) libsuff= shlibsuff= libmagic=never-match;;
  8064. esac
  8065. ;;
  8066. esac
  8067. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8068. shlibpath_overrides_runpath=no
  8069. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8070. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8071. hardcode_into_libs=yes
  8072. ;;
  8073. # No shared lib support for Linux oldld, aout, or coff.
  8074. linux*oldld* | linux*aout* | linux*coff*)
  8075. dynamic_linker=no
  8076. ;;
  8077. # This must be Linux ELF.
  8078. linux* | k*bsd*-gnu)
  8079. version_type=linux
  8080. need_lib_prefix=no
  8081. need_version=no
  8082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8083. soname_spec='${libname}${release}${shared_ext}$major'
  8084. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8085. shlibpath_var=LD_LIBRARY_PATH
  8086. shlibpath_overrides_runpath=no
  8087. # This implies no fast_install, which is unacceptable.
  8088. # Some rework will be needed to allow for fast_install
  8089. # before this can be enabled.
  8090. hardcode_into_libs=yes
  8091. # Append ld.so.conf contents to the search path
  8092. if test -f /etc/ld.so.conf; then
  8093. 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' ' '`
  8094. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8095. fi
  8096. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8097. # powerpc, because MkLinux only supported shared libraries with the
  8098. # GNU dynamic linker. Since this was broken with cross compilers,
  8099. # most powerpc-linux boxes support dynamic linking these days and
  8100. # people can always --disable-shared, the test was removed, and we
  8101. # assume the GNU/Linux dynamic linker is in use.
  8102. dynamic_linker='GNU/Linux ld.so'
  8103. ;;
  8104. netbsd*)
  8105. version_type=sunos
  8106. need_lib_prefix=no
  8107. need_version=no
  8108. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8110. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8111. dynamic_linker='NetBSD (a.out) ld.so'
  8112. else
  8113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8114. soname_spec='${libname}${release}${shared_ext}$major'
  8115. dynamic_linker='NetBSD ld.elf_so'
  8116. fi
  8117. shlibpath_var=LD_LIBRARY_PATH
  8118. shlibpath_overrides_runpath=yes
  8119. hardcode_into_libs=yes
  8120. ;;
  8121. newsos6)
  8122. version_type=linux
  8123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8124. shlibpath_var=LD_LIBRARY_PATH
  8125. shlibpath_overrides_runpath=yes
  8126. ;;
  8127. nto-qnx*)
  8128. version_type=linux
  8129. need_lib_prefix=no
  8130. need_version=no
  8131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8132. soname_spec='${libname}${release}${shared_ext}$major'
  8133. shlibpath_var=LD_LIBRARY_PATH
  8134. shlibpath_overrides_runpath=yes
  8135. ;;
  8136. openbsd*)
  8137. version_type=sunos
  8138. sys_lib_dlsearch_path_spec="/usr/lib"
  8139. need_lib_prefix=no
  8140. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8141. case $host_os in
  8142. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8143. *) need_version=no ;;
  8144. esac
  8145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8146. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8147. shlibpath_var=LD_LIBRARY_PATH
  8148. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8149. case $host_os in
  8150. openbsd2.[89] | openbsd2.[89].*)
  8151. shlibpath_overrides_runpath=no
  8152. ;;
  8153. *)
  8154. shlibpath_overrides_runpath=yes
  8155. ;;
  8156. esac
  8157. else
  8158. shlibpath_overrides_runpath=yes
  8159. fi
  8160. ;;
  8161. os2*)
  8162. libname_spec='$name'
  8163. shrext_cmds=".dll"
  8164. need_lib_prefix=no
  8165. library_names_spec='$libname${shared_ext} $libname.a'
  8166. dynamic_linker='OS/2 ld.exe'
  8167. shlibpath_var=LIBPATH
  8168. ;;
  8169. osf3* | osf4* | osf5*)
  8170. version_type=osf
  8171. need_lib_prefix=no
  8172. need_version=no
  8173. soname_spec='${libname}${release}${shared_ext}$major'
  8174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8175. shlibpath_var=LD_LIBRARY_PATH
  8176. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8177. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8178. ;;
  8179. rdos*)
  8180. dynamic_linker=no
  8181. ;;
  8182. solaris*)
  8183. version_type=linux
  8184. need_lib_prefix=no
  8185. need_version=no
  8186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8187. soname_spec='${libname}${release}${shared_ext}$major'
  8188. shlibpath_var=LD_LIBRARY_PATH
  8189. shlibpath_overrides_runpath=yes
  8190. hardcode_into_libs=yes
  8191. # ldd complains unless libraries are executable
  8192. postinstall_cmds='chmod +x $lib'
  8193. ;;
  8194. sunos4*)
  8195. version_type=sunos
  8196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8197. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8198. shlibpath_var=LD_LIBRARY_PATH
  8199. shlibpath_overrides_runpath=yes
  8200. if test "$with_gnu_ld" = yes; then
  8201. need_lib_prefix=no
  8202. fi
  8203. need_version=yes
  8204. ;;
  8205. sysv4 | sysv4.3*)
  8206. version_type=linux
  8207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8208. soname_spec='${libname}${release}${shared_ext}$major'
  8209. shlibpath_var=LD_LIBRARY_PATH
  8210. case $host_vendor in
  8211. sni)
  8212. shlibpath_overrides_runpath=no
  8213. need_lib_prefix=no
  8214. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8215. runpath_var=LD_RUN_PATH
  8216. ;;
  8217. siemens)
  8218. need_lib_prefix=no
  8219. ;;
  8220. motorola)
  8221. need_lib_prefix=no
  8222. need_version=no
  8223. shlibpath_overrides_runpath=no
  8224. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8225. ;;
  8226. esac
  8227. ;;
  8228. sysv4*MP*)
  8229. if test -d /usr/nec ;then
  8230. version_type=linux
  8231. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8232. soname_spec='$libname${shared_ext}.$major'
  8233. shlibpath_var=LD_LIBRARY_PATH
  8234. fi
  8235. ;;
  8236. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8237. version_type=freebsd-elf
  8238. need_lib_prefix=no
  8239. need_version=no
  8240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8241. soname_spec='${libname}${release}${shared_ext}$major'
  8242. shlibpath_var=LD_LIBRARY_PATH
  8243. hardcode_into_libs=yes
  8244. if test "$with_gnu_ld" = yes; then
  8245. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8246. shlibpath_overrides_runpath=no
  8247. else
  8248. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8249. shlibpath_overrides_runpath=yes
  8250. case $host_os in
  8251. sco3.2v5*)
  8252. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8253. ;;
  8254. esac
  8255. fi
  8256. sys_lib_dlsearch_path_spec='/usr/lib'
  8257. ;;
  8258. uts4*)
  8259. version_type=linux
  8260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8261. soname_spec='${libname}${release}${shared_ext}$major'
  8262. shlibpath_var=LD_LIBRARY_PATH
  8263. ;;
  8264. *)
  8265. dynamic_linker=no
  8266. ;;
  8267. esac
  8268. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8269. echo "${ECHO_T}$dynamic_linker" >&6; }
  8270. test "$dynamic_linker" = no && can_build_shared=no
  8271. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8272. if test "$GCC" = yes; then
  8273. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8274. fi
  8275. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8276. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8277. hardcode_action=
  8278. if test -n "$hardcode_libdir_flag_spec" || \
  8279. test -n "$runpath_var" || \
  8280. test "X$hardcode_automatic" = "Xyes" ; then
  8281. # We can hardcode non-existant directories.
  8282. if test "$hardcode_direct" != no &&
  8283. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8284. # have to relink, otherwise we might link with an installed library
  8285. # when we should be linking with a yet-to-be-installed one
  8286. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8287. test "$hardcode_minus_L" != no; then
  8288. # Linking always hardcodes the temporary library directory.
  8289. hardcode_action=relink
  8290. else
  8291. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8292. hardcode_action=immediate
  8293. fi
  8294. else
  8295. # We cannot hardcode anything, or else we can only hardcode existing
  8296. # directories.
  8297. hardcode_action=unsupported
  8298. fi
  8299. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8300. echo "${ECHO_T}$hardcode_action" >&6; }
  8301. if test "$hardcode_action" = relink; then
  8302. # Fast installation is not supported
  8303. enable_fast_install=no
  8304. elif test "$shlibpath_overrides_runpath" = yes ||
  8305. test "$enable_shared" = no; then
  8306. # Fast installation is not necessary
  8307. enable_fast_install=needless
  8308. fi
  8309. striplib=
  8310. old_striplib=
  8311. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8312. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8313. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8314. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8315. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8316. { echo "$as_me:$LINENO: result: yes" >&5
  8317. echo "${ECHO_T}yes" >&6; }
  8318. else
  8319. # FIXME - insert some real tests, host_os isn't really good enough
  8320. case $host_os in
  8321. darwin*)
  8322. if test -n "$STRIP" ; then
  8323. striplib="$STRIP -x"
  8324. old_striplib="$STRIP -S"
  8325. { echo "$as_me:$LINENO: result: yes" >&5
  8326. echo "${ECHO_T}yes" >&6; }
  8327. else
  8328. { echo "$as_me:$LINENO: result: no" >&5
  8329. echo "${ECHO_T}no" >&6; }
  8330. fi
  8331. ;;
  8332. *)
  8333. { echo "$as_me:$LINENO: result: no" >&5
  8334. echo "${ECHO_T}no" >&6; }
  8335. ;;
  8336. esac
  8337. fi
  8338. if test "x$enable_dlopen" != xyes; then
  8339. enable_dlopen=unknown
  8340. enable_dlopen_self=unknown
  8341. enable_dlopen_self_static=unknown
  8342. else
  8343. lt_cv_dlopen=no
  8344. lt_cv_dlopen_libs=
  8345. case $host_os in
  8346. beos*)
  8347. lt_cv_dlopen="load_add_on"
  8348. lt_cv_dlopen_libs=
  8349. lt_cv_dlopen_self=yes
  8350. ;;
  8351. mingw* | pw32*)
  8352. lt_cv_dlopen="LoadLibrary"
  8353. lt_cv_dlopen_libs=
  8354. ;;
  8355. cygwin*)
  8356. lt_cv_dlopen="dlopen"
  8357. lt_cv_dlopen_libs=
  8358. ;;
  8359. darwin*)
  8360. # if libdl is installed we need to link against it
  8361. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8362. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8363. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8364. echo $ECHO_N "(cached) $ECHO_C" >&6
  8365. else
  8366. ac_check_lib_save_LIBS=$LIBS
  8367. LIBS="-ldl $LIBS"
  8368. cat >conftest.$ac_ext <<_ACEOF
  8369. /* confdefs.h. */
  8370. _ACEOF
  8371. cat confdefs.h >>conftest.$ac_ext
  8372. cat >>conftest.$ac_ext <<_ACEOF
  8373. /* end confdefs.h. */
  8374. /* Override any GCC internal prototype to avoid an error.
  8375. Use char because int might match the return type of a GCC
  8376. builtin and then its argument prototype would still apply. */
  8377. #ifdef __cplusplus
  8378. extern "C"
  8379. #endif
  8380. char dlopen ();
  8381. int
  8382. main ()
  8383. {
  8384. return dlopen ();
  8385. ;
  8386. return 0;
  8387. }
  8388. _ACEOF
  8389. rm -f conftest.$ac_objext conftest$ac_exeext
  8390. if { (ac_try="$ac_link"
  8391. case "(($ac_try" in
  8392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8393. *) ac_try_echo=$ac_try;;
  8394. esac
  8395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8396. (eval "$ac_link") 2>conftest.er1
  8397. ac_status=$?
  8398. grep -v '^ *+' conftest.er1 >conftest.err
  8399. rm -f conftest.er1
  8400. cat conftest.err >&5
  8401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8402. (exit $ac_status); } && {
  8403. test -z "$ac_c_werror_flag" ||
  8404. test ! -s conftest.err
  8405. } && test -s conftest$ac_exeext &&
  8406. $as_test_x conftest$ac_exeext; then
  8407. ac_cv_lib_dl_dlopen=yes
  8408. else
  8409. echo "$as_me: failed program was:" >&5
  8410. sed 's/^/| /' conftest.$ac_ext >&5
  8411. ac_cv_lib_dl_dlopen=no
  8412. fi
  8413. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8414. conftest$ac_exeext conftest.$ac_ext
  8415. LIBS=$ac_check_lib_save_LIBS
  8416. fi
  8417. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8418. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8419. if test $ac_cv_lib_dl_dlopen = yes; then
  8420. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8421. else
  8422. lt_cv_dlopen="dyld"
  8423. lt_cv_dlopen_libs=
  8424. lt_cv_dlopen_self=yes
  8425. fi
  8426. ;;
  8427. *)
  8428. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8429. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8430. if test "${ac_cv_func_shl_load+set}" = set; then
  8431. echo $ECHO_N "(cached) $ECHO_C" >&6
  8432. else
  8433. cat >conftest.$ac_ext <<_ACEOF
  8434. /* confdefs.h. */
  8435. _ACEOF
  8436. cat confdefs.h >>conftest.$ac_ext
  8437. cat >>conftest.$ac_ext <<_ACEOF
  8438. /* end confdefs.h. */
  8439. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8440. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8441. #define shl_load innocuous_shl_load
  8442. /* System header to define __stub macros and hopefully few prototypes,
  8443. which can conflict with char shl_load (); below.
  8444. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8445. <limits.h> exists even on freestanding compilers. */
  8446. #ifdef __STDC__
  8447. # include <limits.h>
  8448. #else
  8449. # include <assert.h>
  8450. #endif
  8451. #undef shl_load
  8452. /* Override any GCC internal prototype to avoid an error.
  8453. Use char because int might match the return type of a GCC
  8454. builtin and then its argument prototype would still apply. */
  8455. #ifdef __cplusplus
  8456. extern "C"
  8457. #endif
  8458. char shl_load ();
  8459. /* The GNU C library defines this for functions which it implements
  8460. to always fail with ENOSYS. Some functions are actually named
  8461. something starting with __ and the normal name is an alias. */
  8462. #if defined __stub_shl_load || defined __stub___shl_load
  8463. choke me
  8464. #endif
  8465. int
  8466. main ()
  8467. {
  8468. return shl_load ();
  8469. ;
  8470. return 0;
  8471. }
  8472. _ACEOF
  8473. rm -f conftest.$ac_objext conftest$ac_exeext
  8474. if { (ac_try="$ac_link"
  8475. case "(($ac_try" in
  8476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8477. *) ac_try_echo=$ac_try;;
  8478. esac
  8479. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8480. (eval "$ac_link") 2>conftest.er1
  8481. ac_status=$?
  8482. grep -v '^ *+' conftest.er1 >conftest.err
  8483. rm -f conftest.er1
  8484. cat conftest.err >&5
  8485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8486. (exit $ac_status); } && {
  8487. test -z "$ac_c_werror_flag" ||
  8488. test ! -s conftest.err
  8489. } && test -s conftest$ac_exeext &&
  8490. $as_test_x conftest$ac_exeext; then
  8491. ac_cv_func_shl_load=yes
  8492. else
  8493. echo "$as_me: failed program was:" >&5
  8494. sed 's/^/| /' conftest.$ac_ext >&5
  8495. ac_cv_func_shl_load=no
  8496. fi
  8497. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8498. conftest$ac_exeext conftest.$ac_ext
  8499. fi
  8500. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8501. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8502. if test $ac_cv_func_shl_load = yes; then
  8503. lt_cv_dlopen="shl_load"
  8504. else
  8505. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8506. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8507. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8508. echo $ECHO_N "(cached) $ECHO_C" >&6
  8509. else
  8510. ac_check_lib_save_LIBS=$LIBS
  8511. LIBS="-ldld $LIBS"
  8512. cat >conftest.$ac_ext <<_ACEOF
  8513. /* confdefs.h. */
  8514. _ACEOF
  8515. cat confdefs.h >>conftest.$ac_ext
  8516. cat >>conftest.$ac_ext <<_ACEOF
  8517. /* end confdefs.h. */
  8518. /* Override any GCC internal prototype to avoid an error.
  8519. Use char because int might match the return type of a GCC
  8520. builtin and then its argument prototype would still apply. */
  8521. #ifdef __cplusplus
  8522. extern "C"
  8523. #endif
  8524. char shl_load ();
  8525. int
  8526. main ()
  8527. {
  8528. return shl_load ();
  8529. ;
  8530. return 0;
  8531. }
  8532. _ACEOF
  8533. rm -f conftest.$ac_objext conftest$ac_exeext
  8534. if { (ac_try="$ac_link"
  8535. case "(($ac_try" in
  8536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8537. *) ac_try_echo=$ac_try;;
  8538. esac
  8539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8540. (eval "$ac_link") 2>conftest.er1
  8541. ac_status=$?
  8542. grep -v '^ *+' conftest.er1 >conftest.err
  8543. rm -f conftest.er1
  8544. cat conftest.err >&5
  8545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8546. (exit $ac_status); } && {
  8547. test -z "$ac_c_werror_flag" ||
  8548. test ! -s conftest.err
  8549. } && test -s conftest$ac_exeext &&
  8550. $as_test_x conftest$ac_exeext; then
  8551. ac_cv_lib_dld_shl_load=yes
  8552. else
  8553. echo "$as_me: failed program was:" >&5
  8554. sed 's/^/| /' conftest.$ac_ext >&5
  8555. ac_cv_lib_dld_shl_load=no
  8556. fi
  8557. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8558. conftest$ac_exeext conftest.$ac_ext
  8559. LIBS=$ac_check_lib_save_LIBS
  8560. fi
  8561. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8562. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8563. if test $ac_cv_lib_dld_shl_load = yes; then
  8564. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8565. else
  8566. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8567. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8568. if test "${ac_cv_func_dlopen+set}" = set; then
  8569. echo $ECHO_N "(cached) $ECHO_C" >&6
  8570. else
  8571. cat >conftest.$ac_ext <<_ACEOF
  8572. /* confdefs.h. */
  8573. _ACEOF
  8574. cat confdefs.h >>conftest.$ac_ext
  8575. cat >>conftest.$ac_ext <<_ACEOF
  8576. /* end confdefs.h. */
  8577. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8578. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8579. #define dlopen innocuous_dlopen
  8580. /* System header to define __stub macros and hopefully few prototypes,
  8581. which can conflict with char dlopen (); below.
  8582. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8583. <limits.h> exists even on freestanding compilers. */
  8584. #ifdef __STDC__
  8585. # include <limits.h>
  8586. #else
  8587. # include <assert.h>
  8588. #endif
  8589. #undef dlopen
  8590. /* Override any GCC internal prototype to avoid an error.
  8591. Use char because int might match the return type of a GCC
  8592. builtin and then its argument prototype would still apply. */
  8593. #ifdef __cplusplus
  8594. extern "C"
  8595. #endif
  8596. char dlopen ();
  8597. /* The GNU C library defines this for functions which it implements
  8598. to always fail with ENOSYS. Some functions are actually named
  8599. something starting with __ and the normal name is an alias. */
  8600. #if defined __stub_dlopen || defined __stub___dlopen
  8601. choke me
  8602. #endif
  8603. int
  8604. main ()
  8605. {
  8606. return dlopen ();
  8607. ;
  8608. return 0;
  8609. }
  8610. _ACEOF
  8611. rm -f conftest.$ac_objext conftest$ac_exeext
  8612. if { (ac_try="$ac_link"
  8613. case "(($ac_try" in
  8614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8615. *) ac_try_echo=$ac_try;;
  8616. esac
  8617. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8618. (eval "$ac_link") 2>conftest.er1
  8619. ac_status=$?
  8620. grep -v '^ *+' conftest.er1 >conftest.err
  8621. rm -f conftest.er1
  8622. cat conftest.err >&5
  8623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8624. (exit $ac_status); } && {
  8625. test -z "$ac_c_werror_flag" ||
  8626. test ! -s conftest.err
  8627. } && test -s conftest$ac_exeext &&
  8628. $as_test_x conftest$ac_exeext; then
  8629. ac_cv_func_dlopen=yes
  8630. else
  8631. echo "$as_me: failed program was:" >&5
  8632. sed 's/^/| /' conftest.$ac_ext >&5
  8633. ac_cv_func_dlopen=no
  8634. fi
  8635. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8636. conftest$ac_exeext conftest.$ac_ext
  8637. fi
  8638. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8639. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8640. if test $ac_cv_func_dlopen = yes; then
  8641. lt_cv_dlopen="dlopen"
  8642. else
  8643. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8644. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8645. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8646. echo $ECHO_N "(cached) $ECHO_C" >&6
  8647. else
  8648. ac_check_lib_save_LIBS=$LIBS
  8649. LIBS="-ldl $LIBS"
  8650. cat >conftest.$ac_ext <<_ACEOF
  8651. /* confdefs.h. */
  8652. _ACEOF
  8653. cat confdefs.h >>conftest.$ac_ext
  8654. cat >>conftest.$ac_ext <<_ACEOF
  8655. /* end confdefs.h. */
  8656. /* Override any GCC internal prototype to avoid an error.
  8657. Use char because int might match the return type of a GCC
  8658. builtin and then its argument prototype would still apply. */
  8659. #ifdef __cplusplus
  8660. extern "C"
  8661. #endif
  8662. char dlopen ();
  8663. int
  8664. main ()
  8665. {
  8666. return dlopen ();
  8667. ;
  8668. return 0;
  8669. }
  8670. _ACEOF
  8671. rm -f conftest.$ac_objext conftest$ac_exeext
  8672. if { (ac_try="$ac_link"
  8673. case "(($ac_try" in
  8674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8675. *) ac_try_echo=$ac_try;;
  8676. esac
  8677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8678. (eval "$ac_link") 2>conftest.er1
  8679. ac_status=$?
  8680. grep -v '^ *+' conftest.er1 >conftest.err
  8681. rm -f conftest.er1
  8682. cat conftest.err >&5
  8683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8684. (exit $ac_status); } && {
  8685. test -z "$ac_c_werror_flag" ||
  8686. test ! -s conftest.err
  8687. } && test -s conftest$ac_exeext &&
  8688. $as_test_x conftest$ac_exeext; then
  8689. ac_cv_lib_dl_dlopen=yes
  8690. else
  8691. echo "$as_me: failed program was:" >&5
  8692. sed 's/^/| /' conftest.$ac_ext >&5
  8693. ac_cv_lib_dl_dlopen=no
  8694. fi
  8695. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8696. conftest$ac_exeext conftest.$ac_ext
  8697. LIBS=$ac_check_lib_save_LIBS
  8698. fi
  8699. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8700. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8701. if test $ac_cv_lib_dl_dlopen = yes; then
  8702. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8703. else
  8704. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8705. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8706. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8707. echo $ECHO_N "(cached) $ECHO_C" >&6
  8708. else
  8709. ac_check_lib_save_LIBS=$LIBS
  8710. LIBS="-lsvld $LIBS"
  8711. cat >conftest.$ac_ext <<_ACEOF
  8712. /* confdefs.h. */
  8713. _ACEOF
  8714. cat confdefs.h >>conftest.$ac_ext
  8715. cat >>conftest.$ac_ext <<_ACEOF
  8716. /* end confdefs.h. */
  8717. /* Override any GCC internal prototype to avoid an error.
  8718. Use char because int might match the return type of a GCC
  8719. builtin and then its argument prototype would still apply. */
  8720. #ifdef __cplusplus
  8721. extern "C"
  8722. #endif
  8723. char dlopen ();
  8724. int
  8725. main ()
  8726. {
  8727. return dlopen ();
  8728. ;
  8729. return 0;
  8730. }
  8731. _ACEOF
  8732. rm -f conftest.$ac_objext conftest$ac_exeext
  8733. if { (ac_try="$ac_link"
  8734. case "(($ac_try" in
  8735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8736. *) ac_try_echo=$ac_try;;
  8737. esac
  8738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8739. (eval "$ac_link") 2>conftest.er1
  8740. ac_status=$?
  8741. grep -v '^ *+' conftest.er1 >conftest.err
  8742. rm -f conftest.er1
  8743. cat conftest.err >&5
  8744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8745. (exit $ac_status); } && {
  8746. test -z "$ac_c_werror_flag" ||
  8747. test ! -s conftest.err
  8748. } && test -s conftest$ac_exeext &&
  8749. $as_test_x conftest$ac_exeext; then
  8750. ac_cv_lib_svld_dlopen=yes
  8751. else
  8752. echo "$as_me: failed program was:" >&5
  8753. sed 's/^/| /' conftest.$ac_ext >&5
  8754. ac_cv_lib_svld_dlopen=no
  8755. fi
  8756. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8757. conftest$ac_exeext conftest.$ac_ext
  8758. LIBS=$ac_check_lib_save_LIBS
  8759. fi
  8760. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8761. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8762. if test $ac_cv_lib_svld_dlopen = yes; then
  8763. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8764. else
  8765. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8766. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8767. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8768. echo $ECHO_N "(cached) $ECHO_C" >&6
  8769. else
  8770. ac_check_lib_save_LIBS=$LIBS
  8771. LIBS="-ldld $LIBS"
  8772. cat >conftest.$ac_ext <<_ACEOF
  8773. /* confdefs.h. */
  8774. _ACEOF
  8775. cat confdefs.h >>conftest.$ac_ext
  8776. cat >>conftest.$ac_ext <<_ACEOF
  8777. /* end confdefs.h. */
  8778. /* Override any GCC internal prototype to avoid an error.
  8779. Use char because int might match the return type of a GCC
  8780. builtin and then its argument prototype would still apply. */
  8781. #ifdef __cplusplus
  8782. extern "C"
  8783. #endif
  8784. char dld_link ();
  8785. int
  8786. main ()
  8787. {
  8788. return dld_link ();
  8789. ;
  8790. return 0;
  8791. }
  8792. _ACEOF
  8793. rm -f conftest.$ac_objext conftest$ac_exeext
  8794. if { (ac_try="$ac_link"
  8795. case "(($ac_try" in
  8796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8797. *) ac_try_echo=$ac_try;;
  8798. esac
  8799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8800. (eval "$ac_link") 2>conftest.er1
  8801. ac_status=$?
  8802. grep -v '^ *+' conftest.er1 >conftest.err
  8803. rm -f conftest.er1
  8804. cat conftest.err >&5
  8805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8806. (exit $ac_status); } && {
  8807. test -z "$ac_c_werror_flag" ||
  8808. test ! -s conftest.err
  8809. } && test -s conftest$ac_exeext &&
  8810. $as_test_x conftest$ac_exeext; then
  8811. ac_cv_lib_dld_dld_link=yes
  8812. else
  8813. echo "$as_me: failed program was:" >&5
  8814. sed 's/^/| /' conftest.$ac_ext >&5
  8815. ac_cv_lib_dld_dld_link=no
  8816. fi
  8817. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8818. conftest$ac_exeext conftest.$ac_ext
  8819. LIBS=$ac_check_lib_save_LIBS
  8820. fi
  8821. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8822. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  8823. if test $ac_cv_lib_dld_dld_link = yes; then
  8824. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8825. fi
  8826. fi
  8827. fi
  8828. fi
  8829. fi
  8830. fi
  8831. ;;
  8832. esac
  8833. if test "x$lt_cv_dlopen" != xno; then
  8834. enable_dlopen=yes
  8835. else
  8836. enable_dlopen=no
  8837. fi
  8838. case $lt_cv_dlopen in
  8839. dlopen)
  8840. save_CPPFLAGS="$CPPFLAGS"
  8841. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8842. save_LDFLAGS="$LDFLAGS"
  8843. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8844. save_LIBS="$LIBS"
  8845. LIBS="$lt_cv_dlopen_libs $LIBS"
  8846. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8847. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  8848. if test "${lt_cv_dlopen_self+set}" = set; then
  8849. echo $ECHO_N "(cached) $ECHO_C" >&6
  8850. else
  8851. if test "$cross_compiling" = yes; then :
  8852. lt_cv_dlopen_self=cross
  8853. else
  8854. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8855. lt_status=$lt_dlunknown
  8856. cat > conftest.$ac_ext <<EOF
  8857. #line 9847 "configure"
  8858. #include "confdefs.h"
  8859. #if HAVE_DLFCN_H
  8860. #include <dlfcn.h>
  8861. #endif
  8862. #include <stdio.h>
  8863. #ifdef RTLD_GLOBAL
  8864. # define LT_DLGLOBAL RTLD_GLOBAL
  8865. #else
  8866. # ifdef DL_GLOBAL
  8867. # define LT_DLGLOBAL DL_GLOBAL
  8868. # else
  8869. # define LT_DLGLOBAL 0
  8870. # endif
  8871. #endif
  8872. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8873. find out it does not work in some platform. */
  8874. #ifndef LT_DLLAZY_OR_NOW
  8875. # ifdef RTLD_LAZY
  8876. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8877. # else
  8878. # ifdef DL_LAZY
  8879. # define LT_DLLAZY_OR_NOW DL_LAZY
  8880. # else
  8881. # ifdef RTLD_NOW
  8882. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8883. # else
  8884. # ifdef DL_NOW
  8885. # define LT_DLLAZY_OR_NOW DL_NOW
  8886. # else
  8887. # define LT_DLLAZY_OR_NOW 0
  8888. # endif
  8889. # endif
  8890. # endif
  8891. # endif
  8892. #endif
  8893. #ifdef __cplusplus
  8894. extern "C" void exit (int);
  8895. #endif
  8896. void fnord() { int i=42;}
  8897. int main ()
  8898. {
  8899. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8900. int status = $lt_dlunknown;
  8901. if (self)
  8902. {
  8903. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8904. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8905. /* dlclose (self); */
  8906. }
  8907. else
  8908. puts (dlerror ());
  8909. exit (status);
  8910. }
  8911. EOF
  8912. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8913. (eval $ac_link) 2>&5
  8914. ac_status=$?
  8915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8916. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8917. (./conftest; exit; ) >&5 2>/dev/null
  8918. lt_status=$?
  8919. case x$lt_status in
  8920. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8921. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8922. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8923. esac
  8924. else :
  8925. # compilation failed
  8926. lt_cv_dlopen_self=no
  8927. fi
  8928. fi
  8929. rm -fr conftest*
  8930. fi
  8931. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8932. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  8933. if test "x$lt_cv_dlopen_self" = xyes; then
  8934. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8935. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8936. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  8937. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8938. echo $ECHO_N "(cached) $ECHO_C" >&6
  8939. else
  8940. if test "$cross_compiling" = yes; then :
  8941. lt_cv_dlopen_self_static=cross
  8942. else
  8943. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8944. lt_status=$lt_dlunknown
  8945. cat > conftest.$ac_ext <<EOF
  8946. #line 9947 "configure"
  8947. #include "confdefs.h"
  8948. #if HAVE_DLFCN_H
  8949. #include <dlfcn.h>
  8950. #endif
  8951. #include <stdio.h>
  8952. #ifdef RTLD_GLOBAL
  8953. # define LT_DLGLOBAL RTLD_GLOBAL
  8954. #else
  8955. # ifdef DL_GLOBAL
  8956. # define LT_DLGLOBAL DL_GLOBAL
  8957. # else
  8958. # define LT_DLGLOBAL 0
  8959. # endif
  8960. #endif
  8961. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8962. find out it does not work in some platform. */
  8963. #ifndef LT_DLLAZY_OR_NOW
  8964. # ifdef RTLD_LAZY
  8965. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8966. # else
  8967. # ifdef DL_LAZY
  8968. # define LT_DLLAZY_OR_NOW DL_LAZY
  8969. # else
  8970. # ifdef RTLD_NOW
  8971. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8972. # else
  8973. # ifdef DL_NOW
  8974. # define LT_DLLAZY_OR_NOW DL_NOW
  8975. # else
  8976. # define LT_DLLAZY_OR_NOW 0
  8977. # endif
  8978. # endif
  8979. # endif
  8980. # endif
  8981. #endif
  8982. #ifdef __cplusplus
  8983. extern "C" void exit (int);
  8984. #endif
  8985. void fnord() { int i=42;}
  8986. int main ()
  8987. {
  8988. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8989. int status = $lt_dlunknown;
  8990. if (self)
  8991. {
  8992. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8993. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8994. /* dlclose (self); */
  8995. }
  8996. else
  8997. puts (dlerror ());
  8998. exit (status);
  8999. }
  9000. EOF
  9001. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9002. (eval $ac_link) 2>&5
  9003. ac_status=$?
  9004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9005. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9006. (./conftest; exit; ) >&5 2>/dev/null
  9007. lt_status=$?
  9008. case x$lt_status in
  9009. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9010. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9011. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9012. esac
  9013. else :
  9014. # compilation failed
  9015. lt_cv_dlopen_self_static=no
  9016. fi
  9017. fi
  9018. rm -fr conftest*
  9019. fi
  9020. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9021. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9022. fi
  9023. CPPFLAGS="$save_CPPFLAGS"
  9024. LDFLAGS="$save_LDFLAGS"
  9025. LIBS="$save_LIBS"
  9026. ;;
  9027. esac
  9028. case $lt_cv_dlopen_self in
  9029. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9030. *) enable_dlopen_self=unknown ;;
  9031. esac
  9032. case $lt_cv_dlopen_self_static in
  9033. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9034. *) enable_dlopen_self_static=unknown ;;
  9035. esac
  9036. fi
  9037. # Report which library types will actually be built
  9038. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9039. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9040. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9041. echo "${ECHO_T}$can_build_shared" >&6; }
  9042. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9043. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9044. test "$can_build_shared" = "no" && enable_shared=no
  9045. # On AIX, shared libraries and static libraries use the same namespace, and
  9046. # are all built from PIC.
  9047. case $host_os in
  9048. aix3*)
  9049. test "$enable_shared" = yes && enable_static=no
  9050. if test -n "$RANLIB"; then
  9051. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9052. postinstall_cmds='$RANLIB $lib'
  9053. fi
  9054. ;;
  9055. aix4* | aix5*)
  9056. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9057. test "$enable_shared" = yes && enable_static=no
  9058. fi
  9059. ;;
  9060. esac
  9061. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9062. echo "${ECHO_T}$enable_shared" >&6; }
  9063. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9064. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9065. # Make sure either enable_shared or enable_static is yes.
  9066. test "$enable_shared" = yes || enable_static=yes
  9067. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9068. echo "${ECHO_T}$enable_static" >&6; }
  9069. # The else clause should only fire when bootstrapping the
  9070. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9071. # with your package, and you will get complaints that there are
  9072. # no rules to generate ltmain.sh.
  9073. if test -f "$ltmain"; then
  9074. # See if we are running on zsh, and set the options which allow our commands through
  9075. # without removal of \ escapes.
  9076. if test -n "${ZSH_VERSION+set}" ; then
  9077. setopt NO_GLOB_SUBST
  9078. fi
  9079. # Now quote all the things that may contain metacharacters while being
  9080. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9081. # variables and quote the copies for generation of the libtool script.
  9082. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9083. SED SHELL STRIP \
  9084. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9085. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9086. deplibs_check_method reload_flag reload_cmds need_locks \
  9087. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9088. lt_cv_sys_global_symbol_to_c_name_address \
  9089. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9090. old_postinstall_cmds old_postuninstall_cmds \
  9091. compiler \
  9092. CC \
  9093. LD \
  9094. lt_prog_compiler_wl \
  9095. lt_prog_compiler_pic \
  9096. lt_prog_compiler_static \
  9097. lt_prog_compiler_no_builtin_flag \
  9098. export_dynamic_flag_spec \
  9099. thread_safe_flag_spec \
  9100. whole_archive_flag_spec \
  9101. enable_shared_with_static_runtimes \
  9102. old_archive_cmds \
  9103. old_archive_from_new_cmds \
  9104. predep_objects \
  9105. postdep_objects \
  9106. predeps \
  9107. postdeps \
  9108. compiler_lib_search_path \
  9109. archive_cmds \
  9110. archive_expsym_cmds \
  9111. postinstall_cmds \
  9112. postuninstall_cmds \
  9113. old_archive_from_expsyms_cmds \
  9114. allow_undefined_flag \
  9115. no_undefined_flag \
  9116. export_symbols_cmds \
  9117. hardcode_libdir_flag_spec \
  9118. hardcode_libdir_flag_spec_ld \
  9119. hardcode_libdir_separator \
  9120. hardcode_automatic \
  9121. module_cmds \
  9122. module_expsym_cmds \
  9123. lt_cv_prog_compiler_c_o \
  9124. fix_srcfile_path \
  9125. exclude_expsyms \
  9126. include_expsyms; do
  9127. case $var in
  9128. old_archive_cmds | \
  9129. old_archive_from_new_cmds | \
  9130. archive_cmds | \
  9131. archive_expsym_cmds | \
  9132. module_cmds | \
  9133. module_expsym_cmds | \
  9134. old_archive_from_expsyms_cmds | \
  9135. export_symbols_cmds | \
  9136. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9137. postinstall_cmds | postuninstall_cmds | \
  9138. old_postinstall_cmds | old_postuninstall_cmds | \
  9139. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9140. # Double-quote double-evaled strings.
  9141. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9142. ;;
  9143. *)
  9144. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9145. ;;
  9146. esac
  9147. done
  9148. case $lt_echo in
  9149. *'\$0 --fallback-echo"')
  9150. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9151. ;;
  9152. esac
  9153. cfgfile="${ofile}T"
  9154. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9155. $rm -f "$cfgfile"
  9156. { echo "$as_me:$LINENO: creating $ofile" >&5
  9157. echo "$as_me: creating $ofile" >&6;}
  9158. cat <<__EOF__ >> "$cfgfile"
  9159. #! $SHELL
  9160. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9161. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9162. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9163. #
  9164. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  9165. # Free Software Foundation, Inc.
  9166. #
  9167. # This file is part of GNU Libtool:
  9168. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9169. #
  9170. # This program is free software; you can redistribute it and/or modify
  9171. # it under the terms of the GNU General Public License as published by
  9172. # the Free Software Foundation; either version 2 of the License, or
  9173. # (at your option) any later version.
  9174. #
  9175. # This program is distributed in the hope that it will be useful, but
  9176. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9177. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9178. # General Public License for more details.
  9179. #
  9180. # You should have received a copy of the GNU General Public License
  9181. # along with this program; if not, write to the Free Software
  9182. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9183. #
  9184. # As a special exception to the GNU General Public License, if you
  9185. # distribute this file as part of a program that contains a
  9186. # configuration script generated by Autoconf, you may include it under
  9187. # the same distribution terms that you use for the rest of that program.
  9188. # A sed program that does not truncate output.
  9189. SED=$lt_SED
  9190. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9191. Xsed="$SED -e 1s/^X//"
  9192. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9193. # if CDPATH is set.
  9194. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9195. # The names of the tagged configurations supported by this script.
  9196. available_tags=
  9197. # ### BEGIN LIBTOOL CONFIG
  9198. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9199. # Shell to use when invoking shell scripts.
  9200. SHELL=$lt_SHELL
  9201. # Whether or not to build shared libraries.
  9202. build_libtool_libs=$enable_shared
  9203. # Whether or not to build static libraries.
  9204. build_old_libs=$enable_static
  9205. # Whether or not to add -lc for building shared libraries.
  9206. build_libtool_need_lc=$archive_cmds_need_lc
  9207. # Whether or not to disallow shared libs when runtime libs are static
  9208. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9209. # Whether or not to optimize for fast installation.
  9210. fast_install=$enable_fast_install
  9211. # The host system.
  9212. host_alias=$host_alias
  9213. host=$host
  9214. host_os=$host_os
  9215. # The build system.
  9216. build_alias=$build_alias
  9217. build=$build
  9218. build_os=$build_os
  9219. # An echo program that does not interpret backslashes.
  9220. echo=$lt_echo
  9221. # The archiver.
  9222. AR=$lt_AR
  9223. AR_FLAGS=$lt_AR_FLAGS
  9224. # A C compiler.
  9225. LTCC=$lt_LTCC
  9226. # LTCC compiler flags.
  9227. LTCFLAGS=$lt_LTCFLAGS
  9228. # A language-specific compiler.
  9229. CC=$lt_compiler
  9230. # Is the compiler the GNU C compiler?
  9231. with_gcc=$GCC
  9232. # An ERE matcher.
  9233. EGREP=$lt_EGREP
  9234. # The linker used to build libraries.
  9235. LD=$lt_LD
  9236. # Whether we need hard or soft links.
  9237. LN_S=$lt_LN_S
  9238. # A BSD-compatible nm program.
  9239. NM=$lt_NM
  9240. # A symbol stripping program
  9241. STRIP=$lt_STRIP
  9242. # Used to examine libraries when file_magic_cmd begins "file"
  9243. MAGIC_CMD=$MAGIC_CMD
  9244. # Used on cygwin: DLL creation program.
  9245. DLLTOOL="$DLLTOOL"
  9246. # Used on cygwin: object dumper.
  9247. OBJDUMP="$OBJDUMP"
  9248. # Used on cygwin: assembler.
  9249. AS="$AS"
  9250. # The name of the directory that contains temporary libtool files.
  9251. objdir=$objdir
  9252. # How to create reloadable object files.
  9253. reload_flag=$lt_reload_flag
  9254. reload_cmds=$lt_reload_cmds
  9255. # How to pass a linker flag through the compiler.
  9256. wl=$lt_lt_prog_compiler_wl
  9257. # Object file suffix (normally "o").
  9258. objext="$ac_objext"
  9259. # Old archive suffix (normally "a").
  9260. libext="$libext"
  9261. # Shared library suffix (normally ".so").
  9262. shrext_cmds='$shrext_cmds'
  9263. # Executable file suffix (normally "").
  9264. exeext="$exeext"
  9265. # Additional compiler flags for building library objects.
  9266. pic_flag=$lt_lt_prog_compiler_pic
  9267. pic_mode=$pic_mode
  9268. # What is the maximum length of a command?
  9269. max_cmd_len=$lt_cv_sys_max_cmd_len
  9270. # Does compiler simultaneously support -c and -o options?
  9271. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9272. # Must we lock files when doing compilation?
  9273. need_locks=$lt_need_locks
  9274. # Do we need the lib prefix for modules?
  9275. need_lib_prefix=$need_lib_prefix
  9276. # Do we need a version for libraries?
  9277. need_version=$need_version
  9278. # Whether dlopen is supported.
  9279. dlopen_support=$enable_dlopen
  9280. # Whether dlopen of programs is supported.
  9281. dlopen_self=$enable_dlopen_self
  9282. # Whether dlopen of statically linked programs is supported.
  9283. dlopen_self_static=$enable_dlopen_self_static
  9284. # Compiler flag to prevent dynamic linking.
  9285. link_static_flag=$lt_lt_prog_compiler_static
  9286. # Compiler flag to turn off builtin functions.
  9287. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9288. # Compiler flag to allow reflexive dlopens.
  9289. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9290. # Compiler flag to generate shared objects directly from archives.
  9291. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9292. # Compiler flag to generate thread-safe objects.
  9293. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9294. # Library versioning type.
  9295. version_type=$version_type
  9296. # Format of library name prefix.
  9297. libname_spec=$lt_libname_spec
  9298. # List of archive names. First name is the real one, the rest are links.
  9299. # The last name is the one that the linker finds with -lNAME.
  9300. library_names_spec=$lt_library_names_spec
  9301. # The coded name of the library, if different from the real name.
  9302. soname_spec=$lt_soname_spec
  9303. # Commands used to build and install an old-style archive.
  9304. RANLIB=$lt_RANLIB
  9305. old_archive_cmds=$lt_old_archive_cmds
  9306. old_postinstall_cmds=$lt_old_postinstall_cmds
  9307. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9308. # Create an old-style archive from a shared archive.
  9309. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9310. # Create a temporary old-style archive to link instead of a shared archive.
  9311. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9312. # Commands used to build and install a shared archive.
  9313. archive_cmds=$lt_archive_cmds
  9314. archive_expsym_cmds=$lt_archive_expsym_cmds
  9315. postinstall_cmds=$lt_postinstall_cmds
  9316. postuninstall_cmds=$lt_postuninstall_cmds
  9317. # Commands used to build a loadable module (assumed same as above if empty)
  9318. module_cmds=$lt_module_cmds
  9319. module_expsym_cmds=$lt_module_expsym_cmds
  9320. # Commands to strip libraries.
  9321. old_striplib=$lt_old_striplib
  9322. striplib=$lt_striplib
  9323. # Dependencies to place before the objects being linked to create a
  9324. # shared library.
  9325. predep_objects=$lt_predep_objects
  9326. # Dependencies to place after the objects being linked to create a
  9327. # shared library.
  9328. postdep_objects=$lt_postdep_objects
  9329. # Dependencies to place before the objects being linked to create a
  9330. # shared library.
  9331. predeps=$lt_predeps
  9332. # Dependencies to place after the objects being linked to create a
  9333. # shared library.
  9334. postdeps=$lt_postdeps
  9335. # The library search path used internally by the compiler when linking
  9336. # a shared library.
  9337. compiler_lib_search_path=$lt_compiler_lib_search_path
  9338. # Method to check whether dependent libraries are shared objects.
  9339. deplibs_check_method=$lt_deplibs_check_method
  9340. # Command to use when deplibs_check_method == file_magic.
  9341. file_magic_cmd=$lt_file_magic_cmd
  9342. # Flag that allows shared libraries with undefined symbols to be built.
  9343. allow_undefined_flag=$lt_allow_undefined_flag
  9344. # Flag that forces no undefined symbols.
  9345. no_undefined_flag=$lt_no_undefined_flag
  9346. # Commands used to finish a libtool library installation in a directory.
  9347. finish_cmds=$lt_finish_cmds
  9348. # Same as above, but a single script fragment to be evaled but not shown.
  9349. finish_eval=$lt_finish_eval
  9350. # Take the output of nm and produce a listing of raw symbols and C names.
  9351. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9352. # Transform the output of nm in a proper C declaration
  9353. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9354. # Transform the output of nm in a C name address pair
  9355. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9356. # This is the shared library runtime path variable.
  9357. runpath_var=$runpath_var
  9358. # This is the shared library path variable.
  9359. shlibpath_var=$shlibpath_var
  9360. # Is shlibpath searched before the hard-coded library search path?
  9361. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9362. # How to hardcode a shared library path into an executable.
  9363. hardcode_action=$hardcode_action
  9364. # Whether we should hardcode library paths into libraries.
  9365. hardcode_into_libs=$hardcode_into_libs
  9366. # Flag to hardcode \$libdir into a binary during linking.
  9367. # This must work even if \$libdir does not exist.
  9368. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9369. # If ld is used when linking, flag to hardcode \$libdir into
  9370. # a binary during linking. This must work even if \$libdir does
  9371. # not exist.
  9372. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9373. # Whether we need a single -rpath flag with a separated argument.
  9374. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9375. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9376. # resulting binary.
  9377. hardcode_direct=$hardcode_direct
  9378. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9379. # resulting binary.
  9380. hardcode_minus_L=$hardcode_minus_L
  9381. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9382. # the resulting binary.
  9383. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9384. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9385. # and all subsequent libraries and executables linked against it.
  9386. hardcode_automatic=$hardcode_automatic
  9387. # Variables whose values should be saved in libtool wrapper scripts and
  9388. # restored at relink time.
  9389. variables_saved_for_relink="$variables_saved_for_relink"
  9390. # Whether libtool must link a program against all its dependency libraries.
  9391. link_all_deplibs=$link_all_deplibs
  9392. # Compile-time system search path for libraries
  9393. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9394. # Run-time system search path for libraries
  9395. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9396. # Fix the shell variable \$srcfile for the compiler.
  9397. fix_srcfile_path=$lt_fix_srcfile_path
  9398. # Set to yes if exported symbols are required.
  9399. always_export_symbols=$always_export_symbols
  9400. # The commands to list exported symbols.
  9401. export_symbols_cmds=$lt_export_symbols_cmds
  9402. # The commands to extract the exported symbol list from a shared archive.
  9403. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9404. # Symbols that should not be listed in the preloaded symbols.
  9405. exclude_expsyms=$lt_exclude_expsyms
  9406. # Symbols that must always be exported.
  9407. include_expsyms=$lt_include_expsyms
  9408. # ### END LIBTOOL CONFIG
  9409. __EOF__
  9410. case $host_os in
  9411. aix3*)
  9412. cat <<\EOF >> "$cfgfile"
  9413. # AIX sometimes has problems with the GCC collect2 program. For some
  9414. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9415. # vanish in a puff of smoke.
  9416. if test "X${COLLECT_NAMES+set}" != Xset; then
  9417. COLLECT_NAMES=
  9418. export COLLECT_NAMES
  9419. fi
  9420. EOF
  9421. ;;
  9422. esac
  9423. # We use sed instead of cat because bash on DJGPP gets confused if
  9424. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9425. # text mode, it properly converts lines to CR/LF. This bash problem
  9426. # is reportedly fixed, but why not run on old versions too?
  9427. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9428. mv -f "$cfgfile" "$ofile" || \
  9429. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9430. chmod +x "$ofile"
  9431. else
  9432. # If there is no Makefile yet, we rely on a make rule to execute
  9433. # `config.status --recheck' to rerun these tests and create the
  9434. # libtool script then.
  9435. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9436. if test -f "$ltmain_in"; then
  9437. test -f Makefile && make "$ltmain"
  9438. fi
  9439. fi
  9440. ac_ext=cpp
  9441. ac_cpp='$CXXCPP $CPPFLAGS'
  9442. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9443. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9444. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9445. CC="$lt_save_CC"
  9446. # Check whether --with-tags was given.
  9447. if test "${with_tags+set}" = set; then
  9448. withval=$with_tags; tagnames="$withval"
  9449. fi
  9450. if test -f "$ltmain" && test -n "$tagnames"; then
  9451. if test ! -f "${ofile}"; then
  9452. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9453. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9454. fi
  9455. if test -z "$LTCC"; then
  9456. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9457. if test -z "$LTCC"; then
  9458. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9459. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9460. else
  9461. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9462. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9463. fi
  9464. fi
  9465. if test -z "$LTCFLAGS"; then
  9466. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9467. fi
  9468. # Extract list of available tagged configurations in $ofile.
  9469. # Note that this assumes the entire list is on one line.
  9470. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9471. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9472. for tagname in $tagnames; do
  9473. IFS="$lt_save_ifs"
  9474. # Check whether tagname contains only valid characters
  9475. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9476. "") ;;
  9477. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9478. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9479. { (exit 1); exit 1; }; }
  9480. ;;
  9481. esac
  9482. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9483. then
  9484. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9485. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9486. { (exit 1); exit 1; }; }
  9487. fi
  9488. # Update the list of available tags.
  9489. if test -n "$tagname"; then
  9490. echo appending configuration tag \"$tagname\" to $ofile
  9491. case $tagname in
  9492. CXX)
  9493. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9494. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9495. (test "X$CXX" != "Xg++"))) ; then
  9496. ac_ext=cpp
  9497. ac_cpp='$CXXCPP $CPPFLAGS'
  9498. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9499. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9500. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9501. archive_cmds_need_lc_CXX=no
  9502. allow_undefined_flag_CXX=
  9503. always_export_symbols_CXX=no
  9504. archive_expsym_cmds_CXX=
  9505. export_dynamic_flag_spec_CXX=
  9506. hardcode_direct_CXX=no
  9507. hardcode_libdir_flag_spec_CXX=
  9508. hardcode_libdir_flag_spec_ld_CXX=
  9509. hardcode_libdir_separator_CXX=
  9510. hardcode_minus_L_CXX=no
  9511. hardcode_shlibpath_var_CXX=unsupported
  9512. hardcode_automatic_CXX=no
  9513. module_cmds_CXX=
  9514. module_expsym_cmds_CXX=
  9515. link_all_deplibs_CXX=unknown
  9516. old_archive_cmds_CXX=$old_archive_cmds
  9517. no_undefined_flag_CXX=
  9518. whole_archive_flag_spec_CXX=
  9519. enable_shared_with_static_runtimes_CXX=no
  9520. # Dependencies to place before and after the object being linked:
  9521. predep_objects_CXX=
  9522. postdep_objects_CXX=
  9523. predeps_CXX=
  9524. postdeps_CXX=
  9525. compiler_lib_search_path_CXX=
  9526. # Source file extension for C++ test sources.
  9527. ac_ext=cpp
  9528. # Object file extension for compiled C++ test sources.
  9529. objext=o
  9530. objext_CXX=$objext
  9531. # Code to be used in simple compile tests
  9532. lt_simple_compile_test_code="int some_variable = 0;"
  9533. # Code to be used in simple link tests
  9534. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9535. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9536. # If no C compiler was specified, use CC.
  9537. LTCC=${LTCC-"$CC"}
  9538. # If no C compiler flags were specified, use CFLAGS.
  9539. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9540. # Allow CC to be a program name with arguments.
  9541. compiler=$CC
  9542. # save warnings/boilerplate of simple test code
  9543. ac_outfile=conftest.$ac_objext
  9544. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9545. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9546. _lt_compiler_boilerplate=`cat conftest.err`
  9547. $rm conftest*
  9548. ac_outfile=conftest.$ac_objext
  9549. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9550. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9551. _lt_linker_boilerplate=`cat conftest.err`
  9552. $rm conftest*
  9553. # Allow CC to be a program name with arguments.
  9554. lt_save_CC=$CC
  9555. lt_save_LD=$LD
  9556. lt_save_GCC=$GCC
  9557. GCC=$GXX
  9558. lt_save_with_gnu_ld=$with_gnu_ld
  9559. lt_save_path_LD=$lt_cv_path_LD
  9560. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9561. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9562. else
  9563. $as_unset lt_cv_prog_gnu_ld
  9564. fi
  9565. if test -n "${lt_cv_path_LDCXX+set}"; then
  9566. lt_cv_path_LD=$lt_cv_path_LDCXX
  9567. else
  9568. $as_unset lt_cv_path_LD
  9569. fi
  9570. test -z "${LDCXX+set}" || LD=$LDCXX
  9571. CC=${CXX-"c++"}
  9572. compiler=$CC
  9573. compiler_CXX=$CC
  9574. for cc_temp in $compiler""; do
  9575. case $cc_temp in
  9576. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9577. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9578. \-*) ;;
  9579. *) break;;
  9580. esac
  9581. done
  9582. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9583. # We don't want -fno-exception wen compiling C++ code, so set the
  9584. # no_builtin_flag separately
  9585. if test "$GXX" = yes; then
  9586. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9587. else
  9588. lt_prog_compiler_no_builtin_flag_CXX=
  9589. fi
  9590. if test "$GXX" = yes; then
  9591. # Set up default GNU C++ configuration
  9592. # Check whether --with-gnu-ld was given.
  9593. if test "${with_gnu_ld+set}" = set; then
  9594. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9595. else
  9596. with_gnu_ld=no
  9597. fi
  9598. ac_prog=ld
  9599. if test "$GCC" = yes; then
  9600. # Check if gcc -print-prog-name=ld gives a path.
  9601. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9602. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9603. case $host in
  9604. *-*-mingw*)
  9605. # gcc leaves a trailing carriage return which upsets mingw
  9606. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9607. *)
  9608. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9609. esac
  9610. case $ac_prog in
  9611. # Accept absolute paths.
  9612. [\\/]* | ?:[\\/]*)
  9613. re_direlt='/[^/][^/]*/\.\./'
  9614. # Canonicalize the pathname of ld
  9615. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9616. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9617. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9618. done
  9619. test -z "$LD" && LD="$ac_prog"
  9620. ;;
  9621. "")
  9622. # If it fails, then pretend we aren't using GCC.
  9623. ac_prog=ld
  9624. ;;
  9625. *)
  9626. # If it is relative, then search for the first ld in PATH.
  9627. with_gnu_ld=unknown
  9628. ;;
  9629. esac
  9630. elif test "$with_gnu_ld" = yes; then
  9631. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9632. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9633. else
  9634. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9635. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9636. fi
  9637. if test "${lt_cv_path_LD+set}" = set; then
  9638. echo $ECHO_N "(cached) $ECHO_C" >&6
  9639. else
  9640. if test -z "$LD"; then
  9641. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9642. for ac_dir in $PATH; do
  9643. IFS="$lt_save_ifs"
  9644. test -z "$ac_dir" && ac_dir=.
  9645. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9646. lt_cv_path_LD="$ac_dir/$ac_prog"
  9647. # Check to see if the program is GNU ld. I'd rather use --version,
  9648. # but apparently some variants of GNU ld only accept -v.
  9649. # Break only if it was the GNU/non-GNU ld that we prefer.
  9650. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9651. *GNU* | *'with BFD'*)
  9652. test "$with_gnu_ld" != no && break
  9653. ;;
  9654. *)
  9655. test "$with_gnu_ld" != yes && break
  9656. ;;
  9657. esac
  9658. fi
  9659. done
  9660. IFS="$lt_save_ifs"
  9661. else
  9662. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9663. fi
  9664. fi
  9665. LD="$lt_cv_path_LD"
  9666. if test -n "$LD"; then
  9667. { echo "$as_me:$LINENO: result: $LD" >&5
  9668. echo "${ECHO_T}$LD" >&6; }
  9669. else
  9670. { echo "$as_me:$LINENO: result: no" >&5
  9671. echo "${ECHO_T}no" >&6; }
  9672. fi
  9673. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9674. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9675. { (exit 1); exit 1; }; }
  9676. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9677. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9678. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9679. echo $ECHO_N "(cached) $ECHO_C" >&6
  9680. else
  9681. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9682. case `$LD -v 2>&1 </dev/null` in
  9683. *GNU* | *'with BFD'*)
  9684. lt_cv_prog_gnu_ld=yes
  9685. ;;
  9686. *)
  9687. lt_cv_prog_gnu_ld=no
  9688. ;;
  9689. esac
  9690. fi
  9691. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9692. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9693. with_gnu_ld=$lt_cv_prog_gnu_ld
  9694. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9695. # archiving commands below assume that GNU ld is being used.
  9696. if test "$with_gnu_ld" = yes; then
  9697. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9698. 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'
  9699. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9700. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9701. # If archive_cmds runs LD, not CC, wlarc should be empty
  9702. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9703. # investigate it a little bit more. (MM)
  9704. wlarc='${wl}'
  9705. # ancient GNU ld didn't support --whole-archive et. al.
  9706. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9707. grep 'no-whole-archive' > /dev/null; then
  9708. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9709. else
  9710. whole_archive_flag_spec_CXX=
  9711. fi
  9712. else
  9713. with_gnu_ld=no
  9714. wlarc=
  9715. # A generic and very simple default shared library creation
  9716. # command for GNU C++ for the case where it uses the native
  9717. # linker, instead of GNU ld. If possible, this setting should
  9718. # overridden to take advantage of the native linker features on
  9719. # the platform it is being used on.
  9720. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9721. fi
  9722. # Commands to make compiler produce verbose output that lists
  9723. # what "hidden" libraries, object files and flags are used when
  9724. # linking a shared library.
  9725. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9726. else
  9727. GXX=no
  9728. with_gnu_ld=no
  9729. wlarc=
  9730. fi
  9731. # PORTME: fill in a description of your system's C++ link characteristics
  9732. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9733. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9734. ld_shlibs_CXX=yes
  9735. case $host_os in
  9736. aix3*)
  9737. # FIXME: insert proper C++ library support
  9738. ld_shlibs_CXX=no
  9739. ;;
  9740. aix4* | aix5*)
  9741. if test "$host_cpu" = ia64; then
  9742. # On IA64, the linker does run time linking by default, so we don't
  9743. # have to do anything special.
  9744. aix_use_runtimelinking=no
  9745. exp_sym_flag='-Bexport'
  9746. no_entry_flag=""
  9747. else
  9748. aix_use_runtimelinking=no
  9749. # Test if we are trying to use run time linking or normal
  9750. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9751. # need to do runtime linking.
  9752. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9753. for ld_flag in $LDFLAGS; do
  9754. case $ld_flag in
  9755. *-brtl*)
  9756. aix_use_runtimelinking=yes
  9757. break
  9758. ;;
  9759. esac
  9760. done
  9761. ;;
  9762. esac
  9763. exp_sym_flag='-bexport'
  9764. no_entry_flag='-bnoentry'
  9765. fi
  9766. # When large executables or shared objects are built, AIX ld can
  9767. # have problems creating the table of contents. If linking a library
  9768. # or program results in "error TOC overflow" add -mminimal-toc to
  9769. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9770. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9771. archive_cmds_CXX=''
  9772. hardcode_direct_CXX=yes
  9773. hardcode_libdir_separator_CXX=':'
  9774. link_all_deplibs_CXX=yes
  9775. if test "$GXX" = yes; then
  9776. case $host_os in aix4.[012]|aix4.[012].*)
  9777. # We only want to do this on AIX 4.2 and lower, the check
  9778. # below for broken collect2 doesn't work under 4.3+
  9779. collect2name=`${CC} -print-prog-name=collect2`
  9780. if test -f "$collect2name" && \
  9781. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9782. then
  9783. # We have reworked collect2
  9784. :
  9785. else
  9786. # We have old collect2
  9787. hardcode_direct_CXX=unsupported
  9788. # It fails to find uninstalled libraries when the uninstalled
  9789. # path is not listed in the libpath. Setting hardcode_minus_L
  9790. # to unsupported forces relinking
  9791. hardcode_minus_L_CXX=yes
  9792. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9793. hardcode_libdir_separator_CXX=
  9794. fi
  9795. ;;
  9796. esac
  9797. shared_flag='-shared'
  9798. if test "$aix_use_runtimelinking" = yes; then
  9799. shared_flag="$shared_flag "'${wl}-G'
  9800. fi
  9801. else
  9802. # not using gcc
  9803. if test "$host_cpu" = ia64; then
  9804. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9805. # chokes on -Wl,-G. The following line is correct:
  9806. shared_flag='-G'
  9807. else
  9808. if test "$aix_use_runtimelinking" = yes; then
  9809. shared_flag='${wl}-G'
  9810. else
  9811. shared_flag='${wl}-bM:SRE'
  9812. fi
  9813. fi
  9814. fi
  9815. # It seems that -bexpall does not export symbols beginning with
  9816. # underscore (_), so it is better to generate a list of symbols to export.
  9817. always_export_symbols_CXX=yes
  9818. if test "$aix_use_runtimelinking" = yes; then
  9819. # Warning - without using the other runtime loading flags (-brtl),
  9820. # -berok will link without error, but may produce a broken library.
  9821. allow_undefined_flag_CXX='-berok'
  9822. # Determine the default libpath from the value encoded in an empty executable.
  9823. cat >conftest.$ac_ext <<_ACEOF
  9824. /* confdefs.h. */
  9825. _ACEOF
  9826. cat confdefs.h >>conftest.$ac_ext
  9827. cat >>conftest.$ac_ext <<_ACEOF
  9828. /* end confdefs.h. */
  9829. int
  9830. main ()
  9831. {
  9832. ;
  9833. return 0;
  9834. }
  9835. _ACEOF
  9836. rm -f conftest.$ac_objext conftest$ac_exeext
  9837. if { (ac_try="$ac_link"
  9838. case "(($ac_try" in
  9839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9840. *) ac_try_echo=$ac_try;;
  9841. esac
  9842. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9843. (eval "$ac_link") 2>conftest.er1
  9844. ac_status=$?
  9845. grep -v '^ *+' conftest.er1 >conftest.err
  9846. rm -f conftest.er1
  9847. cat conftest.err >&5
  9848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9849. (exit $ac_status); } && {
  9850. test -z "$ac_cxx_werror_flag" ||
  9851. test ! -s conftest.err
  9852. } && test -s conftest$ac_exeext &&
  9853. $as_test_x conftest$ac_exeext; then
  9854. lt_aix_libpath_sed='
  9855. /Import File Strings/,/^$/ {
  9856. /^0/ {
  9857. s/^0 *\(.*\)$/\1/
  9858. p
  9859. }
  9860. }'
  9861. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9862. # Check for a 64-bit object if we didn't find anything.
  9863. if test -z "$aix_libpath"; then
  9864. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9865. fi
  9866. else
  9867. echo "$as_me: failed program was:" >&5
  9868. sed 's/^/| /' conftest.$ac_ext >&5
  9869. fi
  9870. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9871. conftest$ac_exeext conftest.$ac_ext
  9872. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9873. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9874. 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"
  9875. else
  9876. if test "$host_cpu" = ia64; then
  9877. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9878. allow_undefined_flag_CXX="-z nodefs"
  9879. 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"
  9880. else
  9881. # Determine the default libpath from the value encoded in an empty executable.
  9882. cat >conftest.$ac_ext <<_ACEOF
  9883. /* confdefs.h. */
  9884. _ACEOF
  9885. cat confdefs.h >>conftest.$ac_ext
  9886. cat >>conftest.$ac_ext <<_ACEOF
  9887. /* end confdefs.h. */
  9888. int
  9889. main ()
  9890. {
  9891. ;
  9892. return 0;
  9893. }
  9894. _ACEOF
  9895. rm -f conftest.$ac_objext conftest$ac_exeext
  9896. if { (ac_try="$ac_link"
  9897. case "(($ac_try" in
  9898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9899. *) ac_try_echo=$ac_try;;
  9900. esac
  9901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9902. (eval "$ac_link") 2>conftest.er1
  9903. ac_status=$?
  9904. grep -v '^ *+' conftest.er1 >conftest.err
  9905. rm -f conftest.er1
  9906. cat conftest.err >&5
  9907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9908. (exit $ac_status); } && {
  9909. test -z "$ac_cxx_werror_flag" ||
  9910. test ! -s conftest.err
  9911. } && test -s conftest$ac_exeext &&
  9912. $as_test_x conftest$ac_exeext; then
  9913. lt_aix_libpath_sed='
  9914. /Import File Strings/,/^$/ {
  9915. /^0/ {
  9916. s/^0 *\(.*\)$/\1/
  9917. p
  9918. }
  9919. }'
  9920. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9921. # Check for a 64-bit object if we didn't find anything.
  9922. if test -z "$aix_libpath"; then
  9923. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9924. fi
  9925. else
  9926. echo "$as_me: failed program was:" >&5
  9927. sed 's/^/| /' conftest.$ac_ext >&5
  9928. fi
  9929. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9930. conftest$ac_exeext conftest.$ac_ext
  9931. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9932. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9933. # Warning - without using the other run time loading flags,
  9934. # -berok will link without error, but may produce a broken library.
  9935. no_undefined_flag_CXX=' ${wl}-bernotok'
  9936. allow_undefined_flag_CXX=' ${wl}-berok'
  9937. # Exported symbols can be pulled into shared objects from archives
  9938. whole_archive_flag_spec_CXX='$convenience'
  9939. archive_cmds_need_lc_CXX=yes
  9940. # This is similar to how AIX traditionally builds its shared libraries.
  9941. 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'
  9942. fi
  9943. fi
  9944. ;;
  9945. beos*)
  9946. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9947. allow_undefined_flag_CXX=unsupported
  9948. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9949. # support --undefined. This deserves some investigation. FIXME
  9950. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9951. else
  9952. ld_shlibs_CXX=no
  9953. fi
  9954. ;;
  9955. chorus*)
  9956. case $cc_basename in
  9957. *)
  9958. # FIXME: insert proper C++ library support
  9959. ld_shlibs_CXX=no
  9960. ;;
  9961. esac
  9962. ;;
  9963. cygwin* | mingw* | pw32*)
  9964. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9965. # as there is no search path for DLLs.
  9966. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9967. allow_undefined_flag_CXX=unsupported
  9968. always_export_symbols_CXX=no
  9969. enable_shared_with_static_runtimes_CXX=yes
  9970. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9971. 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'
  9972. # If the export-symbols file already is a .def file (1st line
  9973. # is EXPORTS), use it as is; otherwise, prepend...
  9974. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9975. cp $export_symbols $output_objdir/$soname.def;
  9976. else
  9977. echo EXPORTS > $output_objdir/$soname.def;
  9978. cat $export_symbols >> $output_objdir/$soname.def;
  9979. fi~
  9980. $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'
  9981. else
  9982. ld_shlibs_CXX=no
  9983. fi
  9984. ;;
  9985. darwin* | rhapsody*)
  9986. case $host_os in
  9987. rhapsody* | darwin1.[012])
  9988. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9989. ;;
  9990. *) # Darwin 1.3 on
  9991. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9992. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9993. else
  9994. case ${MACOSX_DEPLOYMENT_TARGET} in
  9995. 10.[012])
  9996. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9997. ;;
  9998. 10.*)
  9999. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10000. ;;
  10001. esac
  10002. fi
  10003. ;;
  10004. esac
  10005. archive_cmds_need_lc_CXX=no
  10006. hardcode_direct_CXX=no
  10007. hardcode_automatic_CXX=yes
  10008. hardcode_shlibpath_var_CXX=unsupported
  10009. whole_archive_flag_spec_CXX=''
  10010. link_all_deplibs_CXX=yes
  10011. if test "$GXX" = yes ; then
  10012. lt_int_apple_cc_single_mod=no
  10013. output_verbose_link_cmd='echo'
  10014. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10015. lt_int_apple_cc_single_mod=yes
  10016. fi
  10017. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10018. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10019. else
  10020. 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'
  10021. fi
  10022. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10023. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10024. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10025. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10026. else
  10027. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10028. fi
  10029. 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}'
  10030. else
  10031. case $cc_basename in
  10032. xlc*)
  10033. output_verbose_link_cmd='echo'
  10034. 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'
  10035. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10036. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10037. 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}'
  10038. 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}'
  10039. ;;
  10040. *)
  10041. ld_shlibs_CXX=no
  10042. ;;
  10043. esac
  10044. fi
  10045. ;;
  10046. dgux*)
  10047. case $cc_basename in
  10048. ec++*)
  10049. # FIXME: insert proper C++ library support
  10050. ld_shlibs_CXX=no
  10051. ;;
  10052. ghcx*)
  10053. # Green Hills C++ Compiler
  10054. # FIXME: insert proper C++ library support
  10055. ld_shlibs_CXX=no
  10056. ;;
  10057. *)
  10058. # FIXME: insert proper C++ library support
  10059. ld_shlibs_CXX=no
  10060. ;;
  10061. esac
  10062. ;;
  10063. freebsd[12]*)
  10064. # C++ shared libraries reported to be fairly broken before switch to ELF
  10065. ld_shlibs_CXX=no
  10066. ;;
  10067. freebsd-elf*)
  10068. archive_cmds_need_lc_CXX=no
  10069. ;;
  10070. freebsd* | dragonfly*)
  10071. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10072. # conventions
  10073. ld_shlibs_CXX=yes
  10074. ;;
  10075. gnu*)
  10076. ;;
  10077. hpux9*)
  10078. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10079. hardcode_libdir_separator_CXX=:
  10080. export_dynamic_flag_spec_CXX='${wl}-E'
  10081. hardcode_direct_CXX=yes
  10082. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10083. # but as the default
  10084. # location of the library.
  10085. case $cc_basename in
  10086. CC*)
  10087. # FIXME: insert proper C++ library support
  10088. ld_shlibs_CXX=no
  10089. ;;
  10090. aCC*)
  10091. 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'
  10092. # Commands to make compiler produce verbose output that lists
  10093. # what "hidden" libraries, object files and flags are used when
  10094. # linking a shared library.
  10095. #
  10096. # There doesn't appear to be a way to prevent this compiler from
  10097. # explicitly linking system object files so we need to strip them
  10098. # from the output so that they don't get included in the library
  10099. # dependencies.
  10100. 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'
  10101. ;;
  10102. *)
  10103. if test "$GXX" = yes; then
  10104. 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'
  10105. else
  10106. # FIXME: insert proper C++ library support
  10107. ld_shlibs_CXX=no
  10108. fi
  10109. ;;
  10110. esac
  10111. ;;
  10112. hpux10*|hpux11*)
  10113. if test $with_gnu_ld = no; then
  10114. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10115. hardcode_libdir_separator_CXX=:
  10116. case $host_cpu in
  10117. hppa*64*|ia64*) ;;
  10118. *)
  10119. export_dynamic_flag_spec_CXX='${wl}-E'
  10120. ;;
  10121. esac
  10122. fi
  10123. case $host_cpu in
  10124. hppa*64*|ia64*)
  10125. hardcode_direct_CXX=no
  10126. hardcode_shlibpath_var_CXX=no
  10127. ;;
  10128. *)
  10129. hardcode_direct_CXX=yes
  10130. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10131. # but as the default
  10132. # location of the library.
  10133. ;;
  10134. esac
  10135. case $cc_basename in
  10136. CC*)
  10137. # FIXME: insert proper C++ library support
  10138. ld_shlibs_CXX=no
  10139. ;;
  10140. aCC*)
  10141. case $host_cpu in
  10142. hppa*64*)
  10143. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10144. ;;
  10145. ia64*)
  10146. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10147. ;;
  10148. *)
  10149. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10150. ;;
  10151. esac
  10152. # Commands to make compiler produce verbose output that lists
  10153. # what "hidden" libraries, object files and flags are used when
  10154. # linking a shared library.
  10155. #
  10156. # There doesn't appear to be a way to prevent this compiler from
  10157. # explicitly linking system object files so we need to strip them
  10158. # from the output so that they don't get included in the library
  10159. # dependencies.
  10160. 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'
  10161. ;;
  10162. *)
  10163. if test "$GXX" = yes; then
  10164. if test $with_gnu_ld = no; then
  10165. case $host_cpu in
  10166. hppa*64*)
  10167. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10168. ;;
  10169. ia64*)
  10170. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10171. ;;
  10172. *)
  10173. 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'
  10174. ;;
  10175. esac
  10176. fi
  10177. else
  10178. # FIXME: insert proper C++ library support
  10179. ld_shlibs_CXX=no
  10180. fi
  10181. ;;
  10182. esac
  10183. ;;
  10184. interix[3-9]*)
  10185. hardcode_direct_CXX=no
  10186. hardcode_shlibpath_var_CXX=no
  10187. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10188. export_dynamic_flag_spec_CXX='${wl}-E'
  10189. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10190. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10191. # default) and relocated if they conflict, which is a slow very memory
  10192. # consuming and fragmenting process. To avoid this, we pick a random,
  10193. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10194. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10195. 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'
  10196. 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'
  10197. ;;
  10198. irix5* | irix6*)
  10199. case $cc_basename in
  10200. CC*)
  10201. # SGI C++
  10202. 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'
  10203. # Archives containing C++ object files must be created using
  10204. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10205. # necessary to make sure instantiated templates are included
  10206. # in the archive.
  10207. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10208. ;;
  10209. *)
  10210. if test "$GXX" = yes; then
  10211. if test "$with_gnu_ld" = no; then
  10212. 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'
  10213. else
  10214. 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'
  10215. fi
  10216. fi
  10217. link_all_deplibs_CXX=yes
  10218. ;;
  10219. esac
  10220. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10221. hardcode_libdir_separator_CXX=:
  10222. ;;
  10223. linux* | k*bsd*-gnu)
  10224. case $cc_basename in
  10225. KCC*)
  10226. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10227. # KCC will only create a shared library if the output file
  10228. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10229. # to its proper name (with version) after linking.
  10230. 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'
  10231. 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'
  10232. # Commands to make compiler produce verbose output that lists
  10233. # what "hidden" libraries, object files and flags are used when
  10234. # linking a shared library.
  10235. #
  10236. # There doesn't appear to be a way to prevent this compiler from
  10237. # explicitly linking system object files so we need to strip them
  10238. # from the output so that they don't get included in the library
  10239. # dependencies.
  10240. 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'
  10241. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10242. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10243. # Archives containing C++ object files must be created using
  10244. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10245. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10246. ;;
  10247. icpc*)
  10248. # Intel C++
  10249. with_gnu_ld=yes
  10250. # version 8.0 and above of icpc choke on multiply defined symbols
  10251. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10252. # earlier do not add the objects themselves.
  10253. case `$CC -V 2>&1` in
  10254. *"Version 7."*)
  10255. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10256. 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'
  10257. ;;
  10258. *) # Version 8.0 or newer
  10259. tmp_idyn=
  10260. case $host_cpu in
  10261. ia64*) tmp_idyn=' -i_dynamic';;
  10262. esac
  10263. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10264. 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'
  10265. ;;
  10266. esac
  10267. archive_cmds_need_lc_CXX=no
  10268. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10269. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10270. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10271. ;;
  10272. pgCC*)
  10273. # Portland Group C++ compiler
  10274. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10275. 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'
  10276. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10277. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10278. 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'
  10279. ;;
  10280. cxx*)
  10281. # Compaq C++
  10282. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10283. 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'
  10284. runpath_var=LD_RUN_PATH
  10285. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10286. hardcode_libdir_separator_CXX=:
  10287. # Commands to make compiler produce verbose output that lists
  10288. # what "hidden" libraries, object files and flags are used when
  10289. # linking a shared library.
  10290. #
  10291. # There doesn't appear to be a way to prevent this compiler from
  10292. # explicitly linking system object files so we need to strip them
  10293. # from the output so that they don't get included in the library
  10294. # dependencies.
  10295. 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'
  10296. ;;
  10297. *)
  10298. case `$CC -V 2>&1 | sed 5q` in
  10299. *Sun\ C*)
  10300. # Sun C++ 5.9
  10301. no_undefined_flag_CXX=' -zdefs'
  10302. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10303. 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'
  10304. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10305. 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'
  10306. # Not sure whether something based on
  10307. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10308. # would be better.
  10309. output_verbose_link_cmd='echo'
  10310. # Archives containing C++ object files must be created using
  10311. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10312. # necessary to make sure instantiated templates are included
  10313. # in the archive.
  10314. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10315. ;;
  10316. esac
  10317. ;;
  10318. esac
  10319. ;;
  10320. lynxos*)
  10321. # FIXME: insert proper C++ library support
  10322. ld_shlibs_CXX=no
  10323. ;;
  10324. m88k*)
  10325. # FIXME: insert proper C++ library support
  10326. ld_shlibs_CXX=no
  10327. ;;
  10328. mvs*)
  10329. case $cc_basename in
  10330. cxx*)
  10331. # FIXME: insert proper C++ library support
  10332. ld_shlibs_CXX=no
  10333. ;;
  10334. *)
  10335. # FIXME: insert proper C++ library support
  10336. ld_shlibs_CXX=no
  10337. ;;
  10338. esac
  10339. ;;
  10340. netbsd*)
  10341. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10342. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10343. wlarc=
  10344. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10345. hardcode_direct_CXX=yes
  10346. hardcode_shlibpath_var_CXX=no
  10347. fi
  10348. # Workaround some broken pre-1.5 toolchains
  10349. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10350. ;;
  10351. openbsd2*)
  10352. # C++ shared libraries are fairly broken
  10353. ld_shlibs_CXX=no
  10354. ;;
  10355. openbsd*)
  10356. if test -f /usr/libexec/ld.so; then
  10357. hardcode_direct_CXX=yes
  10358. hardcode_shlibpath_var_CXX=no
  10359. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10360. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10361. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10362. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10363. export_dynamic_flag_spec_CXX='${wl}-E'
  10364. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10365. fi
  10366. output_verbose_link_cmd='echo'
  10367. else
  10368. ld_shlibs_CXX=no
  10369. fi
  10370. ;;
  10371. osf3*)
  10372. case $cc_basename in
  10373. KCC*)
  10374. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10375. # KCC will only create a shared library if the output file
  10376. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10377. # to its proper name (with version) after linking.
  10378. 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'
  10379. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10380. hardcode_libdir_separator_CXX=:
  10381. # Archives containing C++ object files must be created using
  10382. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10383. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10384. ;;
  10385. RCC*)
  10386. # Rational C++ 2.4.1
  10387. # FIXME: insert proper C++ library support
  10388. ld_shlibs_CXX=no
  10389. ;;
  10390. cxx*)
  10391. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10392. 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'
  10393. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10394. hardcode_libdir_separator_CXX=:
  10395. # Commands to make compiler produce verbose output that lists
  10396. # what "hidden" libraries, object files and flags are used when
  10397. # linking a shared library.
  10398. #
  10399. # There doesn't appear to be a way to prevent this compiler from
  10400. # explicitly linking system object files so we need to strip them
  10401. # from the output so that they don't get included in the library
  10402. # dependencies.
  10403. 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'
  10404. ;;
  10405. *)
  10406. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10407. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10408. 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'
  10409. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10410. hardcode_libdir_separator_CXX=:
  10411. # Commands to make compiler produce verbose output that lists
  10412. # what "hidden" libraries, object files and flags are used when
  10413. # linking a shared library.
  10414. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10415. else
  10416. # FIXME: insert proper C++ library support
  10417. ld_shlibs_CXX=no
  10418. fi
  10419. ;;
  10420. esac
  10421. ;;
  10422. osf4* | osf5*)
  10423. case $cc_basename in
  10424. KCC*)
  10425. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10426. # KCC will only create a shared library if the output file
  10427. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10428. # to its proper name (with version) after linking.
  10429. 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'
  10430. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10431. hardcode_libdir_separator_CXX=:
  10432. # Archives containing C++ object files must be created using
  10433. # the KAI C++ compiler.
  10434. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10435. ;;
  10436. RCC*)
  10437. # Rational C++ 2.4.1
  10438. # FIXME: insert proper C++ library support
  10439. ld_shlibs_CXX=no
  10440. ;;
  10441. cxx*)
  10442. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10443. 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'
  10444. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10445. echo "-hidden">> $lib.exp~
  10446. $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~
  10447. $rm $lib.exp'
  10448. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10449. hardcode_libdir_separator_CXX=:
  10450. # Commands to make compiler produce verbose output that lists
  10451. # what "hidden" libraries, object files and flags are used when
  10452. # linking a shared library.
  10453. #
  10454. # There doesn't appear to be a way to prevent this compiler from
  10455. # explicitly linking system object files so we need to strip them
  10456. # from the output so that they don't get included in the library
  10457. # dependencies.
  10458. 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'
  10459. ;;
  10460. *)
  10461. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10462. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10463. 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'
  10464. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10465. hardcode_libdir_separator_CXX=:
  10466. # Commands to make compiler produce verbose output that lists
  10467. # what "hidden" libraries, object files and flags are used when
  10468. # linking a shared library.
  10469. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10470. else
  10471. # FIXME: insert proper C++ library support
  10472. ld_shlibs_CXX=no
  10473. fi
  10474. ;;
  10475. esac
  10476. ;;
  10477. psos*)
  10478. # FIXME: insert proper C++ library support
  10479. ld_shlibs_CXX=no
  10480. ;;
  10481. sunos4*)
  10482. case $cc_basename in
  10483. CC*)
  10484. # Sun C++ 4.x
  10485. # FIXME: insert proper C++ library support
  10486. ld_shlibs_CXX=no
  10487. ;;
  10488. lcc*)
  10489. # Lucid
  10490. # FIXME: insert proper C++ library support
  10491. ld_shlibs_CXX=no
  10492. ;;
  10493. *)
  10494. # FIXME: insert proper C++ library support
  10495. ld_shlibs_CXX=no
  10496. ;;
  10497. esac
  10498. ;;
  10499. solaris*)
  10500. case $cc_basename in
  10501. CC*)
  10502. # Sun C++ 4.2, 5.x and Centerline C++
  10503. archive_cmds_need_lc_CXX=yes
  10504. no_undefined_flag_CXX=' -zdefs'
  10505. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10506. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10507. $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'
  10508. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10509. hardcode_shlibpath_var_CXX=no
  10510. case $host_os in
  10511. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10512. *)
  10513. # The compiler driver will combine and reorder linker options,
  10514. # but understands `-z linker_flag'.
  10515. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10516. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10517. ;;
  10518. esac
  10519. link_all_deplibs_CXX=yes
  10520. output_verbose_link_cmd='echo'
  10521. # Archives containing C++ object files must be created using
  10522. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10523. # necessary to make sure instantiated templates are included
  10524. # in the archive.
  10525. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10526. ;;
  10527. gcx*)
  10528. # Green Hills C++ Compiler
  10529. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10530. # The C++ compiler must be used to create the archive.
  10531. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10532. ;;
  10533. *)
  10534. # GNU C++ compiler with Solaris linker
  10535. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10536. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10537. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10538. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10539. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10540. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10541. # Commands to make compiler produce verbose output that lists
  10542. # what "hidden" libraries, object files and flags are used when
  10543. # linking a shared library.
  10544. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10545. else
  10546. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10547. # platform.
  10548. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10549. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10550. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10551. # Commands to make compiler produce verbose output that lists
  10552. # what "hidden" libraries, object files and flags are used when
  10553. # linking a shared library.
  10554. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10555. fi
  10556. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10557. case $host_os in
  10558. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10559. *)
  10560. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10561. ;;
  10562. esac
  10563. fi
  10564. ;;
  10565. esac
  10566. ;;
  10567. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10568. no_undefined_flag_CXX='${wl}-z,text'
  10569. archive_cmds_need_lc_CXX=no
  10570. hardcode_shlibpath_var_CXX=no
  10571. runpath_var='LD_RUN_PATH'
  10572. case $cc_basename in
  10573. CC*)
  10574. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10575. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10576. ;;
  10577. *)
  10578. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10579. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10580. ;;
  10581. esac
  10582. ;;
  10583. sysv5* | sco3.2v5* | sco5v6*)
  10584. # Note: We can NOT use -z defs as we might desire, because we do not
  10585. # link with -lc, and that would cause any symbols used from libc to
  10586. # always be unresolved, which means just about no library would
  10587. # ever link correctly. If we're not using GNU ld we use -z text
  10588. # though, which does catch some bad symbols but isn't as heavy-handed
  10589. # as -z defs.
  10590. # For security reasons, it is highly recommended that you always
  10591. # use absolute paths for naming shared libraries, and exclude the
  10592. # DT_RUNPATH tag from executables and libraries. But doing so
  10593. # requires that you compile everything twice, which is a pain.
  10594. # So that behaviour is only enabled if SCOABSPATH is set to a
  10595. # non-empty value in the environment. Most likely only useful for
  10596. # creating official distributions of packages.
  10597. # This is a hack until libtool officially supports absolute path
  10598. # names for shared libraries.
  10599. no_undefined_flag_CXX='${wl}-z,text'
  10600. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10601. archive_cmds_need_lc_CXX=no
  10602. hardcode_shlibpath_var_CXX=no
  10603. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10604. hardcode_libdir_separator_CXX=':'
  10605. link_all_deplibs_CXX=yes
  10606. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10607. runpath_var='LD_RUN_PATH'
  10608. case $cc_basename in
  10609. CC*)
  10610. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10611. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10612. ;;
  10613. *)
  10614. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10615. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10616. ;;
  10617. esac
  10618. ;;
  10619. tandem*)
  10620. case $cc_basename in
  10621. NCC*)
  10622. # NonStop-UX NCC 3.20
  10623. # FIXME: insert proper C++ library support
  10624. ld_shlibs_CXX=no
  10625. ;;
  10626. *)
  10627. # FIXME: insert proper C++ library support
  10628. ld_shlibs_CXX=no
  10629. ;;
  10630. esac
  10631. ;;
  10632. vxworks*)
  10633. # FIXME: insert proper C++ library support
  10634. ld_shlibs_CXX=no
  10635. ;;
  10636. *)
  10637. # FIXME: insert proper C++ library support
  10638. ld_shlibs_CXX=no
  10639. ;;
  10640. esac
  10641. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10642. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10643. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10644. GCC_CXX="$GXX"
  10645. LD_CXX="$LD"
  10646. cat > conftest.$ac_ext <<EOF
  10647. class Foo
  10648. {
  10649. public:
  10650. Foo (void) { a = 0; }
  10651. private:
  10652. int a;
  10653. };
  10654. EOF
  10655. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10656. (eval $ac_compile) 2>&5
  10657. ac_status=$?
  10658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10659. (exit $ac_status); }; then
  10660. # Parse the compiler output and extract the necessary
  10661. # objects, libraries and library flags.
  10662. # Sentinel used to keep track of whether or not we are before
  10663. # the conftest object file.
  10664. pre_test_object_deps_done=no
  10665. # The `*' in the case matches for architectures that use `case' in
  10666. # $output_verbose_cmd can trigger glob expansion during the loop
  10667. # eval without this substitution.
  10668. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10669. for p in `eval $output_verbose_link_cmd`; do
  10670. case $p in
  10671. -L* | -R* | -l*)
  10672. # Some compilers place space between "-{L,R}" and the path.
  10673. # Remove the space.
  10674. if test $p = "-L" \
  10675. || test $p = "-R"; then
  10676. prev=$p
  10677. continue
  10678. else
  10679. prev=
  10680. fi
  10681. if test "$pre_test_object_deps_done" = no; then
  10682. case $p in
  10683. -L* | -R*)
  10684. # Internal compiler library paths should come after those
  10685. # provided the user. The postdeps already come after the
  10686. # user supplied libs so there is no need to process them.
  10687. if test -z "$compiler_lib_search_path_CXX"; then
  10688. compiler_lib_search_path_CXX="${prev}${p}"
  10689. else
  10690. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10691. fi
  10692. ;;
  10693. # The "-l" case would never come before the object being
  10694. # linked, so don't bother handling this case.
  10695. esac
  10696. else
  10697. if test -z "$postdeps_CXX"; then
  10698. postdeps_CXX="${prev}${p}"
  10699. else
  10700. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10701. fi
  10702. fi
  10703. ;;
  10704. *.$objext)
  10705. # This assumes that the test object file only shows up
  10706. # once in the compiler output.
  10707. if test "$p" = "conftest.$objext"; then
  10708. pre_test_object_deps_done=yes
  10709. continue
  10710. fi
  10711. if test "$pre_test_object_deps_done" = no; then
  10712. if test -z "$predep_objects_CXX"; then
  10713. predep_objects_CXX="$p"
  10714. else
  10715. predep_objects_CXX="$predep_objects_CXX $p"
  10716. fi
  10717. else
  10718. if test -z "$postdep_objects_CXX"; then
  10719. postdep_objects_CXX="$p"
  10720. else
  10721. postdep_objects_CXX="$postdep_objects_CXX $p"
  10722. fi
  10723. fi
  10724. ;;
  10725. *) ;; # Ignore the rest.
  10726. esac
  10727. done
  10728. # Clean up.
  10729. rm -f a.out a.exe
  10730. else
  10731. echo "libtool.m4: error: problem compiling CXX test program"
  10732. fi
  10733. $rm -f confest.$objext
  10734. # PORTME: override above test on systems where it is broken
  10735. case $host_os in
  10736. interix[3-9]*)
  10737. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10738. # hack all around it, let's just trust "g++" to DTRT.
  10739. predep_objects_CXX=
  10740. postdep_objects_CXX=
  10741. postdeps_CXX=
  10742. ;;
  10743. linux*)
  10744. case `$CC -V 2>&1 | sed 5q` in
  10745. *Sun\ C*)
  10746. # Sun C++ 5.9
  10747. #
  10748. # The more standards-conforming stlport4 library is
  10749. # incompatible with the Cstd library. Avoid specifying
  10750. # it if it's in CXXFLAGS. Ignore libCrun as
  10751. # -library=stlport4 depends on it.
  10752. case " $CXX $CXXFLAGS " in
  10753. *" -library=stlport4 "*)
  10754. solaris_use_stlport4=yes
  10755. ;;
  10756. esac
  10757. if test "$solaris_use_stlport4" != yes; then
  10758. postdeps_CXX='-library=Cstd -library=Crun'
  10759. fi
  10760. ;;
  10761. esac
  10762. ;;
  10763. solaris*)
  10764. case $cc_basename in
  10765. CC*)
  10766. # The more standards-conforming stlport4 library is
  10767. # incompatible with the Cstd library. Avoid specifying
  10768. # it if it's in CXXFLAGS. Ignore libCrun as
  10769. # -library=stlport4 depends on it.
  10770. case " $CXX $CXXFLAGS " in
  10771. *" -library=stlport4 "*)
  10772. solaris_use_stlport4=yes
  10773. ;;
  10774. esac
  10775. # Adding this requires a known-good setup of shared libraries for
  10776. # Sun compiler versions before 5.6, else PIC objects from an old
  10777. # archive will be linked into the output, leading to subtle bugs.
  10778. if test "$solaris_use_stlport4" != yes; then
  10779. postdeps_CXX='-library=Cstd -library=Crun'
  10780. fi
  10781. ;;
  10782. esac
  10783. ;;
  10784. esac
  10785. case " $postdeps_CXX " in
  10786. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10787. esac
  10788. lt_prog_compiler_wl_CXX=
  10789. lt_prog_compiler_pic_CXX=
  10790. lt_prog_compiler_static_CXX=
  10791. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10792. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  10793. # C++ specific cases for pic, static, wl, etc.
  10794. if test "$GXX" = yes; then
  10795. lt_prog_compiler_wl_CXX='-Wl,'
  10796. lt_prog_compiler_static_CXX='-static'
  10797. case $host_os in
  10798. aix*)
  10799. # All AIX code is PIC.
  10800. if test "$host_cpu" = ia64; then
  10801. # AIX 5 now supports IA64 processor
  10802. lt_prog_compiler_static_CXX='-Bstatic'
  10803. fi
  10804. ;;
  10805. amigaos*)
  10806. # FIXME: we need at least 68020 code to build shared libraries, but
  10807. # adding the `-m68020' flag to GCC prevents building anything better,
  10808. # like `-m68040'.
  10809. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10810. ;;
  10811. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10812. # PIC is the default for these OSes.
  10813. ;;
  10814. mingw* | cygwin* | os2* | pw32*)
  10815. # This hack is so that the source file can tell whether it is being
  10816. # built for inclusion in a dll (and should export symbols for example).
  10817. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10818. # (--disable-auto-import) libraries
  10819. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10820. ;;
  10821. darwin* | rhapsody*)
  10822. # PIC is the default on this platform
  10823. # Common symbols not allowed in MH_DYLIB files
  10824. lt_prog_compiler_pic_CXX='-fno-common'
  10825. ;;
  10826. *djgpp*)
  10827. # DJGPP does not support shared libraries at all
  10828. lt_prog_compiler_pic_CXX=
  10829. ;;
  10830. interix[3-9]*)
  10831. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10832. # Instead, we relocate shared libraries at runtime.
  10833. ;;
  10834. sysv4*MP*)
  10835. if test -d /usr/nec; then
  10836. lt_prog_compiler_pic_CXX=-Kconform_pic
  10837. fi
  10838. ;;
  10839. hpux*)
  10840. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10841. # not for PA HP-UX.
  10842. case $host_cpu in
  10843. hppa*64*|ia64*)
  10844. ;;
  10845. *)
  10846. lt_prog_compiler_pic_CXX='-fPIC'
  10847. ;;
  10848. esac
  10849. ;;
  10850. *)
  10851. lt_prog_compiler_pic_CXX='-fPIC'
  10852. ;;
  10853. esac
  10854. else
  10855. case $host_os in
  10856. aix4* | aix5*)
  10857. # All AIX code is PIC.
  10858. if test "$host_cpu" = ia64; then
  10859. # AIX 5 now supports IA64 processor
  10860. lt_prog_compiler_static_CXX='-Bstatic'
  10861. else
  10862. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10863. fi
  10864. ;;
  10865. chorus*)
  10866. case $cc_basename in
  10867. cxch68*)
  10868. # Green Hills C++ Compiler
  10869. # _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"
  10870. ;;
  10871. esac
  10872. ;;
  10873. darwin*)
  10874. # PIC is the default on this platform
  10875. # Common symbols not allowed in MH_DYLIB files
  10876. case $cc_basename in
  10877. xlc*)
  10878. lt_prog_compiler_pic_CXX='-qnocommon'
  10879. lt_prog_compiler_wl_CXX='-Wl,'
  10880. ;;
  10881. esac
  10882. ;;
  10883. dgux*)
  10884. case $cc_basename in
  10885. ec++*)
  10886. lt_prog_compiler_pic_CXX='-KPIC'
  10887. ;;
  10888. ghcx*)
  10889. # Green Hills C++ Compiler
  10890. lt_prog_compiler_pic_CXX='-pic'
  10891. ;;
  10892. *)
  10893. ;;
  10894. esac
  10895. ;;
  10896. freebsd* | dragonfly*)
  10897. # FreeBSD uses GNU C++
  10898. ;;
  10899. hpux9* | hpux10* | hpux11*)
  10900. case $cc_basename in
  10901. CC*)
  10902. lt_prog_compiler_wl_CXX='-Wl,'
  10903. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10904. if test "$host_cpu" != ia64; then
  10905. lt_prog_compiler_pic_CXX='+Z'
  10906. fi
  10907. ;;
  10908. aCC*)
  10909. lt_prog_compiler_wl_CXX='-Wl,'
  10910. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10911. case $host_cpu in
  10912. hppa*64*|ia64*)
  10913. # +Z the default
  10914. ;;
  10915. *)
  10916. lt_prog_compiler_pic_CXX='+Z'
  10917. ;;
  10918. esac
  10919. ;;
  10920. *)
  10921. ;;
  10922. esac
  10923. ;;
  10924. interix*)
  10925. # This is c89, which is MS Visual C++ (no shared libs)
  10926. # Anyone wants to do a port?
  10927. ;;
  10928. irix5* | irix6* | nonstopux*)
  10929. case $cc_basename in
  10930. CC*)
  10931. lt_prog_compiler_wl_CXX='-Wl,'
  10932. lt_prog_compiler_static_CXX='-non_shared'
  10933. # CC pic flag -KPIC is the default.
  10934. ;;
  10935. *)
  10936. ;;
  10937. esac
  10938. ;;
  10939. linux* | k*bsd*-gnu)
  10940. case $cc_basename in
  10941. KCC*)
  10942. # KAI C++ Compiler
  10943. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10944. lt_prog_compiler_pic_CXX='-fPIC'
  10945. ;;
  10946. icpc* | ecpc*)
  10947. # Intel C++
  10948. lt_prog_compiler_wl_CXX='-Wl,'
  10949. lt_prog_compiler_pic_CXX='-KPIC'
  10950. lt_prog_compiler_static_CXX='-static'
  10951. ;;
  10952. pgCC*)
  10953. # Portland Group C++ compiler.
  10954. lt_prog_compiler_wl_CXX='-Wl,'
  10955. lt_prog_compiler_pic_CXX='-fpic'
  10956. lt_prog_compiler_static_CXX='-Bstatic'
  10957. ;;
  10958. cxx*)
  10959. # Compaq C++
  10960. # Make sure the PIC flag is empty. It appears that all Alpha
  10961. # Linux and Compaq Tru64 Unix objects are PIC.
  10962. lt_prog_compiler_pic_CXX=
  10963. lt_prog_compiler_static_CXX='-non_shared'
  10964. ;;
  10965. *)
  10966. case `$CC -V 2>&1 | sed 5q` in
  10967. *Sun\ C*)
  10968. # Sun C++ 5.9
  10969. lt_prog_compiler_pic_CXX='-KPIC'
  10970. lt_prog_compiler_static_CXX='-Bstatic'
  10971. lt_prog_compiler_wl_CXX='-Qoption ld '
  10972. ;;
  10973. esac
  10974. ;;
  10975. esac
  10976. ;;
  10977. lynxos*)
  10978. ;;
  10979. m88k*)
  10980. ;;
  10981. mvs*)
  10982. case $cc_basename in
  10983. cxx*)
  10984. lt_prog_compiler_pic_CXX='-W c,exportall'
  10985. ;;
  10986. *)
  10987. ;;
  10988. esac
  10989. ;;
  10990. netbsd*)
  10991. ;;
  10992. osf3* | osf4* | osf5*)
  10993. case $cc_basename in
  10994. KCC*)
  10995. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10996. ;;
  10997. RCC*)
  10998. # Rational C++ 2.4.1
  10999. lt_prog_compiler_pic_CXX='-pic'
  11000. ;;
  11001. cxx*)
  11002. # Digital/Compaq C++
  11003. lt_prog_compiler_wl_CXX='-Wl,'
  11004. # Make sure the PIC flag is empty. It appears that all Alpha
  11005. # Linux and Compaq Tru64 Unix objects are PIC.
  11006. lt_prog_compiler_pic_CXX=
  11007. lt_prog_compiler_static_CXX='-non_shared'
  11008. ;;
  11009. *)
  11010. ;;
  11011. esac
  11012. ;;
  11013. psos*)
  11014. ;;
  11015. solaris*)
  11016. case $cc_basename in
  11017. CC*)
  11018. # Sun C++ 4.2, 5.x and Centerline C++
  11019. lt_prog_compiler_pic_CXX='-KPIC'
  11020. lt_prog_compiler_static_CXX='-Bstatic'
  11021. lt_prog_compiler_wl_CXX='-Qoption ld '
  11022. ;;
  11023. gcx*)
  11024. # Green Hills C++ Compiler
  11025. lt_prog_compiler_pic_CXX='-PIC'
  11026. ;;
  11027. *)
  11028. ;;
  11029. esac
  11030. ;;
  11031. sunos4*)
  11032. case $cc_basename in
  11033. CC*)
  11034. # Sun C++ 4.x
  11035. lt_prog_compiler_pic_CXX='-pic'
  11036. lt_prog_compiler_static_CXX='-Bstatic'
  11037. ;;
  11038. lcc*)
  11039. # Lucid
  11040. lt_prog_compiler_pic_CXX='-pic'
  11041. ;;
  11042. *)
  11043. ;;
  11044. esac
  11045. ;;
  11046. tandem*)
  11047. case $cc_basename in
  11048. NCC*)
  11049. # NonStop-UX NCC 3.20
  11050. lt_prog_compiler_pic_CXX='-KPIC'
  11051. ;;
  11052. *)
  11053. ;;
  11054. esac
  11055. ;;
  11056. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11057. case $cc_basename in
  11058. CC*)
  11059. lt_prog_compiler_wl_CXX='-Wl,'
  11060. lt_prog_compiler_pic_CXX='-KPIC'
  11061. lt_prog_compiler_static_CXX='-Bstatic'
  11062. ;;
  11063. esac
  11064. ;;
  11065. vxworks*)
  11066. ;;
  11067. *)
  11068. lt_prog_compiler_can_build_shared_CXX=no
  11069. ;;
  11070. esac
  11071. fi
  11072. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11073. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11074. #
  11075. # Check to make sure the PIC flag actually works.
  11076. #
  11077. if test -n "$lt_prog_compiler_pic_CXX"; then
  11078. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11079. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11080. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11081. echo $ECHO_N "(cached) $ECHO_C" >&6
  11082. else
  11083. lt_prog_compiler_pic_works_CXX=no
  11084. ac_outfile=conftest.$ac_objext
  11085. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11086. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11087. # Insert the option either (1) after the last *FLAGS variable, or
  11088. # (2) before a word containing "conftest.", or (3) at the end.
  11089. # Note that $ac_compile itself does not contain backslashes and begins
  11090. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11091. # The option is referenced via a variable to avoid confusing sed.
  11092. lt_compile=`echo "$ac_compile" | $SED \
  11093. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11094. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11095. -e 's:$: $lt_compiler_flag:'`
  11096. (eval echo "\"\$as_me:12367: $lt_compile\"" >&5)
  11097. (eval "$lt_compile" 2>conftest.err)
  11098. ac_status=$?
  11099. cat conftest.err >&5
  11100. echo "$as_me:12371: \$? = $ac_status" >&5
  11101. if (exit $ac_status) && test -s "$ac_outfile"; then
  11102. # The compiler can only warn and ignore the option if not recognized
  11103. # So say no if there are warnings other than the usual output.
  11104. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11105. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11106. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11107. lt_prog_compiler_pic_works_CXX=yes
  11108. fi
  11109. fi
  11110. $rm conftest*
  11111. fi
  11112. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11113. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  11114. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11115. case $lt_prog_compiler_pic_CXX in
  11116. "" | " "*) ;;
  11117. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11118. esac
  11119. else
  11120. lt_prog_compiler_pic_CXX=
  11121. lt_prog_compiler_can_build_shared_CXX=no
  11122. fi
  11123. fi
  11124. case $host_os in
  11125. # For platforms which do not support PIC, -DPIC is meaningless:
  11126. *djgpp*)
  11127. lt_prog_compiler_pic_CXX=
  11128. ;;
  11129. *)
  11130. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11131. ;;
  11132. esac
  11133. #
  11134. # Check to make sure the static flag actually works.
  11135. #
  11136. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11137. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11138. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11139. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11140. echo $ECHO_N "(cached) $ECHO_C" >&6
  11141. else
  11142. lt_prog_compiler_static_works_CXX=no
  11143. save_LDFLAGS="$LDFLAGS"
  11144. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11145. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11146. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11147. # The linker can only warn and ignore the option if not recognized
  11148. # So say no if there are warnings
  11149. if test -s conftest.err; then
  11150. # Append any errors to the config.log.
  11151. cat conftest.err 1>&5
  11152. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11153. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11154. if diff conftest.exp conftest.er2 >/dev/null; then
  11155. lt_prog_compiler_static_works_CXX=yes
  11156. fi
  11157. else
  11158. lt_prog_compiler_static_works_CXX=yes
  11159. fi
  11160. fi
  11161. $rm conftest*
  11162. LDFLAGS="$save_LDFLAGS"
  11163. fi
  11164. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11165. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  11166. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11167. :
  11168. else
  11169. lt_prog_compiler_static_CXX=
  11170. fi
  11171. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11172. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11173. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11174. echo $ECHO_N "(cached) $ECHO_C" >&6
  11175. else
  11176. lt_cv_prog_compiler_c_o_CXX=no
  11177. $rm -r conftest 2>/dev/null
  11178. mkdir conftest
  11179. cd conftest
  11180. mkdir out
  11181. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11182. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11183. # Insert the option either (1) after the last *FLAGS variable, or
  11184. # (2) before a word containing "conftest.", or (3) at the end.
  11185. # Note that $ac_compile itself does not contain backslashes and begins
  11186. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11187. lt_compile=`echo "$ac_compile" | $SED \
  11188. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11189. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11190. -e 's:$: $lt_compiler_flag:'`
  11191. (eval echo "\"\$as_me:12471: $lt_compile\"" >&5)
  11192. (eval "$lt_compile" 2>out/conftest.err)
  11193. ac_status=$?
  11194. cat out/conftest.err >&5
  11195. echo "$as_me:12475: \$? = $ac_status" >&5
  11196. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11197. then
  11198. # The compiler can only warn and ignore the option if not recognized
  11199. # So say no if there are warnings
  11200. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11201. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11202. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11203. lt_cv_prog_compiler_c_o_CXX=yes
  11204. fi
  11205. fi
  11206. chmod u+w . 2>&5
  11207. $rm conftest*
  11208. # SGI C++ compiler will create directory out/ii_files/ for
  11209. # template instantiation
  11210. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11211. $rm out/* && rmdir out
  11212. cd ..
  11213. rmdir conftest
  11214. $rm conftest*
  11215. fi
  11216. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11217. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11218. hard_links="nottested"
  11219. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11220. # do not overwrite the value of need_locks provided by the user
  11221. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11222. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11223. hard_links=yes
  11224. $rm conftest*
  11225. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11226. touch conftest.a
  11227. ln conftest.a conftest.b 2>&5 || hard_links=no
  11228. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11229. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11230. echo "${ECHO_T}$hard_links" >&6; }
  11231. if test "$hard_links" = no; then
  11232. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11233. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11234. need_locks=warn
  11235. fi
  11236. else
  11237. need_locks=no
  11238. fi
  11239. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11240. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11241. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11242. case $host_os in
  11243. aix4* | aix5*)
  11244. # If we're using GNU nm, then we don't want the "-C" option.
  11245. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11246. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11247. 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'
  11248. else
  11249. 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'
  11250. fi
  11251. ;;
  11252. pw32*)
  11253. export_symbols_cmds_CXX="$ltdll_cmds"
  11254. ;;
  11255. cygwin* | mingw*)
  11256. 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'
  11257. ;;
  11258. *)
  11259. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11260. ;;
  11261. esac
  11262. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11263. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11264. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11265. #
  11266. # Do we need to explicitly link libc?
  11267. #
  11268. case "x$archive_cmds_need_lc_CXX" in
  11269. x|xyes)
  11270. # Assume -lc should be added
  11271. archive_cmds_need_lc_CXX=yes
  11272. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11273. case $archive_cmds_CXX in
  11274. *'~'*)
  11275. # FIXME: we may have to deal with multi-command sequences.
  11276. ;;
  11277. '$CC '*)
  11278. # Test whether the compiler implicitly links with -lc since on some
  11279. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11280. # to ld, don't add -lc before -lgcc.
  11281. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11282. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11283. $rm conftest*
  11284. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11285. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11286. (eval $ac_compile) 2>&5
  11287. ac_status=$?
  11288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11289. (exit $ac_status); } 2>conftest.err; then
  11290. soname=conftest
  11291. lib=conftest
  11292. libobjs=conftest.$ac_objext
  11293. deplibs=
  11294. wl=$lt_prog_compiler_wl_CXX
  11295. pic_flag=$lt_prog_compiler_pic_CXX
  11296. compiler_flags=-v
  11297. linker_flags=-v
  11298. verstring=
  11299. output_objdir=.
  11300. libname=conftest
  11301. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11302. allow_undefined_flag_CXX=
  11303. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11304. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11305. ac_status=$?
  11306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11307. (exit $ac_status); }
  11308. then
  11309. archive_cmds_need_lc_CXX=no
  11310. else
  11311. archive_cmds_need_lc_CXX=yes
  11312. fi
  11313. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11314. else
  11315. cat conftest.err 1>&5
  11316. fi
  11317. $rm conftest*
  11318. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11319. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11320. ;;
  11321. esac
  11322. fi
  11323. ;;
  11324. esac
  11325. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11326. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11327. library_names_spec=
  11328. libname_spec='lib$name'
  11329. soname_spec=
  11330. shrext_cmds=".so"
  11331. postinstall_cmds=
  11332. postuninstall_cmds=
  11333. finish_cmds=
  11334. finish_eval=
  11335. shlibpath_var=
  11336. shlibpath_overrides_runpath=unknown
  11337. version_type=none
  11338. dynamic_linker="$host_os ld.so"
  11339. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11340. need_lib_prefix=unknown
  11341. hardcode_into_libs=no
  11342. # when you set need_version to no, make sure it does not cause -set_version
  11343. # flags to be left without arguments
  11344. need_version=unknown
  11345. case $host_os in
  11346. aix3*)
  11347. version_type=linux
  11348. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11349. shlibpath_var=LIBPATH
  11350. # AIX 3 has no versioning support, so we append a major version to the name.
  11351. soname_spec='${libname}${release}${shared_ext}$major'
  11352. ;;
  11353. aix4* | aix5*)
  11354. version_type=linux
  11355. need_lib_prefix=no
  11356. need_version=no
  11357. hardcode_into_libs=yes
  11358. if test "$host_cpu" = ia64; then
  11359. # AIX 5 supports IA64
  11360. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11361. shlibpath_var=LD_LIBRARY_PATH
  11362. else
  11363. # With GCC up to 2.95.x, collect2 would create an import file
  11364. # for dependence libraries. The import file would start with
  11365. # the line `#! .'. This would cause the generated library to
  11366. # depend on `.', always an invalid library. This was fixed in
  11367. # development snapshots of GCC prior to 3.0.
  11368. case $host_os in
  11369. aix4 | aix4.[01] | aix4.[01].*)
  11370. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11371. echo ' yes '
  11372. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11373. :
  11374. else
  11375. can_build_shared=no
  11376. fi
  11377. ;;
  11378. esac
  11379. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11380. # soname into executable. Probably we can add versioning support to
  11381. # collect2, so additional links can be useful in future.
  11382. if test "$aix_use_runtimelinking" = yes; then
  11383. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11384. # instead of lib<name>.a to let people know that these are not
  11385. # typical AIX shared libraries.
  11386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11387. else
  11388. # We preserve .a as extension for shared libraries through AIX4.2
  11389. # and later when we are not doing run time linking.
  11390. library_names_spec='${libname}${release}.a $libname.a'
  11391. soname_spec='${libname}${release}${shared_ext}$major'
  11392. fi
  11393. shlibpath_var=LIBPATH
  11394. fi
  11395. ;;
  11396. amigaos*)
  11397. library_names_spec='$libname.ixlibrary $libname.a'
  11398. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11399. 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'
  11400. ;;
  11401. beos*)
  11402. library_names_spec='${libname}${shared_ext}'
  11403. dynamic_linker="$host_os ld.so"
  11404. shlibpath_var=LIBRARY_PATH
  11405. ;;
  11406. bsdi[45]*)
  11407. version_type=linux
  11408. need_version=no
  11409. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11410. soname_spec='${libname}${release}${shared_ext}$major'
  11411. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11412. shlibpath_var=LD_LIBRARY_PATH
  11413. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11414. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11415. # the default ld.so.conf also contains /usr/contrib/lib and
  11416. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11417. # libtool to hard-code these into programs
  11418. ;;
  11419. cygwin* | mingw* | pw32*)
  11420. version_type=windows
  11421. shrext_cmds=".dll"
  11422. need_version=no
  11423. need_lib_prefix=no
  11424. case $GCC,$host_os in
  11425. yes,cygwin* | yes,mingw* | yes,pw32*)
  11426. library_names_spec='$libname.dll.a'
  11427. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11428. postinstall_cmds='base_file=`basename \${file}`~
  11429. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11430. dldir=$destdir/`dirname \$dlpath`~
  11431. test -d \$dldir || mkdir -p \$dldir~
  11432. $install_prog $dir/$dlname \$dldir/$dlname~
  11433. chmod a+x \$dldir/$dlname'
  11434. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11435. dlpath=$dir/\$dldll~
  11436. $rm \$dlpath'
  11437. shlibpath_overrides_runpath=yes
  11438. case $host_os in
  11439. cygwin*)
  11440. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11441. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11442. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11443. ;;
  11444. mingw*)
  11445. # MinGW DLLs use traditional 'lib' prefix
  11446. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11447. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11448. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11449. # It is most probably a Windows format PATH printed by
  11450. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11451. # path with ; separators, and with drive letters. We can handle the
  11452. # drive letters (cygwin fileutils understands them), so leave them,
  11453. # especially as we might pass files found there to a mingw objdump,
  11454. # which wouldn't understand a cygwinified path. Ahh.
  11455. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11456. else
  11457. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11458. fi
  11459. ;;
  11460. pw32*)
  11461. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11462. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11463. ;;
  11464. esac
  11465. ;;
  11466. *)
  11467. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11468. ;;
  11469. esac
  11470. dynamic_linker='Win32 ld.exe'
  11471. # FIXME: first we should search . and the directory the executable is in
  11472. shlibpath_var=PATH
  11473. ;;
  11474. darwin* | rhapsody*)
  11475. dynamic_linker="$host_os dyld"
  11476. version_type=darwin
  11477. need_lib_prefix=no
  11478. need_version=no
  11479. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11480. soname_spec='${libname}${release}${major}$shared_ext'
  11481. shlibpath_overrides_runpath=yes
  11482. shlibpath_var=DYLD_LIBRARY_PATH
  11483. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11484. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11485. ;;
  11486. dgux*)
  11487. version_type=linux
  11488. need_lib_prefix=no
  11489. need_version=no
  11490. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11491. soname_spec='${libname}${release}${shared_ext}$major'
  11492. shlibpath_var=LD_LIBRARY_PATH
  11493. ;;
  11494. freebsd1*)
  11495. dynamic_linker=no
  11496. ;;
  11497. freebsd* | dragonfly*)
  11498. # DragonFly does not have aout. When/if they implement a new
  11499. # versioning mechanism, adjust this.
  11500. if test -x /usr/bin/objformat; then
  11501. objformat=`/usr/bin/objformat`
  11502. else
  11503. case $host_os in
  11504. freebsd[123]*) objformat=aout ;;
  11505. *) objformat=elf ;;
  11506. esac
  11507. fi
  11508. version_type=freebsd-$objformat
  11509. case $version_type in
  11510. freebsd-elf*)
  11511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11512. need_version=no
  11513. need_lib_prefix=no
  11514. ;;
  11515. freebsd-*)
  11516. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11517. need_version=yes
  11518. ;;
  11519. esac
  11520. shlibpath_var=LD_LIBRARY_PATH
  11521. case $host_os in
  11522. freebsd2*)
  11523. shlibpath_overrides_runpath=yes
  11524. ;;
  11525. freebsd3.[01]* | freebsdelf3.[01]*)
  11526. shlibpath_overrides_runpath=yes
  11527. hardcode_into_libs=yes
  11528. ;;
  11529. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11530. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11531. shlibpath_overrides_runpath=no
  11532. hardcode_into_libs=yes
  11533. ;;
  11534. *) # from 4.6 on, and DragonFly
  11535. shlibpath_overrides_runpath=yes
  11536. hardcode_into_libs=yes
  11537. ;;
  11538. esac
  11539. ;;
  11540. gnu*)
  11541. version_type=linux
  11542. need_lib_prefix=no
  11543. need_version=no
  11544. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11545. soname_spec='${libname}${release}${shared_ext}$major'
  11546. shlibpath_var=LD_LIBRARY_PATH
  11547. hardcode_into_libs=yes
  11548. ;;
  11549. hpux9* | hpux10* | hpux11*)
  11550. # Give a soname corresponding to the major version so that dld.sl refuses to
  11551. # link against other versions.
  11552. version_type=sunos
  11553. need_lib_prefix=no
  11554. need_version=no
  11555. case $host_cpu in
  11556. ia64*)
  11557. shrext_cmds='.so'
  11558. hardcode_into_libs=yes
  11559. dynamic_linker="$host_os dld.so"
  11560. shlibpath_var=LD_LIBRARY_PATH
  11561. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11563. soname_spec='${libname}${release}${shared_ext}$major'
  11564. if test "X$HPUX_IA64_MODE" = X32; then
  11565. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11566. else
  11567. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11568. fi
  11569. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11570. ;;
  11571. hppa*64*)
  11572. shrext_cmds='.sl'
  11573. hardcode_into_libs=yes
  11574. dynamic_linker="$host_os dld.sl"
  11575. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11576. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11578. soname_spec='${libname}${release}${shared_ext}$major'
  11579. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11580. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11581. ;;
  11582. *)
  11583. shrext_cmds='.sl'
  11584. dynamic_linker="$host_os dld.sl"
  11585. shlibpath_var=SHLIB_PATH
  11586. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11588. soname_spec='${libname}${release}${shared_ext}$major'
  11589. ;;
  11590. esac
  11591. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11592. postinstall_cmds='chmod 555 $lib'
  11593. ;;
  11594. interix[3-9]*)
  11595. version_type=linux
  11596. need_lib_prefix=no
  11597. need_version=no
  11598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11599. soname_spec='${libname}${release}${shared_ext}$major'
  11600. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11601. shlibpath_var=LD_LIBRARY_PATH
  11602. shlibpath_overrides_runpath=no
  11603. hardcode_into_libs=yes
  11604. ;;
  11605. irix5* | irix6* | nonstopux*)
  11606. case $host_os in
  11607. nonstopux*) version_type=nonstopux ;;
  11608. *)
  11609. if test "$lt_cv_prog_gnu_ld" = yes; then
  11610. version_type=linux
  11611. else
  11612. version_type=irix
  11613. fi ;;
  11614. esac
  11615. need_lib_prefix=no
  11616. need_version=no
  11617. soname_spec='${libname}${release}${shared_ext}$major'
  11618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11619. case $host_os in
  11620. irix5* | nonstopux*)
  11621. libsuff= shlibsuff=
  11622. ;;
  11623. *)
  11624. case $LD in # libtool.m4 will add one of these switches to LD
  11625. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11626. libsuff= shlibsuff= libmagic=32-bit;;
  11627. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11628. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11629. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11630. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11631. *) libsuff= shlibsuff= libmagic=never-match;;
  11632. esac
  11633. ;;
  11634. esac
  11635. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11636. shlibpath_overrides_runpath=no
  11637. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11638. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11639. hardcode_into_libs=yes
  11640. ;;
  11641. # No shared lib support for Linux oldld, aout, or coff.
  11642. linux*oldld* | linux*aout* | linux*coff*)
  11643. dynamic_linker=no
  11644. ;;
  11645. # This must be Linux ELF.
  11646. linux* | k*bsd*-gnu)
  11647. version_type=linux
  11648. need_lib_prefix=no
  11649. need_version=no
  11650. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11651. soname_spec='${libname}${release}${shared_ext}$major'
  11652. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11653. shlibpath_var=LD_LIBRARY_PATH
  11654. shlibpath_overrides_runpath=no
  11655. # This implies no fast_install, which is unacceptable.
  11656. # Some rework will be needed to allow for fast_install
  11657. # before this can be enabled.
  11658. hardcode_into_libs=yes
  11659. # Append ld.so.conf contents to the search path
  11660. if test -f /etc/ld.so.conf; then
  11661. 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' ' '`
  11662. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11663. fi
  11664. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11665. # powerpc, because MkLinux only supported shared libraries with the
  11666. # GNU dynamic linker. Since this was broken with cross compilers,
  11667. # most powerpc-linux boxes support dynamic linking these days and
  11668. # people can always --disable-shared, the test was removed, and we
  11669. # assume the GNU/Linux dynamic linker is in use.
  11670. dynamic_linker='GNU/Linux ld.so'
  11671. ;;
  11672. netbsd*)
  11673. version_type=sunos
  11674. need_lib_prefix=no
  11675. need_version=no
  11676. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11678. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11679. dynamic_linker='NetBSD (a.out) ld.so'
  11680. else
  11681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11682. soname_spec='${libname}${release}${shared_ext}$major'
  11683. dynamic_linker='NetBSD ld.elf_so'
  11684. fi
  11685. shlibpath_var=LD_LIBRARY_PATH
  11686. shlibpath_overrides_runpath=yes
  11687. hardcode_into_libs=yes
  11688. ;;
  11689. newsos6)
  11690. version_type=linux
  11691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11692. shlibpath_var=LD_LIBRARY_PATH
  11693. shlibpath_overrides_runpath=yes
  11694. ;;
  11695. nto-qnx*)
  11696. version_type=linux
  11697. need_lib_prefix=no
  11698. need_version=no
  11699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11700. soname_spec='${libname}${release}${shared_ext}$major'
  11701. shlibpath_var=LD_LIBRARY_PATH
  11702. shlibpath_overrides_runpath=yes
  11703. ;;
  11704. openbsd*)
  11705. version_type=sunos
  11706. sys_lib_dlsearch_path_spec="/usr/lib"
  11707. need_lib_prefix=no
  11708. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11709. case $host_os in
  11710. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11711. *) need_version=no ;;
  11712. esac
  11713. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11714. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11715. shlibpath_var=LD_LIBRARY_PATH
  11716. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11717. case $host_os in
  11718. openbsd2.[89] | openbsd2.[89].*)
  11719. shlibpath_overrides_runpath=no
  11720. ;;
  11721. *)
  11722. shlibpath_overrides_runpath=yes
  11723. ;;
  11724. esac
  11725. else
  11726. shlibpath_overrides_runpath=yes
  11727. fi
  11728. ;;
  11729. os2*)
  11730. libname_spec='$name'
  11731. shrext_cmds=".dll"
  11732. need_lib_prefix=no
  11733. library_names_spec='$libname${shared_ext} $libname.a'
  11734. dynamic_linker='OS/2 ld.exe'
  11735. shlibpath_var=LIBPATH
  11736. ;;
  11737. osf3* | osf4* | osf5*)
  11738. version_type=osf
  11739. need_lib_prefix=no
  11740. need_version=no
  11741. soname_spec='${libname}${release}${shared_ext}$major'
  11742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11743. shlibpath_var=LD_LIBRARY_PATH
  11744. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11745. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11746. ;;
  11747. rdos*)
  11748. dynamic_linker=no
  11749. ;;
  11750. solaris*)
  11751. version_type=linux
  11752. need_lib_prefix=no
  11753. need_version=no
  11754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11755. soname_spec='${libname}${release}${shared_ext}$major'
  11756. shlibpath_var=LD_LIBRARY_PATH
  11757. shlibpath_overrides_runpath=yes
  11758. hardcode_into_libs=yes
  11759. # ldd complains unless libraries are executable
  11760. postinstall_cmds='chmod +x $lib'
  11761. ;;
  11762. sunos4*)
  11763. version_type=sunos
  11764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11765. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11766. shlibpath_var=LD_LIBRARY_PATH
  11767. shlibpath_overrides_runpath=yes
  11768. if test "$with_gnu_ld" = yes; then
  11769. need_lib_prefix=no
  11770. fi
  11771. need_version=yes
  11772. ;;
  11773. sysv4 | sysv4.3*)
  11774. version_type=linux
  11775. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11776. soname_spec='${libname}${release}${shared_ext}$major'
  11777. shlibpath_var=LD_LIBRARY_PATH
  11778. case $host_vendor in
  11779. sni)
  11780. shlibpath_overrides_runpath=no
  11781. need_lib_prefix=no
  11782. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11783. runpath_var=LD_RUN_PATH
  11784. ;;
  11785. siemens)
  11786. need_lib_prefix=no
  11787. ;;
  11788. motorola)
  11789. need_lib_prefix=no
  11790. need_version=no
  11791. shlibpath_overrides_runpath=no
  11792. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11793. ;;
  11794. esac
  11795. ;;
  11796. sysv4*MP*)
  11797. if test -d /usr/nec ;then
  11798. version_type=linux
  11799. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11800. soname_spec='$libname${shared_ext}.$major'
  11801. shlibpath_var=LD_LIBRARY_PATH
  11802. fi
  11803. ;;
  11804. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11805. version_type=freebsd-elf
  11806. need_lib_prefix=no
  11807. need_version=no
  11808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11809. soname_spec='${libname}${release}${shared_ext}$major'
  11810. shlibpath_var=LD_LIBRARY_PATH
  11811. hardcode_into_libs=yes
  11812. if test "$with_gnu_ld" = yes; then
  11813. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11814. shlibpath_overrides_runpath=no
  11815. else
  11816. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11817. shlibpath_overrides_runpath=yes
  11818. case $host_os in
  11819. sco3.2v5*)
  11820. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11821. ;;
  11822. esac
  11823. fi
  11824. sys_lib_dlsearch_path_spec='/usr/lib'
  11825. ;;
  11826. uts4*)
  11827. version_type=linux
  11828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11829. soname_spec='${libname}${release}${shared_ext}$major'
  11830. shlibpath_var=LD_LIBRARY_PATH
  11831. ;;
  11832. *)
  11833. dynamic_linker=no
  11834. ;;
  11835. esac
  11836. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11837. echo "${ECHO_T}$dynamic_linker" >&6; }
  11838. test "$dynamic_linker" = no && can_build_shared=no
  11839. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11840. if test "$GCC" = yes; then
  11841. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11842. fi
  11843. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11844. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  11845. hardcode_action_CXX=
  11846. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11847. test -n "$runpath_var_CXX" || \
  11848. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11849. # We can hardcode non-existant directories.
  11850. if test "$hardcode_direct_CXX" != no &&
  11851. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11852. # have to relink, otherwise we might link with an installed library
  11853. # when we should be linking with a yet-to-be-installed one
  11854. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11855. test "$hardcode_minus_L_CXX" != no; then
  11856. # Linking always hardcodes the temporary library directory.
  11857. hardcode_action_CXX=relink
  11858. else
  11859. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11860. hardcode_action_CXX=immediate
  11861. fi
  11862. else
  11863. # We cannot hardcode anything, or else we can only hardcode existing
  11864. # directories.
  11865. hardcode_action_CXX=unsupported
  11866. fi
  11867. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11868. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  11869. if test "$hardcode_action_CXX" = relink; then
  11870. # Fast installation is not supported
  11871. enable_fast_install=no
  11872. elif test "$shlibpath_overrides_runpath" = yes ||
  11873. test "$enable_shared" = no; then
  11874. # Fast installation is not necessary
  11875. enable_fast_install=needless
  11876. fi
  11877. # The else clause should only fire when bootstrapping the
  11878. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11879. # with your package, and you will get complaints that there are
  11880. # no rules to generate ltmain.sh.
  11881. if test -f "$ltmain"; then
  11882. # See if we are running on zsh, and set the options which allow our commands through
  11883. # without removal of \ escapes.
  11884. if test -n "${ZSH_VERSION+set}" ; then
  11885. setopt NO_GLOB_SUBST
  11886. fi
  11887. # Now quote all the things that may contain metacharacters while being
  11888. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11889. # variables and quote the copies for generation of the libtool script.
  11890. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11891. SED SHELL STRIP \
  11892. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11893. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11894. deplibs_check_method reload_flag reload_cmds need_locks \
  11895. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11896. lt_cv_sys_global_symbol_to_c_name_address \
  11897. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11898. old_postinstall_cmds old_postuninstall_cmds \
  11899. compiler_CXX \
  11900. CC_CXX \
  11901. LD_CXX \
  11902. lt_prog_compiler_wl_CXX \
  11903. lt_prog_compiler_pic_CXX \
  11904. lt_prog_compiler_static_CXX \
  11905. lt_prog_compiler_no_builtin_flag_CXX \
  11906. export_dynamic_flag_spec_CXX \
  11907. thread_safe_flag_spec_CXX \
  11908. whole_archive_flag_spec_CXX \
  11909. enable_shared_with_static_runtimes_CXX \
  11910. old_archive_cmds_CXX \
  11911. old_archive_from_new_cmds_CXX \
  11912. predep_objects_CXX \
  11913. postdep_objects_CXX \
  11914. predeps_CXX \
  11915. postdeps_CXX \
  11916. compiler_lib_search_path_CXX \
  11917. archive_cmds_CXX \
  11918. archive_expsym_cmds_CXX \
  11919. postinstall_cmds_CXX \
  11920. postuninstall_cmds_CXX \
  11921. old_archive_from_expsyms_cmds_CXX \
  11922. allow_undefined_flag_CXX \
  11923. no_undefined_flag_CXX \
  11924. export_symbols_cmds_CXX \
  11925. hardcode_libdir_flag_spec_CXX \
  11926. hardcode_libdir_flag_spec_ld_CXX \
  11927. hardcode_libdir_separator_CXX \
  11928. hardcode_automatic_CXX \
  11929. module_cmds_CXX \
  11930. module_expsym_cmds_CXX \
  11931. lt_cv_prog_compiler_c_o_CXX \
  11932. fix_srcfile_path_CXX \
  11933. exclude_expsyms_CXX \
  11934. include_expsyms_CXX; do
  11935. case $var in
  11936. old_archive_cmds_CXX | \
  11937. old_archive_from_new_cmds_CXX | \
  11938. archive_cmds_CXX | \
  11939. archive_expsym_cmds_CXX | \
  11940. module_cmds_CXX | \
  11941. module_expsym_cmds_CXX | \
  11942. old_archive_from_expsyms_cmds_CXX | \
  11943. export_symbols_cmds_CXX | \
  11944. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11945. postinstall_cmds | postuninstall_cmds | \
  11946. old_postinstall_cmds | old_postuninstall_cmds | \
  11947. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11948. # Double-quote double-evaled strings.
  11949. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11950. ;;
  11951. *)
  11952. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11953. ;;
  11954. esac
  11955. done
  11956. case $lt_echo in
  11957. *'\$0 --fallback-echo"')
  11958. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11959. ;;
  11960. esac
  11961. cfgfile="$ofile"
  11962. cat <<__EOF__ >> "$cfgfile"
  11963. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11964. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11965. # Shell to use when invoking shell scripts.
  11966. SHELL=$lt_SHELL
  11967. # Whether or not to build shared libraries.
  11968. build_libtool_libs=$enable_shared
  11969. # Whether or not to build static libraries.
  11970. build_old_libs=$enable_static
  11971. # Whether or not to add -lc for building shared libraries.
  11972. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11973. # Whether or not to disallow shared libs when runtime libs are static
  11974. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11975. # Whether or not to optimize for fast installation.
  11976. fast_install=$enable_fast_install
  11977. # The host system.
  11978. host_alias=$host_alias
  11979. host=$host
  11980. host_os=$host_os
  11981. # The build system.
  11982. build_alias=$build_alias
  11983. build=$build
  11984. build_os=$build_os
  11985. # An echo program that does not interpret backslashes.
  11986. echo=$lt_echo
  11987. # The archiver.
  11988. AR=$lt_AR
  11989. AR_FLAGS=$lt_AR_FLAGS
  11990. # A C compiler.
  11991. LTCC=$lt_LTCC
  11992. # LTCC compiler flags.
  11993. LTCFLAGS=$lt_LTCFLAGS
  11994. # A language-specific compiler.
  11995. CC=$lt_compiler_CXX
  11996. # Is the compiler the GNU C compiler?
  11997. with_gcc=$GCC_CXX
  11998. # An ERE matcher.
  11999. EGREP=$lt_EGREP
  12000. # The linker used to build libraries.
  12001. LD=$lt_LD_CXX
  12002. # Whether we need hard or soft links.
  12003. LN_S=$lt_LN_S
  12004. # A BSD-compatible nm program.
  12005. NM=$lt_NM
  12006. # A symbol stripping program
  12007. STRIP=$lt_STRIP
  12008. # Used to examine libraries when file_magic_cmd begins "file"
  12009. MAGIC_CMD=$MAGIC_CMD
  12010. # Used on cygwin: DLL creation program.
  12011. DLLTOOL="$DLLTOOL"
  12012. # Used on cygwin: object dumper.
  12013. OBJDUMP="$OBJDUMP"
  12014. # Used on cygwin: assembler.
  12015. AS="$AS"
  12016. # The name of the directory that contains temporary libtool files.
  12017. objdir=$objdir
  12018. # How to create reloadable object files.
  12019. reload_flag=$lt_reload_flag
  12020. reload_cmds=$lt_reload_cmds
  12021. # How to pass a linker flag through the compiler.
  12022. wl=$lt_lt_prog_compiler_wl_CXX
  12023. # Object file suffix (normally "o").
  12024. objext="$ac_objext"
  12025. # Old archive suffix (normally "a").
  12026. libext="$libext"
  12027. # Shared library suffix (normally ".so").
  12028. shrext_cmds='$shrext_cmds'
  12029. # Executable file suffix (normally "").
  12030. exeext="$exeext"
  12031. # Additional compiler flags for building library objects.
  12032. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12033. pic_mode=$pic_mode
  12034. # What is the maximum length of a command?
  12035. max_cmd_len=$lt_cv_sys_max_cmd_len
  12036. # Does compiler simultaneously support -c and -o options?
  12037. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12038. # Must we lock files when doing compilation?
  12039. need_locks=$lt_need_locks
  12040. # Do we need the lib prefix for modules?
  12041. need_lib_prefix=$need_lib_prefix
  12042. # Do we need a version for libraries?
  12043. need_version=$need_version
  12044. # Whether dlopen is supported.
  12045. dlopen_support=$enable_dlopen
  12046. # Whether dlopen of programs is supported.
  12047. dlopen_self=$enable_dlopen_self
  12048. # Whether dlopen of statically linked programs is supported.
  12049. dlopen_self_static=$enable_dlopen_self_static
  12050. # Compiler flag to prevent dynamic linking.
  12051. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12052. # Compiler flag to turn off builtin functions.
  12053. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12054. # Compiler flag to allow reflexive dlopens.
  12055. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12056. # Compiler flag to generate shared objects directly from archives.
  12057. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12058. # Compiler flag to generate thread-safe objects.
  12059. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12060. # Library versioning type.
  12061. version_type=$version_type
  12062. # Format of library name prefix.
  12063. libname_spec=$lt_libname_spec
  12064. # List of archive names. First name is the real one, the rest are links.
  12065. # The last name is the one that the linker finds with -lNAME.
  12066. library_names_spec=$lt_library_names_spec
  12067. # The coded name of the library, if different from the real name.
  12068. soname_spec=$lt_soname_spec
  12069. # Commands used to build and install an old-style archive.
  12070. RANLIB=$lt_RANLIB
  12071. old_archive_cmds=$lt_old_archive_cmds_CXX
  12072. old_postinstall_cmds=$lt_old_postinstall_cmds
  12073. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12074. # Create an old-style archive from a shared archive.
  12075. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12076. # Create a temporary old-style archive to link instead of a shared archive.
  12077. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12078. # Commands used to build and install a shared archive.
  12079. archive_cmds=$lt_archive_cmds_CXX
  12080. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12081. postinstall_cmds=$lt_postinstall_cmds
  12082. postuninstall_cmds=$lt_postuninstall_cmds
  12083. # Commands used to build a loadable module (assumed same as above if empty)
  12084. module_cmds=$lt_module_cmds_CXX
  12085. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12086. # Commands to strip libraries.
  12087. old_striplib=$lt_old_striplib
  12088. striplib=$lt_striplib
  12089. # Dependencies to place before the objects being linked to create a
  12090. # shared library.
  12091. predep_objects=$lt_predep_objects_CXX
  12092. # Dependencies to place after the objects being linked to create a
  12093. # shared library.
  12094. postdep_objects=$lt_postdep_objects_CXX
  12095. # Dependencies to place before the objects being linked to create a
  12096. # shared library.
  12097. predeps=$lt_predeps_CXX
  12098. # Dependencies to place after the objects being linked to create a
  12099. # shared library.
  12100. postdeps=$lt_postdeps_CXX
  12101. # The library search path used internally by the compiler when linking
  12102. # a shared library.
  12103. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12104. # Method to check whether dependent libraries are shared objects.
  12105. deplibs_check_method=$lt_deplibs_check_method
  12106. # Command to use when deplibs_check_method == file_magic.
  12107. file_magic_cmd=$lt_file_magic_cmd
  12108. # Flag that allows shared libraries with undefined symbols to be built.
  12109. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12110. # Flag that forces no undefined symbols.
  12111. no_undefined_flag=$lt_no_undefined_flag_CXX
  12112. # Commands used to finish a libtool library installation in a directory.
  12113. finish_cmds=$lt_finish_cmds
  12114. # Same as above, but a single script fragment to be evaled but not shown.
  12115. finish_eval=$lt_finish_eval
  12116. # Take the output of nm and produce a listing of raw symbols and C names.
  12117. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12118. # Transform the output of nm in a proper C declaration
  12119. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12120. # Transform the output of nm in a C name address pair
  12121. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12122. # This is the shared library runtime path variable.
  12123. runpath_var=$runpath_var
  12124. # This is the shared library path variable.
  12125. shlibpath_var=$shlibpath_var
  12126. # Is shlibpath searched before the hard-coded library search path?
  12127. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12128. # How to hardcode a shared library path into an executable.
  12129. hardcode_action=$hardcode_action_CXX
  12130. # Whether we should hardcode library paths into libraries.
  12131. hardcode_into_libs=$hardcode_into_libs
  12132. # Flag to hardcode \$libdir into a binary during linking.
  12133. # This must work even if \$libdir does not exist.
  12134. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12135. # If ld is used when linking, flag to hardcode \$libdir into
  12136. # a binary during linking. This must work even if \$libdir does
  12137. # not exist.
  12138. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12139. # Whether we need a single -rpath flag with a separated argument.
  12140. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12141. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12142. # resulting binary.
  12143. hardcode_direct=$hardcode_direct_CXX
  12144. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12145. # resulting binary.
  12146. hardcode_minus_L=$hardcode_minus_L_CXX
  12147. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12148. # the resulting binary.
  12149. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12150. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12151. # and all subsequent libraries and executables linked against it.
  12152. hardcode_automatic=$hardcode_automatic_CXX
  12153. # Variables whose values should be saved in libtool wrapper scripts and
  12154. # restored at relink time.
  12155. variables_saved_for_relink="$variables_saved_for_relink"
  12156. # Whether libtool must link a program against all its dependency libraries.
  12157. link_all_deplibs=$link_all_deplibs_CXX
  12158. # Compile-time system search path for libraries
  12159. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12160. # Run-time system search path for libraries
  12161. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12162. # Fix the shell variable \$srcfile for the compiler.
  12163. fix_srcfile_path=$lt_fix_srcfile_path
  12164. # Set to yes if exported symbols are required.
  12165. always_export_symbols=$always_export_symbols_CXX
  12166. # The commands to list exported symbols.
  12167. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12168. # The commands to extract the exported symbol list from a shared archive.
  12169. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12170. # Symbols that should not be listed in the preloaded symbols.
  12171. exclude_expsyms=$lt_exclude_expsyms_CXX
  12172. # Symbols that must always be exported.
  12173. include_expsyms=$lt_include_expsyms_CXX
  12174. # ### END LIBTOOL TAG CONFIG: $tagname
  12175. __EOF__
  12176. else
  12177. # If there is no Makefile yet, we rely on a make rule to execute
  12178. # `config.status --recheck' to rerun these tests and create the
  12179. # libtool script then.
  12180. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12181. if test -f "$ltmain_in"; then
  12182. test -f Makefile && make "$ltmain"
  12183. fi
  12184. fi
  12185. ac_ext=cpp
  12186. ac_cpp='$CXXCPP $CPPFLAGS'
  12187. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12188. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12189. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12190. CC=$lt_save_CC
  12191. LDCXX=$LD
  12192. LD=$lt_save_LD
  12193. GCC=$lt_save_GCC
  12194. with_gnu_ldcxx=$with_gnu_ld
  12195. with_gnu_ld=$lt_save_with_gnu_ld
  12196. lt_cv_path_LDCXX=$lt_cv_path_LD
  12197. lt_cv_path_LD=$lt_save_path_LD
  12198. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12199. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12200. else
  12201. tagname=""
  12202. fi
  12203. ;;
  12204. F77)
  12205. if test -n "$F77" && test "X$F77" != "Xno"; then
  12206. ac_ext=f
  12207. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12208. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12209. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12210. archive_cmds_need_lc_F77=no
  12211. allow_undefined_flag_F77=
  12212. always_export_symbols_F77=no
  12213. archive_expsym_cmds_F77=
  12214. export_dynamic_flag_spec_F77=
  12215. hardcode_direct_F77=no
  12216. hardcode_libdir_flag_spec_F77=
  12217. hardcode_libdir_flag_spec_ld_F77=
  12218. hardcode_libdir_separator_F77=
  12219. hardcode_minus_L_F77=no
  12220. hardcode_automatic_F77=no
  12221. module_cmds_F77=
  12222. module_expsym_cmds_F77=
  12223. link_all_deplibs_F77=unknown
  12224. old_archive_cmds_F77=$old_archive_cmds
  12225. no_undefined_flag_F77=
  12226. whole_archive_flag_spec_F77=
  12227. enable_shared_with_static_runtimes_F77=no
  12228. # Source file extension for f77 test sources.
  12229. ac_ext=f
  12230. # Object file extension for compiled f77 test sources.
  12231. objext=o
  12232. objext_F77=$objext
  12233. # Code to be used in simple compile tests
  12234. lt_simple_compile_test_code="\
  12235. subroutine t
  12236. return
  12237. end
  12238. "
  12239. # Code to be used in simple link tests
  12240. lt_simple_link_test_code="\
  12241. program t
  12242. end
  12243. "
  12244. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12245. # If no C compiler was specified, use CC.
  12246. LTCC=${LTCC-"$CC"}
  12247. # If no C compiler flags were specified, use CFLAGS.
  12248. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12249. # Allow CC to be a program name with arguments.
  12250. compiler=$CC
  12251. # save warnings/boilerplate of simple test code
  12252. ac_outfile=conftest.$ac_objext
  12253. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12254. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12255. _lt_compiler_boilerplate=`cat conftest.err`
  12256. $rm conftest*
  12257. ac_outfile=conftest.$ac_objext
  12258. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12259. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12260. _lt_linker_boilerplate=`cat conftest.err`
  12261. $rm conftest*
  12262. # Allow CC to be a program name with arguments.
  12263. lt_save_CC="$CC"
  12264. CC=${F77-"f77"}
  12265. compiler=$CC
  12266. compiler_F77=$CC
  12267. for cc_temp in $compiler""; do
  12268. case $cc_temp in
  12269. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12270. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12271. \-*) ;;
  12272. *) break;;
  12273. esac
  12274. done
  12275. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12276. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12277. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12278. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12279. echo "${ECHO_T}$can_build_shared" >&6; }
  12280. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12281. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12282. test "$can_build_shared" = "no" && enable_shared=no
  12283. # On AIX, shared libraries and static libraries use the same namespace, and
  12284. # are all built from PIC.
  12285. case $host_os in
  12286. aix3*)
  12287. test "$enable_shared" = yes && enable_static=no
  12288. if test -n "$RANLIB"; then
  12289. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12290. postinstall_cmds='$RANLIB $lib'
  12291. fi
  12292. ;;
  12293. aix4* | aix5*)
  12294. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12295. test "$enable_shared" = yes && enable_static=no
  12296. fi
  12297. ;;
  12298. esac
  12299. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12300. echo "${ECHO_T}$enable_shared" >&6; }
  12301. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12302. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12303. # Make sure either enable_shared or enable_static is yes.
  12304. test "$enable_shared" = yes || enable_static=yes
  12305. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12306. echo "${ECHO_T}$enable_static" >&6; }
  12307. GCC_F77="$G77"
  12308. LD_F77="$LD"
  12309. lt_prog_compiler_wl_F77=
  12310. lt_prog_compiler_pic_F77=
  12311. lt_prog_compiler_static_F77=
  12312. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12313. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12314. if test "$GCC" = yes; then
  12315. lt_prog_compiler_wl_F77='-Wl,'
  12316. lt_prog_compiler_static_F77='-static'
  12317. case $host_os in
  12318. aix*)
  12319. # All AIX code is PIC.
  12320. if test "$host_cpu" = ia64; then
  12321. # AIX 5 now supports IA64 processor
  12322. lt_prog_compiler_static_F77='-Bstatic'
  12323. fi
  12324. ;;
  12325. amigaos*)
  12326. # FIXME: we need at least 68020 code to build shared libraries, but
  12327. # adding the `-m68020' flag to GCC prevents building anything better,
  12328. # like `-m68040'.
  12329. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12330. ;;
  12331. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12332. # PIC is the default for these OSes.
  12333. ;;
  12334. mingw* | cygwin* | pw32* | os2*)
  12335. # This hack is so that the source file can tell whether it is being
  12336. # built for inclusion in a dll (and should export symbols for example).
  12337. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12338. # (--disable-auto-import) libraries
  12339. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12340. ;;
  12341. darwin* | rhapsody*)
  12342. # PIC is the default on this platform
  12343. # Common symbols not allowed in MH_DYLIB files
  12344. lt_prog_compiler_pic_F77='-fno-common'
  12345. ;;
  12346. interix[3-9]*)
  12347. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12348. # Instead, we relocate shared libraries at runtime.
  12349. ;;
  12350. msdosdjgpp*)
  12351. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12352. # on systems that don't support them.
  12353. lt_prog_compiler_can_build_shared_F77=no
  12354. enable_shared=no
  12355. ;;
  12356. sysv4*MP*)
  12357. if test -d /usr/nec; then
  12358. lt_prog_compiler_pic_F77=-Kconform_pic
  12359. fi
  12360. ;;
  12361. hpux*)
  12362. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12363. # not for PA HP-UX.
  12364. case $host_cpu in
  12365. hppa*64*|ia64*)
  12366. # +Z the default
  12367. ;;
  12368. *)
  12369. lt_prog_compiler_pic_F77='-fPIC'
  12370. ;;
  12371. esac
  12372. ;;
  12373. *)
  12374. lt_prog_compiler_pic_F77='-fPIC'
  12375. ;;
  12376. esac
  12377. else
  12378. # PORTME Check for flag to pass linker flags through the system compiler.
  12379. case $host_os in
  12380. aix*)
  12381. lt_prog_compiler_wl_F77='-Wl,'
  12382. if test "$host_cpu" = ia64; then
  12383. # AIX 5 now supports IA64 processor
  12384. lt_prog_compiler_static_F77='-Bstatic'
  12385. else
  12386. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12387. fi
  12388. ;;
  12389. darwin*)
  12390. # PIC is the default on this platform
  12391. # Common symbols not allowed in MH_DYLIB files
  12392. case $cc_basename in
  12393. xlc*)
  12394. lt_prog_compiler_pic_F77='-qnocommon'
  12395. lt_prog_compiler_wl_F77='-Wl,'
  12396. ;;
  12397. esac
  12398. ;;
  12399. mingw* | cygwin* | pw32* | os2*)
  12400. # This hack is so that the source file can tell whether it is being
  12401. # built for inclusion in a dll (and should export symbols for example).
  12402. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12403. ;;
  12404. hpux9* | hpux10* | hpux11*)
  12405. lt_prog_compiler_wl_F77='-Wl,'
  12406. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12407. # not for PA HP-UX.
  12408. case $host_cpu in
  12409. hppa*64*|ia64*)
  12410. # +Z the default
  12411. ;;
  12412. *)
  12413. lt_prog_compiler_pic_F77='+Z'
  12414. ;;
  12415. esac
  12416. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12417. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12418. ;;
  12419. irix5* | irix6* | nonstopux*)
  12420. lt_prog_compiler_wl_F77='-Wl,'
  12421. # PIC (with -KPIC) is the default.
  12422. lt_prog_compiler_static_F77='-non_shared'
  12423. ;;
  12424. newsos6)
  12425. lt_prog_compiler_pic_F77='-KPIC'
  12426. lt_prog_compiler_static_F77='-Bstatic'
  12427. ;;
  12428. linux* | k*bsd*-gnu)
  12429. case $cc_basename in
  12430. icc* | ecc*)
  12431. lt_prog_compiler_wl_F77='-Wl,'
  12432. lt_prog_compiler_pic_F77='-KPIC'
  12433. lt_prog_compiler_static_F77='-static'
  12434. ;;
  12435. pgcc* | pgf77* | pgf90* | pgf95*)
  12436. # Portland Group compilers (*not* the Pentium gcc compiler,
  12437. # which looks to be a dead project)
  12438. lt_prog_compiler_wl_F77='-Wl,'
  12439. lt_prog_compiler_pic_F77='-fpic'
  12440. lt_prog_compiler_static_F77='-Bstatic'
  12441. ;;
  12442. ccc*)
  12443. lt_prog_compiler_wl_F77='-Wl,'
  12444. # All Alpha code is PIC.
  12445. lt_prog_compiler_static_F77='-non_shared'
  12446. ;;
  12447. *)
  12448. case `$CC -V 2>&1 | sed 5q` in
  12449. *Sun\ C*)
  12450. # Sun C 5.9
  12451. lt_prog_compiler_pic_F77='-KPIC'
  12452. lt_prog_compiler_static_F77='-Bstatic'
  12453. lt_prog_compiler_wl_F77='-Wl,'
  12454. ;;
  12455. *Sun\ F*)
  12456. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12457. lt_prog_compiler_pic_F77='-KPIC'
  12458. lt_prog_compiler_static_F77='-Bstatic'
  12459. lt_prog_compiler_wl_F77=''
  12460. ;;
  12461. esac
  12462. ;;
  12463. esac
  12464. ;;
  12465. osf3* | osf4* | osf5*)
  12466. lt_prog_compiler_wl_F77='-Wl,'
  12467. # All OSF/1 code is PIC.
  12468. lt_prog_compiler_static_F77='-non_shared'
  12469. ;;
  12470. rdos*)
  12471. lt_prog_compiler_static_F77='-non_shared'
  12472. ;;
  12473. solaris*)
  12474. lt_prog_compiler_pic_F77='-KPIC'
  12475. lt_prog_compiler_static_F77='-Bstatic'
  12476. case $cc_basename in
  12477. f77* | f90* | f95*)
  12478. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12479. *)
  12480. lt_prog_compiler_wl_F77='-Wl,';;
  12481. esac
  12482. ;;
  12483. sunos4*)
  12484. lt_prog_compiler_wl_F77='-Qoption ld '
  12485. lt_prog_compiler_pic_F77='-PIC'
  12486. lt_prog_compiler_static_F77='-Bstatic'
  12487. ;;
  12488. sysv4 | sysv4.2uw2* | sysv4.3*)
  12489. lt_prog_compiler_wl_F77='-Wl,'
  12490. lt_prog_compiler_pic_F77='-KPIC'
  12491. lt_prog_compiler_static_F77='-Bstatic'
  12492. ;;
  12493. sysv4*MP*)
  12494. if test -d /usr/nec ;then
  12495. lt_prog_compiler_pic_F77='-Kconform_pic'
  12496. lt_prog_compiler_static_F77='-Bstatic'
  12497. fi
  12498. ;;
  12499. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12500. lt_prog_compiler_wl_F77='-Wl,'
  12501. lt_prog_compiler_pic_F77='-KPIC'
  12502. lt_prog_compiler_static_F77='-Bstatic'
  12503. ;;
  12504. unicos*)
  12505. lt_prog_compiler_wl_F77='-Wl,'
  12506. lt_prog_compiler_can_build_shared_F77=no
  12507. ;;
  12508. uts4*)
  12509. lt_prog_compiler_pic_F77='-pic'
  12510. lt_prog_compiler_static_F77='-Bstatic'
  12511. ;;
  12512. *)
  12513. lt_prog_compiler_can_build_shared_F77=no
  12514. ;;
  12515. esac
  12516. fi
  12517. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12518. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12519. #
  12520. # Check to make sure the PIC flag actually works.
  12521. #
  12522. if test -n "$lt_prog_compiler_pic_F77"; then
  12523. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12524. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12525. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12526. echo $ECHO_N "(cached) $ECHO_C" >&6
  12527. else
  12528. lt_prog_compiler_pic_works_F77=no
  12529. ac_outfile=conftest.$ac_objext
  12530. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12531. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12532. # Insert the option either (1) after the last *FLAGS variable, or
  12533. # (2) before a word containing "conftest.", or (3) at the end.
  12534. # Note that $ac_compile itself does not contain backslashes and begins
  12535. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12536. # The option is referenced via a variable to avoid confusing sed.
  12537. lt_compile=`echo "$ac_compile" | $SED \
  12538. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12539. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12540. -e 's:$: $lt_compiler_flag:'`
  12541. (eval echo "\"\$as_me:14033: $lt_compile\"" >&5)
  12542. (eval "$lt_compile" 2>conftest.err)
  12543. ac_status=$?
  12544. cat conftest.err >&5
  12545. echo "$as_me:14037: \$? = $ac_status" >&5
  12546. if (exit $ac_status) && test -s "$ac_outfile"; then
  12547. # The compiler can only warn and ignore the option if not recognized
  12548. # So say no if there are warnings other than the usual output.
  12549. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12550. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12551. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12552. lt_prog_compiler_pic_works_F77=yes
  12553. fi
  12554. fi
  12555. $rm conftest*
  12556. fi
  12557. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12558. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12559. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12560. case $lt_prog_compiler_pic_F77 in
  12561. "" | " "*) ;;
  12562. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12563. esac
  12564. else
  12565. lt_prog_compiler_pic_F77=
  12566. lt_prog_compiler_can_build_shared_F77=no
  12567. fi
  12568. fi
  12569. case $host_os in
  12570. # For platforms which do not support PIC, -DPIC is meaningless:
  12571. *djgpp*)
  12572. lt_prog_compiler_pic_F77=
  12573. ;;
  12574. *)
  12575. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12576. ;;
  12577. esac
  12578. #
  12579. # Check to make sure the static flag actually works.
  12580. #
  12581. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12582. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12583. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12584. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12585. echo $ECHO_N "(cached) $ECHO_C" >&6
  12586. else
  12587. lt_prog_compiler_static_works_F77=no
  12588. save_LDFLAGS="$LDFLAGS"
  12589. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12590. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12591. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12592. # The linker can only warn and ignore the option if not recognized
  12593. # So say no if there are warnings
  12594. if test -s conftest.err; then
  12595. # Append any errors to the config.log.
  12596. cat conftest.err 1>&5
  12597. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12598. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12599. if diff conftest.exp conftest.er2 >/dev/null; then
  12600. lt_prog_compiler_static_works_F77=yes
  12601. fi
  12602. else
  12603. lt_prog_compiler_static_works_F77=yes
  12604. fi
  12605. fi
  12606. $rm conftest*
  12607. LDFLAGS="$save_LDFLAGS"
  12608. fi
  12609. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12610. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  12611. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12612. :
  12613. else
  12614. lt_prog_compiler_static_F77=
  12615. fi
  12616. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12617. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12618. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12619. echo $ECHO_N "(cached) $ECHO_C" >&6
  12620. else
  12621. lt_cv_prog_compiler_c_o_F77=no
  12622. $rm -r conftest 2>/dev/null
  12623. mkdir conftest
  12624. cd conftest
  12625. mkdir out
  12626. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12627. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12628. # Insert the option either (1) after the last *FLAGS variable, or
  12629. # (2) before a word containing "conftest.", or (3) at the end.
  12630. # Note that $ac_compile itself does not contain backslashes and begins
  12631. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12632. lt_compile=`echo "$ac_compile" | $SED \
  12633. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12634. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12635. -e 's:$: $lt_compiler_flag:'`
  12636. (eval echo "\"\$as_me:14137: $lt_compile\"" >&5)
  12637. (eval "$lt_compile" 2>out/conftest.err)
  12638. ac_status=$?
  12639. cat out/conftest.err >&5
  12640. echo "$as_me:14141: \$? = $ac_status" >&5
  12641. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12642. then
  12643. # The compiler can only warn and ignore the option if not recognized
  12644. # So say no if there are warnings
  12645. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12646. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12647. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12648. lt_cv_prog_compiler_c_o_F77=yes
  12649. fi
  12650. fi
  12651. chmod u+w . 2>&5
  12652. $rm conftest*
  12653. # SGI C++ compiler will create directory out/ii_files/ for
  12654. # template instantiation
  12655. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12656. $rm out/* && rmdir out
  12657. cd ..
  12658. rmdir conftest
  12659. $rm conftest*
  12660. fi
  12661. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12662. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  12663. hard_links="nottested"
  12664. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12665. # do not overwrite the value of need_locks provided by the user
  12666. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12667. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12668. hard_links=yes
  12669. $rm conftest*
  12670. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12671. touch conftest.a
  12672. ln conftest.a conftest.b 2>&5 || hard_links=no
  12673. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12674. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12675. echo "${ECHO_T}$hard_links" >&6; }
  12676. if test "$hard_links" = no; then
  12677. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12678. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12679. need_locks=warn
  12680. fi
  12681. else
  12682. need_locks=no
  12683. fi
  12684. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12685. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12686. runpath_var=
  12687. allow_undefined_flag_F77=
  12688. enable_shared_with_static_runtimes_F77=no
  12689. archive_cmds_F77=
  12690. archive_expsym_cmds_F77=
  12691. old_archive_From_new_cmds_F77=
  12692. old_archive_from_expsyms_cmds_F77=
  12693. export_dynamic_flag_spec_F77=
  12694. whole_archive_flag_spec_F77=
  12695. thread_safe_flag_spec_F77=
  12696. hardcode_libdir_flag_spec_F77=
  12697. hardcode_libdir_flag_spec_ld_F77=
  12698. hardcode_libdir_separator_F77=
  12699. hardcode_direct_F77=no
  12700. hardcode_minus_L_F77=no
  12701. hardcode_shlibpath_var_F77=unsupported
  12702. link_all_deplibs_F77=unknown
  12703. hardcode_automatic_F77=no
  12704. module_cmds_F77=
  12705. module_expsym_cmds_F77=
  12706. always_export_symbols_F77=no
  12707. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12708. # include_expsyms should be a list of space-separated symbols to be *always*
  12709. # included in the symbol list
  12710. include_expsyms_F77=
  12711. # exclude_expsyms can be an extended regexp of symbols to exclude
  12712. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12713. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12714. # as well as any symbol that contains `d'.
  12715. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12716. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12717. # platforms (ab)use it in PIC code, but their linkers get confused if
  12718. # the symbol is explicitly referenced. Since portable code cannot
  12719. # rely on this symbol name, it's probably fine to never include it in
  12720. # preloaded symbol tables.
  12721. extract_expsyms_cmds=
  12722. # Just being paranoid about ensuring that cc_basename is set.
  12723. for cc_temp in $compiler""; do
  12724. case $cc_temp in
  12725. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12726. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12727. \-*) ;;
  12728. *) break;;
  12729. esac
  12730. done
  12731. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12732. case $host_os in
  12733. cygwin* | mingw* | pw32*)
  12734. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12735. # When not using gcc, we currently assume that we are using
  12736. # Microsoft Visual C++.
  12737. if test "$GCC" != yes; then
  12738. with_gnu_ld=no
  12739. fi
  12740. ;;
  12741. interix*)
  12742. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12743. with_gnu_ld=yes
  12744. ;;
  12745. openbsd*)
  12746. with_gnu_ld=no
  12747. ;;
  12748. esac
  12749. ld_shlibs_F77=yes
  12750. if test "$with_gnu_ld" = yes; then
  12751. # If archive_cmds runs LD, not CC, wlarc should be empty
  12752. wlarc='${wl}'
  12753. # Set some defaults for GNU ld with shared library support. These
  12754. # are reset later if shared libraries are not supported. Putting them
  12755. # here allows them to be overridden if necessary.
  12756. runpath_var=LD_RUN_PATH
  12757. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12758. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12759. # ancient GNU ld didn't support --whole-archive et. al.
  12760. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12761. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12762. else
  12763. whole_archive_flag_spec_F77=
  12764. fi
  12765. supports_anon_versioning=no
  12766. case `$LD -v 2>/dev/null` in
  12767. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12768. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12769. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12770. *\ 2.11.*) ;; # other 2.11 versions
  12771. *) supports_anon_versioning=yes ;;
  12772. esac
  12773. # See if GNU ld supports shared libraries.
  12774. case $host_os in
  12775. aix3* | aix4* | aix5*)
  12776. # On AIX/PPC, the GNU linker is very broken
  12777. if test "$host_cpu" != ia64; then
  12778. ld_shlibs_F77=no
  12779. cat <<EOF 1>&2
  12780. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12781. *** to be unable to reliably create shared libraries on AIX.
  12782. *** Therefore, libtool is disabling shared libraries support. If you
  12783. *** really care for shared libraries, you may want to modify your PATH
  12784. *** so that a non-GNU linker is found, and then restart.
  12785. EOF
  12786. fi
  12787. ;;
  12788. amigaos*)
  12789. 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)'
  12790. hardcode_libdir_flag_spec_F77='-L$libdir'
  12791. hardcode_minus_L_F77=yes
  12792. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  12793. # that the semantics of dynamic libraries on AmigaOS, at least up
  12794. # to version 4, is to share data among multiple programs linked
  12795. # with the same dynamic library. Since this doesn't match the
  12796. # behavior of shared libraries on other platforms, we can't use
  12797. # them.
  12798. ld_shlibs_F77=no
  12799. ;;
  12800. beos*)
  12801. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12802. allow_undefined_flag_F77=unsupported
  12803. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12804. # support --undefined. This deserves some investigation. FIXME
  12805. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12806. else
  12807. ld_shlibs_F77=no
  12808. fi
  12809. ;;
  12810. cygwin* | mingw* | pw32*)
  12811. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12812. # as there is no search path for DLLs.
  12813. hardcode_libdir_flag_spec_F77='-L$libdir'
  12814. allow_undefined_flag_F77=unsupported
  12815. always_export_symbols_F77=no
  12816. enable_shared_with_static_runtimes_F77=yes
  12817. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  12818. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12819. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12820. # If the export-symbols file already is a .def file (1st line
  12821. # is EXPORTS), use it as is; otherwise, prepend...
  12822. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12823. cp $export_symbols $output_objdir/$soname.def;
  12824. else
  12825. echo EXPORTS > $output_objdir/$soname.def;
  12826. cat $export_symbols >> $output_objdir/$soname.def;
  12827. fi~
  12828. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12829. else
  12830. ld_shlibs_F77=no
  12831. fi
  12832. ;;
  12833. interix[3-9]*)
  12834. hardcode_direct_F77=no
  12835. hardcode_shlibpath_var_F77=no
  12836. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12837. export_dynamic_flag_spec_F77='${wl}-E'
  12838. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12839. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12840. # default) and relocated if they conflict, which is a slow very memory
  12841. # consuming and fragmenting process. To avoid this, we pick a random,
  12842. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12843. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12844. 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'
  12845. 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'
  12846. ;;
  12847. gnu* | linux* | k*bsd*-gnu)
  12848. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12849. tmp_addflag=
  12850. case $cc_basename,$host_cpu in
  12851. pgcc*) # Portland Group C compiler
  12852. 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'
  12853. tmp_addflag=' $pic_flag'
  12854. ;;
  12855. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12856. 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'
  12857. tmp_addflag=' $pic_flag -Mnomain' ;;
  12858. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12859. tmp_addflag=' -i_dynamic' ;;
  12860. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12861. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12862. ifc* | ifort*) # Intel Fortran compiler
  12863. tmp_addflag=' -nofor_main' ;;
  12864. esac
  12865. case `$CC -V 2>&1 | sed 5q` in
  12866. *Sun\ C*) # Sun C 5.9
  12867. 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'
  12868. tmp_sharedflag='-G' ;;
  12869. *Sun\ F*) # Sun Fortran 8.3
  12870. tmp_sharedflag='-G' ;;
  12871. *)
  12872. tmp_sharedflag='-shared' ;;
  12873. esac
  12874. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12875. if test $supports_anon_versioning = yes; then
  12876. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12877. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12878. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12879. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12880. fi
  12881. else
  12882. ld_shlibs_F77=no
  12883. fi
  12884. ;;
  12885. netbsd*)
  12886. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12887. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12888. wlarc=
  12889. else
  12890. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12891. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12892. fi
  12893. ;;
  12894. solaris*)
  12895. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12896. ld_shlibs_F77=no
  12897. cat <<EOF 1>&2
  12898. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12899. *** create shared libraries on Solaris systems. Therefore, libtool
  12900. *** is disabling shared libraries support. We urge you to upgrade GNU
  12901. *** binutils to release 2.9.1 or newer. Another option is to modify
  12902. *** your PATH or compiler configuration so that the native linker is
  12903. *** used, and then restart.
  12904. EOF
  12905. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12906. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12907. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12908. else
  12909. ld_shlibs_F77=no
  12910. fi
  12911. ;;
  12912. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12913. case `$LD -v 2>&1` in
  12914. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12915. ld_shlibs_F77=no
  12916. cat <<_LT_EOF 1>&2
  12917. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12918. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12919. *** is disabling shared libraries support. We urge you to upgrade GNU
  12920. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12921. *** your PATH or compiler configuration so that the native linker is
  12922. *** used, and then restart.
  12923. _LT_EOF
  12924. ;;
  12925. *)
  12926. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12927. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12928. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12929. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12930. else
  12931. ld_shlibs_F77=no
  12932. fi
  12933. ;;
  12934. esac
  12935. ;;
  12936. sunos4*)
  12937. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12938. wlarc=
  12939. hardcode_direct_F77=yes
  12940. hardcode_shlibpath_var_F77=no
  12941. ;;
  12942. *)
  12943. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12944. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12945. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12946. else
  12947. ld_shlibs_F77=no
  12948. fi
  12949. ;;
  12950. esac
  12951. if test "$ld_shlibs_F77" = no; then
  12952. runpath_var=
  12953. hardcode_libdir_flag_spec_F77=
  12954. export_dynamic_flag_spec_F77=
  12955. whole_archive_flag_spec_F77=
  12956. fi
  12957. else
  12958. # PORTME fill in a description of your system's linker (not GNU ld)
  12959. case $host_os in
  12960. aix3*)
  12961. allow_undefined_flag_F77=unsupported
  12962. always_export_symbols_F77=yes
  12963. 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'
  12964. # Note: this linker hardcodes the directories in LIBPATH if there
  12965. # are no directories specified by -L.
  12966. hardcode_minus_L_F77=yes
  12967. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12968. # Neither direct hardcoding nor static linking is supported with a
  12969. # broken collect2.
  12970. hardcode_direct_F77=unsupported
  12971. fi
  12972. ;;
  12973. aix4* | aix5*)
  12974. if test "$host_cpu" = ia64; then
  12975. # On IA64, the linker does run time linking by default, so we don't
  12976. # have to do anything special.
  12977. aix_use_runtimelinking=no
  12978. exp_sym_flag='-Bexport'
  12979. no_entry_flag=""
  12980. else
  12981. # If we're using GNU nm, then we don't want the "-C" option.
  12982. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12983. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12984. 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'
  12985. else
  12986. 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'
  12987. fi
  12988. aix_use_runtimelinking=no
  12989. # Test if we are trying to use run time linking or normal
  12990. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12991. # need to do runtime linking.
  12992. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12993. for ld_flag in $LDFLAGS; do
  12994. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12995. aix_use_runtimelinking=yes
  12996. break
  12997. fi
  12998. done
  12999. ;;
  13000. esac
  13001. exp_sym_flag='-bexport'
  13002. no_entry_flag='-bnoentry'
  13003. fi
  13004. # When large executables or shared objects are built, AIX ld can
  13005. # have problems creating the table of contents. If linking a library
  13006. # or program results in "error TOC overflow" add -mminimal-toc to
  13007. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13008. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13009. archive_cmds_F77=''
  13010. hardcode_direct_F77=yes
  13011. hardcode_libdir_separator_F77=':'
  13012. link_all_deplibs_F77=yes
  13013. if test "$GCC" = yes; then
  13014. case $host_os in aix4.[012]|aix4.[012].*)
  13015. # We only want to do this on AIX 4.2 and lower, the check
  13016. # below for broken collect2 doesn't work under 4.3+
  13017. collect2name=`${CC} -print-prog-name=collect2`
  13018. if test -f "$collect2name" && \
  13019. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13020. then
  13021. # We have reworked collect2
  13022. :
  13023. else
  13024. # We have old collect2
  13025. hardcode_direct_F77=unsupported
  13026. # It fails to find uninstalled libraries when the uninstalled
  13027. # path is not listed in the libpath. Setting hardcode_minus_L
  13028. # to unsupported forces relinking
  13029. hardcode_minus_L_F77=yes
  13030. hardcode_libdir_flag_spec_F77='-L$libdir'
  13031. hardcode_libdir_separator_F77=
  13032. fi
  13033. ;;
  13034. esac
  13035. shared_flag='-shared'
  13036. if test "$aix_use_runtimelinking" = yes; then
  13037. shared_flag="$shared_flag "'${wl}-G'
  13038. fi
  13039. else
  13040. # not using gcc
  13041. if test "$host_cpu" = ia64; then
  13042. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13043. # chokes on -Wl,-G. The following line is correct:
  13044. shared_flag='-G'
  13045. else
  13046. if test "$aix_use_runtimelinking" = yes; then
  13047. shared_flag='${wl}-G'
  13048. else
  13049. shared_flag='${wl}-bM:SRE'
  13050. fi
  13051. fi
  13052. fi
  13053. # It seems that -bexpall does not export symbols beginning with
  13054. # underscore (_), so it is better to generate a list of symbols to export.
  13055. always_export_symbols_F77=yes
  13056. if test "$aix_use_runtimelinking" = yes; then
  13057. # Warning - without using the other runtime loading flags (-brtl),
  13058. # -berok will link without error, but may produce a broken library.
  13059. allow_undefined_flag_F77='-berok'
  13060. # Determine the default libpath from the value encoded in an empty executable.
  13061. cat >conftest.$ac_ext <<_ACEOF
  13062. program main
  13063. end
  13064. _ACEOF
  13065. rm -f conftest.$ac_objext conftest$ac_exeext
  13066. if { (ac_try="$ac_link"
  13067. case "(($ac_try" in
  13068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13069. *) ac_try_echo=$ac_try;;
  13070. esac
  13071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13072. (eval "$ac_link") 2>conftest.er1
  13073. ac_status=$?
  13074. grep -v '^ *+' conftest.er1 >conftest.err
  13075. rm -f conftest.er1
  13076. cat conftest.err >&5
  13077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13078. (exit $ac_status); } && {
  13079. test -z "$ac_f77_werror_flag" ||
  13080. test ! -s conftest.err
  13081. } && test -s conftest$ac_exeext &&
  13082. $as_test_x conftest$ac_exeext; then
  13083. lt_aix_libpath_sed='
  13084. /Import File Strings/,/^$/ {
  13085. /^0/ {
  13086. s/^0 *\(.*\)$/\1/
  13087. p
  13088. }
  13089. }'
  13090. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13091. # Check for a 64-bit object if we didn't find anything.
  13092. if test -z "$aix_libpath"; then
  13093. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13094. fi
  13095. else
  13096. echo "$as_me: failed program was:" >&5
  13097. sed 's/^/| /' conftest.$ac_ext >&5
  13098. fi
  13099. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13100. conftest$ac_exeext conftest.$ac_ext
  13101. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13102. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13103. 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"
  13104. else
  13105. if test "$host_cpu" = ia64; then
  13106. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13107. allow_undefined_flag_F77="-z nodefs"
  13108. 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"
  13109. else
  13110. # Determine the default libpath from the value encoded in an empty executable.
  13111. cat >conftest.$ac_ext <<_ACEOF
  13112. program main
  13113. end
  13114. _ACEOF
  13115. rm -f conftest.$ac_objext conftest$ac_exeext
  13116. if { (ac_try="$ac_link"
  13117. case "(($ac_try" in
  13118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13119. *) ac_try_echo=$ac_try;;
  13120. esac
  13121. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13122. (eval "$ac_link") 2>conftest.er1
  13123. ac_status=$?
  13124. grep -v '^ *+' conftest.er1 >conftest.err
  13125. rm -f conftest.er1
  13126. cat conftest.err >&5
  13127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13128. (exit $ac_status); } && {
  13129. test -z "$ac_f77_werror_flag" ||
  13130. test ! -s conftest.err
  13131. } && test -s conftest$ac_exeext &&
  13132. $as_test_x conftest$ac_exeext; then
  13133. lt_aix_libpath_sed='
  13134. /Import File Strings/,/^$/ {
  13135. /^0/ {
  13136. s/^0 *\(.*\)$/\1/
  13137. p
  13138. }
  13139. }'
  13140. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13141. # Check for a 64-bit object if we didn't find anything.
  13142. if test -z "$aix_libpath"; then
  13143. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13144. fi
  13145. else
  13146. echo "$as_me: failed program was:" >&5
  13147. sed 's/^/| /' conftest.$ac_ext >&5
  13148. fi
  13149. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13150. conftest$ac_exeext conftest.$ac_ext
  13151. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13152. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13153. # Warning - without using the other run time loading flags,
  13154. # -berok will link without error, but may produce a broken library.
  13155. no_undefined_flag_F77=' ${wl}-bernotok'
  13156. allow_undefined_flag_F77=' ${wl}-berok'
  13157. # Exported symbols can be pulled into shared objects from archives
  13158. whole_archive_flag_spec_F77='$convenience'
  13159. archive_cmds_need_lc_F77=yes
  13160. # This is similar to how AIX traditionally builds its shared libraries.
  13161. 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'
  13162. fi
  13163. fi
  13164. ;;
  13165. amigaos*)
  13166. 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)'
  13167. hardcode_libdir_flag_spec_F77='-L$libdir'
  13168. hardcode_minus_L_F77=yes
  13169. # see comment about different semantics on the GNU ld section
  13170. ld_shlibs_F77=no
  13171. ;;
  13172. bsdi[45]*)
  13173. export_dynamic_flag_spec_F77=-rdynamic
  13174. ;;
  13175. cygwin* | mingw* | pw32*)
  13176. # When not using gcc, we currently assume that we are using
  13177. # Microsoft Visual C++.
  13178. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13179. # no search path for DLLs.
  13180. hardcode_libdir_flag_spec_F77=' '
  13181. allow_undefined_flag_F77=unsupported
  13182. # Tell ltmain to make .lib files, not .a files.
  13183. libext=lib
  13184. # Tell ltmain to make .dll files, not .so files.
  13185. shrext_cmds=".dll"
  13186. # FIXME: Setting linknames here is a bad hack.
  13187. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13188. # The linker will automatically build a .lib file if we build a DLL.
  13189. old_archive_From_new_cmds_F77='true'
  13190. # FIXME: Should let the user specify the lib program.
  13191. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13192. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13193. enable_shared_with_static_runtimes_F77=yes
  13194. ;;
  13195. darwin* | rhapsody*)
  13196. case $host_os in
  13197. rhapsody* | darwin1.[012])
  13198. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13199. ;;
  13200. *) # Darwin 1.3 on
  13201. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13202. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13203. else
  13204. case ${MACOSX_DEPLOYMENT_TARGET} in
  13205. 10.[012])
  13206. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13207. ;;
  13208. 10.*)
  13209. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13210. ;;
  13211. esac
  13212. fi
  13213. ;;
  13214. esac
  13215. archive_cmds_need_lc_F77=no
  13216. hardcode_direct_F77=no
  13217. hardcode_automatic_F77=yes
  13218. hardcode_shlibpath_var_F77=unsupported
  13219. whole_archive_flag_spec_F77=''
  13220. link_all_deplibs_F77=yes
  13221. if test "$GCC" = yes ; then
  13222. output_verbose_link_cmd='echo'
  13223. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13224. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13225. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13226. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13227. 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}'
  13228. else
  13229. case $cc_basename in
  13230. xlc*)
  13231. output_verbose_link_cmd='echo'
  13232. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13233. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13234. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13235. 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}'
  13236. 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}'
  13237. ;;
  13238. *)
  13239. ld_shlibs_F77=no
  13240. ;;
  13241. esac
  13242. fi
  13243. ;;
  13244. dgux*)
  13245. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13246. hardcode_libdir_flag_spec_F77='-L$libdir'
  13247. hardcode_shlibpath_var_F77=no
  13248. ;;
  13249. freebsd1*)
  13250. ld_shlibs_F77=no
  13251. ;;
  13252. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13253. # support. Future versions do this automatically, but an explicit c++rt0.o
  13254. # does not break anything, and helps significantly (at the cost of a little
  13255. # extra space).
  13256. freebsd2.2*)
  13257. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13258. hardcode_libdir_flag_spec_F77='-R$libdir'
  13259. hardcode_direct_F77=yes
  13260. hardcode_shlibpath_var_F77=no
  13261. ;;
  13262. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13263. freebsd2*)
  13264. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13265. hardcode_direct_F77=yes
  13266. hardcode_minus_L_F77=yes
  13267. hardcode_shlibpath_var_F77=no
  13268. ;;
  13269. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13270. freebsd* | dragonfly*)
  13271. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13272. hardcode_libdir_flag_spec_F77='-R$libdir'
  13273. hardcode_direct_F77=yes
  13274. hardcode_shlibpath_var_F77=no
  13275. ;;
  13276. hpux9*)
  13277. if test "$GCC" = yes; then
  13278. 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'
  13279. else
  13280. 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'
  13281. fi
  13282. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13283. hardcode_libdir_separator_F77=:
  13284. hardcode_direct_F77=yes
  13285. # hardcode_minus_L: Not really in the search PATH,
  13286. # but as the default location of the library.
  13287. hardcode_minus_L_F77=yes
  13288. export_dynamic_flag_spec_F77='${wl}-E'
  13289. ;;
  13290. hpux10*)
  13291. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13292. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13293. else
  13294. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13295. fi
  13296. if test "$with_gnu_ld" = no; then
  13297. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13298. hardcode_libdir_separator_F77=:
  13299. hardcode_direct_F77=yes
  13300. export_dynamic_flag_spec_F77='${wl}-E'
  13301. # hardcode_minus_L: Not really in the search PATH,
  13302. # but as the default location of the library.
  13303. hardcode_minus_L_F77=yes
  13304. fi
  13305. ;;
  13306. hpux11*)
  13307. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13308. case $host_cpu in
  13309. hppa*64*)
  13310. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13311. ;;
  13312. ia64*)
  13313. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13314. ;;
  13315. *)
  13316. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13317. ;;
  13318. esac
  13319. else
  13320. case $host_cpu in
  13321. hppa*64*)
  13322. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13323. ;;
  13324. ia64*)
  13325. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13326. ;;
  13327. *)
  13328. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13329. ;;
  13330. esac
  13331. fi
  13332. if test "$with_gnu_ld" = no; then
  13333. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13334. hardcode_libdir_separator_F77=:
  13335. case $host_cpu in
  13336. hppa*64*|ia64*)
  13337. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13338. hardcode_direct_F77=no
  13339. hardcode_shlibpath_var_F77=no
  13340. ;;
  13341. *)
  13342. hardcode_direct_F77=yes
  13343. export_dynamic_flag_spec_F77='${wl}-E'
  13344. # hardcode_minus_L: Not really in the search PATH,
  13345. # but as the default location of the library.
  13346. hardcode_minus_L_F77=yes
  13347. ;;
  13348. esac
  13349. fi
  13350. ;;
  13351. irix5* | irix6* | nonstopux*)
  13352. if test "$GCC" = yes; then
  13353. 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'
  13354. else
  13355. 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'
  13356. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13357. fi
  13358. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13359. hardcode_libdir_separator_F77=:
  13360. link_all_deplibs_F77=yes
  13361. ;;
  13362. netbsd*)
  13363. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13364. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13365. else
  13366. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13367. fi
  13368. hardcode_libdir_flag_spec_F77='-R$libdir'
  13369. hardcode_direct_F77=yes
  13370. hardcode_shlibpath_var_F77=no
  13371. ;;
  13372. newsos6)
  13373. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13374. hardcode_direct_F77=yes
  13375. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13376. hardcode_libdir_separator_F77=:
  13377. hardcode_shlibpath_var_F77=no
  13378. ;;
  13379. openbsd*)
  13380. if test -f /usr/libexec/ld.so; then
  13381. hardcode_direct_F77=yes
  13382. hardcode_shlibpath_var_F77=no
  13383. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13384. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13385. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13386. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13387. export_dynamic_flag_spec_F77='${wl}-E'
  13388. else
  13389. case $host_os in
  13390. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13391. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13392. hardcode_libdir_flag_spec_F77='-R$libdir'
  13393. ;;
  13394. *)
  13395. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13396. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13397. ;;
  13398. esac
  13399. fi
  13400. else
  13401. ld_shlibs_F77=no
  13402. fi
  13403. ;;
  13404. os2*)
  13405. hardcode_libdir_flag_spec_F77='-L$libdir'
  13406. hardcode_minus_L_F77=yes
  13407. allow_undefined_flag_F77=unsupported
  13408. 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'
  13409. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13410. ;;
  13411. osf3*)
  13412. if test "$GCC" = yes; then
  13413. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13414. 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'
  13415. else
  13416. allow_undefined_flag_F77=' -expect_unresolved \*'
  13417. 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'
  13418. fi
  13419. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13420. hardcode_libdir_separator_F77=:
  13421. ;;
  13422. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13423. if test "$GCC" = yes; then
  13424. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13425. 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'
  13426. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13427. else
  13428. allow_undefined_flag_F77=' -expect_unresolved \*'
  13429. 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'
  13430. 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~
  13431. $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'
  13432. # Both c and cxx compiler support -rpath directly
  13433. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13434. fi
  13435. hardcode_libdir_separator_F77=:
  13436. ;;
  13437. solaris*)
  13438. no_undefined_flag_F77=' -z text'
  13439. if test "$GCC" = yes; then
  13440. wlarc='${wl}'
  13441. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13442. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13443. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13444. else
  13445. wlarc=''
  13446. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13447. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13448. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13449. fi
  13450. hardcode_libdir_flag_spec_F77='-R$libdir'
  13451. hardcode_shlibpath_var_F77=no
  13452. case $host_os in
  13453. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13454. *)
  13455. # The compiler driver will combine and reorder linker options,
  13456. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13457. # but is careful enough not to reorder.
  13458. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13459. if test "$GCC" = yes; then
  13460. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13461. else
  13462. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  13463. fi
  13464. ;;
  13465. esac
  13466. link_all_deplibs_F77=yes
  13467. ;;
  13468. sunos4*)
  13469. if test "x$host_vendor" = xsequent; then
  13470. # Use $CC to link under sequent, because it throws in some extra .o
  13471. # files that make .init and .fini sections work.
  13472. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13473. else
  13474. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13475. fi
  13476. hardcode_libdir_flag_spec_F77='-L$libdir'
  13477. hardcode_direct_F77=yes
  13478. hardcode_minus_L_F77=yes
  13479. hardcode_shlibpath_var_F77=no
  13480. ;;
  13481. sysv4)
  13482. case $host_vendor in
  13483. sni)
  13484. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13485. hardcode_direct_F77=yes # is this really true???
  13486. ;;
  13487. siemens)
  13488. ## LD is ld it makes a PLAMLIB
  13489. ## CC just makes a GrossModule.
  13490. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13491. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13492. hardcode_direct_F77=no
  13493. ;;
  13494. motorola)
  13495. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13496. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13497. ;;
  13498. esac
  13499. runpath_var='LD_RUN_PATH'
  13500. hardcode_shlibpath_var_F77=no
  13501. ;;
  13502. sysv4.3*)
  13503. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13504. hardcode_shlibpath_var_F77=no
  13505. export_dynamic_flag_spec_F77='-Bexport'
  13506. ;;
  13507. sysv4*MP*)
  13508. if test -d /usr/nec; then
  13509. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13510. hardcode_shlibpath_var_F77=no
  13511. runpath_var=LD_RUN_PATH
  13512. hardcode_runpath_var=yes
  13513. ld_shlibs_F77=yes
  13514. fi
  13515. ;;
  13516. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13517. no_undefined_flag_F77='${wl}-z,text'
  13518. archive_cmds_need_lc_F77=no
  13519. hardcode_shlibpath_var_F77=no
  13520. runpath_var='LD_RUN_PATH'
  13521. if test "$GCC" = yes; then
  13522. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13523. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13524. else
  13525. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13526. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13527. fi
  13528. ;;
  13529. sysv5* | sco3.2v5* | sco5v6*)
  13530. # Note: We can NOT use -z defs as we might desire, because we do not
  13531. # link with -lc, and that would cause any symbols used from libc to
  13532. # always be unresolved, which means just about no library would
  13533. # ever link correctly. If we're not using GNU ld we use -z text
  13534. # though, which does catch some bad symbols but isn't as heavy-handed
  13535. # as -z defs.
  13536. no_undefined_flag_F77='${wl}-z,text'
  13537. allow_undefined_flag_F77='${wl}-z,nodefs'
  13538. archive_cmds_need_lc_F77=no
  13539. hardcode_shlibpath_var_F77=no
  13540. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13541. hardcode_libdir_separator_F77=':'
  13542. link_all_deplibs_F77=yes
  13543. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13544. runpath_var='LD_RUN_PATH'
  13545. if test "$GCC" = yes; then
  13546. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13547. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13548. else
  13549. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13550. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13551. fi
  13552. ;;
  13553. uts4*)
  13554. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13555. hardcode_libdir_flag_spec_F77='-L$libdir'
  13556. hardcode_shlibpath_var_F77=no
  13557. ;;
  13558. *)
  13559. ld_shlibs_F77=no
  13560. ;;
  13561. esac
  13562. fi
  13563. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13564. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13565. test "$ld_shlibs_F77" = no && can_build_shared=no
  13566. #
  13567. # Do we need to explicitly link libc?
  13568. #
  13569. case "x$archive_cmds_need_lc_F77" in
  13570. x|xyes)
  13571. # Assume -lc should be added
  13572. archive_cmds_need_lc_F77=yes
  13573. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13574. case $archive_cmds_F77 in
  13575. *'~'*)
  13576. # FIXME: we may have to deal with multi-command sequences.
  13577. ;;
  13578. '$CC '*)
  13579. # Test whether the compiler implicitly links with -lc since on some
  13580. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13581. # to ld, don't add -lc before -lgcc.
  13582. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13583. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13584. $rm conftest*
  13585. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13586. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13587. (eval $ac_compile) 2>&5
  13588. ac_status=$?
  13589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13590. (exit $ac_status); } 2>conftest.err; then
  13591. soname=conftest
  13592. lib=conftest
  13593. libobjs=conftest.$ac_objext
  13594. deplibs=
  13595. wl=$lt_prog_compiler_wl_F77
  13596. pic_flag=$lt_prog_compiler_pic_F77
  13597. compiler_flags=-v
  13598. linker_flags=-v
  13599. verstring=
  13600. output_objdir=.
  13601. libname=conftest
  13602. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13603. allow_undefined_flag_F77=
  13604. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13605. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13606. ac_status=$?
  13607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13608. (exit $ac_status); }
  13609. then
  13610. archive_cmds_need_lc_F77=no
  13611. else
  13612. archive_cmds_need_lc_F77=yes
  13613. fi
  13614. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13615. else
  13616. cat conftest.err 1>&5
  13617. fi
  13618. $rm conftest*
  13619. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13620. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  13621. ;;
  13622. esac
  13623. fi
  13624. ;;
  13625. esac
  13626. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13627. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  13628. library_names_spec=
  13629. libname_spec='lib$name'
  13630. soname_spec=
  13631. shrext_cmds=".so"
  13632. postinstall_cmds=
  13633. postuninstall_cmds=
  13634. finish_cmds=
  13635. finish_eval=
  13636. shlibpath_var=
  13637. shlibpath_overrides_runpath=unknown
  13638. version_type=none
  13639. dynamic_linker="$host_os ld.so"
  13640. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13641. need_lib_prefix=unknown
  13642. hardcode_into_libs=no
  13643. # when you set need_version to no, make sure it does not cause -set_version
  13644. # flags to be left without arguments
  13645. need_version=unknown
  13646. case $host_os in
  13647. aix3*)
  13648. version_type=linux
  13649. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13650. shlibpath_var=LIBPATH
  13651. # AIX 3 has no versioning support, so we append a major version to the name.
  13652. soname_spec='${libname}${release}${shared_ext}$major'
  13653. ;;
  13654. aix4* | aix5*)
  13655. version_type=linux
  13656. need_lib_prefix=no
  13657. need_version=no
  13658. hardcode_into_libs=yes
  13659. if test "$host_cpu" = ia64; then
  13660. # AIX 5 supports IA64
  13661. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13662. shlibpath_var=LD_LIBRARY_PATH
  13663. else
  13664. # With GCC up to 2.95.x, collect2 would create an import file
  13665. # for dependence libraries. The import file would start with
  13666. # the line `#! .'. This would cause the generated library to
  13667. # depend on `.', always an invalid library. This was fixed in
  13668. # development snapshots of GCC prior to 3.0.
  13669. case $host_os in
  13670. aix4 | aix4.[01] | aix4.[01].*)
  13671. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13672. echo ' yes '
  13673. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13674. :
  13675. else
  13676. can_build_shared=no
  13677. fi
  13678. ;;
  13679. esac
  13680. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13681. # soname into executable. Probably we can add versioning support to
  13682. # collect2, so additional links can be useful in future.
  13683. if test "$aix_use_runtimelinking" = yes; then
  13684. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13685. # instead of lib<name>.a to let people know that these are not
  13686. # typical AIX shared libraries.
  13687. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13688. else
  13689. # We preserve .a as extension for shared libraries through AIX4.2
  13690. # and later when we are not doing run time linking.
  13691. library_names_spec='${libname}${release}.a $libname.a'
  13692. soname_spec='${libname}${release}${shared_ext}$major'
  13693. fi
  13694. shlibpath_var=LIBPATH
  13695. fi
  13696. ;;
  13697. amigaos*)
  13698. library_names_spec='$libname.ixlibrary $libname.a'
  13699. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13700. 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'
  13701. ;;
  13702. beos*)
  13703. library_names_spec='${libname}${shared_ext}'
  13704. dynamic_linker="$host_os ld.so"
  13705. shlibpath_var=LIBRARY_PATH
  13706. ;;
  13707. bsdi[45]*)
  13708. version_type=linux
  13709. need_version=no
  13710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13711. soname_spec='${libname}${release}${shared_ext}$major'
  13712. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13713. shlibpath_var=LD_LIBRARY_PATH
  13714. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13715. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13716. # the default ld.so.conf also contains /usr/contrib/lib and
  13717. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13718. # libtool to hard-code these into programs
  13719. ;;
  13720. cygwin* | mingw* | pw32*)
  13721. version_type=windows
  13722. shrext_cmds=".dll"
  13723. need_version=no
  13724. need_lib_prefix=no
  13725. case $GCC,$host_os in
  13726. yes,cygwin* | yes,mingw* | yes,pw32*)
  13727. library_names_spec='$libname.dll.a'
  13728. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13729. postinstall_cmds='base_file=`basename \${file}`~
  13730. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13731. dldir=$destdir/`dirname \$dlpath`~
  13732. test -d \$dldir || mkdir -p \$dldir~
  13733. $install_prog $dir/$dlname \$dldir/$dlname~
  13734. chmod a+x \$dldir/$dlname'
  13735. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13736. dlpath=$dir/\$dldll~
  13737. $rm \$dlpath'
  13738. shlibpath_overrides_runpath=yes
  13739. case $host_os in
  13740. cygwin*)
  13741. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13742. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13743. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13744. ;;
  13745. mingw*)
  13746. # MinGW DLLs use traditional 'lib' prefix
  13747. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13748. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13749. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13750. # It is most probably a Windows format PATH printed by
  13751. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13752. # path with ; separators, and with drive letters. We can handle the
  13753. # drive letters (cygwin fileutils understands them), so leave them,
  13754. # especially as we might pass files found there to a mingw objdump,
  13755. # which wouldn't understand a cygwinified path. Ahh.
  13756. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13757. else
  13758. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13759. fi
  13760. ;;
  13761. pw32*)
  13762. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13763. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13764. ;;
  13765. esac
  13766. ;;
  13767. *)
  13768. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13769. ;;
  13770. esac
  13771. dynamic_linker='Win32 ld.exe'
  13772. # FIXME: first we should search . and the directory the executable is in
  13773. shlibpath_var=PATH
  13774. ;;
  13775. darwin* | rhapsody*)
  13776. dynamic_linker="$host_os dyld"
  13777. version_type=darwin
  13778. need_lib_prefix=no
  13779. need_version=no
  13780. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13781. soname_spec='${libname}${release}${major}$shared_ext'
  13782. shlibpath_overrides_runpath=yes
  13783. shlibpath_var=DYLD_LIBRARY_PATH
  13784. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13785. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13786. ;;
  13787. dgux*)
  13788. version_type=linux
  13789. need_lib_prefix=no
  13790. need_version=no
  13791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13792. soname_spec='${libname}${release}${shared_ext}$major'
  13793. shlibpath_var=LD_LIBRARY_PATH
  13794. ;;
  13795. freebsd1*)
  13796. dynamic_linker=no
  13797. ;;
  13798. freebsd* | dragonfly*)
  13799. # DragonFly does not have aout. When/if they implement a new
  13800. # versioning mechanism, adjust this.
  13801. if test -x /usr/bin/objformat; then
  13802. objformat=`/usr/bin/objformat`
  13803. else
  13804. case $host_os in
  13805. freebsd[123]*) objformat=aout ;;
  13806. *) objformat=elf ;;
  13807. esac
  13808. fi
  13809. version_type=freebsd-$objformat
  13810. case $version_type in
  13811. freebsd-elf*)
  13812. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13813. need_version=no
  13814. need_lib_prefix=no
  13815. ;;
  13816. freebsd-*)
  13817. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13818. need_version=yes
  13819. ;;
  13820. esac
  13821. shlibpath_var=LD_LIBRARY_PATH
  13822. case $host_os in
  13823. freebsd2*)
  13824. shlibpath_overrides_runpath=yes
  13825. ;;
  13826. freebsd3.[01]* | freebsdelf3.[01]*)
  13827. shlibpath_overrides_runpath=yes
  13828. hardcode_into_libs=yes
  13829. ;;
  13830. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13831. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13832. shlibpath_overrides_runpath=no
  13833. hardcode_into_libs=yes
  13834. ;;
  13835. *) # from 4.6 on, and DragonFly
  13836. shlibpath_overrides_runpath=yes
  13837. hardcode_into_libs=yes
  13838. ;;
  13839. esac
  13840. ;;
  13841. gnu*)
  13842. version_type=linux
  13843. need_lib_prefix=no
  13844. need_version=no
  13845. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13846. soname_spec='${libname}${release}${shared_ext}$major'
  13847. shlibpath_var=LD_LIBRARY_PATH
  13848. hardcode_into_libs=yes
  13849. ;;
  13850. hpux9* | hpux10* | hpux11*)
  13851. # Give a soname corresponding to the major version so that dld.sl refuses to
  13852. # link against other versions.
  13853. version_type=sunos
  13854. need_lib_prefix=no
  13855. need_version=no
  13856. case $host_cpu in
  13857. ia64*)
  13858. shrext_cmds='.so'
  13859. hardcode_into_libs=yes
  13860. dynamic_linker="$host_os dld.so"
  13861. shlibpath_var=LD_LIBRARY_PATH
  13862. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13864. soname_spec='${libname}${release}${shared_ext}$major'
  13865. if test "X$HPUX_IA64_MODE" = X32; then
  13866. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13867. else
  13868. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13869. fi
  13870. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13871. ;;
  13872. hppa*64*)
  13873. shrext_cmds='.sl'
  13874. hardcode_into_libs=yes
  13875. dynamic_linker="$host_os dld.sl"
  13876. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13877. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13879. soname_spec='${libname}${release}${shared_ext}$major'
  13880. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13881. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13882. ;;
  13883. *)
  13884. shrext_cmds='.sl'
  13885. dynamic_linker="$host_os dld.sl"
  13886. shlibpath_var=SHLIB_PATH
  13887. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13889. soname_spec='${libname}${release}${shared_ext}$major'
  13890. ;;
  13891. esac
  13892. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13893. postinstall_cmds='chmod 555 $lib'
  13894. ;;
  13895. interix[3-9]*)
  13896. version_type=linux
  13897. need_lib_prefix=no
  13898. need_version=no
  13899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13900. soname_spec='${libname}${release}${shared_ext}$major'
  13901. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13902. shlibpath_var=LD_LIBRARY_PATH
  13903. shlibpath_overrides_runpath=no
  13904. hardcode_into_libs=yes
  13905. ;;
  13906. irix5* | irix6* | nonstopux*)
  13907. case $host_os in
  13908. nonstopux*) version_type=nonstopux ;;
  13909. *)
  13910. if test "$lt_cv_prog_gnu_ld" = yes; then
  13911. version_type=linux
  13912. else
  13913. version_type=irix
  13914. fi ;;
  13915. esac
  13916. need_lib_prefix=no
  13917. need_version=no
  13918. soname_spec='${libname}${release}${shared_ext}$major'
  13919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13920. case $host_os in
  13921. irix5* | nonstopux*)
  13922. libsuff= shlibsuff=
  13923. ;;
  13924. *)
  13925. case $LD in # libtool.m4 will add one of these switches to LD
  13926. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13927. libsuff= shlibsuff= libmagic=32-bit;;
  13928. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13929. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13930. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13931. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13932. *) libsuff= shlibsuff= libmagic=never-match;;
  13933. esac
  13934. ;;
  13935. esac
  13936. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13937. shlibpath_overrides_runpath=no
  13938. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13939. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13940. hardcode_into_libs=yes
  13941. ;;
  13942. # No shared lib support for Linux oldld, aout, or coff.
  13943. linux*oldld* | linux*aout* | linux*coff*)
  13944. dynamic_linker=no
  13945. ;;
  13946. # This must be Linux ELF.
  13947. linux* | k*bsd*-gnu)
  13948. version_type=linux
  13949. need_lib_prefix=no
  13950. need_version=no
  13951. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13952. soname_spec='${libname}${release}${shared_ext}$major'
  13953. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13954. shlibpath_var=LD_LIBRARY_PATH
  13955. shlibpath_overrides_runpath=no
  13956. # This implies no fast_install, which is unacceptable.
  13957. # Some rework will be needed to allow for fast_install
  13958. # before this can be enabled.
  13959. hardcode_into_libs=yes
  13960. # Append ld.so.conf contents to the search path
  13961. if test -f /etc/ld.so.conf; then
  13962. 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' ' '`
  13963. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13964. fi
  13965. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13966. # powerpc, because MkLinux only supported shared libraries with the
  13967. # GNU dynamic linker. Since this was broken with cross compilers,
  13968. # most powerpc-linux boxes support dynamic linking these days and
  13969. # people can always --disable-shared, the test was removed, and we
  13970. # assume the GNU/Linux dynamic linker is in use.
  13971. dynamic_linker='GNU/Linux ld.so'
  13972. ;;
  13973. netbsd*)
  13974. version_type=sunos
  13975. need_lib_prefix=no
  13976. need_version=no
  13977. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13979. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13980. dynamic_linker='NetBSD (a.out) ld.so'
  13981. else
  13982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13983. soname_spec='${libname}${release}${shared_ext}$major'
  13984. dynamic_linker='NetBSD ld.elf_so'
  13985. fi
  13986. shlibpath_var=LD_LIBRARY_PATH
  13987. shlibpath_overrides_runpath=yes
  13988. hardcode_into_libs=yes
  13989. ;;
  13990. newsos6)
  13991. version_type=linux
  13992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13993. shlibpath_var=LD_LIBRARY_PATH
  13994. shlibpath_overrides_runpath=yes
  13995. ;;
  13996. nto-qnx*)
  13997. version_type=linux
  13998. need_lib_prefix=no
  13999. need_version=no
  14000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14001. soname_spec='${libname}${release}${shared_ext}$major'
  14002. shlibpath_var=LD_LIBRARY_PATH
  14003. shlibpath_overrides_runpath=yes
  14004. ;;
  14005. openbsd*)
  14006. version_type=sunos
  14007. sys_lib_dlsearch_path_spec="/usr/lib"
  14008. need_lib_prefix=no
  14009. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14010. case $host_os in
  14011. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14012. *) need_version=no ;;
  14013. esac
  14014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14015. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14016. shlibpath_var=LD_LIBRARY_PATH
  14017. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14018. case $host_os in
  14019. openbsd2.[89] | openbsd2.[89].*)
  14020. shlibpath_overrides_runpath=no
  14021. ;;
  14022. *)
  14023. shlibpath_overrides_runpath=yes
  14024. ;;
  14025. esac
  14026. else
  14027. shlibpath_overrides_runpath=yes
  14028. fi
  14029. ;;
  14030. os2*)
  14031. libname_spec='$name'
  14032. shrext_cmds=".dll"
  14033. need_lib_prefix=no
  14034. library_names_spec='$libname${shared_ext} $libname.a'
  14035. dynamic_linker='OS/2 ld.exe'
  14036. shlibpath_var=LIBPATH
  14037. ;;
  14038. osf3* | osf4* | osf5*)
  14039. version_type=osf
  14040. need_lib_prefix=no
  14041. need_version=no
  14042. soname_spec='${libname}${release}${shared_ext}$major'
  14043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14044. shlibpath_var=LD_LIBRARY_PATH
  14045. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14046. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14047. ;;
  14048. rdos*)
  14049. dynamic_linker=no
  14050. ;;
  14051. solaris*)
  14052. version_type=linux
  14053. need_lib_prefix=no
  14054. need_version=no
  14055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14056. soname_spec='${libname}${release}${shared_ext}$major'
  14057. shlibpath_var=LD_LIBRARY_PATH
  14058. shlibpath_overrides_runpath=yes
  14059. hardcode_into_libs=yes
  14060. # ldd complains unless libraries are executable
  14061. postinstall_cmds='chmod +x $lib'
  14062. ;;
  14063. sunos4*)
  14064. version_type=sunos
  14065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14066. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14067. shlibpath_var=LD_LIBRARY_PATH
  14068. shlibpath_overrides_runpath=yes
  14069. if test "$with_gnu_ld" = yes; then
  14070. need_lib_prefix=no
  14071. fi
  14072. need_version=yes
  14073. ;;
  14074. sysv4 | sysv4.3*)
  14075. version_type=linux
  14076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14077. soname_spec='${libname}${release}${shared_ext}$major'
  14078. shlibpath_var=LD_LIBRARY_PATH
  14079. case $host_vendor in
  14080. sni)
  14081. shlibpath_overrides_runpath=no
  14082. need_lib_prefix=no
  14083. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14084. runpath_var=LD_RUN_PATH
  14085. ;;
  14086. siemens)
  14087. need_lib_prefix=no
  14088. ;;
  14089. motorola)
  14090. need_lib_prefix=no
  14091. need_version=no
  14092. shlibpath_overrides_runpath=no
  14093. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14094. ;;
  14095. esac
  14096. ;;
  14097. sysv4*MP*)
  14098. if test -d /usr/nec ;then
  14099. version_type=linux
  14100. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14101. soname_spec='$libname${shared_ext}.$major'
  14102. shlibpath_var=LD_LIBRARY_PATH
  14103. fi
  14104. ;;
  14105. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14106. version_type=freebsd-elf
  14107. need_lib_prefix=no
  14108. need_version=no
  14109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14110. soname_spec='${libname}${release}${shared_ext}$major'
  14111. shlibpath_var=LD_LIBRARY_PATH
  14112. hardcode_into_libs=yes
  14113. if test "$with_gnu_ld" = yes; then
  14114. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14115. shlibpath_overrides_runpath=no
  14116. else
  14117. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14118. shlibpath_overrides_runpath=yes
  14119. case $host_os in
  14120. sco3.2v5*)
  14121. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14122. ;;
  14123. esac
  14124. fi
  14125. sys_lib_dlsearch_path_spec='/usr/lib'
  14126. ;;
  14127. uts4*)
  14128. version_type=linux
  14129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14130. soname_spec='${libname}${release}${shared_ext}$major'
  14131. shlibpath_var=LD_LIBRARY_PATH
  14132. ;;
  14133. *)
  14134. dynamic_linker=no
  14135. ;;
  14136. esac
  14137. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14138. echo "${ECHO_T}$dynamic_linker" >&6; }
  14139. test "$dynamic_linker" = no && can_build_shared=no
  14140. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14141. if test "$GCC" = yes; then
  14142. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14143. fi
  14144. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14145. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14146. hardcode_action_F77=
  14147. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14148. test -n "$runpath_var_F77" || \
  14149. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14150. # We can hardcode non-existant directories.
  14151. if test "$hardcode_direct_F77" != no &&
  14152. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14153. # have to relink, otherwise we might link with an installed library
  14154. # when we should be linking with a yet-to-be-installed one
  14155. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14156. test "$hardcode_minus_L_F77" != no; then
  14157. # Linking always hardcodes the temporary library directory.
  14158. hardcode_action_F77=relink
  14159. else
  14160. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14161. hardcode_action_F77=immediate
  14162. fi
  14163. else
  14164. # We cannot hardcode anything, or else we can only hardcode existing
  14165. # directories.
  14166. hardcode_action_F77=unsupported
  14167. fi
  14168. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14169. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14170. if test "$hardcode_action_F77" = relink; then
  14171. # Fast installation is not supported
  14172. enable_fast_install=no
  14173. elif test "$shlibpath_overrides_runpath" = yes ||
  14174. test "$enable_shared" = no; then
  14175. # Fast installation is not necessary
  14176. enable_fast_install=needless
  14177. fi
  14178. # The else clause should only fire when bootstrapping the
  14179. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14180. # with your package, and you will get complaints that there are
  14181. # no rules to generate ltmain.sh.
  14182. if test -f "$ltmain"; then
  14183. # See if we are running on zsh, and set the options which allow our commands through
  14184. # without removal of \ escapes.
  14185. if test -n "${ZSH_VERSION+set}" ; then
  14186. setopt NO_GLOB_SUBST
  14187. fi
  14188. # Now quote all the things that may contain metacharacters while being
  14189. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14190. # variables and quote the copies for generation of the libtool script.
  14191. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14192. SED SHELL STRIP \
  14193. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14194. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14195. deplibs_check_method reload_flag reload_cmds need_locks \
  14196. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14197. lt_cv_sys_global_symbol_to_c_name_address \
  14198. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14199. old_postinstall_cmds old_postuninstall_cmds \
  14200. compiler_F77 \
  14201. CC_F77 \
  14202. LD_F77 \
  14203. lt_prog_compiler_wl_F77 \
  14204. lt_prog_compiler_pic_F77 \
  14205. lt_prog_compiler_static_F77 \
  14206. lt_prog_compiler_no_builtin_flag_F77 \
  14207. export_dynamic_flag_spec_F77 \
  14208. thread_safe_flag_spec_F77 \
  14209. whole_archive_flag_spec_F77 \
  14210. enable_shared_with_static_runtimes_F77 \
  14211. old_archive_cmds_F77 \
  14212. old_archive_from_new_cmds_F77 \
  14213. predep_objects_F77 \
  14214. postdep_objects_F77 \
  14215. predeps_F77 \
  14216. postdeps_F77 \
  14217. compiler_lib_search_path_F77 \
  14218. archive_cmds_F77 \
  14219. archive_expsym_cmds_F77 \
  14220. postinstall_cmds_F77 \
  14221. postuninstall_cmds_F77 \
  14222. old_archive_from_expsyms_cmds_F77 \
  14223. allow_undefined_flag_F77 \
  14224. no_undefined_flag_F77 \
  14225. export_symbols_cmds_F77 \
  14226. hardcode_libdir_flag_spec_F77 \
  14227. hardcode_libdir_flag_spec_ld_F77 \
  14228. hardcode_libdir_separator_F77 \
  14229. hardcode_automatic_F77 \
  14230. module_cmds_F77 \
  14231. module_expsym_cmds_F77 \
  14232. lt_cv_prog_compiler_c_o_F77 \
  14233. fix_srcfile_path_F77 \
  14234. exclude_expsyms_F77 \
  14235. include_expsyms_F77; do
  14236. case $var in
  14237. old_archive_cmds_F77 | \
  14238. old_archive_from_new_cmds_F77 | \
  14239. archive_cmds_F77 | \
  14240. archive_expsym_cmds_F77 | \
  14241. module_cmds_F77 | \
  14242. module_expsym_cmds_F77 | \
  14243. old_archive_from_expsyms_cmds_F77 | \
  14244. export_symbols_cmds_F77 | \
  14245. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14246. postinstall_cmds | postuninstall_cmds | \
  14247. old_postinstall_cmds | old_postuninstall_cmds | \
  14248. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14249. # Double-quote double-evaled strings.
  14250. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14251. ;;
  14252. *)
  14253. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14254. ;;
  14255. esac
  14256. done
  14257. case $lt_echo in
  14258. *'\$0 --fallback-echo"')
  14259. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14260. ;;
  14261. esac
  14262. cfgfile="$ofile"
  14263. cat <<__EOF__ >> "$cfgfile"
  14264. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14265. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14266. # Shell to use when invoking shell scripts.
  14267. SHELL=$lt_SHELL
  14268. # Whether or not to build shared libraries.
  14269. build_libtool_libs=$enable_shared
  14270. # Whether or not to build static libraries.
  14271. build_old_libs=$enable_static
  14272. # Whether or not to add -lc for building shared libraries.
  14273. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14274. # Whether or not to disallow shared libs when runtime libs are static
  14275. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14276. # Whether or not to optimize for fast installation.
  14277. fast_install=$enable_fast_install
  14278. # The host system.
  14279. host_alias=$host_alias
  14280. host=$host
  14281. host_os=$host_os
  14282. # The build system.
  14283. build_alias=$build_alias
  14284. build=$build
  14285. build_os=$build_os
  14286. # An echo program that does not interpret backslashes.
  14287. echo=$lt_echo
  14288. # The archiver.
  14289. AR=$lt_AR
  14290. AR_FLAGS=$lt_AR_FLAGS
  14291. # A C compiler.
  14292. LTCC=$lt_LTCC
  14293. # LTCC compiler flags.
  14294. LTCFLAGS=$lt_LTCFLAGS
  14295. # A language-specific compiler.
  14296. CC=$lt_compiler_F77
  14297. # Is the compiler the GNU C compiler?
  14298. with_gcc=$GCC_F77
  14299. # An ERE matcher.
  14300. EGREP=$lt_EGREP
  14301. # The linker used to build libraries.
  14302. LD=$lt_LD_F77
  14303. # Whether we need hard or soft links.
  14304. LN_S=$lt_LN_S
  14305. # A BSD-compatible nm program.
  14306. NM=$lt_NM
  14307. # A symbol stripping program
  14308. STRIP=$lt_STRIP
  14309. # Used to examine libraries when file_magic_cmd begins "file"
  14310. MAGIC_CMD=$MAGIC_CMD
  14311. # Used on cygwin: DLL creation program.
  14312. DLLTOOL="$DLLTOOL"
  14313. # Used on cygwin: object dumper.
  14314. OBJDUMP="$OBJDUMP"
  14315. # Used on cygwin: assembler.
  14316. AS="$AS"
  14317. # The name of the directory that contains temporary libtool files.
  14318. objdir=$objdir
  14319. # How to create reloadable object files.
  14320. reload_flag=$lt_reload_flag
  14321. reload_cmds=$lt_reload_cmds
  14322. # How to pass a linker flag through the compiler.
  14323. wl=$lt_lt_prog_compiler_wl_F77
  14324. # Object file suffix (normally "o").
  14325. objext="$ac_objext"
  14326. # Old archive suffix (normally "a").
  14327. libext="$libext"
  14328. # Shared library suffix (normally ".so").
  14329. shrext_cmds='$shrext_cmds'
  14330. # Executable file suffix (normally "").
  14331. exeext="$exeext"
  14332. # Additional compiler flags for building library objects.
  14333. pic_flag=$lt_lt_prog_compiler_pic_F77
  14334. pic_mode=$pic_mode
  14335. # What is the maximum length of a command?
  14336. max_cmd_len=$lt_cv_sys_max_cmd_len
  14337. # Does compiler simultaneously support -c and -o options?
  14338. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14339. # Must we lock files when doing compilation?
  14340. need_locks=$lt_need_locks
  14341. # Do we need the lib prefix for modules?
  14342. need_lib_prefix=$need_lib_prefix
  14343. # Do we need a version for libraries?
  14344. need_version=$need_version
  14345. # Whether dlopen is supported.
  14346. dlopen_support=$enable_dlopen
  14347. # Whether dlopen of programs is supported.
  14348. dlopen_self=$enable_dlopen_self
  14349. # Whether dlopen of statically linked programs is supported.
  14350. dlopen_self_static=$enable_dlopen_self_static
  14351. # Compiler flag to prevent dynamic linking.
  14352. link_static_flag=$lt_lt_prog_compiler_static_F77
  14353. # Compiler flag to turn off builtin functions.
  14354. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14355. # Compiler flag to allow reflexive dlopens.
  14356. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14357. # Compiler flag to generate shared objects directly from archives.
  14358. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14359. # Compiler flag to generate thread-safe objects.
  14360. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14361. # Library versioning type.
  14362. version_type=$version_type
  14363. # Format of library name prefix.
  14364. libname_spec=$lt_libname_spec
  14365. # List of archive names. First name is the real one, the rest are links.
  14366. # The last name is the one that the linker finds with -lNAME.
  14367. library_names_spec=$lt_library_names_spec
  14368. # The coded name of the library, if different from the real name.
  14369. soname_spec=$lt_soname_spec
  14370. # Commands used to build and install an old-style archive.
  14371. RANLIB=$lt_RANLIB
  14372. old_archive_cmds=$lt_old_archive_cmds_F77
  14373. old_postinstall_cmds=$lt_old_postinstall_cmds
  14374. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14375. # Create an old-style archive from a shared archive.
  14376. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14377. # Create a temporary old-style archive to link instead of a shared archive.
  14378. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14379. # Commands used to build and install a shared archive.
  14380. archive_cmds=$lt_archive_cmds_F77
  14381. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14382. postinstall_cmds=$lt_postinstall_cmds
  14383. postuninstall_cmds=$lt_postuninstall_cmds
  14384. # Commands used to build a loadable module (assumed same as above if empty)
  14385. module_cmds=$lt_module_cmds_F77
  14386. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14387. # Commands to strip libraries.
  14388. old_striplib=$lt_old_striplib
  14389. striplib=$lt_striplib
  14390. # Dependencies to place before the objects being linked to create a
  14391. # shared library.
  14392. predep_objects=$lt_predep_objects_F77
  14393. # Dependencies to place after the objects being linked to create a
  14394. # shared library.
  14395. postdep_objects=$lt_postdep_objects_F77
  14396. # Dependencies to place before the objects being linked to create a
  14397. # shared library.
  14398. predeps=$lt_predeps_F77
  14399. # Dependencies to place after the objects being linked to create a
  14400. # shared library.
  14401. postdeps=$lt_postdeps_F77
  14402. # The library search path used internally by the compiler when linking
  14403. # a shared library.
  14404. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14405. # Method to check whether dependent libraries are shared objects.
  14406. deplibs_check_method=$lt_deplibs_check_method
  14407. # Command to use when deplibs_check_method == file_magic.
  14408. file_magic_cmd=$lt_file_magic_cmd
  14409. # Flag that allows shared libraries with undefined symbols to be built.
  14410. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14411. # Flag that forces no undefined symbols.
  14412. no_undefined_flag=$lt_no_undefined_flag_F77
  14413. # Commands used to finish a libtool library installation in a directory.
  14414. finish_cmds=$lt_finish_cmds
  14415. # Same as above, but a single script fragment to be evaled but not shown.
  14416. finish_eval=$lt_finish_eval
  14417. # Take the output of nm and produce a listing of raw symbols and C names.
  14418. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14419. # Transform the output of nm in a proper C declaration
  14420. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14421. # Transform the output of nm in a C name address pair
  14422. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14423. # This is the shared library runtime path variable.
  14424. runpath_var=$runpath_var
  14425. # This is the shared library path variable.
  14426. shlibpath_var=$shlibpath_var
  14427. # Is shlibpath searched before the hard-coded library search path?
  14428. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14429. # How to hardcode a shared library path into an executable.
  14430. hardcode_action=$hardcode_action_F77
  14431. # Whether we should hardcode library paths into libraries.
  14432. hardcode_into_libs=$hardcode_into_libs
  14433. # Flag to hardcode \$libdir into a binary during linking.
  14434. # This must work even if \$libdir does not exist.
  14435. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14436. # If ld is used when linking, flag to hardcode \$libdir into
  14437. # a binary during linking. This must work even if \$libdir does
  14438. # not exist.
  14439. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14440. # Whether we need a single -rpath flag with a separated argument.
  14441. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14442. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14443. # resulting binary.
  14444. hardcode_direct=$hardcode_direct_F77
  14445. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14446. # resulting binary.
  14447. hardcode_minus_L=$hardcode_minus_L_F77
  14448. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14449. # the resulting binary.
  14450. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14451. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14452. # and all subsequent libraries and executables linked against it.
  14453. hardcode_automatic=$hardcode_automatic_F77
  14454. # Variables whose values should be saved in libtool wrapper scripts and
  14455. # restored at relink time.
  14456. variables_saved_for_relink="$variables_saved_for_relink"
  14457. # Whether libtool must link a program against all its dependency libraries.
  14458. link_all_deplibs=$link_all_deplibs_F77
  14459. # Compile-time system search path for libraries
  14460. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14461. # Run-time system search path for libraries
  14462. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14463. # Fix the shell variable \$srcfile for the compiler.
  14464. fix_srcfile_path=$lt_fix_srcfile_path
  14465. # Set to yes if exported symbols are required.
  14466. always_export_symbols=$always_export_symbols_F77
  14467. # The commands to list exported symbols.
  14468. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14469. # The commands to extract the exported symbol list from a shared archive.
  14470. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14471. # Symbols that should not be listed in the preloaded symbols.
  14472. exclude_expsyms=$lt_exclude_expsyms_F77
  14473. # Symbols that must always be exported.
  14474. include_expsyms=$lt_include_expsyms_F77
  14475. # ### END LIBTOOL TAG CONFIG: $tagname
  14476. __EOF__
  14477. else
  14478. # If there is no Makefile yet, we rely on a make rule to execute
  14479. # `config.status --recheck' to rerun these tests and create the
  14480. # libtool script then.
  14481. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14482. if test -f "$ltmain_in"; then
  14483. test -f Makefile && make "$ltmain"
  14484. fi
  14485. fi
  14486. ac_ext=cpp
  14487. ac_cpp='$CXXCPP $CPPFLAGS'
  14488. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14489. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14490. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14491. CC="$lt_save_CC"
  14492. else
  14493. tagname=""
  14494. fi
  14495. ;;
  14496. GCJ)
  14497. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14498. # Source file extension for Java test sources.
  14499. ac_ext=java
  14500. # Object file extension for compiled Java test sources.
  14501. objext=o
  14502. objext_GCJ=$objext
  14503. # Code to be used in simple compile tests
  14504. lt_simple_compile_test_code="class foo {}"
  14505. # Code to be used in simple link tests
  14506. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  14507. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14508. # If no C compiler was specified, use CC.
  14509. LTCC=${LTCC-"$CC"}
  14510. # If no C compiler flags were specified, use CFLAGS.
  14511. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14512. # Allow CC to be a program name with arguments.
  14513. compiler=$CC
  14514. # save warnings/boilerplate of simple test code
  14515. ac_outfile=conftest.$ac_objext
  14516. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14517. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14518. _lt_compiler_boilerplate=`cat conftest.err`
  14519. $rm conftest*
  14520. ac_outfile=conftest.$ac_objext
  14521. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14522. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14523. _lt_linker_boilerplate=`cat conftest.err`
  14524. $rm conftest*
  14525. # Allow CC to be a program name with arguments.
  14526. lt_save_CC="$CC"
  14527. CC=${GCJ-"gcj"}
  14528. compiler=$CC
  14529. compiler_GCJ=$CC
  14530. for cc_temp in $compiler""; do
  14531. case $cc_temp in
  14532. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14533. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14534. \-*) ;;
  14535. *) break;;
  14536. esac
  14537. done
  14538. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14539. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14540. archive_cmds_need_lc_GCJ=no
  14541. old_archive_cmds_GCJ=$old_archive_cmds
  14542. lt_prog_compiler_no_builtin_flag_GCJ=
  14543. if test "$GCC" = yes; then
  14544. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14545. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14546. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14547. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14548. echo $ECHO_N "(cached) $ECHO_C" >&6
  14549. else
  14550. lt_cv_prog_compiler_rtti_exceptions=no
  14551. ac_outfile=conftest.$ac_objext
  14552. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14553. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14554. # Insert the option either (1) after the last *FLAGS variable, or
  14555. # (2) before a word containing "conftest.", or (3) at the end.
  14556. # Note that $ac_compile itself does not contain backslashes and begins
  14557. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14558. # The option is referenced via a variable to avoid confusing sed.
  14559. lt_compile=`echo "$ac_compile" | $SED \
  14560. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14561. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14562. -e 's:$: $lt_compiler_flag:'`
  14563. (eval echo "\"\$as_me:16324: $lt_compile\"" >&5)
  14564. (eval "$lt_compile" 2>conftest.err)
  14565. ac_status=$?
  14566. cat conftest.err >&5
  14567. echo "$as_me:16328: \$? = $ac_status" >&5
  14568. if (exit $ac_status) && test -s "$ac_outfile"; then
  14569. # The compiler can only warn and ignore the option if not recognized
  14570. # So say no if there are warnings other than the usual output.
  14571. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14572. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14573. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14574. lt_cv_prog_compiler_rtti_exceptions=yes
  14575. fi
  14576. fi
  14577. $rm conftest*
  14578. fi
  14579. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14580. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14581. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14582. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14583. else
  14584. :
  14585. fi
  14586. fi
  14587. lt_prog_compiler_wl_GCJ=
  14588. lt_prog_compiler_pic_GCJ=
  14589. lt_prog_compiler_static_GCJ=
  14590. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14591. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14592. if test "$GCC" = yes; then
  14593. lt_prog_compiler_wl_GCJ='-Wl,'
  14594. lt_prog_compiler_static_GCJ='-static'
  14595. case $host_os in
  14596. aix*)
  14597. # All AIX code is PIC.
  14598. if test "$host_cpu" = ia64; then
  14599. # AIX 5 now supports IA64 processor
  14600. lt_prog_compiler_static_GCJ='-Bstatic'
  14601. fi
  14602. ;;
  14603. amigaos*)
  14604. # FIXME: we need at least 68020 code to build shared libraries, but
  14605. # adding the `-m68020' flag to GCC prevents building anything better,
  14606. # like `-m68040'.
  14607. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14608. ;;
  14609. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14610. # PIC is the default for these OSes.
  14611. ;;
  14612. mingw* | cygwin* | pw32* | os2*)
  14613. # This hack is so that the source file can tell whether it is being
  14614. # built for inclusion in a dll (and should export symbols for example).
  14615. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14616. # (--disable-auto-import) libraries
  14617. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14618. ;;
  14619. darwin* | rhapsody*)
  14620. # PIC is the default on this platform
  14621. # Common symbols not allowed in MH_DYLIB files
  14622. lt_prog_compiler_pic_GCJ='-fno-common'
  14623. ;;
  14624. interix[3-9]*)
  14625. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14626. # Instead, we relocate shared libraries at runtime.
  14627. ;;
  14628. msdosdjgpp*)
  14629. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14630. # on systems that don't support them.
  14631. lt_prog_compiler_can_build_shared_GCJ=no
  14632. enable_shared=no
  14633. ;;
  14634. sysv4*MP*)
  14635. if test -d /usr/nec; then
  14636. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14637. fi
  14638. ;;
  14639. hpux*)
  14640. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14641. # not for PA HP-UX.
  14642. case $host_cpu in
  14643. hppa*64*|ia64*)
  14644. # +Z the default
  14645. ;;
  14646. *)
  14647. lt_prog_compiler_pic_GCJ='-fPIC'
  14648. ;;
  14649. esac
  14650. ;;
  14651. *)
  14652. lt_prog_compiler_pic_GCJ='-fPIC'
  14653. ;;
  14654. esac
  14655. else
  14656. # PORTME Check for flag to pass linker flags through the system compiler.
  14657. case $host_os in
  14658. aix*)
  14659. lt_prog_compiler_wl_GCJ='-Wl,'
  14660. if test "$host_cpu" = ia64; then
  14661. # AIX 5 now supports IA64 processor
  14662. lt_prog_compiler_static_GCJ='-Bstatic'
  14663. else
  14664. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14665. fi
  14666. ;;
  14667. darwin*)
  14668. # PIC is the default on this platform
  14669. # Common symbols not allowed in MH_DYLIB files
  14670. case $cc_basename in
  14671. xlc*)
  14672. lt_prog_compiler_pic_GCJ='-qnocommon'
  14673. lt_prog_compiler_wl_GCJ='-Wl,'
  14674. ;;
  14675. esac
  14676. ;;
  14677. mingw* | cygwin* | pw32* | os2*)
  14678. # This hack is so that the source file can tell whether it is being
  14679. # built for inclusion in a dll (and should export symbols for example).
  14680. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14681. ;;
  14682. hpux9* | hpux10* | hpux11*)
  14683. lt_prog_compiler_wl_GCJ='-Wl,'
  14684. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14685. # not for PA HP-UX.
  14686. case $host_cpu in
  14687. hppa*64*|ia64*)
  14688. # +Z the default
  14689. ;;
  14690. *)
  14691. lt_prog_compiler_pic_GCJ='+Z'
  14692. ;;
  14693. esac
  14694. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14695. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14696. ;;
  14697. irix5* | irix6* | nonstopux*)
  14698. lt_prog_compiler_wl_GCJ='-Wl,'
  14699. # PIC (with -KPIC) is the default.
  14700. lt_prog_compiler_static_GCJ='-non_shared'
  14701. ;;
  14702. newsos6)
  14703. lt_prog_compiler_pic_GCJ='-KPIC'
  14704. lt_prog_compiler_static_GCJ='-Bstatic'
  14705. ;;
  14706. linux* | k*bsd*-gnu)
  14707. case $cc_basename in
  14708. icc* | ecc*)
  14709. lt_prog_compiler_wl_GCJ='-Wl,'
  14710. lt_prog_compiler_pic_GCJ='-KPIC'
  14711. lt_prog_compiler_static_GCJ='-static'
  14712. ;;
  14713. pgcc* | pgf77* | pgf90* | pgf95*)
  14714. # Portland Group compilers (*not* the Pentium gcc compiler,
  14715. # which looks to be a dead project)
  14716. lt_prog_compiler_wl_GCJ='-Wl,'
  14717. lt_prog_compiler_pic_GCJ='-fpic'
  14718. lt_prog_compiler_static_GCJ='-Bstatic'
  14719. ;;
  14720. ccc*)
  14721. lt_prog_compiler_wl_GCJ='-Wl,'
  14722. # All Alpha code is PIC.
  14723. lt_prog_compiler_static_GCJ='-non_shared'
  14724. ;;
  14725. *)
  14726. case `$CC -V 2>&1 | sed 5q` in
  14727. *Sun\ C*)
  14728. # Sun C 5.9
  14729. lt_prog_compiler_pic_GCJ='-KPIC'
  14730. lt_prog_compiler_static_GCJ='-Bstatic'
  14731. lt_prog_compiler_wl_GCJ='-Wl,'
  14732. ;;
  14733. *Sun\ F*)
  14734. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  14735. lt_prog_compiler_pic_GCJ='-KPIC'
  14736. lt_prog_compiler_static_GCJ='-Bstatic'
  14737. lt_prog_compiler_wl_GCJ=''
  14738. ;;
  14739. esac
  14740. ;;
  14741. esac
  14742. ;;
  14743. osf3* | osf4* | osf5*)
  14744. lt_prog_compiler_wl_GCJ='-Wl,'
  14745. # All OSF/1 code is PIC.
  14746. lt_prog_compiler_static_GCJ='-non_shared'
  14747. ;;
  14748. rdos*)
  14749. lt_prog_compiler_static_GCJ='-non_shared'
  14750. ;;
  14751. solaris*)
  14752. lt_prog_compiler_pic_GCJ='-KPIC'
  14753. lt_prog_compiler_static_GCJ='-Bstatic'
  14754. case $cc_basename in
  14755. f77* | f90* | f95*)
  14756. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14757. *)
  14758. lt_prog_compiler_wl_GCJ='-Wl,';;
  14759. esac
  14760. ;;
  14761. sunos4*)
  14762. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14763. lt_prog_compiler_pic_GCJ='-PIC'
  14764. lt_prog_compiler_static_GCJ='-Bstatic'
  14765. ;;
  14766. sysv4 | sysv4.2uw2* | sysv4.3*)
  14767. lt_prog_compiler_wl_GCJ='-Wl,'
  14768. lt_prog_compiler_pic_GCJ='-KPIC'
  14769. lt_prog_compiler_static_GCJ='-Bstatic'
  14770. ;;
  14771. sysv4*MP*)
  14772. if test -d /usr/nec ;then
  14773. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14774. lt_prog_compiler_static_GCJ='-Bstatic'
  14775. fi
  14776. ;;
  14777. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14778. lt_prog_compiler_wl_GCJ='-Wl,'
  14779. lt_prog_compiler_pic_GCJ='-KPIC'
  14780. lt_prog_compiler_static_GCJ='-Bstatic'
  14781. ;;
  14782. unicos*)
  14783. lt_prog_compiler_wl_GCJ='-Wl,'
  14784. lt_prog_compiler_can_build_shared_GCJ=no
  14785. ;;
  14786. uts4*)
  14787. lt_prog_compiler_pic_GCJ='-pic'
  14788. lt_prog_compiler_static_GCJ='-Bstatic'
  14789. ;;
  14790. *)
  14791. lt_prog_compiler_can_build_shared_GCJ=no
  14792. ;;
  14793. esac
  14794. fi
  14795. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14796. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  14797. #
  14798. # Check to make sure the PIC flag actually works.
  14799. #
  14800. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14801. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14802. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  14803. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14804. echo $ECHO_N "(cached) $ECHO_C" >&6
  14805. else
  14806. lt_prog_compiler_pic_works_GCJ=no
  14807. ac_outfile=conftest.$ac_objext
  14808. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14809. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14810. # Insert the option either (1) after the last *FLAGS variable, or
  14811. # (2) before a word containing "conftest.", or (3) at the end.
  14812. # Note that $ac_compile itself does not contain backslashes and begins
  14813. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14814. # The option is referenced via a variable to avoid confusing sed.
  14815. lt_compile=`echo "$ac_compile" | $SED \
  14816. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14817. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14818. -e 's:$: $lt_compiler_flag:'`
  14819. (eval echo "\"\$as_me:16614: $lt_compile\"" >&5)
  14820. (eval "$lt_compile" 2>conftest.err)
  14821. ac_status=$?
  14822. cat conftest.err >&5
  14823. echo "$as_me:16618: \$? = $ac_status" >&5
  14824. if (exit $ac_status) && test -s "$ac_outfile"; then
  14825. # The compiler can only warn and ignore the option if not recognized
  14826. # So say no if there are warnings other than the usual output.
  14827. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14828. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14829. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14830. lt_prog_compiler_pic_works_GCJ=yes
  14831. fi
  14832. fi
  14833. $rm conftest*
  14834. fi
  14835. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14836. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  14837. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14838. case $lt_prog_compiler_pic_GCJ in
  14839. "" | " "*) ;;
  14840. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14841. esac
  14842. else
  14843. lt_prog_compiler_pic_GCJ=
  14844. lt_prog_compiler_can_build_shared_GCJ=no
  14845. fi
  14846. fi
  14847. case $host_os in
  14848. # For platforms which do not support PIC, -DPIC is meaningless:
  14849. *djgpp*)
  14850. lt_prog_compiler_pic_GCJ=
  14851. ;;
  14852. *)
  14853. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14854. ;;
  14855. esac
  14856. #
  14857. # Check to make sure the static flag actually works.
  14858. #
  14859. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14860. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14861. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  14862. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14863. echo $ECHO_N "(cached) $ECHO_C" >&6
  14864. else
  14865. lt_prog_compiler_static_works_GCJ=no
  14866. save_LDFLAGS="$LDFLAGS"
  14867. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14868. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14869. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14870. # The linker can only warn and ignore the option if not recognized
  14871. # So say no if there are warnings
  14872. if test -s conftest.err; then
  14873. # Append any errors to the config.log.
  14874. cat conftest.err 1>&5
  14875. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14876. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14877. if diff conftest.exp conftest.er2 >/dev/null; then
  14878. lt_prog_compiler_static_works_GCJ=yes
  14879. fi
  14880. else
  14881. lt_prog_compiler_static_works_GCJ=yes
  14882. fi
  14883. fi
  14884. $rm conftest*
  14885. LDFLAGS="$save_LDFLAGS"
  14886. fi
  14887. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14888. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  14889. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14890. :
  14891. else
  14892. lt_prog_compiler_static_GCJ=
  14893. fi
  14894. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14895. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  14896. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14897. echo $ECHO_N "(cached) $ECHO_C" >&6
  14898. else
  14899. lt_cv_prog_compiler_c_o_GCJ=no
  14900. $rm -r conftest 2>/dev/null
  14901. mkdir conftest
  14902. cd conftest
  14903. mkdir out
  14904. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14905. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14906. # Insert the option either (1) after the last *FLAGS variable, or
  14907. # (2) before a word containing "conftest.", or (3) at the end.
  14908. # Note that $ac_compile itself does not contain backslashes and begins
  14909. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14910. lt_compile=`echo "$ac_compile" | $SED \
  14911. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14912. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14913. -e 's:$: $lt_compiler_flag:'`
  14914. (eval echo "\"\$as_me:16718: $lt_compile\"" >&5)
  14915. (eval "$lt_compile" 2>out/conftest.err)
  14916. ac_status=$?
  14917. cat out/conftest.err >&5
  14918. echo "$as_me:16722: \$? = $ac_status" >&5
  14919. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14920. then
  14921. # The compiler can only warn and ignore the option if not recognized
  14922. # So say no if there are warnings
  14923. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14924. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14925. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14926. lt_cv_prog_compiler_c_o_GCJ=yes
  14927. fi
  14928. fi
  14929. chmod u+w . 2>&5
  14930. $rm conftest*
  14931. # SGI C++ compiler will create directory out/ii_files/ for
  14932. # template instantiation
  14933. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14934. $rm out/* && rmdir out
  14935. cd ..
  14936. rmdir conftest
  14937. $rm conftest*
  14938. fi
  14939. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14940. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  14941. hard_links="nottested"
  14942. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14943. # do not overwrite the value of need_locks provided by the user
  14944. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14945. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  14946. hard_links=yes
  14947. $rm conftest*
  14948. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14949. touch conftest.a
  14950. ln conftest.a conftest.b 2>&5 || hard_links=no
  14951. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14952. { echo "$as_me:$LINENO: result: $hard_links" >&5
  14953. echo "${ECHO_T}$hard_links" >&6; }
  14954. if test "$hard_links" = no; then
  14955. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14956. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14957. need_locks=warn
  14958. fi
  14959. else
  14960. need_locks=no
  14961. fi
  14962. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14963. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  14964. runpath_var=
  14965. allow_undefined_flag_GCJ=
  14966. enable_shared_with_static_runtimes_GCJ=no
  14967. archive_cmds_GCJ=
  14968. archive_expsym_cmds_GCJ=
  14969. old_archive_From_new_cmds_GCJ=
  14970. old_archive_from_expsyms_cmds_GCJ=
  14971. export_dynamic_flag_spec_GCJ=
  14972. whole_archive_flag_spec_GCJ=
  14973. thread_safe_flag_spec_GCJ=
  14974. hardcode_libdir_flag_spec_GCJ=
  14975. hardcode_libdir_flag_spec_ld_GCJ=
  14976. hardcode_libdir_separator_GCJ=
  14977. hardcode_direct_GCJ=no
  14978. hardcode_minus_L_GCJ=no
  14979. hardcode_shlibpath_var_GCJ=unsupported
  14980. link_all_deplibs_GCJ=unknown
  14981. hardcode_automatic_GCJ=no
  14982. module_cmds_GCJ=
  14983. module_expsym_cmds_GCJ=
  14984. always_export_symbols_GCJ=no
  14985. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14986. # include_expsyms should be a list of space-separated symbols to be *always*
  14987. # included in the symbol list
  14988. include_expsyms_GCJ=
  14989. # exclude_expsyms can be an extended regexp of symbols to exclude
  14990. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14991. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14992. # as well as any symbol that contains `d'.
  14993. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14994. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14995. # platforms (ab)use it in PIC code, but their linkers get confused if
  14996. # the symbol is explicitly referenced. Since portable code cannot
  14997. # rely on this symbol name, it's probably fine to never include it in
  14998. # preloaded symbol tables.
  14999. extract_expsyms_cmds=
  15000. # Just being paranoid about ensuring that cc_basename is set.
  15001. for cc_temp in $compiler""; do
  15002. case $cc_temp in
  15003. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15004. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15005. \-*) ;;
  15006. *) break;;
  15007. esac
  15008. done
  15009. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15010. case $host_os in
  15011. cygwin* | mingw* | pw32*)
  15012. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15013. # When not using gcc, we currently assume that we are using
  15014. # Microsoft Visual C++.
  15015. if test "$GCC" != yes; then
  15016. with_gnu_ld=no
  15017. fi
  15018. ;;
  15019. interix*)
  15020. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15021. with_gnu_ld=yes
  15022. ;;
  15023. openbsd*)
  15024. with_gnu_ld=no
  15025. ;;
  15026. esac
  15027. ld_shlibs_GCJ=yes
  15028. if test "$with_gnu_ld" = yes; then
  15029. # If archive_cmds runs LD, not CC, wlarc should be empty
  15030. wlarc='${wl}'
  15031. # Set some defaults for GNU ld with shared library support. These
  15032. # are reset later if shared libraries are not supported. Putting them
  15033. # here allows them to be overridden if necessary.
  15034. runpath_var=LD_RUN_PATH
  15035. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15036. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15037. # ancient GNU ld didn't support --whole-archive et. al.
  15038. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15039. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15040. else
  15041. whole_archive_flag_spec_GCJ=
  15042. fi
  15043. supports_anon_versioning=no
  15044. case `$LD -v 2>/dev/null` in
  15045. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15046. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15047. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15048. *\ 2.11.*) ;; # other 2.11 versions
  15049. *) supports_anon_versioning=yes ;;
  15050. esac
  15051. # See if GNU ld supports shared libraries.
  15052. case $host_os in
  15053. aix3* | aix4* | aix5*)
  15054. # On AIX/PPC, the GNU linker is very broken
  15055. if test "$host_cpu" != ia64; then
  15056. ld_shlibs_GCJ=no
  15057. cat <<EOF 1>&2
  15058. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15059. *** to be unable to reliably create shared libraries on AIX.
  15060. *** Therefore, libtool is disabling shared libraries support. If you
  15061. *** really care for shared libraries, you may want to modify your PATH
  15062. *** so that a non-GNU linker is found, and then restart.
  15063. EOF
  15064. fi
  15065. ;;
  15066. amigaos*)
  15067. 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)'
  15068. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15069. hardcode_minus_L_GCJ=yes
  15070. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15071. # that the semantics of dynamic libraries on AmigaOS, at least up
  15072. # to version 4, is to share data among multiple programs linked
  15073. # with the same dynamic library. Since this doesn't match the
  15074. # behavior of shared libraries on other platforms, we can't use
  15075. # them.
  15076. ld_shlibs_GCJ=no
  15077. ;;
  15078. beos*)
  15079. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15080. allow_undefined_flag_GCJ=unsupported
  15081. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15082. # support --undefined. This deserves some investigation. FIXME
  15083. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15084. else
  15085. ld_shlibs_GCJ=no
  15086. fi
  15087. ;;
  15088. cygwin* | mingw* | pw32*)
  15089. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15090. # as there is no search path for DLLs.
  15091. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15092. allow_undefined_flag_GCJ=unsupported
  15093. always_export_symbols_GCJ=no
  15094. enable_shared_with_static_runtimes_GCJ=yes
  15095. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15096. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15097. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15098. # If the export-symbols file already is a .def file (1st line
  15099. # is EXPORTS), use it as is; otherwise, prepend...
  15100. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15101. cp $export_symbols $output_objdir/$soname.def;
  15102. else
  15103. echo EXPORTS > $output_objdir/$soname.def;
  15104. cat $export_symbols >> $output_objdir/$soname.def;
  15105. fi~
  15106. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15107. else
  15108. ld_shlibs_GCJ=no
  15109. fi
  15110. ;;
  15111. interix[3-9]*)
  15112. hardcode_direct_GCJ=no
  15113. hardcode_shlibpath_var_GCJ=no
  15114. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15115. export_dynamic_flag_spec_GCJ='${wl}-E'
  15116. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15117. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15118. # default) and relocated if they conflict, which is a slow very memory
  15119. # consuming and fragmenting process. To avoid this, we pick a random,
  15120. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15121. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15122. 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'
  15123. 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'
  15124. ;;
  15125. gnu* | linux* | k*bsd*-gnu)
  15126. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15127. tmp_addflag=
  15128. case $cc_basename,$host_cpu in
  15129. pgcc*) # Portland Group C compiler
  15130. 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'
  15131. tmp_addflag=' $pic_flag'
  15132. ;;
  15133. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15134. 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'
  15135. tmp_addflag=' $pic_flag -Mnomain' ;;
  15136. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15137. tmp_addflag=' -i_dynamic' ;;
  15138. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15139. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15140. ifc* | ifort*) # Intel Fortran compiler
  15141. tmp_addflag=' -nofor_main' ;;
  15142. esac
  15143. case `$CC -V 2>&1 | sed 5q` in
  15144. *Sun\ C*) # Sun C 5.9
  15145. 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'
  15146. tmp_sharedflag='-G' ;;
  15147. *Sun\ F*) # Sun Fortran 8.3
  15148. tmp_sharedflag='-G' ;;
  15149. *)
  15150. tmp_sharedflag='-shared' ;;
  15151. esac
  15152. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15153. if test $supports_anon_versioning = yes; then
  15154. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15155. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15156. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15157. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15158. fi
  15159. else
  15160. ld_shlibs_GCJ=no
  15161. fi
  15162. ;;
  15163. netbsd*)
  15164. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15165. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15166. wlarc=
  15167. else
  15168. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15169. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15170. fi
  15171. ;;
  15172. solaris*)
  15173. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15174. ld_shlibs_GCJ=no
  15175. cat <<EOF 1>&2
  15176. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15177. *** create shared libraries on Solaris systems. Therefore, libtool
  15178. *** is disabling shared libraries support. We urge you to upgrade GNU
  15179. *** binutils to release 2.9.1 or newer. Another option is to modify
  15180. *** your PATH or compiler configuration so that the native linker is
  15181. *** used, and then restart.
  15182. EOF
  15183. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15184. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15185. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15186. else
  15187. ld_shlibs_GCJ=no
  15188. fi
  15189. ;;
  15190. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15191. case `$LD -v 2>&1` in
  15192. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15193. ld_shlibs_GCJ=no
  15194. cat <<_LT_EOF 1>&2
  15195. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15196. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15197. *** is disabling shared libraries support. We urge you to upgrade GNU
  15198. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15199. *** your PATH or compiler configuration so that the native linker is
  15200. *** used, and then restart.
  15201. _LT_EOF
  15202. ;;
  15203. *)
  15204. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15205. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15206. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15207. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15208. else
  15209. ld_shlibs_GCJ=no
  15210. fi
  15211. ;;
  15212. esac
  15213. ;;
  15214. sunos4*)
  15215. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15216. wlarc=
  15217. hardcode_direct_GCJ=yes
  15218. hardcode_shlibpath_var_GCJ=no
  15219. ;;
  15220. *)
  15221. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15222. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15223. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15224. else
  15225. ld_shlibs_GCJ=no
  15226. fi
  15227. ;;
  15228. esac
  15229. if test "$ld_shlibs_GCJ" = no; then
  15230. runpath_var=
  15231. hardcode_libdir_flag_spec_GCJ=
  15232. export_dynamic_flag_spec_GCJ=
  15233. whole_archive_flag_spec_GCJ=
  15234. fi
  15235. else
  15236. # PORTME fill in a description of your system's linker (not GNU ld)
  15237. case $host_os in
  15238. aix3*)
  15239. allow_undefined_flag_GCJ=unsupported
  15240. always_export_symbols_GCJ=yes
  15241. 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'
  15242. # Note: this linker hardcodes the directories in LIBPATH if there
  15243. # are no directories specified by -L.
  15244. hardcode_minus_L_GCJ=yes
  15245. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15246. # Neither direct hardcoding nor static linking is supported with a
  15247. # broken collect2.
  15248. hardcode_direct_GCJ=unsupported
  15249. fi
  15250. ;;
  15251. aix4* | aix5*)
  15252. if test "$host_cpu" = ia64; then
  15253. # On IA64, the linker does run time linking by default, so we don't
  15254. # have to do anything special.
  15255. aix_use_runtimelinking=no
  15256. exp_sym_flag='-Bexport'
  15257. no_entry_flag=""
  15258. else
  15259. # If we're using GNU nm, then we don't want the "-C" option.
  15260. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15261. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15262. 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'
  15263. else
  15264. 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'
  15265. fi
  15266. aix_use_runtimelinking=no
  15267. # Test if we are trying to use run time linking or normal
  15268. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15269. # need to do runtime linking.
  15270. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15271. for ld_flag in $LDFLAGS; do
  15272. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15273. aix_use_runtimelinking=yes
  15274. break
  15275. fi
  15276. done
  15277. ;;
  15278. esac
  15279. exp_sym_flag='-bexport'
  15280. no_entry_flag='-bnoentry'
  15281. fi
  15282. # When large executables or shared objects are built, AIX ld can
  15283. # have problems creating the table of contents. If linking a library
  15284. # or program results in "error TOC overflow" add -mminimal-toc to
  15285. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15286. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15287. archive_cmds_GCJ=''
  15288. hardcode_direct_GCJ=yes
  15289. hardcode_libdir_separator_GCJ=':'
  15290. link_all_deplibs_GCJ=yes
  15291. if test "$GCC" = yes; then
  15292. case $host_os in aix4.[012]|aix4.[012].*)
  15293. # We only want to do this on AIX 4.2 and lower, the check
  15294. # below for broken collect2 doesn't work under 4.3+
  15295. collect2name=`${CC} -print-prog-name=collect2`
  15296. if test -f "$collect2name" && \
  15297. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15298. then
  15299. # We have reworked collect2
  15300. :
  15301. else
  15302. # We have old collect2
  15303. hardcode_direct_GCJ=unsupported
  15304. # It fails to find uninstalled libraries when the uninstalled
  15305. # path is not listed in the libpath. Setting hardcode_minus_L
  15306. # to unsupported forces relinking
  15307. hardcode_minus_L_GCJ=yes
  15308. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15309. hardcode_libdir_separator_GCJ=
  15310. fi
  15311. ;;
  15312. esac
  15313. shared_flag='-shared'
  15314. if test "$aix_use_runtimelinking" = yes; then
  15315. shared_flag="$shared_flag "'${wl}-G'
  15316. fi
  15317. else
  15318. # not using gcc
  15319. if test "$host_cpu" = ia64; then
  15320. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15321. # chokes on -Wl,-G. The following line is correct:
  15322. shared_flag='-G'
  15323. else
  15324. if test "$aix_use_runtimelinking" = yes; then
  15325. shared_flag='${wl}-G'
  15326. else
  15327. shared_flag='${wl}-bM:SRE'
  15328. fi
  15329. fi
  15330. fi
  15331. # It seems that -bexpall does not export symbols beginning with
  15332. # underscore (_), so it is better to generate a list of symbols to export.
  15333. always_export_symbols_GCJ=yes
  15334. if test "$aix_use_runtimelinking" = yes; then
  15335. # Warning - without using the other runtime loading flags (-brtl),
  15336. # -berok will link without error, but may produce a broken library.
  15337. allow_undefined_flag_GCJ='-berok'
  15338. # Determine the default libpath from the value encoded in an empty executable.
  15339. cat >conftest.$ac_ext <<_ACEOF
  15340. /* confdefs.h. */
  15341. _ACEOF
  15342. cat confdefs.h >>conftest.$ac_ext
  15343. cat >>conftest.$ac_ext <<_ACEOF
  15344. /* end confdefs.h. */
  15345. int
  15346. main ()
  15347. {
  15348. ;
  15349. return 0;
  15350. }
  15351. _ACEOF
  15352. rm -f conftest.$ac_objext conftest$ac_exeext
  15353. if { (ac_try="$ac_link"
  15354. case "(($ac_try" in
  15355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15356. *) ac_try_echo=$ac_try;;
  15357. esac
  15358. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15359. (eval "$ac_link") 2>conftest.er1
  15360. ac_status=$?
  15361. grep -v '^ *+' conftest.er1 >conftest.err
  15362. rm -f conftest.er1
  15363. cat conftest.err >&5
  15364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15365. (exit $ac_status); } && {
  15366. test -z "$ac_cxx_werror_flag" ||
  15367. test ! -s conftest.err
  15368. } && test -s conftest$ac_exeext &&
  15369. $as_test_x conftest$ac_exeext; then
  15370. lt_aix_libpath_sed='
  15371. /Import File Strings/,/^$/ {
  15372. /^0/ {
  15373. s/^0 *\(.*\)$/\1/
  15374. p
  15375. }
  15376. }'
  15377. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15378. # Check for a 64-bit object if we didn't find anything.
  15379. if test -z "$aix_libpath"; then
  15380. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15381. fi
  15382. else
  15383. echo "$as_me: failed program was:" >&5
  15384. sed 's/^/| /' conftest.$ac_ext >&5
  15385. fi
  15386. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15387. conftest$ac_exeext conftest.$ac_ext
  15388. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15389. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15390. 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"
  15391. else
  15392. if test "$host_cpu" = ia64; then
  15393. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15394. allow_undefined_flag_GCJ="-z nodefs"
  15395. 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"
  15396. else
  15397. # Determine the default libpath from the value encoded in an empty executable.
  15398. cat >conftest.$ac_ext <<_ACEOF
  15399. /* confdefs.h. */
  15400. _ACEOF
  15401. cat confdefs.h >>conftest.$ac_ext
  15402. cat >>conftest.$ac_ext <<_ACEOF
  15403. /* end confdefs.h. */
  15404. int
  15405. main ()
  15406. {
  15407. ;
  15408. return 0;
  15409. }
  15410. _ACEOF
  15411. rm -f conftest.$ac_objext conftest$ac_exeext
  15412. if { (ac_try="$ac_link"
  15413. case "(($ac_try" in
  15414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15415. *) ac_try_echo=$ac_try;;
  15416. esac
  15417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15418. (eval "$ac_link") 2>conftest.er1
  15419. ac_status=$?
  15420. grep -v '^ *+' conftest.er1 >conftest.err
  15421. rm -f conftest.er1
  15422. cat conftest.err >&5
  15423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15424. (exit $ac_status); } && {
  15425. test -z "$ac_cxx_werror_flag" ||
  15426. test ! -s conftest.err
  15427. } && test -s conftest$ac_exeext &&
  15428. $as_test_x conftest$ac_exeext; then
  15429. lt_aix_libpath_sed='
  15430. /Import File Strings/,/^$/ {
  15431. /^0/ {
  15432. s/^0 *\(.*\)$/\1/
  15433. p
  15434. }
  15435. }'
  15436. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15437. # Check for a 64-bit object if we didn't find anything.
  15438. if test -z "$aix_libpath"; then
  15439. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15440. fi
  15441. else
  15442. echo "$as_me: failed program was:" >&5
  15443. sed 's/^/| /' conftest.$ac_ext >&5
  15444. fi
  15445. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15446. conftest$ac_exeext conftest.$ac_ext
  15447. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15448. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15449. # Warning - without using the other run time loading flags,
  15450. # -berok will link without error, but may produce a broken library.
  15451. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15452. allow_undefined_flag_GCJ=' ${wl}-berok'
  15453. # Exported symbols can be pulled into shared objects from archives
  15454. whole_archive_flag_spec_GCJ='$convenience'
  15455. archive_cmds_need_lc_GCJ=yes
  15456. # This is similar to how AIX traditionally builds its shared libraries.
  15457. 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'
  15458. fi
  15459. fi
  15460. ;;
  15461. amigaos*)
  15462. 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)'
  15463. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15464. hardcode_minus_L_GCJ=yes
  15465. # see comment about different semantics on the GNU ld section
  15466. ld_shlibs_GCJ=no
  15467. ;;
  15468. bsdi[45]*)
  15469. export_dynamic_flag_spec_GCJ=-rdynamic
  15470. ;;
  15471. cygwin* | mingw* | pw32*)
  15472. # When not using gcc, we currently assume that we are using
  15473. # Microsoft Visual C++.
  15474. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15475. # no search path for DLLs.
  15476. hardcode_libdir_flag_spec_GCJ=' '
  15477. allow_undefined_flag_GCJ=unsupported
  15478. # Tell ltmain to make .lib files, not .a files.
  15479. libext=lib
  15480. # Tell ltmain to make .dll files, not .so files.
  15481. shrext_cmds=".dll"
  15482. # FIXME: Setting linknames here is a bad hack.
  15483. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15484. # The linker will automatically build a .lib file if we build a DLL.
  15485. old_archive_From_new_cmds_GCJ='true'
  15486. # FIXME: Should let the user specify the lib program.
  15487. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  15488. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15489. enable_shared_with_static_runtimes_GCJ=yes
  15490. ;;
  15491. darwin* | rhapsody*)
  15492. case $host_os in
  15493. rhapsody* | darwin1.[012])
  15494. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15495. ;;
  15496. *) # Darwin 1.3 on
  15497. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15498. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15499. else
  15500. case ${MACOSX_DEPLOYMENT_TARGET} in
  15501. 10.[012])
  15502. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15503. ;;
  15504. 10.*)
  15505. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15506. ;;
  15507. esac
  15508. fi
  15509. ;;
  15510. esac
  15511. archive_cmds_need_lc_GCJ=no
  15512. hardcode_direct_GCJ=no
  15513. hardcode_automatic_GCJ=yes
  15514. hardcode_shlibpath_var_GCJ=unsupported
  15515. whole_archive_flag_spec_GCJ=''
  15516. link_all_deplibs_GCJ=yes
  15517. if test "$GCC" = yes ; then
  15518. output_verbose_link_cmd='echo'
  15519. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15520. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15521. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15522. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15523. 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}'
  15524. else
  15525. case $cc_basename in
  15526. xlc*)
  15527. output_verbose_link_cmd='echo'
  15528. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  15529. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15530. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15531. 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}'
  15532. 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}'
  15533. ;;
  15534. *)
  15535. ld_shlibs_GCJ=no
  15536. ;;
  15537. esac
  15538. fi
  15539. ;;
  15540. dgux*)
  15541. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15542. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15543. hardcode_shlibpath_var_GCJ=no
  15544. ;;
  15545. freebsd1*)
  15546. ld_shlibs_GCJ=no
  15547. ;;
  15548. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15549. # support. Future versions do this automatically, but an explicit c++rt0.o
  15550. # does not break anything, and helps significantly (at the cost of a little
  15551. # extra space).
  15552. freebsd2.2*)
  15553. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15554. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15555. hardcode_direct_GCJ=yes
  15556. hardcode_shlibpath_var_GCJ=no
  15557. ;;
  15558. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15559. freebsd2*)
  15560. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15561. hardcode_direct_GCJ=yes
  15562. hardcode_minus_L_GCJ=yes
  15563. hardcode_shlibpath_var_GCJ=no
  15564. ;;
  15565. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15566. freebsd* | dragonfly*)
  15567. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15568. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15569. hardcode_direct_GCJ=yes
  15570. hardcode_shlibpath_var_GCJ=no
  15571. ;;
  15572. hpux9*)
  15573. if test "$GCC" = yes; then
  15574. 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'
  15575. else
  15576. 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'
  15577. fi
  15578. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15579. hardcode_libdir_separator_GCJ=:
  15580. hardcode_direct_GCJ=yes
  15581. # hardcode_minus_L: Not really in the search PATH,
  15582. # but as the default location of the library.
  15583. hardcode_minus_L_GCJ=yes
  15584. export_dynamic_flag_spec_GCJ='${wl}-E'
  15585. ;;
  15586. hpux10*)
  15587. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15588. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15589. else
  15590. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15591. fi
  15592. if test "$with_gnu_ld" = no; then
  15593. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15594. hardcode_libdir_separator_GCJ=:
  15595. hardcode_direct_GCJ=yes
  15596. export_dynamic_flag_spec_GCJ='${wl}-E'
  15597. # hardcode_minus_L: Not really in the search PATH,
  15598. # but as the default location of the library.
  15599. hardcode_minus_L_GCJ=yes
  15600. fi
  15601. ;;
  15602. hpux11*)
  15603. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15604. case $host_cpu in
  15605. hppa*64*)
  15606. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15607. ;;
  15608. ia64*)
  15609. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15610. ;;
  15611. *)
  15612. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15613. ;;
  15614. esac
  15615. else
  15616. case $host_cpu in
  15617. hppa*64*)
  15618. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15619. ;;
  15620. ia64*)
  15621. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15622. ;;
  15623. *)
  15624. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15625. ;;
  15626. esac
  15627. fi
  15628. if test "$with_gnu_ld" = no; then
  15629. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15630. hardcode_libdir_separator_GCJ=:
  15631. case $host_cpu in
  15632. hppa*64*|ia64*)
  15633. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15634. hardcode_direct_GCJ=no
  15635. hardcode_shlibpath_var_GCJ=no
  15636. ;;
  15637. *)
  15638. hardcode_direct_GCJ=yes
  15639. export_dynamic_flag_spec_GCJ='${wl}-E'
  15640. # hardcode_minus_L: Not really in the search PATH,
  15641. # but as the default location of the library.
  15642. hardcode_minus_L_GCJ=yes
  15643. ;;
  15644. esac
  15645. fi
  15646. ;;
  15647. irix5* | irix6* | nonstopux*)
  15648. if test "$GCC" = yes; then
  15649. 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'
  15650. else
  15651. 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'
  15652. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15653. fi
  15654. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15655. hardcode_libdir_separator_GCJ=:
  15656. link_all_deplibs_GCJ=yes
  15657. ;;
  15658. netbsd*)
  15659. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15660. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15661. else
  15662. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15663. fi
  15664. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15665. hardcode_direct_GCJ=yes
  15666. hardcode_shlibpath_var_GCJ=no
  15667. ;;
  15668. newsos6)
  15669. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15670. hardcode_direct_GCJ=yes
  15671. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15672. hardcode_libdir_separator_GCJ=:
  15673. hardcode_shlibpath_var_GCJ=no
  15674. ;;
  15675. openbsd*)
  15676. if test -f /usr/libexec/ld.so; then
  15677. hardcode_direct_GCJ=yes
  15678. hardcode_shlibpath_var_GCJ=no
  15679. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15680. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15681. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15682. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15683. export_dynamic_flag_spec_GCJ='${wl}-E'
  15684. else
  15685. case $host_os in
  15686. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15687. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15688. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15689. ;;
  15690. *)
  15691. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15692. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15693. ;;
  15694. esac
  15695. fi
  15696. else
  15697. ld_shlibs_GCJ=no
  15698. fi
  15699. ;;
  15700. os2*)
  15701. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15702. hardcode_minus_L_GCJ=yes
  15703. allow_undefined_flag_GCJ=unsupported
  15704. 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'
  15705. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15706. ;;
  15707. osf3*)
  15708. if test "$GCC" = yes; then
  15709. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15710. 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'
  15711. else
  15712. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15713. 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'
  15714. fi
  15715. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15716. hardcode_libdir_separator_GCJ=:
  15717. ;;
  15718. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15719. if test "$GCC" = yes; then
  15720. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15721. 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'
  15722. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15723. else
  15724. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15725. 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'
  15726. 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~
  15727. $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'
  15728. # Both c and cxx compiler support -rpath directly
  15729. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15730. fi
  15731. hardcode_libdir_separator_GCJ=:
  15732. ;;
  15733. solaris*)
  15734. no_undefined_flag_GCJ=' -z text'
  15735. if test "$GCC" = yes; then
  15736. wlarc='${wl}'
  15737. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15738. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15739. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15740. else
  15741. wlarc=''
  15742. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15743. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15744. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15745. fi
  15746. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15747. hardcode_shlibpath_var_GCJ=no
  15748. case $host_os in
  15749. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15750. *)
  15751. # The compiler driver will combine and reorder linker options,
  15752. # but understands `-z linker_flag'. GCC discards it without `$wl',
  15753. # but is careful enough not to reorder.
  15754. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15755. if test "$GCC" = yes; then
  15756. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  15757. else
  15758. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  15759. fi
  15760. ;;
  15761. esac
  15762. link_all_deplibs_GCJ=yes
  15763. ;;
  15764. sunos4*)
  15765. if test "x$host_vendor" = xsequent; then
  15766. # Use $CC to link under sequent, because it throws in some extra .o
  15767. # files that make .init and .fini sections work.
  15768. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15769. else
  15770. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15771. fi
  15772. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15773. hardcode_direct_GCJ=yes
  15774. hardcode_minus_L_GCJ=yes
  15775. hardcode_shlibpath_var_GCJ=no
  15776. ;;
  15777. sysv4)
  15778. case $host_vendor in
  15779. sni)
  15780. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15781. hardcode_direct_GCJ=yes # is this really true???
  15782. ;;
  15783. siemens)
  15784. ## LD is ld it makes a PLAMLIB
  15785. ## CC just makes a GrossModule.
  15786. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15787. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15788. hardcode_direct_GCJ=no
  15789. ;;
  15790. motorola)
  15791. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15792. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15793. ;;
  15794. esac
  15795. runpath_var='LD_RUN_PATH'
  15796. hardcode_shlibpath_var_GCJ=no
  15797. ;;
  15798. sysv4.3*)
  15799. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15800. hardcode_shlibpath_var_GCJ=no
  15801. export_dynamic_flag_spec_GCJ='-Bexport'
  15802. ;;
  15803. sysv4*MP*)
  15804. if test -d /usr/nec; then
  15805. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15806. hardcode_shlibpath_var_GCJ=no
  15807. runpath_var=LD_RUN_PATH
  15808. hardcode_runpath_var=yes
  15809. ld_shlibs_GCJ=yes
  15810. fi
  15811. ;;
  15812. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  15813. no_undefined_flag_GCJ='${wl}-z,text'
  15814. archive_cmds_need_lc_GCJ=no
  15815. hardcode_shlibpath_var_GCJ=no
  15816. runpath_var='LD_RUN_PATH'
  15817. if test "$GCC" = yes; then
  15818. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15819. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15820. else
  15821. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15822. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15823. fi
  15824. ;;
  15825. sysv5* | sco3.2v5* | sco5v6*)
  15826. # Note: We can NOT use -z defs as we might desire, because we do not
  15827. # link with -lc, and that would cause any symbols used from libc to
  15828. # always be unresolved, which means just about no library would
  15829. # ever link correctly. If we're not using GNU ld we use -z text
  15830. # though, which does catch some bad symbols but isn't as heavy-handed
  15831. # as -z defs.
  15832. no_undefined_flag_GCJ='${wl}-z,text'
  15833. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15834. archive_cmds_need_lc_GCJ=no
  15835. hardcode_shlibpath_var_GCJ=no
  15836. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15837. hardcode_libdir_separator_GCJ=':'
  15838. link_all_deplibs_GCJ=yes
  15839. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15840. runpath_var='LD_RUN_PATH'
  15841. if test "$GCC" = yes; then
  15842. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15843. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15844. else
  15845. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15846. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15847. fi
  15848. ;;
  15849. uts4*)
  15850. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15851. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15852. hardcode_shlibpath_var_GCJ=no
  15853. ;;
  15854. *)
  15855. ld_shlibs_GCJ=no
  15856. ;;
  15857. esac
  15858. fi
  15859. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15860. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  15861. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15862. #
  15863. # Do we need to explicitly link libc?
  15864. #
  15865. case "x$archive_cmds_need_lc_GCJ" in
  15866. x|xyes)
  15867. # Assume -lc should be added
  15868. archive_cmds_need_lc_GCJ=yes
  15869. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15870. case $archive_cmds_GCJ in
  15871. *'~'*)
  15872. # FIXME: we may have to deal with multi-command sequences.
  15873. ;;
  15874. '$CC '*)
  15875. # Test whether the compiler implicitly links with -lc since on some
  15876. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15877. # to ld, don't add -lc before -lgcc.
  15878. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15879. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  15880. $rm conftest*
  15881. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15882. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15883. (eval $ac_compile) 2>&5
  15884. ac_status=$?
  15885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15886. (exit $ac_status); } 2>conftest.err; then
  15887. soname=conftest
  15888. lib=conftest
  15889. libobjs=conftest.$ac_objext
  15890. deplibs=
  15891. wl=$lt_prog_compiler_wl_GCJ
  15892. pic_flag=$lt_prog_compiler_pic_GCJ
  15893. compiler_flags=-v
  15894. linker_flags=-v
  15895. verstring=
  15896. output_objdir=.
  15897. libname=conftest
  15898. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15899. allow_undefined_flag_GCJ=
  15900. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15901. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15902. ac_status=$?
  15903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15904. (exit $ac_status); }
  15905. then
  15906. archive_cmds_need_lc_GCJ=no
  15907. else
  15908. archive_cmds_need_lc_GCJ=yes
  15909. fi
  15910. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15911. else
  15912. cat conftest.err 1>&5
  15913. fi
  15914. $rm conftest*
  15915. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15916. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  15917. ;;
  15918. esac
  15919. fi
  15920. ;;
  15921. esac
  15922. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15923. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  15924. library_names_spec=
  15925. libname_spec='lib$name'
  15926. soname_spec=
  15927. shrext_cmds=".so"
  15928. postinstall_cmds=
  15929. postuninstall_cmds=
  15930. finish_cmds=
  15931. finish_eval=
  15932. shlibpath_var=
  15933. shlibpath_overrides_runpath=unknown
  15934. version_type=none
  15935. dynamic_linker="$host_os ld.so"
  15936. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15937. need_lib_prefix=unknown
  15938. hardcode_into_libs=no
  15939. # when you set need_version to no, make sure it does not cause -set_version
  15940. # flags to be left without arguments
  15941. need_version=unknown
  15942. case $host_os in
  15943. aix3*)
  15944. version_type=linux
  15945. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15946. shlibpath_var=LIBPATH
  15947. # AIX 3 has no versioning support, so we append a major version to the name.
  15948. soname_spec='${libname}${release}${shared_ext}$major'
  15949. ;;
  15950. aix4* | aix5*)
  15951. version_type=linux
  15952. need_lib_prefix=no
  15953. need_version=no
  15954. hardcode_into_libs=yes
  15955. if test "$host_cpu" = ia64; then
  15956. # AIX 5 supports IA64
  15957. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15958. shlibpath_var=LD_LIBRARY_PATH
  15959. else
  15960. # With GCC up to 2.95.x, collect2 would create an import file
  15961. # for dependence libraries. The import file would start with
  15962. # the line `#! .'. This would cause the generated library to
  15963. # depend on `.', always an invalid library. This was fixed in
  15964. # development snapshots of GCC prior to 3.0.
  15965. case $host_os in
  15966. aix4 | aix4.[01] | aix4.[01].*)
  15967. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15968. echo ' yes '
  15969. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15970. :
  15971. else
  15972. can_build_shared=no
  15973. fi
  15974. ;;
  15975. esac
  15976. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15977. # soname into executable. Probably we can add versioning support to
  15978. # collect2, so additional links can be useful in future.
  15979. if test "$aix_use_runtimelinking" = yes; then
  15980. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15981. # instead of lib<name>.a to let people know that these are not
  15982. # typical AIX shared libraries.
  15983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15984. else
  15985. # We preserve .a as extension for shared libraries through AIX4.2
  15986. # and later when we are not doing run time linking.
  15987. library_names_spec='${libname}${release}.a $libname.a'
  15988. soname_spec='${libname}${release}${shared_ext}$major'
  15989. fi
  15990. shlibpath_var=LIBPATH
  15991. fi
  15992. ;;
  15993. amigaos*)
  15994. library_names_spec='$libname.ixlibrary $libname.a'
  15995. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15996. 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'
  15997. ;;
  15998. beos*)
  15999. library_names_spec='${libname}${shared_ext}'
  16000. dynamic_linker="$host_os ld.so"
  16001. shlibpath_var=LIBRARY_PATH
  16002. ;;
  16003. bsdi[45]*)
  16004. version_type=linux
  16005. need_version=no
  16006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16007. soname_spec='${libname}${release}${shared_ext}$major'
  16008. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16009. shlibpath_var=LD_LIBRARY_PATH
  16010. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16011. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16012. # the default ld.so.conf also contains /usr/contrib/lib and
  16013. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16014. # libtool to hard-code these into programs
  16015. ;;
  16016. cygwin* | mingw* | pw32*)
  16017. version_type=windows
  16018. shrext_cmds=".dll"
  16019. need_version=no
  16020. need_lib_prefix=no
  16021. case $GCC,$host_os in
  16022. yes,cygwin* | yes,mingw* | yes,pw32*)
  16023. library_names_spec='$libname.dll.a'
  16024. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16025. postinstall_cmds='base_file=`basename \${file}`~
  16026. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16027. dldir=$destdir/`dirname \$dlpath`~
  16028. test -d \$dldir || mkdir -p \$dldir~
  16029. $install_prog $dir/$dlname \$dldir/$dlname~
  16030. chmod a+x \$dldir/$dlname'
  16031. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16032. dlpath=$dir/\$dldll~
  16033. $rm \$dlpath'
  16034. shlibpath_overrides_runpath=yes
  16035. case $host_os in
  16036. cygwin*)
  16037. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16038. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16039. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16040. ;;
  16041. mingw*)
  16042. # MinGW DLLs use traditional 'lib' prefix
  16043. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16044. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16045. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16046. # It is most probably a Windows format PATH printed by
  16047. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16048. # path with ; separators, and with drive letters. We can handle the
  16049. # drive letters (cygwin fileutils understands them), so leave them,
  16050. # especially as we might pass files found there to a mingw objdump,
  16051. # which wouldn't understand a cygwinified path. Ahh.
  16052. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16053. else
  16054. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16055. fi
  16056. ;;
  16057. pw32*)
  16058. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16059. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16060. ;;
  16061. esac
  16062. ;;
  16063. *)
  16064. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16065. ;;
  16066. esac
  16067. dynamic_linker='Win32 ld.exe'
  16068. # FIXME: first we should search . and the directory the executable is in
  16069. shlibpath_var=PATH
  16070. ;;
  16071. darwin* | rhapsody*)
  16072. dynamic_linker="$host_os dyld"
  16073. version_type=darwin
  16074. need_lib_prefix=no
  16075. need_version=no
  16076. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16077. soname_spec='${libname}${release}${major}$shared_ext'
  16078. shlibpath_overrides_runpath=yes
  16079. shlibpath_var=DYLD_LIBRARY_PATH
  16080. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16081. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16082. ;;
  16083. dgux*)
  16084. version_type=linux
  16085. need_lib_prefix=no
  16086. need_version=no
  16087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16088. soname_spec='${libname}${release}${shared_ext}$major'
  16089. shlibpath_var=LD_LIBRARY_PATH
  16090. ;;
  16091. freebsd1*)
  16092. dynamic_linker=no
  16093. ;;
  16094. freebsd* | dragonfly*)
  16095. # DragonFly does not have aout. When/if they implement a new
  16096. # versioning mechanism, adjust this.
  16097. if test -x /usr/bin/objformat; then
  16098. objformat=`/usr/bin/objformat`
  16099. else
  16100. case $host_os in
  16101. freebsd[123]*) objformat=aout ;;
  16102. *) objformat=elf ;;
  16103. esac
  16104. fi
  16105. version_type=freebsd-$objformat
  16106. case $version_type in
  16107. freebsd-elf*)
  16108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16109. need_version=no
  16110. need_lib_prefix=no
  16111. ;;
  16112. freebsd-*)
  16113. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16114. need_version=yes
  16115. ;;
  16116. esac
  16117. shlibpath_var=LD_LIBRARY_PATH
  16118. case $host_os in
  16119. freebsd2*)
  16120. shlibpath_overrides_runpath=yes
  16121. ;;
  16122. freebsd3.[01]* | freebsdelf3.[01]*)
  16123. shlibpath_overrides_runpath=yes
  16124. hardcode_into_libs=yes
  16125. ;;
  16126. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16127. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16128. shlibpath_overrides_runpath=no
  16129. hardcode_into_libs=yes
  16130. ;;
  16131. *) # from 4.6 on, and DragonFly
  16132. shlibpath_overrides_runpath=yes
  16133. hardcode_into_libs=yes
  16134. ;;
  16135. esac
  16136. ;;
  16137. gnu*)
  16138. version_type=linux
  16139. need_lib_prefix=no
  16140. need_version=no
  16141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16142. soname_spec='${libname}${release}${shared_ext}$major'
  16143. shlibpath_var=LD_LIBRARY_PATH
  16144. hardcode_into_libs=yes
  16145. ;;
  16146. hpux9* | hpux10* | hpux11*)
  16147. # Give a soname corresponding to the major version so that dld.sl refuses to
  16148. # link against other versions.
  16149. version_type=sunos
  16150. need_lib_prefix=no
  16151. need_version=no
  16152. case $host_cpu in
  16153. ia64*)
  16154. shrext_cmds='.so'
  16155. hardcode_into_libs=yes
  16156. dynamic_linker="$host_os dld.so"
  16157. shlibpath_var=LD_LIBRARY_PATH
  16158. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16160. soname_spec='${libname}${release}${shared_ext}$major'
  16161. if test "X$HPUX_IA64_MODE" = X32; then
  16162. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16163. else
  16164. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16165. fi
  16166. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16167. ;;
  16168. hppa*64*)
  16169. shrext_cmds='.sl'
  16170. hardcode_into_libs=yes
  16171. dynamic_linker="$host_os dld.sl"
  16172. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16173. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16175. soname_spec='${libname}${release}${shared_ext}$major'
  16176. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16177. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16178. ;;
  16179. *)
  16180. shrext_cmds='.sl'
  16181. dynamic_linker="$host_os dld.sl"
  16182. shlibpath_var=SHLIB_PATH
  16183. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16185. soname_spec='${libname}${release}${shared_ext}$major'
  16186. ;;
  16187. esac
  16188. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16189. postinstall_cmds='chmod 555 $lib'
  16190. ;;
  16191. interix[3-9]*)
  16192. version_type=linux
  16193. need_lib_prefix=no
  16194. need_version=no
  16195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16196. soname_spec='${libname}${release}${shared_ext}$major'
  16197. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16198. shlibpath_var=LD_LIBRARY_PATH
  16199. shlibpath_overrides_runpath=no
  16200. hardcode_into_libs=yes
  16201. ;;
  16202. irix5* | irix6* | nonstopux*)
  16203. case $host_os in
  16204. nonstopux*) version_type=nonstopux ;;
  16205. *)
  16206. if test "$lt_cv_prog_gnu_ld" = yes; then
  16207. version_type=linux
  16208. else
  16209. version_type=irix
  16210. fi ;;
  16211. esac
  16212. need_lib_prefix=no
  16213. need_version=no
  16214. soname_spec='${libname}${release}${shared_ext}$major'
  16215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16216. case $host_os in
  16217. irix5* | nonstopux*)
  16218. libsuff= shlibsuff=
  16219. ;;
  16220. *)
  16221. case $LD in # libtool.m4 will add one of these switches to LD
  16222. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16223. libsuff= shlibsuff= libmagic=32-bit;;
  16224. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16225. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16226. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16227. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16228. *) libsuff= shlibsuff= libmagic=never-match;;
  16229. esac
  16230. ;;
  16231. esac
  16232. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16233. shlibpath_overrides_runpath=no
  16234. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16235. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16236. hardcode_into_libs=yes
  16237. ;;
  16238. # No shared lib support for Linux oldld, aout, or coff.
  16239. linux*oldld* | linux*aout* | linux*coff*)
  16240. dynamic_linker=no
  16241. ;;
  16242. # This must be Linux ELF.
  16243. linux* | k*bsd*-gnu)
  16244. version_type=linux
  16245. need_lib_prefix=no
  16246. need_version=no
  16247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16248. soname_spec='${libname}${release}${shared_ext}$major'
  16249. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16250. shlibpath_var=LD_LIBRARY_PATH
  16251. shlibpath_overrides_runpath=no
  16252. # This implies no fast_install, which is unacceptable.
  16253. # Some rework will be needed to allow for fast_install
  16254. # before this can be enabled.
  16255. hardcode_into_libs=yes
  16256. # Append ld.so.conf contents to the search path
  16257. if test -f /etc/ld.so.conf; then
  16258. 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' ' '`
  16259. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16260. fi
  16261. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16262. # powerpc, because MkLinux only supported shared libraries with the
  16263. # GNU dynamic linker. Since this was broken with cross compilers,
  16264. # most powerpc-linux boxes support dynamic linking these days and
  16265. # people can always --disable-shared, the test was removed, and we
  16266. # assume the GNU/Linux dynamic linker is in use.
  16267. dynamic_linker='GNU/Linux ld.so'
  16268. ;;
  16269. netbsd*)
  16270. version_type=sunos
  16271. need_lib_prefix=no
  16272. need_version=no
  16273. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16275. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16276. dynamic_linker='NetBSD (a.out) ld.so'
  16277. else
  16278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16279. soname_spec='${libname}${release}${shared_ext}$major'
  16280. dynamic_linker='NetBSD ld.elf_so'
  16281. fi
  16282. shlibpath_var=LD_LIBRARY_PATH
  16283. shlibpath_overrides_runpath=yes
  16284. hardcode_into_libs=yes
  16285. ;;
  16286. newsos6)
  16287. version_type=linux
  16288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16289. shlibpath_var=LD_LIBRARY_PATH
  16290. shlibpath_overrides_runpath=yes
  16291. ;;
  16292. nto-qnx*)
  16293. version_type=linux
  16294. need_lib_prefix=no
  16295. need_version=no
  16296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16297. soname_spec='${libname}${release}${shared_ext}$major'
  16298. shlibpath_var=LD_LIBRARY_PATH
  16299. shlibpath_overrides_runpath=yes
  16300. ;;
  16301. openbsd*)
  16302. version_type=sunos
  16303. sys_lib_dlsearch_path_spec="/usr/lib"
  16304. need_lib_prefix=no
  16305. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16306. case $host_os in
  16307. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16308. *) need_version=no ;;
  16309. esac
  16310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16311. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16312. shlibpath_var=LD_LIBRARY_PATH
  16313. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16314. case $host_os in
  16315. openbsd2.[89] | openbsd2.[89].*)
  16316. shlibpath_overrides_runpath=no
  16317. ;;
  16318. *)
  16319. shlibpath_overrides_runpath=yes
  16320. ;;
  16321. esac
  16322. else
  16323. shlibpath_overrides_runpath=yes
  16324. fi
  16325. ;;
  16326. os2*)
  16327. libname_spec='$name'
  16328. shrext_cmds=".dll"
  16329. need_lib_prefix=no
  16330. library_names_spec='$libname${shared_ext} $libname.a'
  16331. dynamic_linker='OS/2 ld.exe'
  16332. shlibpath_var=LIBPATH
  16333. ;;
  16334. osf3* | osf4* | osf5*)
  16335. version_type=osf
  16336. need_lib_prefix=no
  16337. need_version=no
  16338. soname_spec='${libname}${release}${shared_ext}$major'
  16339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16340. shlibpath_var=LD_LIBRARY_PATH
  16341. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16342. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16343. ;;
  16344. rdos*)
  16345. dynamic_linker=no
  16346. ;;
  16347. solaris*)
  16348. version_type=linux
  16349. need_lib_prefix=no
  16350. need_version=no
  16351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16352. soname_spec='${libname}${release}${shared_ext}$major'
  16353. shlibpath_var=LD_LIBRARY_PATH
  16354. shlibpath_overrides_runpath=yes
  16355. hardcode_into_libs=yes
  16356. # ldd complains unless libraries are executable
  16357. postinstall_cmds='chmod +x $lib'
  16358. ;;
  16359. sunos4*)
  16360. version_type=sunos
  16361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16362. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16363. shlibpath_var=LD_LIBRARY_PATH
  16364. shlibpath_overrides_runpath=yes
  16365. if test "$with_gnu_ld" = yes; then
  16366. need_lib_prefix=no
  16367. fi
  16368. need_version=yes
  16369. ;;
  16370. sysv4 | sysv4.3*)
  16371. version_type=linux
  16372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16373. soname_spec='${libname}${release}${shared_ext}$major'
  16374. shlibpath_var=LD_LIBRARY_PATH
  16375. case $host_vendor in
  16376. sni)
  16377. shlibpath_overrides_runpath=no
  16378. need_lib_prefix=no
  16379. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16380. runpath_var=LD_RUN_PATH
  16381. ;;
  16382. siemens)
  16383. need_lib_prefix=no
  16384. ;;
  16385. motorola)
  16386. need_lib_prefix=no
  16387. need_version=no
  16388. shlibpath_overrides_runpath=no
  16389. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16390. ;;
  16391. esac
  16392. ;;
  16393. sysv4*MP*)
  16394. if test -d /usr/nec ;then
  16395. version_type=linux
  16396. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16397. soname_spec='$libname${shared_ext}.$major'
  16398. shlibpath_var=LD_LIBRARY_PATH
  16399. fi
  16400. ;;
  16401. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16402. version_type=freebsd-elf
  16403. need_lib_prefix=no
  16404. need_version=no
  16405. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16406. soname_spec='${libname}${release}${shared_ext}$major'
  16407. shlibpath_var=LD_LIBRARY_PATH
  16408. hardcode_into_libs=yes
  16409. if test "$with_gnu_ld" = yes; then
  16410. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16411. shlibpath_overrides_runpath=no
  16412. else
  16413. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16414. shlibpath_overrides_runpath=yes
  16415. case $host_os in
  16416. sco3.2v5*)
  16417. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16418. ;;
  16419. esac
  16420. fi
  16421. sys_lib_dlsearch_path_spec='/usr/lib'
  16422. ;;
  16423. uts4*)
  16424. version_type=linux
  16425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16426. soname_spec='${libname}${release}${shared_ext}$major'
  16427. shlibpath_var=LD_LIBRARY_PATH
  16428. ;;
  16429. *)
  16430. dynamic_linker=no
  16431. ;;
  16432. esac
  16433. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16434. echo "${ECHO_T}$dynamic_linker" >&6; }
  16435. test "$dynamic_linker" = no && can_build_shared=no
  16436. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16437. if test "$GCC" = yes; then
  16438. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16439. fi
  16440. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16441. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16442. hardcode_action_GCJ=
  16443. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16444. test -n "$runpath_var_GCJ" || \
  16445. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16446. # We can hardcode non-existant directories.
  16447. if test "$hardcode_direct_GCJ" != no &&
  16448. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16449. # have to relink, otherwise we might link with an installed library
  16450. # when we should be linking with a yet-to-be-installed one
  16451. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16452. test "$hardcode_minus_L_GCJ" != no; then
  16453. # Linking always hardcodes the temporary library directory.
  16454. hardcode_action_GCJ=relink
  16455. else
  16456. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16457. hardcode_action_GCJ=immediate
  16458. fi
  16459. else
  16460. # We cannot hardcode anything, or else we can only hardcode existing
  16461. # directories.
  16462. hardcode_action_GCJ=unsupported
  16463. fi
  16464. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16465. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16466. if test "$hardcode_action_GCJ" = relink; then
  16467. # Fast installation is not supported
  16468. enable_fast_install=no
  16469. elif test "$shlibpath_overrides_runpath" = yes ||
  16470. test "$enable_shared" = no; then
  16471. # Fast installation is not necessary
  16472. enable_fast_install=needless
  16473. fi
  16474. # The else clause should only fire when bootstrapping the
  16475. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16476. # with your package, and you will get complaints that there are
  16477. # no rules to generate ltmain.sh.
  16478. if test -f "$ltmain"; then
  16479. # See if we are running on zsh, and set the options which allow our commands through
  16480. # without removal of \ escapes.
  16481. if test -n "${ZSH_VERSION+set}" ; then
  16482. setopt NO_GLOB_SUBST
  16483. fi
  16484. # Now quote all the things that may contain metacharacters while being
  16485. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16486. # variables and quote the copies for generation of the libtool script.
  16487. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16488. SED SHELL STRIP \
  16489. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16490. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16491. deplibs_check_method reload_flag reload_cmds need_locks \
  16492. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16493. lt_cv_sys_global_symbol_to_c_name_address \
  16494. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16495. old_postinstall_cmds old_postuninstall_cmds \
  16496. compiler_GCJ \
  16497. CC_GCJ \
  16498. LD_GCJ \
  16499. lt_prog_compiler_wl_GCJ \
  16500. lt_prog_compiler_pic_GCJ \
  16501. lt_prog_compiler_static_GCJ \
  16502. lt_prog_compiler_no_builtin_flag_GCJ \
  16503. export_dynamic_flag_spec_GCJ \
  16504. thread_safe_flag_spec_GCJ \
  16505. whole_archive_flag_spec_GCJ \
  16506. enable_shared_with_static_runtimes_GCJ \
  16507. old_archive_cmds_GCJ \
  16508. old_archive_from_new_cmds_GCJ \
  16509. predep_objects_GCJ \
  16510. postdep_objects_GCJ \
  16511. predeps_GCJ \
  16512. postdeps_GCJ \
  16513. compiler_lib_search_path_GCJ \
  16514. archive_cmds_GCJ \
  16515. archive_expsym_cmds_GCJ \
  16516. postinstall_cmds_GCJ \
  16517. postuninstall_cmds_GCJ \
  16518. old_archive_from_expsyms_cmds_GCJ \
  16519. allow_undefined_flag_GCJ \
  16520. no_undefined_flag_GCJ \
  16521. export_symbols_cmds_GCJ \
  16522. hardcode_libdir_flag_spec_GCJ \
  16523. hardcode_libdir_flag_spec_ld_GCJ \
  16524. hardcode_libdir_separator_GCJ \
  16525. hardcode_automatic_GCJ \
  16526. module_cmds_GCJ \
  16527. module_expsym_cmds_GCJ \
  16528. lt_cv_prog_compiler_c_o_GCJ \
  16529. fix_srcfile_path_GCJ \
  16530. exclude_expsyms_GCJ \
  16531. include_expsyms_GCJ; do
  16532. case $var in
  16533. old_archive_cmds_GCJ | \
  16534. old_archive_from_new_cmds_GCJ | \
  16535. archive_cmds_GCJ | \
  16536. archive_expsym_cmds_GCJ | \
  16537. module_cmds_GCJ | \
  16538. module_expsym_cmds_GCJ | \
  16539. old_archive_from_expsyms_cmds_GCJ | \
  16540. export_symbols_cmds_GCJ | \
  16541. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16542. postinstall_cmds | postuninstall_cmds | \
  16543. old_postinstall_cmds | old_postuninstall_cmds | \
  16544. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16545. # Double-quote double-evaled strings.
  16546. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16547. ;;
  16548. *)
  16549. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16550. ;;
  16551. esac
  16552. done
  16553. case $lt_echo in
  16554. *'\$0 --fallback-echo"')
  16555. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16556. ;;
  16557. esac
  16558. cfgfile="$ofile"
  16559. cat <<__EOF__ >> "$cfgfile"
  16560. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16561. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16562. # Shell to use when invoking shell scripts.
  16563. SHELL=$lt_SHELL
  16564. # Whether or not to build shared libraries.
  16565. build_libtool_libs=$enable_shared
  16566. # Whether or not to build static libraries.
  16567. build_old_libs=$enable_static
  16568. # Whether or not to add -lc for building shared libraries.
  16569. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16570. # Whether or not to disallow shared libs when runtime libs are static
  16571. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16572. # Whether or not to optimize for fast installation.
  16573. fast_install=$enable_fast_install
  16574. # The host system.
  16575. host_alias=$host_alias
  16576. host=$host
  16577. host_os=$host_os
  16578. # The build system.
  16579. build_alias=$build_alias
  16580. build=$build
  16581. build_os=$build_os
  16582. # An echo program that does not interpret backslashes.
  16583. echo=$lt_echo
  16584. # The archiver.
  16585. AR=$lt_AR
  16586. AR_FLAGS=$lt_AR_FLAGS
  16587. # A C compiler.
  16588. LTCC=$lt_LTCC
  16589. # LTCC compiler flags.
  16590. LTCFLAGS=$lt_LTCFLAGS
  16591. # A language-specific compiler.
  16592. CC=$lt_compiler_GCJ
  16593. # Is the compiler the GNU C compiler?
  16594. with_gcc=$GCC_GCJ
  16595. # An ERE matcher.
  16596. EGREP=$lt_EGREP
  16597. # The linker used to build libraries.
  16598. LD=$lt_LD_GCJ
  16599. # Whether we need hard or soft links.
  16600. LN_S=$lt_LN_S
  16601. # A BSD-compatible nm program.
  16602. NM=$lt_NM
  16603. # A symbol stripping program
  16604. STRIP=$lt_STRIP
  16605. # Used to examine libraries when file_magic_cmd begins "file"
  16606. MAGIC_CMD=$MAGIC_CMD
  16607. # Used on cygwin: DLL creation program.
  16608. DLLTOOL="$DLLTOOL"
  16609. # Used on cygwin: object dumper.
  16610. OBJDUMP="$OBJDUMP"
  16611. # Used on cygwin: assembler.
  16612. AS="$AS"
  16613. # The name of the directory that contains temporary libtool files.
  16614. objdir=$objdir
  16615. # How to create reloadable object files.
  16616. reload_flag=$lt_reload_flag
  16617. reload_cmds=$lt_reload_cmds
  16618. # How to pass a linker flag through the compiler.
  16619. wl=$lt_lt_prog_compiler_wl_GCJ
  16620. # Object file suffix (normally "o").
  16621. objext="$ac_objext"
  16622. # Old archive suffix (normally "a").
  16623. libext="$libext"
  16624. # Shared library suffix (normally ".so").
  16625. shrext_cmds='$shrext_cmds'
  16626. # Executable file suffix (normally "").
  16627. exeext="$exeext"
  16628. # Additional compiler flags for building library objects.
  16629. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16630. pic_mode=$pic_mode
  16631. # What is the maximum length of a command?
  16632. max_cmd_len=$lt_cv_sys_max_cmd_len
  16633. # Does compiler simultaneously support -c and -o options?
  16634. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16635. # Must we lock files when doing compilation?
  16636. need_locks=$lt_need_locks
  16637. # Do we need the lib prefix for modules?
  16638. need_lib_prefix=$need_lib_prefix
  16639. # Do we need a version for libraries?
  16640. need_version=$need_version
  16641. # Whether dlopen is supported.
  16642. dlopen_support=$enable_dlopen
  16643. # Whether dlopen of programs is supported.
  16644. dlopen_self=$enable_dlopen_self
  16645. # Whether dlopen of statically linked programs is supported.
  16646. dlopen_self_static=$enable_dlopen_self_static
  16647. # Compiler flag to prevent dynamic linking.
  16648. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16649. # Compiler flag to turn off builtin functions.
  16650. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16651. # Compiler flag to allow reflexive dlopens.
  16652. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16653. # Compiler flag to generate shared objects directly from archives.
  16654. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16655. # Compiler flag to generate thread-safe objects.
  16656. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16657. # Library versioning type.
  16658. version_type=$version_type
  16659. # Format of library name prefix.
  16660. libname_spec=$lt_libname_spec
  16661. # List of archive names. First name is the real one, the rest are links.
  16662. # The last name is the one that the linker finds with -lNAME.
  16663. library_names_spec=$lt_library_names_spec
  16664. # The coded name of the library, if different from the real name.
  16665. soname_spec=$lt_soname_spec
  16666. # Commands used to build and install an old-style archive.
  16667. RANLIB=$lt_RANLIB
  16668. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16669. old_postinstall_cmds=$lt_old_postinstall_cmds
  16670. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16671. # Create an old-style archive from a shared archive.
  16672. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16673. # Create a temporary old-style archive to link instead of a shared archive.
  16674. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16675. # Commands used to build and install a shared archive.
  16676. archive_cmds=$lt_archive_cmds_GCJ
  16677. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16678. postinstall_cmds=$lt_postinstall_cmds
  16679. postuninstall_cmds=$lt_postuninstall_cmds
  16680. # Commands used to build a loadable module (assumed same as above if empty)
  16681. module_cmds=$lt_module_cmds_GCJ
  16682. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16683. # Commands to strip libraries.
  16684. old_striplib=$lt_old_striplib
  16685. striplib=$lt_striplib
  16686. # Dependencies to place before the objects being linked to create a
  16687. # shared library.
  16688. predep_objects=$lt_predep_objects_GCJ
  16689. # Dependencies to place after the objects being linked to create a
  16690. # shared library.
  16691. postdep_objects=$lt_postdep_objects_GCJ
  16692. # Dependencies to place before the objects being linked to create a
  16693. # shared library.
  16694. predeps=$lt_predeps_GCJ
  16695. # Dependencies to place after the objects being linked to create a
  16696. # shared library.
  16697. postdeps=$lt_postdeps_GCJ
  16698. # The library search path used internally by the compiler when linking
  16699. # a shared library.
  16700. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16701. # Method to check whether dependent libraries are shared objects.
  16702. deplibs_check_method=$lt_deplibs_check_method
  16703. # Command to use when deplibs_check_method == file_magic.
  16704. file_magic_cmd=$lt_file_magic_cmd
  16705. # Flag that allows shared libraries with undefined symbols to be built.
  16706. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16707. # Flag that forces no undefined symbols.
  16708. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16709. # Commands used to finish a libtool library installation in a directory.
  16710. finish_cmds=$lt_finish_cmds
  16711. # Same as above, but a single script fragment to be evaled but not shown.
  16712. finish_eval=$lt_finish_eval
  16713. # Take the output of nm and produce a listing of raw symbols and C names.
  16714. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16715. # Transform the output of nm in a proper C declaration
  16716. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16717. # Transform the output of nm in a C name address pair
  16718. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16719. # This is the shared library runtime path variable.
  16720. runpath_var=$runpath_var
  16721. # This is the shared library path variable.
  16722. shlibpath_var=$shlibpath_var
  16723. # Is shlibpath searched before the hard-coded library search path?
  16724. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16725. # How to hardcode a shared library path into an executable.
  16726. hardcode_action=$hardcode_action_GCJ
  16727. # Whether we should hardcode library paths into libraries.
  16728. hardcode_into_libs=$hardcode_into_libs
  16729. # Flag to hardcode \$libdir into a binary during linking.
  16730. # This must work even if \$libdir does not exist.
  16731. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16732. # If ld is used when linking, flag to hardcode \$libdir into
  16733. # a binary during linking. This must work even if \$libdir does
  16734. # not exist.
  16735. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16736. # Whether we need a single -rpath flag with a separated argument.
  16737. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16738. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16739. # resulting binary.
  16740. hardcode_direct=$hardcode_direct_GCJ
  16741. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16742. # resulting binary.
  16743. hardcode_minus_L=$hardcode_minus_L_GCJ
  16744. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16745. # the resulting binary.
  16746. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16747. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16748. # and all subsequent libraries and executables linked against it.
  16749. hardcode_automatic=$hardcode_automatic_GCJ
  16750. # Variables whose values should be saved in libtool wrapper scripts and
  16751. # restored at relink time.
  16752. variables_saved_for_relink="$variables_saved_for_relink"
  16753. # Whether libtool must link a program against all its dependency libraries.
  16754. link_all_deplibs=$link_all_deplibs_GCJ
  16755. # Compile-time system search path for libraries
  16756. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16757. # Run-time system search path for libraries
  16758. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16759. # Fix the shell variable \$srcfile for the compiler.
  16760. fix_srcfile_path=$lt_fix_srcfile_path
  16761. # Set to yes if exported symbols are required.
  16762. always_export_symbols=$always_export_symbols_GCJ
  16763. # The commands to list exported symbols.
  16764. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16765. # The commands to extract the exported symbol list from a shared archive.
  16766. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16767. # Symbols that should not be listed in the preloaded symbols.
  16768. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16769. # Symbols that must always be exported.
  16770. include_expsyms=$lt_include_expsyms_GCJ
  16771. # ### END LIBTOOL TAG CONFIG: $tagname
  16772. __EOF__
  16773. else
  16774. # If there is no Makefile yet, we rely on a make rule to execute
  16775. # `config.status --recheck' to rerun these tests and create the
  16776. # libtool script then.
  16777. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16778. if test -f "$ltmain_in"; then
  16779. test -f Makefile && make "$ltmain"
  16780. fi
  16781. fi
  16782. ac_ext=cpp
  16783. ac_cpp='$CXXCPP $CPPFLAGS'
  16784. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16785. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16786. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16787. CC="$lt_save_CC"
  16788. else
  16789. tagname=""
  16790. fi
  16791. ;;
  16792. RC)
  16793. # Source file extension for RC test sources.
  16794. ac_ext=rc
  16795. # Object file extension for compiled RC test sources.
  16796. objext=o
  16797. objext_RC=$objext
  16798. # Code to be used in simple compile tests
  16799. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  16800. # Code to be used in simple link tests
  16801. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16802. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16803. # If no C compiler was specified, use CC.
  16804. LTCC=${LTCC-"$CC"}
  16805. # If no C compiler flags were specified, use CFLAGS.
  16806. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16807. # Allow CC to be a program name with arguments.
  16808. compiler=$CC
  16809. # save warnings/boilerplate of simple test code
  16810. ac_outfile=conftest.$ac_objext
  16811. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  16812. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16813. _lt_compiler_boilerplate=`cat conftest.err`
  16814. $rm conftest*
  16815. ac_outfile=conftest.$ac_objext
  16816. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  16817. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16818. _lt_linker_boilerplate=`cat conftest.err`
  16819. $rm conftest*
  16820. # Allow CC to be a program name with arguments.
  16821. lt_save_CC="$CC"
  16822. CC=${RC-"windres"}
  16823. compiler=$CC
  16824. compiler_RC=$CC
  16825. for cc_temp in $compiler""; do
  16826. case $cc_temp in
  16827. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16828. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16829. \-*) ;;
  16830. *) break;;
  16831. esac
  16832. done
  16833. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16834. lt_cv_prog_compiler_c_o_RC=yes
  16835. # The else clause should only fire when bootstrapping the
  16836. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16837. # with your package, and you will get complaints that there are
  16838. # no rules to generate ltmain.sh.
  16839. if test -f "$ltmain"; then
  16840. # See if we are running on zsh, and set the options which allow our commands through
  16841. # without removal of \ escapes.
  16842. if test -n "${ZSH_VERSION+set}" ; then
  16843. setopt NO_GLOB_SUBST
  16844. fi
  16845. # Now quote all the things that may contain metacharacters while being
  16846. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16847. # variables and quote the copies for generation of the libtool script.
  16848. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16849. SED SHELL STRIP \
  16850. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16851. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16852. deplibs_check_method reload_flag reload_cmds need_locks \
  16853. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16854. lt_cv_sys_global_symbol_to_c_name_address \
  16855. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16856. old_postinstall_cmds old_postuninstall_cmds \
  16857. compiler_RC \
  16858. CC_RC \
  16859. LD_RC \
  16860. lt_prog_compiler_wl_RC \
  16861. lt_prog_compiler_pic_RC \
  16862. lt_prog_compiler_static_RC \
  16863. lt_prog_compiler_no_builtin_flag_RC \
  16864. export_dynamic_flag_spec_RC \
  16865. thread_safe_flag_spec_RC \
  16866. whole_archive_flag_spec_RC \
  16867. enable_shared_with_static_runtimes_RC \
  16868. old_archive_cmds_RC \
  16869. old_archive_from_new_cmds_RC \
  16870. predep_objects_RC \
  16871. postdep_objects_RC \
  16872. predeps_RC \
  16873. postdeps_RC \
  16874. compiler_lib_search_path_RC \
  16875. archive_cmds_RC \
  16876. archive_expsym_cmds_RC \
  16877. postinstall_cmds_RC \
  16878. postuninstall_cmds_RC \
  16879. old_archive_from_expsyms_cmds_RC \
  16880. allow_undefined_flag_RC \
  16881. no_undefined_flag_RC \
  16882. export_symbols_cmds_RC \
  16883. hardcode_libdir_flag_spec_RC \
  16884. hardcode_libdir_flag_spec_ld_RC \
  16885. hardcode_libdir_separator_RC \
  16886. hardcode_automatic_RC \
  16887. module_cmds_RC \
  16888. module_expsym_cmds_RC \
  16889. lt_cv_prog_compiler_c_o_RC \
  16890. fix_srcfile_path_RC \
  16891. exclude_expsyms_RC \
  16892. include_expsyms_RC; do
  16893. case $var in
  16894. old_archive_cmds_RC | \
  16895. old_archive_from_new_cmds_RC | \
  16896. archive_cmds_RC | \
  16897. archive_expsym_cmds_RC | \
  16898. module_cmds_RC | \
  16899. module_expsym_cmds_RC | \
  16900. old_archive_from_expsyms_cmds_RC | \
  16901. export_symbols_cmds_RC | \
  16902. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16903. postinstall_cmds | postuninstall_cmds | \
  16904. old_postinstall_cmds | old_postuninstall_cmds | \
  16905. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16906. # Double-quote double-evaled strings.
  16907. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16908. ;;
  16909. *)
  16910. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16911. ;;
  16912. esac
  16913. done
  16914. case $lt_echo in
  16915. *'\$0 --fallback-echo"')
  16916. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16917. ;;
  16918. esac
  16919. cfgfile="$ofile"
  16920. cat <<__EOF__ >> "$cfgfile"
  16921. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16922. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16923. # Shell to use when invoking shell scripts.
  16924. SHELL=$lt_SHELL
  16925. # Whether or not to build shared libraries.
  16926. build_libtool_libs=$enable_shared
  16927. # Whether or not to build static libraries.
  16928. build_old_libs=$enable_static
  16929. # Whether or not to add -lc for building shared libraries.
  16930. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16931. # Whether or not to disallow shared libs when runtime libs are static
  16932. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16933. # Whether or not to optimize for fast installation.
  16934. fast_install=$enable_fast_install
  16935. # The host system.
  16936. host_alias=$host_alias
  16937. host=$host
  16938. host_os=$host_os
  16939. # The build system.
  16940. build_alias=$build_alias
  16941. build=$build
  16942. build_os=$build_os
  16943. # An echo program that does not interpret backslashes.
  16944. echo=$lt_echo
  16945. # The archiver.
  16946. AR=$lt_AR
  16947. AR_FLAGS=$lt_AR_FLAGS
  16948. # A C compiler.
  16949. LTCC=$lt_LTCC
  16950. # LTCC compiler flags.
  16951. LTCFLAGS=$lt_LTCFLAGS
  16952. # A language-specific compiler.
  16953. CC=$lt_compiler_RC
  16954. # Is the compiler the GNU C compiler?
  16955. with_gcc=$GCC_RC
  16956. # An ERE matcher.
  16957. EGREP=$lt_EGREP
  16958. # The linker used to build libraries.
  16959. LD=$lt_LD_RC
  16960. # Whether we need hard or soft links.
  16961. LN_S=$lt_LN_S
  16962. # A BSD-compatible nm program.
  16963. NM=$lt_NM
  16964. # A symbol stripping program
  16965. STRIP=$lt_STRIP
  16966. # Used to examine libraries when file_magic_cmd begins "file"
  16967. MAGIC_CMD=$MAGIC_CMD
  16968. # Used on cygwin: DLL creation program.
  16969. DLLTOOL="$DLLTOOL"
  16970. # Used on cygwin: object dumper.
  16971. OBJDUMP="$OBJDUMP"
  16972. # Used on cygwin: assembler.
  16973. AS="$AS"
  16974. # The name of the directory that contains temporary libtool files.
  16975. objdir=$objdir
  16976. # How to create reloadable object files.
  16977. reload_flag=$lt_reload_flag
  16978. reload_cmds=$lt_reload_cmds
  16979. # How to pass a linker flag through the compiler.
  16980. wl=$lt_lt_prog_compiler_wl_RC
  16981. # Object file suffix (normally "o").
  16982. objext="$ac_objext"
  16983. # Old archive suffix (normally "a").
  16984. libext="$libext"
  16985. # Shared library suffix (normally ".so").
  16986. shrext_cmds='$shrext_cmds'
  16987. # Executable file suffix (normally "").
  16988. exeext="$exeext"
  16989. # Additional compiler flags for building library objects.
  16990. pic_flag=$lt_lt_prog_compiler_pic_RC
  16991. pic_mode=$pic_mode
  16992. # What is the maximum length of a command?
  16993. max_cmd_len=$lt_cv_sys_max_cmd_len
  16994. # Does compiler simultaneously support -c and -o options?
  16995. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16996. # Must we lock files when doing compilation?
  16997. need_locks=$lt_need_locks
  16998. # Do we need the lib prefix for modules?
  16999. need_lib_prefix=$need_lib_prefix
  17000. # Do we need a version for libraries?
  17001. need_version=$need_version
  17002. # Whether dlopen is supported.
  17003. dlopen_support=$enable_dlopen
  17004. # Whether dlopen of programs is supported.
  17005. dlopen_self=$enable_dlopen_self
  17006. # Whether dlopen of statically linked programs is supported.
  17007. dlopen_self_static=$enable_dlopen_self_static
  17008. # Compiler flag to prevent dynamic linking.
  17009. link_static_flag=$lt_lt_prog_compiler_static_RC
  17010. # Compiler flag to turn off builtin functions.
  17011. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17012. # Compiler flag to allow reflexive dlopens.
  17013. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17014. # Compiler flag to generate shared objects directly from archives.
  17015. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17016. # Compiler flag to generate thread-safe objects.
  17017. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17018. # Library versioning type.
  17019. version_type=$version_type
  17020. # Format of library name prefix.
  17021. libname_spec=$lt_libname_spec
  17022. # List of archive names. First name is the real one, the rest are links.
  17023. # The last name is the one that the linker finds with -lNAME.
  17024. library_names_spec=$lt_library_names_spec
  17025. # The coded name of the library, if different from the real name.
  17026. soname_spec=$lt_soname_spec
  17027. # Commands used to build and install an old-style archive.
  17028. RANLIB=$lt_RANLIB
  17029. old_archive_cmds=$lt_old_archive_cmds_RC
  17030. old_postinstall_cmds=$lt_old_postinstall_cmds
  17031. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17032. # Create an old-style archive from a shared archive.
  17033. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17034. # Create a temporary old-style archive to link instead of a shared archive.
  17035. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17036. # Commands used to build and install a shared archive.
  17037. archive_cmds=$lt_archive_cmds_RC
  17038. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17039. postinstall_cmds=$lt_postinstall_cmds
  17040. postuninstall_cmds=$lt_postuninstall_cmds
  17041. # Commands used to build a loadable module (assumed same as above if empty)
  17042. module_cmds=$lt_module_cmds_RC
  17043. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17044. # Commands to strip libraries.
  17045. old_striplib=$lt_old_striplib
  17046. striplib=$lt_striplib
  17047. # Dependencies to place before the objects being linked to create a
  17048. # shared library.
  17049. predep_objects=$lt_predep_objects_RC
  17050. # Dependencies to place after the objects being linked to create a
  17051. # shared library.
  17052. postdep_objects=$lt_postdep_objects_RC
  17053. # Dependencies to place before the objects being linked to create a
  17054. # shared library.
  17055. predeps=$lt_predeps_RC
  17056. # Dependencies to place after the objects being linked to create a
  17057. # shared library.
  17058. postdeps=$lt_postdeps_RC
  17059. # The library search path used internally by the compiler when linking
  17060. # a shared library.
  17061. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17062. # Method to check whether dependent libraries are shared objects.
  17063. deplibs_check_method=$lt_deplibs_check_method
  17064. # Command to use when deplibs_check_method == file_magic.
  17065. file_magic_cmd=$lt_file_magic_cmd
  17066. # Flag that allows shared libraries with undefined symbols to be built.
  17067. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17068. # Flag that forces no undefined symbols.
  17069. no_undefined_flag=$lt_no_undefined_flag_RC
  17070. # Commands used to finish a libtool library installation in a directory.
  17071. finish_cmds=$lt_finish_cmds
  17072. # Same as above, but a single script fragment to be evaled but not shown.
  17073. finish_eval=$lt_finish_eval
  17074. # Take the output of nm and produce a listing of raw symbols and C names.
  17075. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17076. # Transform the output of nm in a proper C declaration
  17077. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17078. # Transform the output of nm in a C name address pair
  17079. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17080. # This is the shared library runtime path variable.
  17081. runpath_var=$runpath_var
  17082. # This is the shared library path variable.
  17083. shlibpath_var=$shlibpath_var
  17084. # Is shlibpath searched before the hard-coded library search path?
  17085. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17086. # How to hardcode a shared library path into an executable.
  17087. hardcode_action=$hardcode_action_RC
  17088. # Whether we should hardcode library paths into libraries.
  17089. hardcode_into_libs=$hardcode_into_libs
  17090. # Flag to hardcode \$libdir into a binary during linking.
  17091. # This must work even if \$libdir does not exist.
  17092. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17093. # If ld is used when linking, flag to hardcode \$libdir into
  17094. # a binary during linking. This must work even if \$libdir does
  17095. # not exist.
  17096. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17097. # Whether we need a single -rpath flag with a separated argument.
  17098. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17099. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17100. # resulting binary.
  17101. hardcode_direct=$hardcode_direct_RC
  17102. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17103. # resulting binary.
  17104. hardcode_minus_L=$hardcode_minus_L_RC
  17105. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17106. # the resulting binary.
  17107. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17108. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17109. # and all subsequent libraries and executables linked against it.
  17110. hardcode_automatic=$hardcode_automatic_RC
  17111. # Variables whose values should be saved in libtool wrapper scripts and
  17112. # restored at relink time.
  17113. variables_saved_for_relink="$variables_saved_for_relink"
  17114. # Whether libtool must link a program against all its dependency libraries.
  17115. link_all_deplibs=$link_all_deplibs_RC
  17116. # Compile-time system search path for libraries
  17117. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17118. # Run-time system search path for libraries
  17119. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17120. # Fix the shell variable \$srcfile for the compiler.
  17121. fix_srcfile_path=$lt_fix_srcfile_path
  17122. # Set to yes if exported symbols are required.
  17123. always_export_symbols=$always_export_symbols_RC
  17124. # The commands to list exported symbols.
  17125. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17126. # The commands to extract the exported symbol list from a shared archive.
  17127. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17128. # Symbols that should not be listed in the preloaded symbols.
  17129. exclude_expsyms=$lt_exclude_expsyms_RC
  17130. # Symbols that must always be exported.
  17131. include_expsyms=$lt_include_expsyms_RC
  17132. # ### END LIBTOOL TAG CONFIG: $tagname
  17133. __EOF__
  17134. else
  17135. # If there is no Makefile yet, we rely on a make rule to execute
  17136. # `config.status --recheck' to rerun these tests and create the
  17137. # libtool script then.
  17138. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17139. if test -f "$ltmain_in"; then
  17140. test -f Makefile && make "$ltmain"
  17141. fi
  17142. fi
  17143. ac_ext=cpp
  17144. ac_cpp='$CXXCPP $CPPFLAGS'
  17145. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17146. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17147. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17148. CC="$lt_save_CC"
  17149. ;;
  17150. *)
  17151. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17152. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17153. { (exit 1); exit 1; }; }
  17154. ;;
  17155. esac
  17156. # Append the new tag name to the list of available tags.
  17157. if test -n "$tagname" ; then
  17158. available_tags="$available_tags $tagname"
  17159. fi
  17160. fi
  17161. done
  17162. IFS="$lt_save_ifs"
  17163. # Now substitute the updated list of available tags.
  17164. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17165. mv "${ofile}T" "$ofile"
  17166. chmod +x "$ofile"
  17167. else
  17168. rm -f "${ofile}T"
  17169. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17170. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17171. { (exit 1); exit 1; }; }
  17172. fi
  17173. fi
  17174. # This can be used to rebuild libtool when needed
  17175. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17176. # Always use our own libtool.
  17177. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17178. # Prevent multiple expansion
  17179. LIBTOOL="$LIBTOOL --silent"
  17180. #---------------------------------------------------------------------------
  17181. # Documentation utilites
  17182. #---------------------------------------------------------------------------
  17183. for ac_prog in doxygen
  17184. do
  17185. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17186. set dummy $ac_prog; ac_word=$2
  17187. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17188. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17189. if test "${ac_cv_prog_doxygen+set}" = set; then
  17190. echo $ECHO_N "(cached) $ECHO_C" >&6
  17191. else
  17192. if test -n "$doxygen"; then
  17193. ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
  17194. else
  17195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17196. for as_dir in $PATH
  17197. do
  17198. IFS=$as_save_IFS
  17199. test -z "$as_dir" && as_dir=.
  17200. for ac_exec_ext in '' $ac_executable_extensions; do
  17201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17202. ac_cv_prog_doxygen="$ac_prog"
  17203. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17204. break 2
  17205. fi
  17206. done
  17207. done
  17208. IFS=$as_save_IFS
  17209. fi
  17210. fi
  17211. doxygen=$ac_cv_prog_doxygen
  17212. if test -n "$doxygen"; then
  17213. { echo "$as_me:$LINENO: result: $doxygen" >&5
  17214. echo "${ECHO_T}$doxygen" >&6; }
  17215. else
  17216. { echo "$as_me:$LINENO: result: no" >&5
  17217. echo "${ECHO_T}no" >&6; }
  17218. fi
  17219. test -n "$doxygen" && break
  17220. done
  17221. #---------------------------------------------------------------------------
  17222. # generate Files
  17223. #---------------------------------------------------------------------------
  17224. ### AC_OUTPUT BEGIN ###
  17225. #
  17226. # this section is generated automatically by Makefile.local
  17227. # DO NOT MODIFY !!
  17228. #
  17229. ac_config_files="$ac_config_files doc/Makefile doc/userguide/Makefile include/GTL/Makefile include/GTL/version.h include/Makefile Makefile src/Makefile tests/Makefile"
  17230. cat >confcache <<\_ACEOF
  17231. # This file is a shell script that caches the results of configure
  17232. # tests run on this system so they can be shared between configure
  17233. # scripts and configure runs, see configure's option --config-cache.
  17234. # It is not useful on other systems. If it contains results you don't
  17235. # want to keep, you may remove or edit it.
  17236. #
  17237. # config.status only pays attention to the cache file if you give it
  17238. # the --recheck option to rerun configure.
  17239. #
  17240. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17241. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17242. # following values.
  17243. _ACEOF
  17244. # The following way of writing the cache mishandles newlines in values,
  17245. # but we know of no workaround that is simple, portable, and efficient.
  17246. # So, we kill variables containing newlines.
  17247. # Ultrix sh set writes to stderr and can't be redirected directly,
  17248. # and sets the high bit in the cache file unless we assign to the vars.
  17249. (
  17250. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17251. eval ac_val=\$$ac_var
  17252. case $ac_val in #(
  17253. *${as_nl}*)
  17254. case $ac_var in #(
  17255. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  17256. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  17257. esac
  17258. case $ac_var in #(
  17259. _ | IFS | as_nl) ;; #(
  17260. *) $as_unset $ac_var ;;
  17261. esac ;;
  17262. esac
  17263. done
  17264. (set) 2>&1 |
  17265. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17266. *${as_nl}ac_space=\ *)
  17267. # `set' does not quote correctly, so add quotes (double-quote
  17268. # substitution turns \\\\ into \\, and sed turns \\ into \).
  17269. sed -n \
  17270. "s/'/'\\\\''/g;
  17271. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17272. ;; #(
  17273. *)
  17274. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17275. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17276. ;;
  17277. esac |
  17278. sort
  17279. ) |
  17280. sed '
  17281. /^ac_cv_env_/b end
  17282. t clear
  17283. :clear
  17284. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17285. t end
  17286. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17287. :end' >>confcache
  17288. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17289. if test -w "$cache_file"; then
  17290. test "x$cache_file" != "x/dev/null" &&
  17291. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  17292. echo "$as_me: updating cache $cache_file" >&6;}
  17293. cat confcache >$cache_file
  17294. else
  17295. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  17296. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17297. fi
  17298. fi
  17299. rm -f confcache
  17300. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17301. # Let make expand exec_prefix.
  17302. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17303. # Transform confdefs.h into DEFS.
  17304. # Protect against shell expansion while executing Makefile rules.
  17305. # Protect against Makefile macro expansion.
  17306. #
  17307. # If the first sed substitution is executed (which looks for macros that
  17308. # take arguments), then branch to the quote section. Otherwise,
  17309. # look for a macro that doesn't take arguments.
  17310. ac_script='
  17311. t clear
  17312. :clear
  17313. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  17314. t quote
  17315. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  17316. t quote
  17317. b any
  17318. :quote
  17319. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  17320. s/\[/\\&/g
  17321. s/\]/\\&/g
  17322. s/\$/$$/g
  17323. H
  17324. :any
  17325. ${
  17326. g
  17327. s/^\n//
  17328. s/\n/ /g
  17329. p
  17330. }
  17331. '
  17332. DEFS=`sed -n "$ac_script" confdefs.h`
  17333. ac_libobjs=
  17334. ac_ltlibobjs=
  17335. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17336. # 1. Remove the extension, and $U if already installed.
  17337. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17338. ac_i=`echo "$ac_i" | sed "$ac_script"`
  17339. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17340. # will be set to the directory where LIBOBJS objects are built.
  17341. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17342. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  17343. done
  17344. LIBOBJS=$ac_libobjs
  17345. LTLIBOBJS=$ac_ltlibobjs
  17346. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17347. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  17348. Usually this means the macro was only invoked conditionally." >&5
  17349. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  17350. Usually this means the macro was only invoked conditionally." >&2;}
  17351. { (exit 1); exit 1; }; }
  17352. fi
  17353. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17354. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  17355. Usually this means the macro was only invoked conditionally." >&5
  17356. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  17357. Usually this means the macro was only invoked conditionally." >&2;}
  17358. { (exit 1); exit 1; }; }
  17359. fi
  17360. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17361. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  17362. Usually this means the macro was only invoked conditionally." >&5
  17363. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  17364. Usually this means the macro was only invoked conditionally." >&2;}
  17365. { (exit 1); exit 1; }; }
  17366. fi
  17367. : ${CONFIG_STATUS=./config.status}
  17368. ac_clean_files_save=$ac_clean_files
  17369. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17370. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  17371. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17372. cat >$CONFIG_STATUS <<_ACEOF
  17373. #! $SHELL
  17374. # Generated by $as_me.
  17375. # Run this file to recreate the current configuration.
  17376. # Compiler output produced by configure, useful for debugging
  17377. # configure, is in config.log if it exists.
  17378. debug=false
  17379. ac_cs_recheck=false
  17380. ac_cs_silent=false
  17381. SHELL=\${CONFIG_SHELL-$SHELL}
  17382. _ACEOF
  17383. cat >>$CONFIG_STATUS <<\_ACEOF
  17384. ## --------------------- ##
  17385. ## M4sh Initialization. ##
  17386. ## --------------------- ##
  17387. # Be more Bourne compatible
  17388. DUALCASE=1; export DUALCASE # for MKS sh
  17389. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17390. emulate sh
  17391. NULLCMD=:
  17392. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17393. # is contrary to our usage. Disable this feature.
  17394. alias -g '${1+"$@"}'='"$@"'
  17395. setopt NO_GLOB_SUBST
  17396. else
  17397. case `(set -o) 2>/dev/null` in
  17398. *posix*) set -o posix ;;
  17399. esac
  17400. fi
  17401. # PATH needs CR
  17402. # Avoid depending upon Character Ranges.
  17403. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17404. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17405. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17406. as_cr_digits='0123456789'
  17407. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17408. # The user is always right.
  17409. if test "${PATH_SEPARATOR+set}" != set; then
  17410. echo "#! /bin/sh" >conf$$.sh
  17411. echo "exit 0" >>conf$$.sh
  17412. chmod +x conf$$.sh
  17413. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  17414. PATH_SEPARATOR=';'
  17415. else
  17416. PATH_SEPARATOR=:
  17417. fi
  17418. rm -f conf$$.sh
  17419. fi
  17420. # Support unset when possible.
  17421. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  17422. as_unset=unset
  17423. else
  17424. as_unset=false
  17425. fi
  17426. # IFS
  17427. # We need space, tab and new line, in precisely that order. Quoting is
  17428. # there to prevent editors from complaining about space-tab.
  17429. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17430. # splitting by setting IFS to empty value.)
  17431. as_nl='
  17432. '
  17433. IFS=" "" $as_nl"
  17434. # Find who we are. Look in the path if we contain no directory separator.
  17435. case $0 in
  17436. *[\\/]* ) as_myself=$0 ;;
  17437. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17438. for as_dir in $PATH
  17439. do
  17440. IFS=$as_save_IFS
  17441. test -z "$as_dir" && as_dir=.
  17442. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17443. done
  17444. IFS=$as_save_IFS
  17445. ;;
  17446. esac
  17447. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17448. # in which case we are not to be found in the path.
  17449. if test "x$as_myself" = x; then
  17450. as_myself=$0
  17451. fi
  17452. if test ! -f "$as_myself"; then
  17453. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17454. { (exit 1); exit 1; }
  17455. fi
  17456. # Work around bugs in pre-3.0 UWIN ksh.
  17457. for as_var in ENV MAIL MAILPATH
  17458. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  17459. done
  17460. PS1='$ '
  17461. PS2='> '
  17462. PS4='+ '
  17463. # NLS nuisances.
  17464. for as_var in \
  17465. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  17466. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  17467. LC_TELEPHONE LC_TIME
  17468. do
  17469. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  17470. eval $as_var=C; export $as_var
  17471. else
  17472. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  17473. fi
  17474. done
  17475. # Required to use basename.
  17476. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17477. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17478. as_expr=expr
  17479. else
  17480. as_expr=false
  17481. fi
  17482. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17483. as_basename=basename
  17484. else
  17485. as_basename=false
  17486. fi
  17487. # Name of the executable.
  17488. as_me=`$as_basename -- "$0" ||
  17489. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17490. X"$0" : 'X\(//\)$' \| \
  17491. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17492. echo X/"$0" |
  17493. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17494. s//\1/
  17495. q
  17496. }
  17497. /^X\/\(\/\/\)$/{
  17498. s//\1/
  17499. q
  17500. }
  17501. /^X\/\(\/\).*/{
  17502. s//\1/
  17503. q
  17504. }
  17505. s/.*/./; q'`
  17506. # CDPATH.
  17507. $as_unset CDPATH
  17508. as_lineno_1=$LINENO
  17509. as_lineno_2=$LINENO
  17510. test "x$as_lineno_1" != "x$as_lineno_2" &&
  17511. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  17512. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  17513. # uniformly replaced by the line number. The first 'sed' inserts a
  17514. # line-number line after each line using $LINENO; the second 'sed'
  17515. # does the real work. The second script uses 'N' to pair each
  17516. # line-number line with the line containing $LINENO, and appends
  17517. # trailing '-' during substitution so that $LINENO is not a special
  17518. # case at line end.
  17519. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  17520. # scripts with optimization help from Paolo Bonzini. Blame Lee
  17521. # E. McMahon (1931-1989) for sed's syntax. :-)
  17522. sed -n '
  17523. p
  17524. /[$]LINENO/=
  17525. ' <$as_myself |
  17526. sed '
  17527. s/[$]LINENO.*/&-/
  17528. t lineno
  17529. b
  17530. :lineno
  17531. N
  17532. :loop
  17533. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  17534. t loop
  17535. s/-\n.*//
  17536. ' >$as_me.lineno &&
  17537. chmod +x "$as_me.lineno" ||
  17538. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  17539. { (exit 1); exit 1; }; }
  17540. # Don't try to exec as it changes $[0], causing all sort of problems
  17541. # (the dirname of $[0] is not the place where we might find the
  17542. # original and so on. Autoconf is especially sensitive to this).
  17543. . "./$as_me.lineno"
  17544. # Exit status is that of the last command.
  17545. exit
  17546. }
  17547. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17548. as_dirname=dirname
  17549. else
  17550. as_dirname=false
  17551. fi
  17552. ECHO_C= ECHO_N= ECHO_T=
  17553. case `echo -n x` in
  17554. -n*)
  17555. case `echo 'x\c'` in
  17556. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17557. *) ECHO_C='\c';;
  17558. esac;;
  17559. *)
  17560. ECHO_N='-n';;
  17561. esac
  17562. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17563. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17564. as_expr=expr
  17565. else
  17566. as_expr=false
  17567. fi
  17568. rm -f conf$$ conf$$.exe conf$$.file
  17569. if test -d conf$$.dir; then
  17570. rm -f conf$$.dir/conf$$.file
  17571. else
  17572. rm -f conf$$.dir
  17573. mkdir conf$$.dir
  17574. fi
  17575. echo >conf$$.file
  17576. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17577. as_ln_s='ln -s'
  17578. # ... but there are two gotchas:
  17579. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17580. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17581. # In both cases, we have to default to `cp -p'.
  17582. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17583. as_ln_s='cp -p'
  17584. elif ln conf$$.file conf$$ 2>/dev/null; then
  17585. as_ln_s=ln
  17586. else
  17587. as_ln_s='cp -p'
  17588. fi
  17589. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17590. rmdir conf$$.dir 2>/dev/null
  17591. if mkdir -p . 2>/dev/null; then
  17592. as_mkdir_p=:
  17593. else
  17594. test -d ./-p && rmdir ./-p
  17595. as_mkdir_p=false
  17596. fi
  17597. if test -x / >/dev/null 2>&1; then
  17598. as_test_x='test -x'
  17599. else
  17600. if ls -dL / >/dev/null 2>&1; then
  17601. as_ls_L_option=L
  17602. else
  17603. as_ls_L_option=
  17604. fi
  17605. as_test_x='
  17606. eval sh -c '\''
  17607. if test -d "$1"; then
  17608. test -d "$1/.";
  17609. else
  17610. case $1 in
  17611. -*)set "./$1";;
  17612. esac;
  17613. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  17614. ???[sx]*):;;*)false;;esac;fi
  17615. '\'' sh
  17616. '
  17617. fi
  17618. as_executable_p=$as_test_x
  17619. # Sed expression to map a string onto a valid CPP name.
  17620. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17621. # Sed expression to map a string onto a valid variable name.
  17622. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17623. exec 6>&1
  17624. # Save the log message, to keep $[0] and so on meaningful, and to
  17625. # report actual input values of CONFIG_FILES etc. instead of their
  17626. # values after options handling.
  17627. ac_log="
  17628. This file was extended by $as_me, which was
  17629. generated by GNU Autoconf 2.61. Invocation command line was
  17630. CONFIG_FILES = $CONFIG_FILES
  17631. CONFIG_HEADERS = $CONFIG_HEADERS
  17632. CONFIG_LINKS = $CONFIG_LINKS
  17633. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17634. $ $0 $@
  17635. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17636. "
  17637. _ACEOF
  17638. cat >>$CONFIG_STATUS <<_ACEOF
  17639. # Files that config.status was made for.
  17640. config_files="$ac_config_files"
  17641. config_commands="$ac_config_commands"
  17642. _ACEOF
  17643. cat >>$CONFIG_STATUS <<\_ACEOF
  17644. ac_cs_usage="\
  17645. \`$as_me' instantiates files from templates according to the
  17646. current configuration.
  17647. Usage: $0 [OPTIONS] [FILE]...
  17648. -h, --help print this help, then exit
  17649. -V, --version print version number and configuration settings, then exit
  17650. -q, --quiet do not print progress messages
  17651. -d, --debug don't remove temporary files
  17652. --recheck update $as_me by reconfiguring in the same conditions
  17653. --file=FILE[:TEMPLATE]
  17654. instantiate the configuration file FILE
  17655. Configuration files:
  17656. $config_files
  17657. Configuration commands:
  17658. $config_commands
  17659. Report bugs to <bug-autoconf@gnu.org>."
  17660. _ACEOF
  17661. cat >>$CONFIG_STATUS <<_ACEOF
  17662. ac_cs_version="\\
  17663. config.status
  17664. configured by $0, generated by GNU Autoconf 2.61,
  17665. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  17666. Copyright (C) 2006 Free Software Foundation, Inc.
  17667. This config.status script is free software; the Free Software Foundation
  17668. gives unlimited permission to copy, distribute and modify it."
  17669. ac_pwd='$ac_pwd'
  17670. srcdir='$srcdir'
  17671. INSTALL='$INSTALL'
  17672. MKDIR_P='$MKDIR_P'
  17673. _ACEOF
  17674. cat >>$CONFIG_STATUS <<\_ACEOF
  17675. # If no file are specified by the user, then we need to provide default
  17676. # value. By we need to know if files were specified by the user.
  17677. ac_need_defaults=:
  17678. while test $# != 0
  17679. do
  17680. case $1 in
  17681. --*=*)
  17682. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17683. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17684. ac_shift=:
  17685. ;;
  17686. *)
  17687. ac_option=$1
  17688. ac_optarg=$2
  17689. ac_shift=shift
  17690. ;;
  17691. esac
  17692. case $ac_option in
  17693. # Handling of the options.
  17694. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17695. ac_cs_recheck=: ;;
  17696. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17697. echo "$ac_cs_version"; exit ;;
  17698. --debug | --debu | --deb | --de | --d | -d )
  17699. debug=: ;;
  17700. --file | --fil | --fi | --f )
  17701. $ac_shift
  17702. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  17703. ac_need_defaults=false;;
  17704. --he | --h | --help | --hel | -h )
  17705. echo "$ac_cs_usage"; exit ;;
  17706. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17707. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  17708. ac_cs_silent=: ;;
  17709. # This is an error.
  17710. -*) { echo "$as_me: error: unrecognized option: $1
  17711. Try \`$0 --help' for more information." >&2
  17712. { (exit 1); exit 1; }; } ;;
  17713. *) ac_config_targets="$ac_config_targets $1"
  17714. ac_need_defaults=false ;;
  17715. esac
  17716. shift
  17717. done
  17718. ac_configure_extra_args=
  17719. if $ac_cs_silent; then
  17720. exec 6>/dev/null
  17721. ac_configure_extra_args="$ac_configure_extra_args --silent"
  17722. fi
  17723. _ACEOF
  17724. cat >>$CONFIG_STATUS <<_ACEOF
  17725. if \$ac_cs_recheck; then
  17726. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  17727. CONFIG_SHELL=$SHELL
  17728. export CONFIG_SHELL
  17729. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  17730. fi
  17731. _ACEOF
  17732. cat >>$CONFIG_STATUS <<\_ACEOF
  17733. exec 5>>config.log
  17734. {
  17735. echo
  17736. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  17737. ## Running $as_me. ##
  17738. _ASBOX
  17739. echo "$ac_log"
  17740. } >&5
  17741. _ACEOF
  17742. cat >>$CONFIG_STATUS <<_ACEOF
  17743. #
  17744. # INIT-COMMANDS
  17745. #
  17746. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  17747. _ACEOF
  17748. cat >>$CONFIG_STATUS <<\_ACEOF
  17749. # Handling of arguments.
  17750. for ac_config_target in $ac_config_targets
  17751. do
  17752. case $ac_config_target in
  17753. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  17754. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  17755. "doc/userguide/Makefile") CONFIG_FILES="$CONFIG_FILES doc/userguide/Makefile" ;;
  17756. "include/GTL/Makefile") CONFIG_FILES="$CONFIG_FILES include/GTL/Makefile" ;;
  17757. "include/GTL/version.h") CONFIG_FILES="$CONFIG_FILES include/GTL/version.h" ;;
  17758. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  17759. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  17760. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  17761. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  17762. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  17763. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  17764. { (exit 1); exit 1; }; };;
  17765. esac
  17766. done
  17767. # If the user did not use the arguments to specify the items to instantiate,
  17768. # then the envvar interface is used. Set only those that are not.
  17769. # We use the long form for the default assignment because of an extremely
  17770. # bizarre bug on SunOS 4.1.3.
  17771. if $ac_need_defaults; then
  17772. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  17773. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  17774. fi
  17775. # Have a temporary directory for convenience. Make it in the build tree
  17776. # simply because there is no reason against having it here, and in addition,
  17777. # creating and moving files from /tmp can sometimes cause problems.
  17778. # Hook for its removal unless debugging.
  17779. # Note that there is a small window in which the directory will not be cleaned:
  17780. # after its creation but before its name has been assigned to `$tmp'.
  17781. $debug ||
  17782. {
  17783. tmp=
  17784. trap 'exit_status=$?
  17785. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  17786. ' 0
  17787. trap '{ (exit 1); exit 1; }' 1 2 13 15
  17788. }
  17789. # Create a (secure) tmp directory for tmp files.
  17790. {
  17791. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  17792. test -n "$tmp" && test -d "$tmp"
  17793. } ||
  17794. {
  17795. tmp=./conf$$-$RANDOM
  17796. (umask 077 && mkdir "$tmp")
  17797. } ||
  17798. {
  17799. echo "$me: cannot create a temporary directory in ." >&2
  17800. { (exit 1); exit 1; }
  17801. }
  17802. #
  17803. # Set up the sed scripts for CONFIG_FILES section.
  17804. #
  17805. # No need to generate the scripts if there are no CONFIG_FILES.
  17806. # This happens for instance when ./config.status config.h
  17807. if test -n "$CONFIG_FILES"; then
  17808. _ACEOF
  17809. ac_delim='%!_!# '
  17810. for ac_last_try in false false false false false :; do
  17811. cat >conf$$subs.sed <<_ACEOF
  17812. SHELL!$SHELL$ac_delim
  17813. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  17814. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  17815. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  17816. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  17817. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  17818. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  17819. exec_prefix!$exec_prefix$ac_delim
  17820. prefix!$prefix$ac_delim
  17821. program_transform_name!$program_transform_name$ac_delim
  17822. bindir!$bindir$ac_delim
  17823. sbindir!$sbindir$ac_delim
  17824. libexecdir!$libexecdir$ac_delim
  17825. datarootdir!$datarootdir$ac_delim
  17826. datadir!$datadir$ac_delim
  17827. sysconfdir!$sysconfdir$ac_delim
  17828. sharedstatedir!$sharedstatedir$ac_delim
  17829. localstatedir!$localstatedir$ac_delim
  17830. includedir!$includedir$ac_delim
  17831. oldincludedir!$oldincludedir$ac_delim
  17832. docdir!$docdir$ac_delim
  17833. infodir!$infodir$ac_delim
  17834. htmldir!$htmldir$ac_delim
  17835. dvidir!$dvidir$ac_delim
  17836. pdfdir!$pdfdir$ac_delim
  17837. psdir!$psdir$ac_delim
  17838. libdir!$libdir$ac_delim
  17839. localedir!$localedir$ac_delim
  17840. mandir!$mandir$ac_delim
  17841. DEFS!$DEFS$ac_delim
  17842. ECHO_C!$ECHO_C$ac_delim
  17843. ECHO_N!$ECHO_N$ac_delim
  17844. ECHO_T!$ECHO_T$ac_delim
  17845. LIBS!$LIBS$ac_delim
  17846. build_alias!$build_alias$ac_delim
  17847. host_alias!$host_alias$ac_delim
  17848. target_alias!$target_alias$ac_delim
  17849. GENERIC_LIBRARY_VERSION!$GENERIC_LIBRARY_VERSION$ac_delim
  17850. GENERIC_LIBRARY_NAME!$GENERIC_LIBRARY_NAME$ac_delim
  17851. GENERIC_RELEASE!$GENERIC_RELEASE$ac_delim
  17852. GENERIC_VERSION!$GENERIC_VERSION$ac_delim
  17853. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  17854. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  17855. INSTALL_DATA!$INSTALL_DATA$ac_delim
  17856. am__isrc!$am__isrc$ac_delim
  17857. CYGPATH_W!$CYGPATH_W$ac_delim
  17858. PACKAGE!$PACKAGE$ac_delim
  17859. VERSION!$VERSION$ac_delim
  17860. ACLOCAL!$ACLOCAL$ac_delim
  17861. AUTOCONF!$AUTOCONF$ac_delim
  17862. AUTOMAKE!$AUTOMAKE$ac_delim
  17863. AUTOHEADER!$AUTOHEADER$ac_delim
  17864. MAKEINFO!$MAKEINFO$ac_delim
  17865. install_sh!$install_sh$ac_delim
  17866. STRIP!$STRIP$ac_delim
  17867. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  17868. mkdir_p!$mkdir_p$ac_delim
  17869. AWK!$AWK$ac_delim
  17870. SET_MAKE!$SET_MAKE$ac_delim
  17871. am__leading_dot!$am__leading_dot$ac_delim
  17872. AMTAR!$AMTAR$ac_delim
  17873. am__tar!$am__tar$ac_delim
  17874. am__untar!$am__untar$ac_delim
  17875. CXX!$CXX$ac_delim
  17876. CXXFLAGS!$CXXFLAGS$ac_delim
  17877. LDFLAGS!$LDFLAGS$ac_delim
  17878. CPPFLAGS!$CPPFLAGS$ac_delim
  17879. ac_ct_CXX!$ac_ct_CXX$ac_delim
  17880. EXEEXT!$EXEEXT$ac_delim
  17881. OBJEXT!$OBJEXT$ac_delim
  17882. DEPDIR!$DEPDIR$ac_delim
  17883. am__include!$am__include$ac_delim
  17884. am__quote!$am__quote$ac_delim
  17885. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  17886. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  17887. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  17888. CXXDEPMODE!$CXXDEPMODE$ac_delim
  17889. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  17890. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  17891. build!$build$ac_delim
  17892. build_cpu!$build_cpu$ac_delim
  17893. build_vendor!$build_vendor$ac_delim
  17894. build_os!$build_os$ac_delim
  17895. host!$host$ac_delim
  17896. host_cpu!$host_cpu$ac_delim
  17897. host_vendor!$host_vendor$ac_delim
  17898. host_os!$host_os$ac_delim
  17899. CC!$CC$ac_delim
  17900. CFLAGS!$CFLAGS$ac_delim
  17901. ac_ct_CC!$ac_ct_CC$ac_delim
  17902. CCDEPMODE!$CCDEPMODE$ac_delim
  17903. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  17904. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  17905. SED!$SED$ac_delim
  17906. GREP!$GREP$ac_delim
  17907. EGREP!$EGREP$ac_delim
  17908. LN_S!$LN_S$ac_delim
  17909. _ACEOF
  17910. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  17911. break
  17912. elif $ac_last_try; then
  17913. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  17914. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  17915. { (exit 1); exit 1; }; }
  17916. else
  17917. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17918. fi
  17919. done
  17920. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  17921. if test -n "$ac_eof"; then
  17922. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  17923. ac_eof=`expr $ac_eof + 1`
  17924. fi
  17925. cat >>$CONFIG_STATUS <<_ACEOF
  17926. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  17927. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17928. _ACEOF
  17929. sed '
  17930. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  17931. s/^/s,@/; s/!/@,|#_!!_#|/
  17932. :n
  17933. t n
  17934. s/'"$ac_delim"'$/,g/; t
  17935. s/$/\\/; p
  17936. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  17937. ' >>$CONFIG_STATUS <conf$$subs.sed
  17938. rm -f conf$$subs.sed
  17939. cat >>$CONFIG_STATUS <<_ACEOF
  17940. CEOF$ac_eof
  17941. _ACEOF
  17942. ac_delim='%!_!# '
  17943. for ac_last_try in false false false false false :; do
  17944. cat >conf$$subs.sed <<_ACEOF
  17945. ECHO!$ECHO$ac_delim
  17946. AR!$AR$ac_delim
  17947. RANLIB!$RANLIB$ac_delim
  17948. CPP!$CPP$ac_delim
  17949. CXXCPP!$CXXCPP$ac_delim
  17950. F77!$F77$ac_delim
  17951. FFLAGS!$FFLAGS$ac_delim
  17952. ac_ct_F77!$ac_ct_F77$ac_delim
  17953. LIBTOOL!$LIBTOOL$ac_delim
  17954. doxygen!$doxygen$ac_delim
  17955. LIBOBJS!$LIBOBJS$ac_delim
  17956. LTLIBOBJS!$LTLIBOBJS$ac_delim
  17957. _ACEOF
  17958. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
  17959. break
  17960. elif $ac_last_try; then
  17961. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  17962. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  17963. { (exit 1); exit 1; }; }
  17964. else
  17965. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17966. fi
  17967. done
  17968. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  17969. if test -n "$ac_eof"; then
  17970. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  17971. ac_eof=`expr $ac_eof + 1`
  17972. fi
  17973. cat >>$CONFIG_STATUS <<_ACEOF
  17974. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  17975. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  17976. _ACEOF
  17977. sed '
  17978. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  17979. s/^/s,@/; s/!/@,|#_!!_#|/
  17980. :n
  17981. t n
  17982. s/'"$ac_delim"'$/,g/; t
  17983. s/$/\\/; p
  17984. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  17985. ' >>$CONFIG_STATUS <conf$$subs.sed
  17986. rm -f conf$$subs.sed
  17987. cat >>$CONFIG_STATUS <<_ACEOF
  17988. :end
  17989. s/|#_!!_#|//g
  17990. CEOF$ac_eof
  17991. _ACEOF
  17992. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  17993. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  17994. # trailing colons and then remove the whole line if VPATH becomes empty
  17995. # (actually we leave an empty line to preserve line numbers).
  17996. if test "x$srcdir" = x.; then
  17997. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  17998. s/:*\$(srcdir):*/:/
  17999. s/:*\${srcdir}:*/:/
  18000. s/:*@srcdir@:*/:/
  18001. s/^\([^=]*=[ ]*\):*/\1/
  18002. s/:*$//
  18003. s/^[^=]*=[ ]*$//
  18004. }'
  18005. fi
  18006. cat >>$CONFIG_STATUS <<\_ACEOF
  18007. fi # test -n "$CONFIG_FILES"
  18008. for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
  18009. do
  18010. case $ac_tag in
  18011. :[FHLC]) ac_mode=$ac_tag; continue;;
  18012. esac
  18013. case $ac_mode$ac_tag in
  18014. :[FHL]*:*);;
  18015. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  18016. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  18017. { (exit 1); exit 1; }; };;
  18018. :[FH]-) ac_tag=-:-;;
  18019. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18020. esac
  18021. ac_save_IFS=$IFS
  18022. IFS=:
  18023. set x $ac_tag
  18024. IFS=$ac_save_IFS
  18025. shift
  18026. ac_file=$1
  18027. shift
  18028. case $ac_mode in
  18029. :L) ac_source=$1;;
  18030. :[FH])
  18031. ac_file_inputs=
  18032. for ac_f
  18033. do
  18034. case $ac_f in
  18035. -) ac_f="$tmp/stdin";;
  18036. *) # Look for the file first in the build tree, then in the source tree
  18037. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18038. # because $ac_f cannot contain `:'.
  18039. test -f "$ac_f" ||
  18040. case $ac_f in
  18041. [\\/$]*) false;;
  18042. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18043. esac ||
  18044. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  18045. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  18046. { (exit 1); exit 1; }; };;
  18047. esac
  18048. ac_file_inputs="$ac_file_inputs $ac_f"
  18049. done
  18050. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18051. # use $as_me), people would be surprised to read:
  18052. # /* config.h. Generated by config.status. */
  18053. configure_input="Generated from "`IFS=:
  18054. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  18055. if test x"$ac_file" != x-; then
  18056. configure_input="$ac_file. $configure_input"
  18057. { echo "$as_me:$LINENO: creating $ac_file" >&5
  18058. echo "$as_me: creating $ac_file" >&6;}
  18059. fi
  18060. case $ac_tag in
  18061. *:-:* | *:-) cat >"$tmp/stdin";;
  18062. esac
  18063. ;;
  18064. esac
  18065. ac_dir=`$as_dirname -- "$ac_file" ||
  18066. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18067. X"$ac_file" : 'X\(//\)[^/]' \| \
  18068. X"$ac_file" : 'X\(//\)$' \| \
  18069. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18070. echo X"$ac_file" |
  18071. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18072. s//\1/
  18073. q
  18074. }
  18075. /^X\(\/\/\)[^/].*/{
  18076. s//\1/
  18077. q
  18078. }
  18079. /^X\(\/\/\)$/{
  18080. s//\1/
  18081. q
  18082. }
  18083. /^X\(\/\).*/{
  18084. s//\1/
  18085. q
  18086. }
  18087. s/.*/./; q'`
  18088. { as_dir="$ac_dir"
  18089. case $as_dir in #(
  18090. -*) as_dir=./$as_dir;;
  18091. esac
  18092. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  18093. as_dirs=
  18094. while :; do
  18095. case $as_dir in #(
  18096. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  18097. *) as_qdir=$as_dir;;
  18098. esac
  18099. as_dirs="'$as_qdir' $as_dirs"
  18100. as_dir=`$as_dirname -- "$as_dir" ||
  18101. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18102. X"$as_dir" : 'X\(//\)[^/]' \| \
  18103. X"$as_dir" : 'X\(//\)$' \| \
  18104. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18105. echo X"$as_dir" |
  18106. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18107. s//\1/
  18108. q
  18109. }
  18110. /^X\(\/\/\)[^/].*/{
  18111. s//\1/
  18112. q
  18113. }
  18114. /^X\(\/\/\)$/{
  18115. s//\1/
  18116. q
  18117. }
  18118. /^X\(\/\).*/{
  18119. s//\1/
  18120. q
  18121. }
  18122. s/.*/./; q'`
  18123. test -d "$as_dir" && break
  18124. done
  18125. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18126. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  18127. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  18128. { (exit 1); exit 1; }; }; }
  18129. ac_builddir=.
  18130. case "$ac_dir" in
  18131. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18132. *)
  18133. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  18134. # A ".." for each directory in $ac_dir_suffix.
  18135. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  18136. case $ac_top_builddir_sub in
  18137. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18138. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18139. esac ;;
  18140. esac
  18141. ac_abs_top_builddir=$ac_pwd
  18142. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18143. # for backward compatibility:
  18144. ac_top_builddir=$ac_top_build_prefix
  18145. case $srcdir in
  18146. .) # We are building in place.
  18147. ac_srcdir=.
  18148. ac_top_srcdir=$ac_top_builddir_sub
  18149. ac_abs_top_srcdir=$ac_pwd ;;
  18150. [\\/]* | ?:[\\/]* ) # Absolute name.
  18151. ac_srcdir=$srcdir$ac_dir_suffix;
  18152. ac_top_srcdir=$srcdir
  18153. ac_abs_top_srcdir=$srcdir ;;
  18154. *) # Relative name.
  18155. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18156. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18157. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18158. esac
  18159. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18160. case $ac_mode in
  18161. :F)
  18162. #
  18163. # CONFIG_FILE
  18164. #
  18165. case $INSTALL in
  18166. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18167. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  18168. esac
  18169. ac_MKDIR_P=$MKDIR_P
  18170. case $MKDIR_P in
  18171. [\\/$]* | ?:[\\/]* ) ;;
  18172. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  18173. esac
  18174. _ACEOF
  18175. cat >>$CONFIG_STATUS <<\_ACEOF
  18176. # If the template does not know about datarootdir, expand it.
  18177. # FIXME: This hack should be removed a few years after 2.60.
  18178. ac_datarootdir_hack=; ac_datarootdir_seen=
  18179. case `sed -n '/datarootdir/ {
  18180. p
  18181. q
  18182. }
  18183. /@datadir@/p
  18184. /@docdir@/p
  18185. /@infodir@/p
  18186. /@localedir@/p
  18187. /@mandir@/p
  18188. ' $ac_file_inputs` in
  18189. *datarootdir*) ac_datarootdir_seen=yes;;
  18190. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  18191. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  18192. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  18193. _ACEOF
  18194. cat >>$CONFIG_STATUS <<_ACEOF
  18195. ac_datarootdir_hack='
  18196. s&@datadir@&$datadir&g
  18197. s&@docdir@&$docdir&g
  18198. s&@infodir@&$infodir&g
  18199. s&@localedir@&$localedir&g
  18200. s&@mandir@&$mandir&g
  18201. s&\\\${datarootdir}&$datarootdir&g' ;;
  18202. esac
  18203. _ACEOF
  18204. # Neutralize VPATH when `$srcdir' = `.'.
  18205. # Shell code in configure.ac might set extrasub.
  18206. # FIXME: do we really want to maintain this feature?
  18207. cat >>$CONFIG_STATUS <<_ACEOF
  18208. sed "$ac_vpsub
  18209. $extrasub
  18210. _ACEOF
  18211. cat >>$CONFIG_STATUS <<\_ACEOF
  18212. :t
  18213. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18214. s&@configure_input@&$configure_input&;t t
  18215. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18216. s&@srcdir@&$ac_srcdir&;t t
  18217. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18218. s&@top_srcdir@&$ac_top_srcdir&;t t
  18219. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18220. s&@builddir@&$ac_builddir&;t t
  18221. s&@abs_builddir@&$ac_abs_builddir&;t t
  18222. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18223. s&@INSTALL@&$ac_INSTALL&;t t
  18224. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  18225. $ac_datarootdir_hack
  18226. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  18227. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18228. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  18229. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  18230. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18231. which seems to be undefined. Please make sure it is defined." >&5
  18232. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18233. which seems to be undefined. Please make sure it is defined." >&2;}
  18234. rm -f "$tmp/stdin"
  18235. case $ac_file in
  18236. -) cat "$tmp/out"; rm -f "$tmp/out";;
  18237. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  18238. esac
  18239. ;;
  18240. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  18241. echo "$as_me: executing $ac_file commands" >&6;}
  18242. ;;
  18243. esac
  18244. case $ac_file$ac_mode in
  18245. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  18246. # Strip MF so we end up with the name of the file.
  18247. mf=`echo "$mf" | sed -e 's/:.*$//'`
  18248. # Check whether this is an Automake generated Makefile or not.
  18249. # We used to match only the files named `Makefile.in', but
  18250. # some people rename them; so instead we look at the file content.
  18251. # Grep'ing the first line is not enough: some people post-process
  18252. # each Makefile.in and add a new line on top of each file to say so.
  18253. # Grep'ing the whole file is not good either: AIX grep has a line
  18254. # limit of 2048, but all sed's we know have understand at least 4000.
  18255. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  18256. dirpart=`$as_dirname -- "$mf" ||
  18257. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18258. X"$mf" : 'X\(//\)[^/]' \| \
  18259. X"$mf" : 'X\(//\)$' \| \
  18260. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  18261. echo X"$mf" |
  18262. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18263. s//\1/
  18264. q
  18265. }
  18266. /^X\(\/\/\)[^/].*/{
  18267. s//\1/
  18268. q
  18269. }
  18270. /^X\(\/\/\)$/{
  18271. s//\1/
  18272. q
  18273. }
  18274. /^X\(\/\).*/{
  18275. s//\1/
  18276. q
  18277. }
  18278. s/.*/./; q'`
  18279. else
  18280. continue
  18281. fi
  18282. # Extract the definition of DEPDIR, am__include, and am__quote
  18283. # from the Makefile without running `make'.
  18284. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  18285. test -z "$DEPDIR" && continue
  18286. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  18287. test -z "am__include" && continue
  18288. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  18289. # When using ansi2knr, U may be empty or an underscore; expand it
  18290. U=`sed -n 's/^U = //p' < "$mf"`
  18291. # Find all dependency output files, they are included files with
  18292. # $(DEPDIR) in their names. We invoke sed twice because it is the
  18293. # simplest approach to changing $(DEPDIR) to its actual value in the
  18294. # expansion.
  18295. for file in `sed -n "
  18296. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  18297. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  18298. # Make sure the directory exists.
  18299. test -f "$dirpart/$file" && continue
  18300. fdir=`$as_dirname -- "$file" ||
  18301. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18302. X"$file" : 'X\(//\)[^/]' \| \
  18303. X"$file" : 'X\(//\)$' \| \
  18304. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  18305. echo X"$file" |
  18306. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18307. s//\1/
  18308. q
  18309. }
  18310. /^X\(\/\/\)[^/].*/{
  18311. s//\1/
  18312. q
  18313. }
  18314. /^X\(\/\/\)$/{
  18315. s//\1/
  18316. q
  18317. }
  18318. /^X\(\/\).*/{
  18319. s//\1/
  18320. q
  18321. }
  18322. s/.*/./; q'`
  18323. { as_dir=$dirpart/$fdir
  18324. case $as_dir in #(
  18325. -*) as_dir=./$as_dir;;
  18326. esac
  18327. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  18328. as_dirs=
  18329. while :; do
  18330. case $as_dir in #(
  18331. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  18332. *) as_qdir=$as_dir;;
  18333. esac
  18334. as_dirs="'$as_qdir' $as_dirs"
  18335. as_dir=`$as_dirname -- "$as_dir" ||
  18336. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18337. X"$as_dir" : 'X\(//\)[^/]' \| \
  18338. X"$as_dir" : 'X\(//\)$' \| \
  18339. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18340. echo X"$as_dir" |
  18341. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18342. s//\1/
  18343. q
  18344. }
  18345. /^X\(\/\/\)[^/].*/{
  18346. s//\1/
  18347. q
  18348. }
  18349. /^X\(\/\/\)$/{
  18350. s//\1/
  18351. q
  18352. }
  18353. /^X\(\/\).*/{
  18354. s//\1/
  18355. q
  18356. }
  18357. s/.*/./; q'`
  18358. test -d "$as_dir" && break
  18359. done
  18360. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18361. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  18362. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  18363. { (exit 1); exit 1; }; }; }
  18364. # echo "creating $dirpart/$file"
  18365. echo '# dummy' > "$dirpart/$file"
  18366. done
  18367. done
  18368. ;;
  18369. esac
  18370. done # for ac_tag
  18371. { (exit 0); exit 0; }
  18372. _ACEOF
  18373. chmod +x $CONFIG_STATUS
  18374. ac_clean_files=$ac_clean_files_save
  18375. # configure is writing to config.log, and then calls config.status.
  18376. # config.status does its own redirection, appending to config.log.
  18377. # Unfortunately, on DOS this fails, as config.log is still kept open
  18378. # by configure, so config.status won't be able to write to it; its
  18379. # output is simply discarded. So we exec the FD to /dev/null,
  18380. # effectively closing config.log, so it can be properly (re)opened and
  18381. # appended to by config.status. When coming back to configure, we
  18382. # need to make the FD available again.
  18383. if test "$no_create" != yes; then
  18384. ac_cs_success=:
  18385. ac_config_status_args=
  18386. test "$silent" = yes &&
  18387. ac_config_status_args="$ac_config_status_args --quiet"
  18388. exec 5>/dev/null
  18389. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  18390. exec 5>>config.log
  18391. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  18392. # would make configure fail if this is the last instruction.
  18393. $ac_cs_success || { (exit 1); exit 1; }
  18394. fi
  18395. ### AC_OUTPUT END ###
  18396. #---------------------------------------------------------------------------
  18397. # end of file
  18398. #---------------------------------------------------------------------------