configure 745 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for clish 0.7.4alpha.
  4. #
  5. # Report bugs to <gmckerrell at users dot sourceforge dot net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. # Check that we are running under the correct shell.
  476. SHELL=${CONFIG_SHELL-/bin/sh}
  477. case X$ECHO in
  478. X*--fallback-echo)
  479. # Remove one level of quotation (which was required for Make).
  480. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  481. ;;
  482. esac
  483. echo=${ECHO-echo}
  484. if test "X$1" = X--no-reexec; then
  485. # Discard the --no-reexec flag, and continue.
  486. shift
  487. elif test "X$1" = X--fallback-echo; then
  488. # Avoid inline document here, it may be left over
  489. :
  490. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  491. # Yippee, $echo works!
  492. :
  493. else
  494. # Restart under the correct shell.
  495. exec $SHELL "$0" --no-reexec ${1+"$@"}
  496. fi
  497. if test "X$1" = X--fallback-echo; then
  498. # used as fallback echo
  499. shift
  500. cat <<EOF
  501. $*
  502. EOF
  503. exit 0
  504. fi
  505. # The HP-UX ksh and POSIX shell print the target directory to stdout
  506. # if CDPATH is set.
  507. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  508. if test -z "$ECHO"; then
  509. if test "X${echo_test_string+set}" != Xset; then
  510. # find a string as large as possible, as long as the shell can cope with it
  511. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  512. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  513. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  514. echo_test_string=`eval $cmd` &&
  515. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  516. then
  517. break
  518. fi
  519. done
  520. fi
  521. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  522. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  523. test "X$echo_testing_string" = "X$echo_test_string"; then
  524. :
  525. else
  526. # The Solaris, AIX, and Digital Unix default echo programs unquote
  527. # backslashes. This makes it impossible to quote backslashes using
  528. # echo "$something" | sed 's/\\/\\\\/g'
  529. #
  530. # So, first we look for a working echo in the user's PATH.
  531. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  532. for dir in $PATH /usr/ucb; do
  533. IFS="$lt_save_ifs"
  534. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  535. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  536. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  537. test "X$echo_testing_string" = "X$echo_test_string"; then
  538. echo="$dir/echo"
  539. break
  540. fi
  541. done
  542. IFS="$lt_save_ifs"
  543. if test "X$echo" = Xecho; then
  544. # We didn't find a better echo, so look for alternatives.
  545. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. # This shell has a builtin print -r that does the trick.
  549. echo='print -r'
  550. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  551. test "X$CONFIG_SHELL" != X/bin/ksh; then
  552. # If we have ksh, try running configure again with it.
  553. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  554. export ORIGINAL_CONFIG_SHELL
  555. CONFIG_SHELL=/bin/ksh
  556. export CONFIG_SHELL
  557. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  558. else
  559. # Try using printf.
  560. echo='printf %s\n'
  561. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  562. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  563. test "X$echo_testing_string" = "X$echo_test_string"; then
  564. # Cool, printf works
  565. :
  566. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  567. test "X$echo_testing_string" = 'X\t' &&
  568. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  569. test "X$echo_testing_string" = "X$echo_test_string"; then
  570. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  571. export CONFIG_SHELL
  572. SHELL="$CONFIG_SHELL"
  573. export SHELL
  574. echo="$CONFIG_SHELL $0 --fallback-echo"
  575. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. echo="$CONFIG_SHELL $0 --fallback-echo"
  580. else
  581. # maybe with a smaller string...
  582. prev=:
  583. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  584. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  585. then
  586. break
  587. fi
  588. prev="$cmd"
  589. done
  590. if test "$prev" != 'sed 50q "$0"'; then
  591. echo_test_string=`eval $prev`
  592. export echo_test_string
  593. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  594. else
  595. # Oops. We lost completely, so just stick with echo.
  596. echo=echo
  597. fi
  598. fi
  599. fi
  600. fi
  601. fi
  602. fi
  603. # Copy echo and quote the copy suitably for passing to libtool from
  604. # the Makefile, instead of quoting the original, which is used later.
  605. ECHO=$echo
  606. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  607. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  608. fi
  609. tagnames=${tagnames+${tagnames},}CXX
  610. tagnames=${tagnames+${tagnames},}F77
  611. exec 7<&0 </dev/null 6>&1
  612. # Name of the host.
  613. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  614. # so uname gets run too.
  615. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  616. #
  617. # Initializations.
  618. #
  619. ac_default_prefix=/usr/local
  620. ac_clean_files=
  621. ac_config_libobj_dir=.
  622. LIBOBJS=
  623. cross_compiling=no
  624. subdirs=
  625. MFLAGS=
  626. MAKEFLAGS=
  627. SHELL=${CONFIG_SHELL-/bin/sh}
  628. # Identity of this package.
  629. PACKAGE_NAME='clish'
  630. PACKAGE_TARNAME='clish'
  631. PACKAGE_VERSION='0.7.4alpha'
  632. PACKAGE_STRING='clish 0.7.4alpha'
  633. PACKAGE_BUGREPORT='gmckerrell at users dot sourceforge dot net'
  634. # Factoring default headers for most tests.
  635. ac_includes_default="\
  636. #include <stdio.h>
  637. #ifdef HAVE_SYS_TYPES_H
  638. # include <sys/types.h>
  639. #endif
  640. #ifdef HAVE_SYS_STAT_H
  641. # include <sys/stat.h>
  642. #endif
  643. #ifdef STDC_HEADERS
  644. # include <stdlib.h>
  645. # include <stddef.h>
  646. #else
  647. # ifdef HAVE_STDLIB_H
  648. # include <stdlib.h>
  649. # endif
  650. #endif
  651. #ifdef HAVE_STRING_H
  652. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  653. # include <memory.h>
  654. # endif
  655. # include <string.h>
  656. #endif
  657. #ifdef HAVE_STRINGS_H
  658. # include <strings.h>
  659. #endif
  660. #ifdef HAVE_INTTYPES_H
  661. # include <inttypes.h>
  662. #endif
  663. #ifdef HAVE_STDINT_H
  664. # include <stdint.h>
  665. #endif
  666. #ifdef HAVE_UNISTD_H
  667. # include <unistd.h>
  668. #endif"
  669. ac_subst_vars='SHELL
  670. PATH_SEPARATOR
  671. PACKAGE_NAME
  672. PACKAGE_TARNAME
  673. PACKAGE_VERSION
  674. PACKAGE_STRING
  675. PACKAGE_BUGREPORT
  676. exec_prefix
  677. prefix
  678. program_transform_name
  679. bindir
  680. sbindir
  681. libexecdir
  682. datarootdir
  683. datadir
  684. sysconfdir
  685. sharedstatedir
  686. localstatedir
  687. includedir
  688. oldincludedir
  689. docdir
  690. infodir
  691. htmldir
  692. dvidir
  693. pdfdir
  694. psdir
  695. libdir
  696. localedir
  697. mandir
  698. DEFS
  699. ECHO_C
  700. ECHO_N
  701. ECHO_T
  702. LIBS
  703. build_alias
  704. host_alias
  705. target_alias
  706. CC
  707. CFLAGS
  708. LDFLAGS
  709. CPPFLAGS
  710. ac_ct_CC
  711. EXEEXT
  712. OBJEXT
  713. CXX
  714. CXXFLAGS
  715. ac_ct_CXX
  716. build
  717. build_cpu
  718. build_vendor
  719. build_os
  720. host
  721. host_cpu
  722. host_vendor
  723. host_os
  724. SED
  725. GREP
  726. EGREP
  727. LN_S
  728. ECHO
  729. AR
  730. RANLIB
  731. STRIP
  732. DSYMUTIL
  733. NMEDIT
  734. DLLTOOL
  735. AS
  736. OBJDUMP
  737. CPP
  738. CXXCPP
  739. F77
  740. FFLAGS
  741. ac_ct_F77
  742. LIBTOOL
  743. INSTALL_PROGRAM
  744. INSTALL_SCRIPT
  745. INSTALL_DATA
  746. am__isrc
  747. CYGPATH_W
  748. PACKAGE
  749. VERSION
  750. ACLOCAL
  751. AUTOCONF
  752. AUTOMAKE
  753. AUTOHEADER
  754. MAKEINFO
  755. install_sh
  756. INSTALL_STRIP_PROGRAM
  757. mkdir_p
  758. AWK
  759. SET_MAKE
  760. am__leading_dot
  761. AMTAR
  762. am__tar
  763. am__untar
  764. DEPDIR
  765. am__include
  766. am__quote
  767. AMDEP_TRUE
  768. AMDEP_FALSE
  769. AMDEPBACKSLASH
  770. CCDEPMODE
  771. am__fastdepCC_TRUE
  772. am__fastdepCC_FALSE
  773. CXXDEPMODE
  774. am__fastdepCXX_TRUE
  775. am__fastdepCXX_FALSE
  776. DEBUG_TRUE
  777. DEBUG_FALSE
  778. LUB_LIBS
  779. LUB_CFLAGS
  780. CLICONF_LIBS
  781. CLICONF_CFLAGS
  782. TINYRL_LIBS
  783. TINYRL_CFLAGS
  784. TINYXML_LIBS
  785. TINYXML_CXXFLAGS
  786. PTHREAD_LIBS
  787. PTHREAD_CFLAGS
  788. RT_LIBS
  789. RT_CFLAGS
  790. TCL_CFLAGS
  791. TCL_LIBS
  792. TCL_VERSION
  793. LUBHEAP_TRUE
  794. LUBHEAP_FALSE
  795. LUBHEAP_LIBS
  796. LUBHEAP_CFLAGS
  797. BFD_LIBS
  798. LIBOBJS
  799. LTLIBOBJS'
  800. ac_subst_files=''
  801. ac_precious_vars='build_alias
  802. host_alias
  803. target_alias
  804. CC
  805. CFLAGS
  806. LDFLAGS
  807. LIBS
  808. CPPFLAGS
  809. CXX
  810. CXXFLAGS
  811. CCC
  812. CPP
  813. CXXCPP
  814. F77
  815. FFLAGS'
  816. # Initialize some variables set by options.
  817. ac_init_help=
  818. ac_init_version=false
  819. # The variables have the same names as the options, with
  820. # dashes changed to underlines.
  821. cache_file=/dev/null
  822. exec_prefix=NONE
  823. no_create=
  824. no_recursion=
  825. prefix=NONE
  826. program_prefix=NONE
  827. program_suffix=NONE
  828. program_transform_name=s,x,x,
  829. silent=
  830. site=
  831. srcdir=
  832. verbose=
  833. x_includes=NONE
  834. x_libraries=NONE
  835. # Installation directory options.
  836. # These are left unexpanded so users can "make install exec_prefix=/foo"
  837. # and all the variables that are supposed to be based on exec_prefix
  838. # by default will actually change.
  839. # Use braces instead of parens because sh, perl, etc. also accept them.
  840. # (The list follows the same order as the GNU Coding Standards.)
  841. bindir='${exec_prefix}/bin'
  842. sbindir='${exec_prefix}/sbin'
  843. libexecdir='${exec_prefix}/libexec'
  844. datarootdir='${prefix}/share'
  845. datadir='${datarootdir}'
  846. sysconfdir='${prefix}/etc'
  847. sharedstatedir='${prefix}/com'
  848. localstatedir='${prefix}/var'
  849. includedir='${prefix}/include'
  850. oldincludedir='/usr/include'
  851. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  852. infodir='${datarootdir}/info'
  853. htmldir='${docdir}'
  854. dvidir='${docdir}'
  855. pdfdir='${docdir}'
  856. psdir='${docdir}'
  857. libdir='${exec_prefix}/lib'
  858. localedir='${datarootdir}/locale'
  859. mandir='${datarootdir}/man'
  860. ac_prev=
  861. ac_dashdash=
  862. for ac_option
  863. do
  864. # If the previous option needs an argument, assign it.
  865. if test -n "$ac_prev"; then
  866. eval $ac_prev=\$ac_option
  867. ac_prev=
  868. continue
  869. fi
  870. case $ac_option in
  871. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  872. *) ac_optarg=yes ;;
  873. esac
  874. # Accept the important Cygnus configure options, so we can diagnose typos.
  875. case $ac_dashdash$ac_option in
  876. --)
  877. ac_dashdash=yes ;;
  878. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  879. ac_prev=bindir ;;
  880. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  881. bindir=$ac_optarg ;;
  882. -build | --build | --buil | --bui | --bu)
  883. ac_prev=build_alias ;;
  884. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  885. build_alias=$ac_optarg ;;
  886. -cache-file | --cache-file | --cache-fil | --cache-fi \
  887. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  888. ac_prev=cache_file ;;
  889. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  890. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  891. cache_file=$ac_optarg ;;
  892. --config-cache | -C)
  893. cache_file=config.cache ;;
  894. -datadir | --datadir | --datadi | --datad)
  895. ac_prev=datadir ;;
  896. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  897. datadir=$ac_optarg ;;
  898. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  899. | --dataroo | --dataro | --datar)
  900. ac_prev=datarootdir ;;
  901. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  902. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  903. datarootdir=$ac_optarg ;;
  904. -disable-* | --disable-*)
  905. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  906. # Reject names that are not valid shell variable names.
  907. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  908. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  909. { (exit 1); exit 1; }; }
  910. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  911. eval enable_$ac_feature=no ;;
  912. -docdir | --docdir | --docdi | --doc | --do)
  913. ac_prev=docdir ;;
  914. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  915. docdir=$ac_optarg ;;
  916. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  917. ac_prev=dvidir ;;
  918. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  919. dvidir=$ac_optarg ;;
  920. -enable-* | --enable-*)
  921. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  922. # Reject names that are not valid shell variable names.
  923. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  924. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  925. { (exit 1); exit 1; }; }
  926. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  927. eval enable_$ac_feature=\$ac_optarg ;;
  928. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  929. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  930. | --exec | --exe | --ex)
  931. ac_prev=exec_prefix ;;
  932. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  933. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  934. | --exec=* | --exe=* | --ex=*)
  935. exec_prefix=$ac_optarg ;;
  936. -gas | --gas | --ga | --g)
  937. # Obsolete; use --with-gas.
  938. with_gas=yes ;;
  939. -help | --help | --hel | --he | -h)
  940. ac_init_help=long ;;
  941. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  942. ac_init_help=recursive ;;
  943. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  944. ac_init_help=short ;;
  945. -host | --host | --hos | --ho)
  946. ac_prev=host_alias ;;
  947. -host=* | --host=* | --hos=* | --ho=*)
  948. host_alias=$ac_optarg ;;
  949. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  950. ac_prev=htmldir ;;
  951. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  952. | --ht=*)
  953. htmldir=$ac_optarg ;;
  954. -includedir | --includedir | --includedi | --included | --include \
  955. | --includ | --inclu | --incl | --inc)
  956. ac_prev=includedir ;;
  957. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  958. | --includ=* | --inclu=* | --incl=* | --inc=*)
  959. includedir=$ac_optarg ;;
  960. -infodir | --infodir | --infodi | --infod | --info | --inf)
  961. ac_prev=infodir ;;
  962. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  963. infodir=$ac_optarg ;;
  964. -libdir | --libdir | --libdi | --libd)
  965. ac_prev=libdir ;;
  966. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  967. libdir=$ac_optarg ;;
  968. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  969. | --libexe | --libex | --libe)
  970. ac_prev=libexecdir ;;
  971. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  972. | --libexe=* | --libex=* | --libe=*)
  973. libexecdir=$ac_optarg ;;
  974. -localedir | --localedir | --localedi | --localed | --locale)
  975. ac_prev=localedir ;;
  976. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  977. localedir=$ac_optarg ;;
  978. -localstatedir | --localstatedir | --localstatedi | --localstated \
  979. | --localstate | --localstat | --localsta | --localst | --locals)
  980. ac_prev=localstatedir ;;
  981. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  982. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  983. localstatedir=$ac_optarg ;;
  984. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  985. ac_prev=mandir ;;
  986. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  987. mandir=$ac_optarg ;;
  988. -nfp | --nfp | --nf)
  989. # Obsolete; use --without-fp.
  990. with_fp=no ;;
  991. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  992. | --no-cr | --no-c | -n)
  993. no_create=yes ;;
  994. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  995. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  996. no_recursion=yes ;;
  997. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  998. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  999. | --oldin | --oldi | --old | --ol | --o)
  1000. ac_prev=oldincludedir ;;
  1001. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1002. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1003. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1004. oldincludedir=$ac_optarg ;;
  1005. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1006. ac_prev=prefix ;;
  1007. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1008. prefix=$ac_optarg ;;
  1009. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1010. | --program-pre | --program-pr | --program-p)
  1011. ac_prev=program_prefix ;;
  1012. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1013. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1014. program_prefix=$ac_optarg ;;
  1015. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1016. | --program-suf | --program-su | --program-s)
  1017. ac_prev=program_suffix ;;
  1018. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1019. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1020. program_suffix=$ac_optarg ;;
  1021. -program-transform-name | --program-transform-name \
  1022. | --program-transform-nam | --program-transform-na \
  1023. | --program-transform-n | --program-transform- \
  1024. | --program-transform | --program-transfor \
  1025. | --program-transfo | --program-transf \
  1026. | --program-trans | --program-tran \
  1027. | --progr-tra | --program-tr | --program-t)
  1028. ac_prev=program_transform_name ;;
  1029. -program-transform-name=* | --program-transform-name=* \
  1030. | --program-transform-nam=* | --program-transform-na=* \
  1031. | --program-transform-n=* | --program-transform-=* \
  1032. | --program-transform=* | --program-transfor=* \
  1033. | --program-transfo=* | --program-transf=* \
  1034. | --program-trans=* | --program-tran=* \
  1035. | --progr-tra=* | --program-tr=* | --program-t=*)
  1036. program_transform_name=$ac_optarg ;;
  1037. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1038. ac_prev=pdfdir ;;
  1039. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1040. pdfdir=$ac_optarg ;;
  1041. -psdir | --psdir | --psdi | --psd | --ps)
  1042. ac_prev=psdir ;;
  1043. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1044. psdir=$ac_optarg ;;
  1045. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1046. | -silent | --silent | --silen | --sile | --sil)
  1047. silent=yes ;;
  1048. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1049. ac_prev=sbindir ;;
  1050. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1051. | --sbi=* | --sb=*)
  1052. sbindir=$ac_optarg ;;
  1053. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1054. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1055. | --sharedst | --shareds | --shared | --share | --shar \
  1056. | --sha | --sh)
  1057. ac_prev=sharedstatedir ;;
  1058. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1059. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1060. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1061. | --sha=* | --sh=*)
  1062. sharedstatedir=$ac_optarg ;;
  1063. -site | --site | --sit)
  1064. ac_prev=site ;;
  1065. -site=* | --site=* | --sit=*)
  1066. site=$ac_optarg ;;
  1067. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1068. ac_prev=srcdir ;;
  1069. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1070. srcdir=$ac_optarg ;;
  1071. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1072. | --syscon | --sysco | --sysc | --sys | --sy)
  1073. ac_prev=sysconfdir ;;
  1074. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1075. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1076. sysconfdir=$ac_optarg ;;
  1077. -target | --target | --targe | --targ | --tar | --ta | --t)
  1078. ac_prev=target_alias ;;
  1079. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1080. target_alias=$ac_optarg ;;
  1081. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1082. verbose=yes ;;
  1083. -version | --version | --versio | --versi | --vers | -V)
  1084. ac_init_version=: ;;
  1085. -with-* | --with-*)
  1086. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1087. # Reject names that are not valid shell variable names.
  1088. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1089. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1090. { (exit 1); exit 1; }; }
  1091. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1092. eval with_$ac_package=\$ac_optarg ;;
  1093. -without-* | --without-*)
  1094. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1095. # Reject names that are not valid shell variable names.
  1096. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1097. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1098. { (exit 1); exit 1; }; }
  1099. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1100. eval with_$ac_package=no ;;
  1101. --x)
  1102. # Obsolete; use --with-x.
  1103. with_x=yes ;;
  1104. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1105. | --x-incl | --x-inc | --x-in | --x-i)
  1106. ac_prev=x_includes ;;
  1107. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1108. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1109. x_includes=$ac_optarg ;;
  1110. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1111. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1112. ac_prev=x_libraries ;;
  1113. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1114. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1115. x_libraries=$ac_optarg ;;
  1116. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1117. Try \`$0 --help' for more information." >&2
  1118. { (exit 1); exit 1; }; }
  1119. ;;
  1120. *=*)
  1121. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1122. # Reject names that are not valid shell variable names.
  1123. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1124. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1125. { (exit 1); exit 1; }; }
  1126. eval $ac_envvar=\$ac_optarg
  1127. export $ac_envvar ;;
  1128. *)
  1129. # FIXME: should be removed in autoconf 3.0.
  1130. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1131. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1132. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1133. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1134. ;;
  1135. esac
  1136. done
  1137. if test -n "$ac_prev"; then
  1138. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1139. { echo "$as_me: error: missing argument to $ac_option" >&2
  1140. { (exit 1); exit 1; }; }
  1141. fi
  1142. # Be sure to have absolute directory names.
  1143. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1144. datadir sysconfdir sharedstatedir localstatedir includedir \
  1145. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1146. libdir localedir mandir
  1147. do
  1148. eval ac_val=\$$ac_var
  1149. case $ac_val in
  1150. [\\/$]* | ?:[\\/]* ) continue;;
  1151. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1152. esac
  1153. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1154. { (exit 1); exit 1; }; }
  1155. done
  1156. # There might be people who depend on the old broken behavior: `$host'
  1157. # used to hold the argument of --host etc.
  1158. # FIXME: To remove some day.
  1159. build=$build_alias
  1160. host=$host_alias
  1161. target=$target_alias
  1162. # FIXME: To remove some day.
  1163. if test "x$host_alias" != x; then
  1164. if test "x$build_alias" = x; then
  1165. cross_compiling=maybe
  1166. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1167. If a cross compiler is detected then cross compile mode will be used." >&2
  1168. elif test "x$build_alias" != "x$host_alias"; then
  1169. cross_compiling=yes
  1170. fi
  1171. fi
  1172. ac_tool_prefix=
  1173. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1174. test "$silent" = yes && exec 6>/dev/null
  1175. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1176. ac_ls_di=`ls -di .` &&
  1177. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1178. { echo "$as_me: error: Working directory cannot be determined" >&2
  1179. { (exit 1); exit 1; }; }
  1180. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1181. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1182. { (exit 1); exit 1; }; }
  1183. # Find the source files, if location was not specified.
  1184. if test -z "$srcdir"; then
  1185. ac_srcdir_defaulted=yes
  1186. # Try the directory containing this script, then the parent directory.
  1187. ac_confdir=`$as_dirname -- "$0" ||
  1188. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1189. X"$0" : 'X\(//\)[^/]' \| \
  1190. X"$0" : 'X\(//\)$' \| \
  1191. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1192. echo X"$0" |
  1193. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1194. s//\1/
  1195. q
  1196. }
  1197. /^X\(\/\/\)[^/].*/{
  1198. s//\1/
  1199. q
  1200. }
  1201. /^X\(\/\/\)$/{
  1202. s//\1/
  1203. q
  1204. }
  1205. /^X\(\/\).*/{
  1206. s//\1/
  1207. q
  1208. }
  1209. s/.*/./; q'`
  1210. srcdir=$ac_confdir
  1211. if test ! -r "$srcdir/$ac_unique_file"; then
  1212. srcdir=..
  1213. fi
  1214. else
  1215. ac_srcdir_defaulted=no
  1216. fi
  1217. if test ! -r "$srcdir/$ac_unique_file"; then
  1218. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1219. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1220. { (exit 1); exit 1; }; }
  1221. fi
  1222. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1223. ac_abs_confdir=`(
  1224. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1225. { (exit 1); exit 1; }; }
  1226. pwd)`
  1227. # When building in place, set srcdir=.
  1228. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1229. srcdir=.
  1230. fi
  1231. # Remove unnecessary trailing slashes from srcdir.
  1232. # Double slashes in file names in object file debugging info
  1233. # mess up M-x gdb in Emacs.
  1234. case $srcdir in
  1235. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1236. esac
  1237. for ac_var in $ac_precious_vars; do
  1238. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1239. eval ac_env_${ac_var}_value=\$${ac_var}
  1240. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1241. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1242. done
  1243. #
  1244. # Report the --help message.
  1245. #
  1246. if test "$ac_init_help" = "long"; then
  1247. # Omit some internal or obsolete options to make the list less imposing.
  1248. # This message is too long to be a string in the A/UX 3.1 sh.
  1249. cat <<_ACEOF
  1250. \`configure' configures clish 0.7.4alpha to adapt to many kinds of systems.
  1251. Usage: $0 [OPTION]... [VAR=VALUE]...
  1252. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1253. VAR=VALUE. See below for descriptions of some of the useful variables.
  1254. Defaults for the options are specified in brackets.
  1255. Configuration:
  1256. -h, --help display this help and exit
  1257. --help=short display options specific to this package
  1258. --help=recursive display the short help of all the included packages
  1259. -V, --version display version information and exit
  1260. -q, --quiet, --silent do not print \`checking...' messages
  1261. --cache-file=FILE cache test results in FILE [disabled]
  1262. -C, --config-cache alias for \`--cache-file=config.cache'
  1263. -n, --no-create do not create output files
  1264. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1265. Installation directories:
  1266. --prefix=PREFIX install architecture-independent files in PREFIX
  1267. [$ac_default_prefix]
  1268. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1269. [PREFIX]
  1270. By default, \`make install' will install all the files in
  1271. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1272. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1273. for instance \`--prefix=\$HOME'.
  1274. For better control, use the options below.
  1275. Fine tuning of the installation directories:
  1276. --bindir=DIR user executables [EPREFIX/bin]
  1277. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1278. --libexecdir=DIR program executables [EPREFIX/libexec]
  1279. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1280. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1281. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1282. --libdir=DIR object code libraries [EPREFIX/lib]
  1283. --includedir=DIR C header files [PREFIX/include]
  1284. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1285. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1286. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1287. --infodir=DIR info documentation [DATAROOTDIR/info]
  1288. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1289. --mandir=DIR man documentation [DATAROOTDIR/man]
  1290. --docdir=DIR documentation root [DATAROOTDIR/doc/clish]
  1291. --htmldir=DIR html documentation [DOCDIR]
  1292. --dvidir=DIR dvi documentation [DOCDIR]
  1293. --pdfdir=DIR pdf documentation [DOCDIR]
  1294. --psdir=DIR ps documentation [DOCDIR]
  1295. _ACEOF
  1296. cat <<\_ACEOF
  1297. Program names:
  1298. --program-prefix=PREFIX prepend PREFIX to installed program names
  1299. --program-suffix=SUFFIX append SUFFIX to installed program names
  1300. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1301. System types:
  1302. --build=BUILD configure for building on BUILD [guessed]
  1303. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1304. _ACEOF
  1305. fi
  1306. if test -n "$ac_init_help"; then
  1307. case $ac_init_help in
  1308. short | recursive ) echo "Configuration of clish 0.7.4alpha:";;
  1309. esac
  1310. cat <<\_ACEOF
  1311. Optional Features:
  1312. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1313. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1314. --enable-shared[=PKGS] build shared libraries [default=yes]
  1315. --enable-static[=PKGS] build static libraries [default=yes]
  1316. --enable-fast-install[=PKGS]
  1317. optimize for fast installation [default=yes]
  1318. --disable-libtool-lock avoid locking (might break parallel builds)
  1319. --disable-dependency-tracking speeds up one-time build
  1320. --enable-dependency-tracking do not reject slow dependency extractors
  1321. --enable-debug Turn on debugging including asserts [default=no]
  1322. --enable-lubheap Replace standard memory libaries with lubheap
  1323. (EXPERIMENTAL) [default=no]
  1324. --enable-gpl Link with GPL licenced libraries [default=yes]
  1325. Optional Packages:
  1326. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1327. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1328. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1329. --with-pic try to use only PIC/non-PIC objects [default=use
  1330. both]
  1331. --with-tags[=TAGS] include additional configurations [automatic]
  1332. --with-pthread=DIR Use POSIX threads library distribution in DIR
  1333. --with-rt=DIR Use POSIX real time library distribution in DIR
  1334. --with-tcl=DIR Use TCL library distribution in DIR
  1335. Some influential environment variables:
  1336. CC C compiler command
  1337. CFLAGS C compiler flags
  1338. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1339. nonstandard directory <lib dir>
  1340. LIBS libraries to pass to the linker, e.g. -l<library>
  1341. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1342. you have headers in a nonstandard directory <include dir>
  1343. CXX C++ compiler command
  1344. CXXFLAGS C++ compiler flags
  1345. CPP C preprocessor
  1346. CXXCPP C++ preprocessor
  1347. F77 Fortran 77 compiler command
  1348. FFLAGS Fortran 77 compiler flags
  1349. Use these variables to override the choices made by `configure' or to help
  1350. it to find libraries and programs with nonstandard names/locations.
  1351. Report bugs to <gmckerrell at users dot sourceforge dot net>.
  1352. _ACEOF
  1353. ac_status=$?
  1354. fi
  1355. if test "$ac_init_help" = "recursive"; then
  1356. # If there are subdirs, report their specific --help.
  1357. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1358. test -d "$ac_dir" || continue
  1359. ac_builddir=.
  1360. case "$ac_dir" in
  1361. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1362. *)
  1363. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1364. # A ".." for each directory in $ac_dir_suffix.
  1365. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1366. case $ac_top_builddir_sub in
  1367. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1368. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1369. esac ;;
  1370. esac
  1371. ac_abs_top_builddir=$ac_pwd
  1372. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1373. # for backward compatibility:
  1374. ac_top_builddir=$ac_top_build_prefix
  1375. case $srcdir in
  1376. .) # We are building in place.
  1377. ac_srcdir=.
  1378. ac_top_srcdir=$ac_top_builddir_sub
  1379. ac_abs_top_srcdir=$ac_pwd ;;
  1380. [\\/]* | ?:[\\/]* ) # Absolute name.
  1381. ac_srcdir=$srcdir$ac_dir_suffix;
  1382. ac_top_srcdir=$srcdir
  1383. ac_abs_top_srcdir=$srcdir ;;
  1384. *) # Relative name.
  1385. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1386. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1387. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1388. esac
  1389. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1390. cd "$ac_dir" || { ac_status=$?; continue; }
  1391. # Check for guested configure.
  1392. if test -f "$ac_srcdir/configure.gnu"; then
  1393. echo &&
  1394. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1395. elif test -f "$ac_srcdir/configure"; then
  1396. echo &&
  1397. $SHELL "$ac_srcdir/configure" --help=recursive
  1398. else
  1399. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1400. fi || ac_status=$?
  1401. cd "$ac_pwd" || { ac_status=$?; break; }
  1402. done
  1403. fi
  1404. test -n "$ac_init_help" && exit $ac_status
  1405. if $ac_init_version; then
  1406. cat <<\_ACEOF
  1407. clish configure 0.7.4alpha
  1408. generated by GNU Autoconf 2.61
  1409. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1410. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1411. This configure script is free software; the Free Software Foundation
  1412. gives unlimited permission to copy, distribute and modify it.
  1413. _ACEOF
  1414. exit
  1415. fi
  1416. cat >config.log <<_ACEOF
  1417. This file contains any messages produced by compilers while
  1418. running configure, to aid debugging if configure makes a mistake.
  1419. It was created by clish $as_me 0.7.4alpha, which was
  1420. generated by GNU Autoconf 2.61. Invocation command line was
  1421. $ $0 $@
  1422. _ACEOF
  1423. exec 5>>config.log
  1424. {
  1425. cat <<_ASUNAME
  1426. ## --------- ##
  1427. ## Platform. ##
  1428. ## --------- ##
  1429. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1430. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1431. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1432. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1433. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1434. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1435. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1436. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1437. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1438. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1439. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1440. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1441. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1442. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1443. _ASUNAME
  1444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1445. for as_dir in $PATH
  1446. do
  1447. IFS=$as_save_IFS
  1448. test -z "$as_dir" && as_dir=.
  1449. echo "PATH: $as_dir"
  1450. done
  1451. IFS=$as_save_IFS
  1452. } >&5
  1453. cat >&5 <<_ACEOF
  1454. ## ----------- ##
  1455. ## Core tests. ##
  1456. ## ----------- ##
  1457. _ACEOF
  1458. # Keep a trace of the command line.
  1459. # Strip out --no-create and --no-recursion so they do not pile up.
  1460. # Strip out --silent because we don't want to record it for future runs.
  1461. # Also quote any args containing shell meta-characters.
  1462. # Make two passes to allow for proper duplicate-argument suppression.
  1463. ac_configure_args=
  1464. ac_configure_args0=
  1465. ac_configure_args1=
  1466. ac_must_keep_next=false
  1467. for ac_pass in 1 2
  1468. do
  1469. for ac_arg
  1470. do
  1471. case $ac_arg in
  1472. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1474. | -silent | --silent | --silen | --sile | --sil)
  1475. continue ;;
  1476. *\'*)
  1477. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1478. esac
  1479. case $ac_pass in
  1480. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1481. 2)
  1482. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1483. if test $ac_must_keep_next = true; then
  1484. ac_must_keep_next=false # Got value, back to normal.
  1485. else
  1486. case $ac_arg in
  1487. *=* | --config-cache | -C | -disable-* | --disable-* \
  1488. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1489. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1490. | -with-* | --with-* | -without-* | --without-* | --x)
  1491. case "$ac_configure_args0 " in
  1492. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1493. esac
  1494. ;;
  1495. -* ) ac_must_keep_next=true ;;
  1496. esac
  1497. fi
  1498. ac_configure_args="$ac_configure_args '$ac_arg'"
  1499. ;;
  1500. esac
  1501. done
  1502. done
  1503. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1504. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1505. # When interrupted or exit'd, cleanup temporary files, and complete
  1506. # config.log. We remove comments because anyway the quotes in there
  1507. # would cause problems or look ugly.
  1508. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1509. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1510. trap 'exit_status=$?
  1511. # Save into config.log some information that might help in debugging.
  1512. {
  1513. echo
  1514. cat <<\_ASBOX
  1515. ## ---------------- ##
  1516. ## Cache variables. ##
  1517. ## ---------------- ##
  1518. _ASBOX
  1519. echo
  1520. # The following way of writing the cache mishandles newlines in values,
  1521. (
  1522. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1523. eval ac_val=\$$ac_var
  1524. case $ac_val in #(
  1525. *${as_nl}*)
  1526. case $ac_var in #(
  1527. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1528. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1529. esac
  1530. case $ac_var in #(
  1531. _ | IFS | as_nl) ;; #(
  1532. *) $as_unset $ac_var ;;
  1533. esac ;;
  1534. esac
  1535. done
  1536. (set) 2>&1 |
  1537. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1538. *${as_nl}ac_space=\ *)
  1539. sed -n \
  1540. "s/'\''/'\''\\\\'\'''\''/g;
  1541. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1542. ;; #(
  1543. *)
  1544. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1545. ;;
  1546. esac |
  1547. sort
  1548. )
  1549. echo
  1550. cat <<\_ASBOX
  1551. ## ----------------- ##
  1552. ## Output variables. ##
  1553. ## ----------------- ##
  1554. _ASBOX
  1555. echo
  1556. for ac_var in $ac_subst_vars
  1557. do
  1558. eval ac_val=\$$ac_var
  1559. case $ac_val in
  1560. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1561. esac
  1562. echo "$ac_var='\''$ac_val'\''"
  1563. done | sort
  1564. echo
  1565. if test -n "$ac_subst_files"; then
  1566. cat <<\_ASBOX
  1567. ## ------------------- ##
  1568. ## File substitutions. ##
  1569. ## ------------------- ##
  1570. _ASBOX
  1571. echo
  1572. for ac_var in $ac_subst_files
  1573. do
  1574. eval ac_val=\$$ac_var
  1575. case $ac_val in
  1576. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1577. esac
  1578. echo "$ac_var='\''$ac_val'\''"
  1579. done | sort
  1580. echo
  1581. fi
  1582. if test -s confdefs.h; then
  1583. cat <<\_ASBOX
  1584. ## ----------- ##
  1585. ## confdefs.h. ##
  1586. ## ----------- ##
  1587. _ASBOX
  1588. echo
  1589. cat confdefs.h
  1590. echo
  1591. fi
  1592. test "$ac_signal" != 0 &&
  1593. echo "$as_me: caught signal $ac_signal"
  1594. echo "$as_me: exit $exit_status"
  1595. } >&5
  1596. rm -f core *.core core.conftest.* &&
  1597. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1598. exit $exit_status
  1599. ' 0
  1600. for ac_signal in 1 2 13 15; do
  1601. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1602. done
  1603. ac_signal=0
  1604. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1605. rm -f -r conftest* confdefs.h
  1606. # Predefined preprocessor variables.
  1607. cat >>confdefs.h <<_ACEOF
  1608. #define PACKAGE_NAME "$PACKAGE_NAME"
  1609. _ACEOF
  1610. cat >>confdefs.h <<_ACEOF
  1611. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1612. _ACEOF
  1613. cat >>confdefs.h <<_ACEOF
  1614. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1615. _ACEOF
  1616. cat >>confdefs.h <<_ACEOF
  1617. #define PACKAGE_STRING "$PACKAGE_STRING"
  1618. _ACEOF
  1619. cat >>confdefs.h <<_ACEOF
  1620. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1621. _ACEOF
  1622. # Let the site file select an alternate cache file if it wants to.
  1623. # Prefer explicitly selected file to automatically selected ones.
  1624. if test -n "$CONFIG_SITE"; then
  1625. set x "$CONFIG_SITE"
  1626. elif test "x$prefix" != xNONE; then
  1627. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1628. else
  1629. set x "$ac_default_prefix/share/config.site" \
  1630. "$ac_default_prefix/etc/config.site"
  1631. fi
  1632. shift
  1633. for ac_site_file
  1634. do
  1635. if test -r "$ac_site_file"; then
  1636. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1637. echo "$as_me: loading site script $ac_site_file" >&6;}
  1638. sed 's/^/| /' "$ac_site_file" >&5
  1639. . "$ac_site_file"
  1640. fi
  1641. done
  1642. if test -r "$cache_file"; then
  1643. # Some versions of bash will fail to source /dev/null (special
  1644. # files actually), so we avoid doing that.
  1645. if test -f "$cache_file"; then
  1646. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1647. echo "$as_me: loading cache $cache_file" >&6;}
  1648. case $cache_file in
  1649. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1650. *) . "./$cache_file";;
  1651. esac
  1652. fi
  1653. else
  1654. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1655. echo "$as_me: creating cache $cache_file" >&6;}
  1656. >$cache_file
  1657. fi
  1658. # Check that the precious variables saved in the cache have kept the same
  1659. # value.
  1660. ac_cache_corrupted=false
  1661. for ac_var in $ac_precious_vars; do
  1662. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1663. eval ac_new_set=\$ac_env_${ac_var}_set
  1664. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1665. eval ac_new_val=\$ac_env_${ac_var}_value
  1666. case $ac_old_set,$ac_new_set in
  1667. set,)
  1668. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1669. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1670. ac_cache_corrupted=: ;;
  1671. ,set)
  1672. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1673. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1674. ac_cache_corrupted=: ;;
  1675. ,);;
  1676. *)
  1677. if test "x$ac_old_val" != "x$ac_new_val"; then
  1678. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1679. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1680. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1681. echo "$as_me: former value: $ac_old_val" >&2;}
  1682. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1683. echo "$as_me: current value: $ac_new_val" >&2;}
  1684. ac_cache_corrupted=:
  1685. fi;;
  1686. esac
  1687. # Pass precious variables to config.status.
  1688. if test "$ac_new_set" = set; then
  1689. case $ac_new_val in
  1690. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1691. *) ac_arg=$ac_var=$ac_new_val ;;
  1692. esac
  1693. case " $ac_configure_args " in
  1694. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1695. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1696. esac
  1697. fi
  1698. done
  1699. if $ac_cache_corrupted; then
  1700. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1701. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1702. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1703. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1704. { (exit 1); exit 1; }; }
  1705. fi
  1706. ac_ext=c
  1707. ac_cpp='$CPP $CPPFLAGS'
  1708. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1709. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1710. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1711. ac_aux_dir=
  1712. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  1713. if test -f "$ac_dir/install-sh"; then
  1714. ac_aux_dir=$ac_dir
  1715. ac_install_sh="$ac_aux_dir/install-sh -c"
  1716. break
  1717. elif test -f "$ac_dir/install.sh"; then
  1718. ac_aux_dir=$ac_dir
  1719. ac_install_sh="$ac_aux_dir/install.sh -c"
  1720. break
  1721. elif test -f "$ac_dir/shtool"; then
  1722. ac_aux_dir=$ac_dir
  1723. ac_install_sh="$ac_aux_dir/shtool install -c"
  1724. break
  1725. fi
  1726. done
  1727. if test -z "$ac_aux_dir"; then
  1728. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux_scripts \"$srcdir\"/aux_scripts" >&5
  1729. echo "$as_me: error: cannot find install-sh or install.sh in aux_scripts \"$srcdir\"/aux_scripts" >&2;}
  1730. { (exit 1); exit 1; }; }
  1731. fi
  1732. # These three variables are undocumented and unsupported,
  1733. # and are intended to be withdrawn in a future Autoconf release.
  1734. # They can cause serious problems if a builder's source tree is in a directory
  1735. # whose full name contains unusual characters.
  1736. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1737. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1738. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1739. # Checks for programs.
  1740. ac_ext=c
  1741. ac_cpp='$CPP $CPPFLAGS'
  1742. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1743. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1744. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1745. if test -n "$ac_tool_prefix"; then
  1746. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1747. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1748. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1749. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1750. if test "${ac_cv_prog_CC+set}" = set; then
  1751. echo $ECHO_N "(cached) $ECHO_C" >&6
  1752. else
  1753. if test -n "$CC"; then
  1754. ac_cv_prog_CC="$CC" # Let the user override the test.
  1755. else
  1756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1757. for as_dir in $PATH
  1758. do
  1759. IFS=$as_save_IFS
  1760. test -z "$as_dir" && as_dir=.
  1761. for ac_exec_ext in '' $ac_executable_extensions; do
  1762. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1763. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1764. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1765. break 2
  1766. fi
  1767. done
  1768. done
  1769. IFS=$as_save_IFS
  1770. fi
  1771. fi
  1772. CC=$ac_cv_prog_CC
  1773. if test -n "$CC"; then
  1774. { echo "$as_me:$LINENO: result: $CC" >&5
  1775. echo "${ECHO_T}$CC" >&6; }
  1776. else
  1777. { echo "$as_me:$LINENO: result: no" >&5
  1778. echo "${ECHO_T}no" >&6; }
  1779. fi
  1780. fi
  1781. if test -z "$ac_cv_prog_CC"; then
  1782. ac_ct_CC=$CC
  1783. # Extract the first word of "gcc", so it can be a program name with args.
  1784. set dummy gcc; ac_word=$2
  1785. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1786. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1787. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1788. echo $ECHO_N "(cached) $ECHO_C" >&6
  1789. else
  1790. if test -n "$ac_ct_CC"; then
  1791. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1792. else
  1793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1794. for as_dir in $PATH
  1795. do
  1796. IFS=$as_save_IFS
  1797. test -z "$as_dir" && as_dir=.
  1798. for ac_exec_ext in '' $ac_executable_extensions; do
  1799. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1800. ac_cv_prog_ac_ct_CC="gcc"
  1801. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1802. break 2
  1803. fi
  1804. done
  1805. done
  1806. IFS=$as_save_IFS
  1807. fi
  1808. fi
  1809. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1810. if test -n "$ac_ct_CC"; then
  1811. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1812. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1813. else
  1814. { echo "$as_me:$LINENO: result: no" >&5
  1815. echo "${ECHO_T}no" >&6; }
  1816. fi
  1817. if test "x$ac_ct_CC" = x; then
  1818. CC=""
  1819. else
  1820. case $cross_compiling:$ac_tool_warned in
  1821. yes:)
  1822. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1823. whose name does not start with the host triplet. If you think this
  1824. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1825. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1826. whose name does not start with the host triplet. If you think this
  1827. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1828. ac_tool_warned=yes ;;
  1829. esac
  1830. CC=$ac_ct_CC
  1831. fi
  1832. else
  1833. CC="$ac_cv_prog_CC"
  1834. fi
  1835. if test -z "$CC"; then
  1836. if test -n "$ac_tool_prefix"; then
  1837. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1838. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1839. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1840. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1841. if test "${ac_cv_prog_CC+set}" = set; then
  1842. echo $ECHO_N "(cached) $ECHO_C" >&6
  1843. else
  1844. if test -n "$CC"; then
  1845. ac_cv_prog_CC="$CC" # Let the user override the test.
  1846. else
  1847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1848. for as_dir in $PATH
  1849. do
  1850. IFS=$as_save_IFS
  1851. test -z "$as_dir" && as_dir=.
  1852. for ac_exec_ext in '' $ac_executable_extensions; do
  1853. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1854. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1855. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1856. break 2
  1857. fi
  1858. done
  1859. done
  1860. IFS=$as_save_IFS
  1861. fi
  1862. fi
  1863. CC=$ac_cv_prog_CC
  1864. if test -n "$CC"; then
  1865. { echo "$as_me:$LINENO: result: $CC" >&5
  1866. echo "${ECHO_T}$CC" >&6; }
  1867. else
  1868. { echo "$as_me:$LINENO: result: no" >&5
  1869. echo "${ECHO_T}no" >&6; }
  1870. fi
  1871. fi
  1872. fi
  1873. if test -z "$CC"; then
  1874. # Extract the first word of "cc", so it can be a program name with args.
  1875. set dummy cc; ac_word=$2
  1876. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1877. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1878. if test "${ac_cv_prog_CC+set}" = set; then
  1879. echo $ECHO_N "(cached) $ECHO_C" >&6
  1880. else
  1881. if test -n "$CC"; then
  1882. ac_cv_prog_CC="$CC" # Let the user override the test.
  1883. else
  1884. ac_prog_rejected=no
  1885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1886. for as_dir in $PATH
  1887. do
  1888. IFS=$as_save_IFS
  1889. test -z "$as_dir" && as_dir=.
  1890. for ac_exec_ext in '' $ac_executable_extensions; do
  1891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1892. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1893. ac_prog_rejected=yes
  1894. continue
  1895. fi
  1896. ac_cv_prog_CC="cc"
  1897. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1898. break 2
  1899. fi
  1900. done
  1901. done
  1902. IFS=$as_save_IFS
  1903. if test $ac_prog_rejected = yes; then
  1904. # We found a bogon in the path, so make sure we never use it.
  1905. set dummy $ac_cv_prog_CC
  1906. shift
  1907. if test $# != 0; then
  1908. # We chose a different compiler from the bogus one.
  1909. # However, it has the same basename, so the bogon will be chosen
  1910. # first if we set CC to just the basename; use the full file name.
  1911. shift
  1912. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1913. fi
  1914. fi
  1915. fi
  1916. fi
  1917. CC=$ac_cv_prog_CC
  1918. if test -n "$CC"; then
  1919. { echo "$as_me:$LINENO: result: $CC" >&5
  1920. echo "${ECHO_T}$CC" >&6; }
  1921. else
  1922. { echo "$as_me:$LINENO: result: no" >&5
  1923. echo "${ECHO_T}no" >&6; }
  1924. fi
  1925. fi
  1926. if test -z "$CC"; then
  1927. if test -n "$ac_tool_prefix"; then
  1928. for ac_prog in cl.exe
  1929. do
  1930. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1931. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1932. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1933. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1934. if test "${ac_cv_prog_CC+set}" = set; then
  1935. echo $ECHO_N "(cached) $ECHO_C" >&6
  1936. else
  1937. if test -n "$CC"; then
  1938. ac_cv_prog_CC="$CC" # Let the user override the test.
  1939. else
  1940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1941. for as_dir in $PATH
  1942. do
  1943. IFS=$as_save_IFS
  1944. test -z "$as_dir" && as_dir=.
  1945. for ac_exec_ext in '' $ac_executable_extensions; do
  1946. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1947. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1948. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1949. break 2
  1950. fi
  1951. done
  1952. done
  1953. IFS=$as_save_IFS
  1954. fi
  1955. fi
  1956. CC=$ac_cv_prog_CC
  1957. if test -n "$CC"; then
  1958. { echo "$as_me:$LINENO: result: $CC" >&5
  1959. echo "${ECHO_T}$CC" >&6; }
  1960. else
  1961. { echo "$as_me:$LINENO: result: no" >&5
  1962. echo "${ECHO_T}no" >&6; }
  1963. fi
  1964. test -n "$CC" && break
  1965. done
  1966. fi
  1967. if test -z "$CC"; then
  1968. ac_ct_CC=$CC
  1969. for ac_prog in cl.exe
  1970. do
  1971. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1972. set dummy $ac_prog; ac_word=$2
  1973. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1974. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1975. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1976. echo $ECHO_N "(cached) $ECHO_C" >&6
  1977. else
  1978. if test -n "$ac_ct_CC"; then
  1979. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1980. else
  1981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1982. for as_dir in $PATH
  1983. do
  1984. IFS=$as_save_IFS
  1985. test -z "$as_dir" && as_dir=.
  1986. for ac_exec_ext in '' $ac_executable_extensions; do
  1987. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1988. ac_cv_prog_ac_ct_CC="$ac_prog"
  1989. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1990. break 2
  1991. fi
  1992. done
  1993. done
  1994. IFS=$as_save_IFS
  1995. fi
  1996. fi
  1997. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1998. if test -n "$ac_ct_CC"; then
  1999. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2000. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2001. else
  2002. { echo "$as_me:$LINENO: result: no" >&5
  2003. echo "${ECHO_T}no" >&6; }
  2004. fi
  2005. test -n "$ac_ct_CC" && break
  2006. done
  2007. if test "x$ac_ct_CC" = x; then
  2008. CC=""
  2009. else
  2010. case $cross_compiling:$ac_tool_warned in
  2011. yes:)
  2012. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2013. whose name does not start with the host triplet. If you think this
  2014. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2015. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2016. whose name does not start with the host triplet. If you think this
  2017. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2018. ac_tool_warned=yes ;;
  2019. esac
  2020. CC=$ac_ct_CC
  2021. fi
  2022. fi
  2023. fi
  2024. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2025. See \`config.log' for more details." >&5
  2026. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2027. See \`config.log' for more details." >&2;}
  2028. { (exit 1); exit 1; }; }
  2029. # Provide some information about the compiler.
  2030. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2031. ac_compiler=`set X $ac_compile; echo $2`
  2032. { (ac_try="$ac_compiler --version >&5"
  2033. case "(($ac_try" in
  2034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2035. *) ac_try_echo=$ac_try;;
  2036. esac
  2037. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2038. (eval "$ac_compiler --version >&5") 2>&5
  2039. ac_status=$?
  2040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2041. (exit $ac_status); }
  2042. { (ac_try="$ac_compiler -v >&5"
  2043. case "(($ac_try" in
  2044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2045. *) ac_try_echo=$ac_try;;
  2046. esac
  2047. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2048. (eval "$ac_compiler -v >&5") 2>&5
  2049. ac_status=$?
  2050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2051. (exit $ac_status); }
  2052. { (ac_try="$ac_compiler -V >&5"
  2053. case "(($ac_try" in
  2054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2055. *) ac_try_echo=$ac_try;;
  2056. esac
  2057. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2058. (eval "$ac_compiler -V >&5") 2>&5
  2059. ac_status=$?
  2060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2061. (exit $ac_status); }
  2062. cat >conftest.$ac_ext <<_ACEOF
  2063. /* confdefs.h. */
  2064. _ACEOF
  2065. cat confdefs.h >>conftest.$ac_ext
  2066. cat >>conftest.$ac_ext <<_ACEOF
  2067. /* end confdefs.h. */
  2068. int
  2069. main ()
  2070. {
  2071. ;
  2072. return 0;
  2073. }
  2074. _ACEOF
  2075. ac_clean_files_save=$ac_clean_files
  2076. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2077. # Try to create an executable without -o first, disregard a.out.
  2078. # It will help us diagnose broken compilers, and finding out an intuition
  2079. # of exeext.
  2080. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2081. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2082. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2083. #
  2084. # List of possible output files, starting from the most likely.
  2085. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2086. # only as a last resort. b.out is created by i960 compilers.
  2087. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2088. #
  2089. # The IRIX 6 linker writes into existing files which may not be
  2090. # executable, retaining their permissions. Remove them first so a
  2091. # subsequent execution test works.
  2092. ac_rmfiles=
  2093. for ac_file in $ac_files
  2094. do
  2095. case $ac_file in
  2096. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2097. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2098. esac
  2099. done
  2100. rm -f $ac_rmfiles
  2101. if { (ac_try="$ac_link_default"
  2102. case "(($ac_try" in
  2103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2104. *) ac_try_echo=$ac_try;;
  2105. esac
  2106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2107. (eval "$ac_link_default") 2>&5
  2108. ac_status=$?
  2109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2110. (exit $ac_status); }; then
  2111. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2112. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2113. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2114. # so that the user can short-circuit this test for compilers unknown to
  2115. # Autoconf.
  2116. for ac_file in $ac_files ''
  2117. do
  2118. test -f "$ac_file" || continue
  2119. case $ac_file in
  2120. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2121. ;;
  2122. [ab].out )
  2123. # We found the default executable, but exeext='' is most
  2124. # certainly right.
  2125. break;;
  2126. *.* )
  2127. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2128. then :; else
  2129. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2130. fi
  2131. # We set ac_cv_exeext here because the later test for it is not
  2132. # safe: cross compilers may not add the suffix if given an `-o'
  2133. # argument, so we may need to know it at that point already.
  2134. # Even if this section looks crufty: it has the advantage of
  2135. # actually working.
  2136. break;;
  2137. * )
  2138. break;;
  2139. esac
  2140. done
  2141. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2142. else
  2143. ac_file=''
  2144. fi
  2145. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2146. echo "${ECHO_T}$ac_file" >&6; }
  2147. if test -z "$ac_file"; then
  2148. echo "$as_me: failed program was:" >&5
  2149. sed 's/^/| /' conftest.$ac_ext >&5
  2150. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2151. See \`config.log' for more details." >&5
  2152. echo "$as_me: error: C compiler cannot create executables
  2153. See \`config.log' for more details." >&2;}
  2154. { (exit 77); exit 77; }; }
  2155. fi
  2156. ac_exeext=$ac_cv_exeext
  2157. # Check that the compiler produces executables we can run. If not, either
  2158. # the compiler is broken, or we cross compile.
  2159. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2160. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2161. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2162. # If not cross compiling, check that we can run a simple program.
  2163. if test "$cross_compiling" != yes; then
  2164. if { ac_try='./$ac_file'
  2165. { (case "(($ac_try" in
  2166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2167. *) ac_try_echo=$ac_try;;
  2168. esac
  2169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2170. (eval "$ac_try") 2>&5
  2171. ac_status=$?
  2172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2173. (exit $ac_status); }; }; then
  2174. cross_compiling=no
  2175. else
  2176. if test "$cross_compiling" = maybe; then
  2177. cross_compiling=yes
  2178. else
  2179. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2180. If you meant to cross compile, use \`--host'.
  2181. See \`config.log' for more details." >&5
  2182. echo "$as_me: error: cannot run C compiled programs.
  2183. If you meant to cross compile, use \`--host'.
  2184. See \`config.log' for more details." >&2;}
  2185. { (exit 1); exit 1; }; }
  2186. fi
  2187. fi
  2188. fi
  2189. { echo "$as_me:$LINENO: result: yes" >&5
  2190. echo "${ECHO_T}yes" >&6; }
  2191. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2192. ac_clean_files=$ac_clean_files_save
  2193. # Check that the compiler produces executables we can run. If not, either
  2194. # the compiler is broken, or we cross compile.
  2195. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2196. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2197. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2198. echo "${ECHO_T}$cross_compiling" >&6; }
  2199. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2200. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2201. if { (ac_try="$ac_link"
  2202. case "(($ac_try" in
  2203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2204. *) ac_try_echo=$ac_try;;
  2205. esac
  2206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2207. (eval "$ac_link") 2>&5
  2208. ac_status=$?
  2209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2210. (exit $ac_status); }; then
  2211. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2212. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2213. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2214. # `rm'.
  2215. for ac_file in conftest.exe conftest conftest.*; do
  2216. test -f "$ac_file" || continue
  2217. case $ac_file in
  2218. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2219. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2220. break;;
  2221. * ) break;;
  2222. esac
  2223. done
  2224. else
  2225. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2226. See \`config.log' for more details." >&5
  2227. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2228. See \`config.log' for more details." >&2;}
  2229. { (exit 1); exit 1; }; }
  2230. fi
  2231. rm -f conftest$ac_cv_exeext
  2232. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2233. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2234. rm -f conftest.$ac_ext
  2235. EXEEXT=$ac_cv_exeext
  2236. ac_exeext=$EXEEXT
  2237. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2238. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2239. if test "${ac_cv_objext+set}" = set; then
  2240. echo $ECHO_N "(cached) $ECHO_C" >&6
  2241. else
  2242. cat >conftest.$ac_ext <<_ACEOF
  2243. /* confdefs.h. */
  2244. _ACEOF
  2245. cat confdefs.h >>conftest.$ac_ext
  2246. cat >>conftest.$ac_ext <<_ACEOF
  2247. /* end confdefs.h. */
  2248. int
  2249. main ()
  2250. {
  2251. ;
  2252. return 0;
  2253. }
  2254. _ACEOF
  2255. rm -f conftest.o conftest.obj
  2256. if { (ac_try="$ac_compile"
  2257. case "(($ac_try" in
  2258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2259. *) ac_try_echo=$ac_try;;
  2260. esac
  2261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2262. (eval "$ac_compile") 2>&5
  2263. ac_status=$?
  2264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2265. (exit $ac_status); }; then
  2266. for ac_file in conftest.o conftest.obj conftest.*; do
  2267. test -f "$ac_file" || continue;
  2268. case $ac_file in
  2269. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2270. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2271. break;;
  2272. esac
  2273. done
  2274. else
  2275. echo "$as_me: failed program was:" >&5
  2276. sed 's/^/| /' conftest.$ac_ext >&5
  2277. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2278. See \`config.log' for more details." >&5
  2279. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2280. See \`config.log' for more details." >&2;}
  2281. { (exit 1); exit 1; }; }
  2282. fi
  2283. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2284. fi
  2285. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2286. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2287. OBJEXT=$ac_cv_objext
  2288. ac_objext=$OBJEXT
  2289. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2290. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2291. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2292. echo $ECHO_N "(cached) $ECHO_C" >&6
  2293. else
  2294. cat >conftest.$ac_ext <<_ACEOF
  2295. /* confdefs.h. */
  2296. _ACEOF
  2297. cat confdefs.h >>conftest.$ac_ext
  2298. cat >>conftest.$ac_ext <<_ACEOF
  2299. /* end confdefs.h. */
  2300. int
  2301. main ()
  2302. {
  2303. #ifndef __GNUC__
  2304. choke me
  2305. #endif
  2306. ;
  2307. return 0;
  2308. }
  2309. _ACEOF
  2310. rm -f conftest.$ac_objext
  2311. if { (ac_try="$ac_compile"
  2312. case "(($ac_try" in
  2313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2314. *) ac_try_echo=$ac_try;;
  2315. esac
  2316. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2317. (eval "$ac_compile") 2>conftest.er1
  2318. ac_status=$?
  2319. grep -v '^ *+' conftest.er1 >conftest.err
  2320. rm -f conftest.er1
  2321. cat conftest.err >&5
  2322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2323. (exit $ac_status); } && {
  2324. test -z "$ac_c_werror_flag" ||
  2325. test ! -s conftest.err
  2326. } && test -s conftest.$ac_objext; then
  2327. ac_compiler_gnu=yes
  2328. else
  2329. echo "$as_me: failed program was:" >&5
  2330. sed 's/^/| /' conftest.$ac_ext >&5
  2331. ac_compiler_gnu=no
  2332. fi
  2333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2334. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2335. fi
  2336. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2337. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2338. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2339. ac_test_CFLAGS=${CFLAGS+set}
  2340. ac_save_CFLAGS=$CFLAGS
  2341. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2342. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2343. if test "${ac_cv_prog_cc_g+set}" = set; then
  2344. echo $ECHO_N "(cached) $ECHO_C" >&6
  2345. else
  2346. ac_save_c_werror_flag=$ac_c_werror_flag
  2347. ac_c_werror_flag=yes
  2348. ac_cv_prog_cc_g=no
  2349. CFLAGS="-g"
  2350. cat >conftest.$ac_ext <<_ACEOF
  2351. /* confdefs.h. */
  2352. _ACEOF
  2353. cat confdefs.h >>conftest.$ac_ext
  2354. cat >>conftest.$ac_ext <<_ACEOF
  2355. /* end confdefs.h. */
  2356. int
  2357. main ()
  2358. {
  2359. ;
  2360. return 0;
  2361. }
  2362. _ACEOF
  2363. rm -f conftest.$ac_objext
  2364. if { (ac_try="$ac_compile"
  2365. case "(($ac_try" in
  2366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2367. *) ac_try_echo=$ac_try;;
  2368. esac
  2369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2370. (eval "$ac_compile") 2>conftest.er1
  2371. ac_status=$?
  2372. grep -v '^ *+' conftest.er1 >conftest.err
  2373. rm -f conftest.er1
  2374. cat conftest.err >&5
  2375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2376. (exit $ac_status); } && {
  2377. test -z "$ac_c_werror_flag" ||
  2378. test ! -s conftest.err
  2379. } && test -s conftest.$ac_objext; then
  2380. ac_cv_prog_cc_g=yes
  2381. else
  2382. echo "$as_me: failed program was:" >&5
  2383. sed 's/^/| /' conftest.$ac_ext >&5
  2384. CFLAGS=""
  2385. cat >conftest.$ac_ext <<_ACEOF
  2386. /* confdefs.h. */
  2387. _ACEOF
  2388. cat confdefs.h >>conftest.$ac_ext
  2389. cat >>conftest.$ac_ext <<_ACEOF
  2390. /* end confdefs.h. */
  2391. int
  2392. main ()
  2393. {
  2394. ;
  2395. return 0;
  2396. }
  2397. _ACEOF
  2398. rm -f conftest.$ac_objext
  2399. if { (ac_try="$ac_compile"
  2400. case "(($ac_try" in
  2401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2402. *) ac_try_echo=$ac_try;;
  2403. esac
  2404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2405. (eval "$ac_compile") 2>conftest.er1
  2406. ac_status=$?
  2407. grep -v '^ *+' conftest.er1 >conftest.err
  2408. rm -f conftest.er1
  2409. cat conftest.err >&5
  2410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2411. (exit $ac_status); } && {
  2412. test -z "$ac_c_werror_flag" ||
  2413. test ! -s conftest.err
  2414. } && test -s conftest.$ac_objext; then
  2415. :
  2416. else
  2417. echo "$as_me: failed program was:" >&5
  2418. sed 's/^/| /' conftest.$ac_ext >&5
  2419. ac_c_werror_flag=$ac_save_c_werror_flag
  2420. CFLAGS="-g"
  2421. cat >conftest.$ac_ext <<_ACEOF
  2422. /* confdefs.h. */
  2423. _ACEOF
  2424. cat confdefs.h >>conftest.$ac_ext
  2425. cat >>conftest.$ac_ext <<_ACEOF
  2426. /* end confdefs.h. */
  2427. int
  2428. main ()
  2429. {
  2430. ;
  2431. return 0;
  2432. }
  2433. _ACEOF
  2434. rm -f conftest.$ac_objext
  2435. if { (ac_try="$ac_compile"
  2436. case "(($ac_try" in
  2437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2438. *) ac_try_echo=$ac_try;;
  2439. esac
  2440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2441. (eval "$ac_compile") 2>conftest.er1
  2442. ac_status=$?
  2443. grep -v '^ *+' conftest.er1 >conftest.err
  2444. rm -f conftest.er1
  2445. cat conftest.err >&5
  2446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2447. (exit $ac_status); } && {
  2448. test -z "$ac_c_werror_flag" ||
  2449. test ! -s conftest.err
  2450. } && test -s conftest.$ac_objext; then
  2451. ac_cv_prog_cc_g=yes
  2452. else
  2453. echo "$as_me: failed program was:" >&5
  2454. sed 's/^/| /' conftest.$ac_ext >&5
  2455. fi
  2456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2457. fi
  2458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2459. fi
  2460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2461. ac_c_werror_flag=$ac_save_c_werror_flag
  2462. fi
  2463. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2464. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2465. if test "$ac_test_CFLAGS" = set; then
  2466. CFLAGS=$ac_save_CFLAGS
  2467. elif test $ac_cv_prog_cc_g = yes; then
  2468. if test "$GCC" = yes; then
  2469. CFLAGS="-g -O2"
  2470. else
  2471. CFLAGS="-g"
  2472. fi
  2473. else
  2474. if test "$GCC" = yes; then
  2475. CFLAGS="-O2"
  2476. else
  2477. CFLAGS=
  2478. fi
  2479. fi
  2480. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2481. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2482. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2483. echo $ECHO_N "(cached) $ECHO_C" >&6
  2484. else
  2485. ac_cv_prog_cc_c89=no
  2486. ac_save_CC=$CC
  2487. cat >conftest.$ac_ext <<_ACEOF
  2488. /* confdefs.h. */
  2489. _ACEOF
  2490. cat confdefs.h >>conftest.$ac_ext
  2491. cat >>conftest.$ac_ext <<_ACEOF
  2492. /* end confdefs.h. */
  2493. #include <stdarg.h>
  2494. #include <stdio.h>
  2495. #include <sys/types.h>
  2496. #include <sys/stat.h>
  2497. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2498. struct buf { int x; };
  2499. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2500. static char *e (p, i)
  2501. char **p;
  2502. int i;
  2503. {
  2504. return p[i];
  2505. }
  2506. static char *f (char * (*g) (char **, int), char **p, ...)
  2507. {
  2508. char *s;
  2509. va_list v;
  2510. va_start (v,p);
  2511. s = g (p, va_arg (v,int));
  2512. va_end (v);
  2513. return s;
  2514. }
  2515. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2516. function prototypes and stuff, but not '\xHH' hex character constants.
  2517. These don't provoke an error unfortunately, instead are silently treated
  2518. as 'x'. The following induces an error, until -std is added to get
  2519. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2520. array size at least. It's necessary to write '\x00'==0 to get something
  2521. that's true only with -std. */
  2522. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2523. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2524. inside strings and character constants. */
  2525. #define FOO(x) 'x'
  2526. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2527. int test (int i, double x);
  2528. struct s1 {int (*f) (int a);};
  2529. struct s2 {int (*f) (double a);};
  2530. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2531. int argc;
  2532. char **argv;
  2533. int
  2534. main ()
  2535. {
  2536. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2537. ;
  2538. return 0;
  2539. }
  2540. _ACEOF
  2541. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2542. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2543. do
  2544. CC="$ac_save_CC $ac_arg"
  2545. rm -f conftest.$ac_objext
  2546. if { (ac_try="$ac_compile"
  2547. case "(($ac_try" in
  2548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2549. *) ac_try_echo=$ac_try;;
  2550. esac
  2551. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2552. (eval "$ac_compile") 2>conftest.er1
  2553. ac_status=$?
  2554. grep -v '^ *+' conftest.er1 >conftest.err
  2555. rm -f conftest.er1
  2556. cat conftest.err >&5
  2557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2558. (exit $ac_status); } && {
  2559. test -z "$ac_c_werror_flag" ||
  2560. test ! -s conftest.err
  2561. } && test -s conftest.$ac_objext; then
  2562. ac_cv_prog_cc_c89=$ac_arg
  2563. else
  2564. echo "$as_me: failed program was:" >&5
  2565. sed 's/^/| /' conftest.$ac_ext >&5
  2566. fi
  2567. rm -f core conftest.err conftest.$ac_objext
  2568. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2569. done
  2570. rm -f conftest.$ac_ext
  2571. CC=$ac_save_CC
  2572. fi
  2573. # AC_CACHE_VAL
  2574. case "x$ac_cv_prog_cc_c89" in
  2575. x)
  2576. { echo "$as_me:$LINENO: result: none needed" >&5
  2577. echo "${ECHO_T}none needed" >&6; } ;;
  2578. xno)
  2579. { echo "$as_me:$LINENO: result: unsupported" >&5
  2580. echo "${ECHO_T}unsupported" >&6; } ;;
  2581. *)
  2582. CC="$CC $ac_cv_prog_cc_c89"
  2583. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2584. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2585. esac
  2586. ac_ext=c
  2587. ac_cpp='$CPP $CPPFLAGS'
  2588. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2589. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2590. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2591. ac_ext=cpp
  2592. ac_cpp='$CXXCPP $CPPFLAGS'
  2593. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2594. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2595. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2596. if test -z "$CXX"; then
  2597. if test -n "$CCC"; then
  2598. CXX=$CCC
  2599. else
  2600. if test -n "$ac_tool_prefix"; then
  2601. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2602. do
  2603. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2604. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2605. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2606. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2607. if test "${ac_cv_prog_CXX+set}" = set; then
  2608. echo $ECHO_N "(cached) $ECHO_C" >&6
  2609. else
  2610. if test -n "$CXX"; then
  2611. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2612. else
  2613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2614. for as_dir in $PATH
  2615. do
  2616. IFS=$as_save_IFS
  2617. test -z "$as_dir" && as_dir=.
  2618. for ac_exec_ext in '' $ac_executable_extensions; do
  2619. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2620. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2621. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2622. break 2
  2623. fi
  2624. done
  2625. done
  2626. IFS=$as_save_IFS
  2627. fi
  2628. fi
  2629. CXX=$ac_cv_prog_CXX
  2630. if test -n "$CXX"; then
  2631. { echo "$as_me:$LINENO: result: $CXX" >&5
  2632. echo "${ECHO_T}$CXX" >&6; }
  2633. else
  2634. { echo "$as_me:$LINENO: result: no" >&5
  2635. echo "${ECHO_T}no" >&6; }
  2636. fi
  2637. test -n "$CXX" && break
  2638. done
  2639. fi
  2640. if test -z "$CXX"; then
  2641. ac_ct_CXX=$CXX
  2642. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2643. do
  2644. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2645. set dummy $ac_prog; ac_word=$2
  2646. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2647. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2648. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2649. echo $ECHO_N "(cached) $ECHO_C" >&6
  2650. else
  2651. if test -n "$ac_ct_CXX"; then
  2652. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2653. else
  2654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2655. for as_dir in $PATH
  2656. do
  2657. IFS=$as_save_IFS
  2658. test -z "$as_dir" && as_dir=.
  2659. for ac_exec_ext in '' $ac_executable_extensions; do
  2660. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2661. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2662. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2663. break 2
  2664. fi
  2665. done
  2666. done
  2667. IFS=$as_save_IFS
  2668. fi
  2669. fi
  2670. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2671. if test -n "$ac_ct_CXX"; then
  2672. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2673. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2674. else
  2675. { echo "$as_me:$LINENO: result: no" >&5
  2676. echo "${ECHO_T}no" >&6; }
  2677. fi
  2678. test -n "$ac_ct_CXX" && break
  2679. done
  2680. if test "x$ac_ct_CXX" = x; then
  2681. CXX="g++"
  2682. else
  2683. case $cross_compiling:$ac_tool_warned in
  2684. yes:)
  2685. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2686. whose name does not start with the host triplet. If you think this
  2687. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2688. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2689. whose name does not start with the host triplet. If you think this
  2690. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2691. ac_tool_warned=yes ;;
  2692. esac
  2693. CXX=$ac_ct_CXX
  2694. fi
  2695. fi
  2696. fi
  2697. fi
  2698. # Provide some information about the compiler.
  2699. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2700. ac_compiler=`set X $ac_compile; echo $2`
  2701. { (ac_try="$ac_compiler --version >&5"
  2702. case "(($ac_try" in
  2703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2704. *) ac_try_echo=$ac_try;;
  2705. esac
  2706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2707. (eval "$ac_compiler --version >&5") 2>&5
  2708. ac_status=$?
  2709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2710. (exit $ac_status); }
  2711. { (ac_try="$ac_compiler -v >&5"
  2712. case "(($ac_try" in
  2713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2714. *) ac_try_echo=$ac_try;;
  2715. esac
  2716. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2717. (eval "$ac_compiler -v >&5") 2>&5
  2718. ac_status=$?
  2719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2720. (exit $ac_status); }
  2721. { (ac_try="$ac_compiler -V >&5"
  2722. case "(($ac_try" in
  2723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2724. *) ac_try_echo=$ac_try;;
  2725. esac
  2726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2727. (eval "$ac_compiler -V >&5") 2>&5
  2728. ac_status=$?
  2729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2730. (exit $ac_status); }
  2731. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2732. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2733. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2734. echo $ECHO_N "(cached) $ECHO_C" >&6
  2735. else
  2736. cat >conftest.$ac_ext <<_ACEOF
  2737. /* confdefs.h. */
  2738. _ACEOF
  2739. cat confdefs.h >>conftest.$ac_ext
  2740. cat >>conftest.$ac_ext <<_ACEOF
  2741. /* end confdefs.h. */
  2742. int
  2743. main ()
  2744. {
  2745. #ifndef __GNUC__
  2746. choke me
  2747. #endif
  2748. ;
  2749. return 0;
  2750. }
  2751. _ACEOF
  2752. rm -f conftest.$ac_objext
  2753. if { (ac_try="$ac_compile"
  2754. case "(($ac_try" in
  2755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2756. *) ac_try_echo=$ac_try;;
  2757. esac
  2758. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2759. (eval "$ac_compile") 2>conftest.er1
  2760. ac_status=$?
  2761. grep -v '^ *+' conftest.er1 >conftest.err
  2762. rm -f conftest.er1
  2763. cat conftest.err >&5
  2764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2765. (exit $ac_status); } && {
  2766. test -z "$ac_cxx_werror_flag" ||
  2767. test ! -s conftest.err
  2768. } && test -s conftest.$ac_objext; then
  2769. ac_compiler_gnu=yes
  2770. else
  2771. echo "$as_me: failed program was:" >&5
  2772. sed 's/^/| /' conftest.$ac_ext >&5
  2773. ac_compiler_gnu=no
  2774. fi
  2775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2776. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2777. fi
  2778. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2779. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2780. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2781. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2782. ac_save_CXXFLAGS=$CXXFLAGS
  2783. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2784. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2785. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2786. echo $ECHO_N "(cached) $ECHO_C" >&6
  2787. else
  2788. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2789. ac_cxx_werror_flag=yes
  2790. ac_cv_prog_cxx_g=no
  2791. CXXFLAGS="-g"
  2792. cat >conftest.$ac_ext <<_ACEOF
  2793. /* confdefs.h. */
  2794. _ACEOF
  2795. cat confdefs.h >>conftest.$ac_ext
  2796. cat >>conftest.$ac_ext <<_ACEOF
  2797. /* end confdefs.h. */
  2798. int
  2799. main ()
  2800. {
  2801. ;
  2802. return 0;
  2803. }
  2804. _ACEOF
  2805. rm -f conftest.$ac_objext
  2806. if { (ac_try="$ac_compile"
  2807. case "(($ac_try" in
  2808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2809. *) ac_try_echo=$ac_try;;
  2810. esac
  2811. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2812. (eval "$ac_compile") 2>conftest.er1
  2813. ac_status=$?
  2814. grep -v '^ *+' conftest.er1 >conftest.err
  2815. rm -f conftest.er1
  2816. cat conftest.err >&5
  2817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2818. (exit $ac_status); } && {
  2819. test -z "$ac_cxx_werror_flag" ||
  2820. test ! -s conftest.err
  2821. } && test -s conftest.$ac_objext; then
  2822. ac_cv_prog_cxx_g=yes
  2823. else
  2824. echo "$as_me: failed program was:" >&5
  2825. sed 's/^/| /' conftest.$ac_ext >&5
  2826. CXXFLAGS=""
  2827. cat >conftest.$ac_ext <<_ACEOF
  2828. /* confdefs.h. */
  2829. _ACEOF
  2830. cat confdefs.h >>conftest.$ac_ext
  2831. cat >>conftest.$ac_ext <<_ACEOF
  2832. /* end confdefs.h. */
  2833. int
  2834. main ()
  2835. {
  2836. ;
  2837. return 0;
  2838. }
  2839. _ACEOF
  2840. rm -f conftest.$ac_objext
  2841. if { (ac_try="$ac_compile"
  2842. case "(($ac_try" in
  2843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2844. *) ac_try_echo=$ac_try;;
  2845. esac
  2846. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2847. (eval "$ac_compile") 2>conftest.er1
  2848. ac_status=$?
  2849. grep -v '^ *+' conftest.er1 >conftest.err
  2850. rm -f conftest.er1
  2851. cat conftest.err >&5
  2852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2853. (exit $ac_status); } && {
  2854. test -z "$ac_cxx_werror_flag" ||
  2855. test ! -s conftest.err
  2856. } && test -s conftest.$ac_objext; then
  2857. :
  2858. else
  2859. echo "$as_me: failed program was:" >&5
  2860. sed 's/^/| /' conftest.$ac_ext >&5
  2861. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2862. CXXFLAGS="-g"
  2863. cat >conftest.$ac_ext <<_ACEOF
  2864. /* confdefs.h. */
  2865. _ACEOF
  2866. cat confdefs.h >>conftest.$ac_ext
  2867. cat >>conftest.$ac_ext <<_ACEOF
  2868. /* end confdefs.h. */
  2869. int
  2870. main ()
  2871. {
  2872. ;
  2873. return 0;
  2874. }
  2875. _ACEOF
  2876. rm -f conftest.$ac_objext
  2877. if { (ac_try="$ac_compile"
  2878. case "(($ac_try" in
  2879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2880. *) ac_try_echo=$ac_try;;
  2881. esac
  2882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2883. (eval "$ac_compile") 2>conftest.er1
  2884. ac_status=$?
  2885. grep -v '^ *+' conftest.er1 >conftest.err
  2886. rm -f conftest.er1
  2887. cat conftest.err >&5
  2888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2889. (exit $ac_status); } && {
  2890. test -z "$ac_cxx_werror_flag" ||
  2891. test ! -s conftest.err
  2892. } && test -s conftest.$ac_objext; then
  2893. ac_cv_prog_cxx_g=yes
  2894. else
  2895. echo "$as_me: failed program was:" >&5
  2896. sed 's/^/| /' conftest.$ac_ext >&5
  2897. fi
  2898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2899. fi
  2900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2901. fi
  2902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2903. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2904. fi
  2905. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2906. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2907. if test "$ac_test_CXXFLAGS" = set; then
  2908. CXXFLAGS=$ac_save_CXXFLAGS
  2909. elif test $ac_cv_prog_cxx_g = yes; then
  2910. if test "$GXX" = yes; then
  2911. CXXFLAGS="-g -O2"
  2912. else
  2913. CXXFLAGS="-g"
  2914. fi
  2915. else
  2916. if test "$GXX" = yes; then
  2917. CXXFLAGS="-O2"
  2918. else
  2919. CXXFLAGS=
  2920. fi
  2921. fi
  2922. ac_ext=c
  2923. ac_cpp='$CPP $CPPFLAGS'
  2924. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2925. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2926. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2927. # Check whether --enable-shared was given.
  2928. if test "${enable_shared+set}" = set; then
  2929. enableval=$enable_shared; p=${PACKAGE-default}
  2930. case $enableval in
  2931. yes) enable_shared=yes ;;
  2932. no) enable_shared=no ;;
  2933. *)
  2934. enable_shared=no
  2935. # Look at the argument we got. We use all the common list separators.
  2936. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2937. for pkg in $enableval; do
  2938. IFS="$lt_save_ifs"
  2939. if test "X$pkg" = "X$p"; then
  2940. enable_shared=yes
  2941. fi
  2942. done
  2943. IFS="$lt_save_ifs"
  2944. ;;
  2945. esac
  2946. else
  2947. enable_shared=yes
  2948. fi
  2949. # Check whether --enable-static was given.
  2950. if test "${enable_static+set}" = set; then
  2951. enableval=$enable_static; p=${PACKAGE-default}
  2952. case $enableval in
  2953. yes) enable_static=yes ;;
  2954. no) enable_static=no ;;
  2955. *)
  2956. enable_static=no
  2957. # Look at the argument we got. We use all the common list separators.
  2958. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2959. for pkg in $enableval; do
  2960. IFS="$lt_save_ifs"
  2961. if test "X$pkg" = "X$p"; then
  2962. enable_static=yes
  2963. fi
  2964. done
  2965. IFS="$lt_save_ifs"
  2966. ;;
  2967. esac
  2968. else
  2969. enable_static=yes
  2970. fi
  2971. # Check whether --enable-fast-install was given.
  2972. if test "${enable_fast_install+set}" = set; then
  2973. enableval=$enable_fast_install; p=${PACKAGE-default}
  2974. case $enableval in
  2975. yes) enable_fast_install=yes ;;
  2976. no) enable_fast_install=no ;;
  2977. *)
  2978. enable_fast_install=no
  2979. # Look at the argument we got. We use all the common list separators.
  2980. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2981. for pkg in $enableval; do
  2982. IFS="$lt_save_ifs"
  2983. if test "X$pkg" = "X$p"; then
  2984. enable_fast_install=yes
  2985. fi
  2986. done
  2987. IFS="$lt_save_ifs"
  2988. ;;
  2989. esac
  2990. else
  2991. enable_fast_install=yes
  2992. fi
  2993. # Make sure we can run config.sub.
  2994. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2995. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2996. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2997. { (exit 1); exit 1; }; }
  2998. { echo "$as_me:$LINENO: checking build system type" >&5
  2999. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  3000. if test "${ac_cv_build+set}" = set; then
  3001. echo $ECHO_N "(cached) $ECHO_C" >&6
  3002. else
  3003. ac_build_alias=$build_alias
  3004. test "x$ac_build_alias" = x &&
  3005. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3006. test "x$ac_build_alias" = x &&
  3007. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3008. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3009. { (exit 1); exit 1; }; }
  3010. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3011. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3012. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3013. { (exit 1); exit 1; }; }
  3014. fi
  3015. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3016. echo "${ECHO_T}$ac_cv_build" >&6; }
  3017. case $ac_cv_build in
  3018. *-*-*) ;;
  3019. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3020. echo "$as_me: error: invalid value of canonical build" >&2;}
  3021. { (exit 1); exit 1; }; };;
  3022. esac
  3023. build=$ac_cv_build
  3024. ac_save_IFS=$IFS; IFS='-'
  3025. set x $ac_cv_build
  3026. shift
  3027. build_cpu=$1
  3028. build_vendor=$2
  3029. shift; shift
  3030. # Remember, the first character of IFS is used to create $*,
  3031. # except with old shells:
  3032. build_os=$*
  3033. IFS=$ac_save_IFS
  3034. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3035. { echo "$as_me:$LINENO: checking host system type" >&5
  3036. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  3037. if test "${ac_cv_host+set}" = set; then
  3038. echo $ECHO_N "(cached) $ECHO_C" >&6
  3039. else
  3040. if test "x$host_alias" = x; then
  3041. ac_cv_host=$ac_cv_build
  3042. else
  3043. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3044. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3045. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3046. { (exit 1); exit 1; }; }
  3047. fi
  3048. fi
  3049. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3050. echo "${ECHO_T}$ac_cv_host" >&6; }
  3051. case $ac_cv_host in
  3052. *-*-*) ;;
  3053. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3054. echo "$as_me: error: invalid value of canonical host" >&2;}
  3055. { (exit 1); exit 1; }; };;
  3056. esac
  3057. host=$ac_cv_host
  3058. ac_save_IFS=$IFS; IFS='-'
  3059. set x $ac_cv_host
  3060. shift
  3061. host_cpu=$1
  3062. host_vendor=$2
  3063. shift; shift
  3064. # Remember, the first character of IFS is used to create $*,
  3065. # except with old shells:
  3066. host_os=$*
  3067. IFS=$ac_save_IFS
  3068. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3069. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3070. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3071. if test "${lt_cv_path_SED+set}" = set; then
  3072. echo $ECHO_N "(cached) $ECHO_C" >&6
  3073. else
  3074. # Loop through the user's path and test for sed and gsed.
  3075. # Then use that list of sed's as ones to test for truncation.
  3076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3077. for as_dir in $PATH
  3078. do
  3079. IFS=$as_save_IFS
  3080. test -z "$as_dir" && as_dir=.
  3081. for lt_ac_prog in sed gsed; do
  3082. for ac_exec_ext in '' $ac_executable_extensions; do
  3083. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  3084. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3085. fi
  3086. done
  3087. done
  3088. done
  3089. IFS=$as_save_IFS
  3090. lt_ac_max=0
  3091. lt_ac_count=0
  3092. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3093. # along with /bin/sed that truncates output.
  3094. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3095. test ! -f $lt_ac_sed && continue
  3096. cat /dev/null > conftest.in
  3097. lt_ac_count=0
  3098. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3099. # Check for GNU sed and select it if it is found.
  3100. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3101. lt_cv_path_SED=$lt_ac_sed
  3102. break
  3103. fi
  3104. while true; do
  3105. cat conftest.in conftest.in >conftest.tmp
  3106. mv conftest.tmp conftest.in
  3107. cp conftest.in conftest.nl
  3108. echo >>conftest.nl
  3109. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3110. cmp -s conftest.out conftest.nl || break
  3111. # 10000 chars as input seems more than enough
  3112. test $lt_ac_count -gt 10 && break
  3113. lt_ac_count=`expr $lt_ac_count + 1`
  3114. if test $lt_ac_count -gt $lt_ac_max; then
  3115. lt_ac_max=$lt_ac_count
  3116. lt_cv_path_SED=$lt_ac_sed
  3117. fi
  3118. done
  3119. done
  3120. fi
  3121. SED=$lt_cv_path_SED
  3122. { echo "$as_me:$LINENO: result: $SED" >&5
  3123. echo "${ECHO_T}$SED" >&6; }
  3124. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3125. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3126. if test "${ac_cv_path_GREP+set}" = set; then
  3127. echo $ECHO_N "(cached) $ECHO_C" >&6
  3128. else
  3129. # Extract the first word of "grep ggrep" to use in msg output
  3130. if test -z "$GREP"; then
  3131. set dummy grep ggrep; ac_prog_name=$2
  3132. if test "${ac_cv_path_GREP+set}" = set; then
  3133. echo $ECHO_N "(cached) $ECHO_C" >&6
  3134. else
  3135. ac_path_GREP_found=false
  3136. # Loop through the user's path and test for each of PROGNAME-LIST
  3137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3138. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3139. do
  3140. IFS=$as_save_IFS
  3141. test -z "$as_dir" && as_dir=.
  3142. for ac_prog in grep ggrep; do
  3143. for ac_exec_ext in '' $ac_executable_extensions; do
  3144. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3145. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3146. # Check for GNU ac_path_GREP and select it if it is found.
  3147. # Check for GNU $ac_path_GREP
  3148. case `"$ac_path_GREP" --version 2>&1` in
  3149. *GNU*)
  3150. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3151. *)
  3152. ac_count=0
  3153. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3154. while :
  3155. do
  3156. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3157. mv "conftest.tmp" "conftest.in"
  3158. cp "conftest.in" "conftest.nl"
  3159. echo 'GREP' >> "conftest.nl"
  3160. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3161. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3162. ac_count=`expr $ac_count + 1`
  3163. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3164. # Best one so far, save it but keep looking for a better one
  3165. ac_cv_path_GREP="$ac_path_GREP"
  3166. ac_path_GREP_max=$ac_count
  3167. fi
  3168. # 10*(2^10) chars as input seems more than enough
  3169. test $ac_count -gt 10 && break
  3170. done
  3171. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3172. esac
  3173. $ac_path_GREP_found && break 3
  3174. done
  3175. done
  3176. done
  3177. IFS=$as_save_IFS
  3178. fi
  3179. GREP="$ac_cv_path_GREP"
  3180. if test -z "$GREP"; then
  3181. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3182. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3183. { (exit 1); exit 1; }; }
  3184. fi
  3185. else
  3186. ac_cv_path_GREP=$GREP
  3187. fi
  3188. fi
  3189. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3190. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3191. GREP="$ac_cv_path_GREP"
  3192. { echo "$as_me:$LINENO: checking for egrep" >&5
  3193. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3194. if test "${ac_cv_path_EGREP+set}" = set; then
  3195. echo $ECHO_N "(cached) $ECHO_C" >&6
  3196. else
  3197. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3198. then ac_cv_path_EGREP="$GREP -E"
  3199. else
  3200. # Extract the first word of "egrep" to use in msg output
  3201. if test -z "$EGREP"; then
  3202. set dummy egrep; ac_prog_name=$2
  3203. if test "${ac_cv_path_EGREP+set}" = set; then
  3204. echo $ECHO_N "(cached) $ECHO_C" >&6
  3205. else
  3206. ac_path_EGREP_found=false
  3207. # Loop through the user's path and test for each of PROGNAME-LIST
  3208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3209. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3210. do
  3211. IFS=$as_save_IFS
  3212. test -z "$as_dir" && as_dir=.
  3213. for ac_prog in egrep; do
  3214. for ac_exec_ext in '' $ac_executable_extensions; do
  3215. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3216. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3217. # Check for GNU ac_path_EGREP and select it if it is found.
  3218. # Check for GNU $ac_path_EGREP
  3219. case `"$ac_path_EGREP" --version 2>&1` in
  3220. *GNU*)
  3221. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3222. *)
  3223. ac_count=0
  3224. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3225. while :
  3226. do
  3227. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3228. mv "conftest.tmp" "conftest.in"
  3229. cp "conftest.in" "conftest.nl"
  3230. echo 'EGREP' >> "conftest.nl"
  3231. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3232. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3233. ac_count=`expr $ac_count + 1`
  3234. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3235. # Best one so far, save it but keep looking for a better one
  3236. ac_cv_path_EGREP="$ac_path_EGREP"
  3237. ac_path_EGREP_max=$ac_count
  3238. fi
  3239. # 10*(2^10) chars as input seems more than enough
  3240. test $ac_count -gt 10 && break
  3241. done
  3242. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3243. esac
  3244. $ac_path_EGREP_found && break 3
  3245. done
  3246. done
  3247. done
  3248. IFS=$as_save_IFS
  3249. fi
  3250. EGREP="$ac_cv_path_EGREP"
  3251. if test -z "$EGREP"; then
  3252. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3253. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3254. { (exit 1); exit 1; }; }
  3255. fi
  3256. else
  3257. ac_cv_path_EGREP=$EGREP
  3258. fi
  3259. fi
  3260. fi
  3261. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3262. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3263. EGREP="$ac_cv_path_EGREP"
  3264. # Check whether --with-gnu-ld was given.
  3265. if test "${with_gnu_ld+set}" = set; then
  3266. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3267. else
  3268. with_gnu_ld=no
  3269. fi
  3270. ac_prog=ld
  3271. if test "$GCC" = yes; then
  3272. # Check if gcc -print-prog-name=ld gives a path.
  3273. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3274. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3275. case $host in
  3276. *-*-mingw*)
  3277. # gcc leaves a trailing carriage return which upsets mingw
  3278. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3279. *)
  3280. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3281. esac
  3282. case $ac_prog in
  3283. # Accept absolute paths.
  3284. [\\/]* | ?:[\\/]*)
  3285. re_direlt='/[^/][^/]*/\.\./'
  3286. # Canonicalize the pathname of ld
  3287. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3288. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3289. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3290. done
  3291. test -z "$LD" && LD="$ac_prog"
  3292. ;;
  3293. "")
  3294. # If it fails, then pretend we aren't using GCC.
  3295. ac_prog=ld
  3296. ;;
  3297. *)
  3298. # If it is relative, then search for the first ld in PATH.
  3299. with_gnu_ld=unknown
  3300. ;;
  3301. esac
  3302. elif test "$with_gnu_ld" = yes; then
  3303. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3304. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3305. else
  3306. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3307. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3308. fi
  3309. if test "${lt_cv_path_LD+set}" = set; then
  3310. echo $ECHO_N "(cached) $ECHO_C" >&6
  3311. else
  3312. if test -z "$LD"; then
  3313. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3314. for ac_dir in $PATH; do
  3315. IFS="$lt_save_ifs"
  3316. test -z "$ac_dir" && ac_dir=.
  3317. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3318. lt_cv_path_LD="$ac_dir/$ac_prog"
  3319. # Check to see if the program is GNU ld. I'd rather use --version,
  3320. # but apparently some variants of GNU ld only accept -v.
  3321. # Break only if it was the GNU/non-GNU ld that we prefer.
  3322. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3323. *GNU* | *'with BFD'*)
  3324. test "$with_gnu_ld" != no && break
  3325. ;;
  3326. *)
  3327. test "$with_gnu_ld" != yes && break
  3328. ;;
  3329. esac
  3330. fi
  3331. done
  3332. IFS="$lt_save_ifs"
  3333. else
  3334. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3335. fi
  3336. fi
  3337. LD="$lt_cv_path_LD"
  3338. if test -n "$LD"; then
  3339. { echo "$as_me:$LINENO: result: $LD" >&5
  3340. echo "${ECHO_T}$LD" >&6; }
  3341. else
  3342. { echo "$as_me:$LINENO: result: no" >&5
  3343. echo "${ECHO_T}no" >&6; }
  3344. fi
  3345. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3346. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3347. { (exit 1); exit 1; }; }
  3348. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3349. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3350. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3351. echo $ECHO_N "(cached) $ECHO_C" >&6
  3352. else
  3353. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3354. case `$LD -v 2>&1 </dev/null` in
  3355. *GNU* | *'with BFD'*)
  3356. lt_cv_prog_gnu_ld=yes
  3357. ;;
  3358. *)
  3359. lt_cv_prog_gnu_ld=no
  3360. ;;
  3361. esac
  3362. fi
  3363. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3364. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3365. with_gnu_ld=$lt_cv_prog_gnu_ld
  3366. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3367. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3368. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3369. echo $ECHO_N "(cached) $ECHO_C" >&6
  3370. else
  3371. lt_cv_ld_reload_flag='-r'
  3372. fi
  3373. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3374. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3375. reload_flag=$lt_cv_ld_reload_flag
  3376. case $reload_flag in
  3377. "" | " "*) ;;
  3378. *) reload_flag=" $reload_flag" ;;
  3379. esac
  3380. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3381. case $host_os in
  3382. darwin*)
  3383. if test "$GCC" = yes; then
  3384. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3385. else
  3386. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3387. fi
  3388. ;;
  3389. esac
  3390. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3391. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3392. if test "${lt_cv_path_NM+set}" = set; then
  3393. echo $ECHO_N "(cached) $ECHO_C" >&6
  3394. else
  3395. if test -n "$NM"; then
  3396. # Let the user override the test.
  3397. lt_cv_path_NM="$NM"
  3398. else
  3399. lt_nm_to_check="${ac_tool_prefix}nm"
  3400. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3401. lt_nm_to_check="$lt_nm_to_check nm"
  3402. fi
  3403. for lt_tmp_nm in $lt_nm_to_check; do
  3404. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3405. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3406. IFS="$lt_save_ifs"
  3407. test -z "$ac_dir" && ac_dir=.
  3408. tmp_nm="$ac_dir/$lt_tmp_nm"
  3409. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3410. # Check to see if the nm accepts a BSD-compat flag.
  3411. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3412. # nm: unknown option "B" ignored
  3413. # Tru64's nm complains that /dev/null is an invalid object file
  3414. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3415. */dev/null* | *'Invalid file or object type'*)
  3416. lt_cv_path_NM="$tmp_nm -B"
  3417. break
  3418. ;;
  3419. *)
  3420. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3421. */dev/null*)
  3422. lt_cv_path_NM="$tmp_nm -p"
  3423. break
  3424. ;;
  3425. *)
  3426. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3427. continue # so that we can try to find one that supports BSD flags
  3428. ;;
  3429. esac
  3430. ;;
  3431. esac
  3432. fi
  3433. done
  3434. IFS="$lt_save_ifs"
  3435. done
  3436. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3437. fi
  3438. fi
  3439. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3440. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3441. NM="$lt_cv_path_NM"
  3442. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3443. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3444. LN_S=$as_ln_s
  3445. if test "$LN_S" = "ln -s"; then
  3446. { echo "$as_me:$LINENO: result: yes" >&5
  3447. echo "${ECHO_T}yes" >&6; }
  3448. else
  3449. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3450. echo "${ECHO_T}no, using $LN_S" >&6; }
  3451. fi
  3452. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  3453. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  3454. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3455. echo $ECHO_N "(cached) $ECHO_C" >&6
  3456. else
  3457. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3458. lt_cv_file_magic_test_file=
  3459. lt_cv_deplibs_check_method='unknown'
  3460. # Need to set the preceding variable on all platforms that support
  3461. # interlibrary dependencies.
  3462. # 'none' -- dependencies not supported.
  3463. # `unknown' -- same as none, but documents that we really don't know.
  3464. # 'pass_all' -- all dependencies passed with no checks.
  3465. # 'test_compile' -- check by making test program.
  3466. # 'file_magic [[regex]]' -- check by looking for files in library path
  3467. # which responds to the $file_magic_cmd with a given extended regex.
  3468. # If you have `file' or equivalent on your system and you're not sure
  3469. # whether `pass_all' will *always* work, you probably want this one.
  3470. case $host_os in
  3471. aix[4-9]*)
  3472. lt_cv_deplibs_check_method=pass_all
  3473. ;;
  3474. beos*)
  3475. lt_cv_deplibs_check_method=pass_all
  3476. ;;
  3477. bsdi[45]*)
  3478. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3479. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3480. lt_cv_file_magic_test_file=/shlib/libc.so
  3481. ;;
  3482. cygwin*)
  3483. # func_win32_libid is a shell function defined in ltmain.sh
  3484. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3485. lt_cv_file_magic_cmd='func_win32_libid'
  3486. ;;
  3487. mingw* | pw32*)
  3488. # Base MSYS/MinGW do not provide the 'file' command needed by
  3489. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3490. # unless we find 'file', for example because we are cross-compiling.
  3491. if ( file / ) >/dev/null 2>&1; then
  3492. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3493. lt_cv_file_magic_cmd='func_win32_libid'
  3494. else
  3495. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3496. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3497. fi
  3498. ;;
  3499. darwin* | rhapsody*)
  3500. lt_cv_deplibs_check_method=pass_all
  3501. ;;
  3502. freebsd* | dragonfly*)
  3503. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3504. case $host_cpu in
  3505. i*86 )
  3506. # Not sure whether the presence of OpenBSD here was a mistake.
  3507. # Let's accept both of them until this is cleared up.
  3508. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3509. lt_cv_file_magic_cmd=/usr/bin/file
  3510. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3511. ;;
  3512. esac
  3513. else
  3514. lt_cv_deplibs_check_method=pass_all
  3515. fi
  3516. ;;
  3517. gnu*)
  3518. lt_cv_deplibs_check_method=pass_all
  3519. ;;
  3520. hpux10.20* | hpux11*)
  3521. lt_cv_file_magic_cmd=/usr/bin/file
  3522. case $host_cpu in
  3523. ia64*)
  3524. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3525. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3526. ;;
  3527. hppa*64*)
  3528. 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]'
  3529. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3530. ;;
  3531. *)
  3532. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3533. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3534. ;;
  3535. esac
  3536. ;;
  3537. interix[3-9]*)
  3538. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3539. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3540. ;;
  3541. irix5* | irix6* | nonstopux*)
  3542. case $LD in
  3543. *-32|*"-32 ") libmagic=32-bit;;
  3544. *-n32|*"-n32 ") libmagic=N32;;
  3545. *-64|*"-64 ") libmagic=64-bit;;
  3546. *) libmagic=never-match;;
  3547. esac
  3548. lt_cv_deplibs_check_method=pass_all
  3549. ;;
  3550. # This must be Linux ELF.
  3551. linux* | k*bsd*-gnu)
  3552. lt_cv_deplibs_check_method=pass_all
  3553. ;;
  3554. netbsd* | netbsdelf*-gnu)
  3555. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3556. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3557. else
  3558. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3559. fi
  3560. ;;
  3561. newos6*)
  3562. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3563. lt_cv_file_magic_cmd=/usr/bin/file
  3564. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3565. ;;
  3566. nto-qnx*)
  3567. lt_cv_deplibs_check_method=unknown
  3568. ;;
  3569. openbsd*)
  3570. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3571. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3572. else
  3573. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3574. fi
  3575. ;;
  3576. osf3* | osf4* | osf5*)
  3577. lt_cv_deplibs_check_method=pass_all
  3578. ;;
  3579. rdos*)
  3580. lt_cv_deplibs_check_method=pass_all
  3581. ;;
  3582. solaris*)
  3583. lt_cv_deplibs_check_method=pass_all
  3584. ;;
  3585. sysv4 | sysv4.3*)
  3586. case $host_vendor in
  3587. motorola)
  3588. 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]'
  3589. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3590. ;;
  3591. ncr)
  3592. lt_cv_deplibs_check_method=pass_all
  3593. ;;
  3594. sequent)
  3595. lt_cv_file_magic_cmd='/bin/file'
  3596. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3597. ;;
  3598. sni)
  3599. lt_cv_file_magic_cmd='/bin/file'
  3600. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3601. lt_cv_file_magic_test_file=/lib/libc.so
  3602. ;;
  3603. siemens)
  3604. lt_cv_deplibs_check_method=pass_all
  3605. ;;
  3606. pc)
  3607. lt_cv_deplibs_check_method=pass_all
  3608. ;;
  3609. esac
  3610. ;;
  3611. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3612. lt_cv_deplibs_check_method=pass_all
  3613. ;;
  3614. esac
  3615. fi
  3616. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3617. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  3618. file_magic_cmd=$lt_cv_file_magic_cmd
  3619. deplibs_check_method=$lt_cv_deplibs_check_method
  3620. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3621. # If no C compiler was specified, use CC.
  3622. LTCC=${LTCC-"$CC"}
  3623. # If no C compiler flags were specified, use CFLAGS.
  3624. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3625. # Allow CC to be a program name with arguments.
  3626. compiler=$CC
  3627. # Check whether --enable-libtool-lock was given.
  3628. if test "${enable_libtool_lock+set}" = set; then
  3629. enableval=$enable_libtool_lock;
  3630. fi
  3631. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3632. # Some flags need to be propagated to the compiler or linker for good
  3633. # libtool support.
  3634. case $host in
  3635. ia64-*-hpux*)
  3636. # Find out which ABI we are using.
  3637. echo 'int i;' > conftest.$ac_ext
  3638. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3639. (eval $ac_compile) 2>&5
  3640. ac_status=$?
  3641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3642. (exit $ac_status); }; then
  3643. case `/usr/bin/file conftest.$ac_objext` in
  3644. *ELF-32*)
  3645. HPUX_IA64_MODE="32"
  3646. ;;
  3647. *ELF-64*)
  3648. HPUX_IA64_MODE="64"
  3649. ;;
  3650. esac
  3651. fi
  3652. rm -rf conftest*
  3653. ;;
  3654. *-*-irix6*)
  3655. # Find out which ABI we are using.
  3656. echo '#line 4094 "configure"' > conftest.$ac_ext
  3657. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3658. (eval $ac_compile) 2>&5
  3659. ac_status=$?
  3660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3661. (exit $ac_status); }; then
  3662. if test "$lt_cv_prog_gnu_ld" = yes; then
  3663. case `/usr/bin/file conftest.$ac_objext` in
  3664. *32-bit*)
  3665. LD="${LD-ld} -melf32bsmip"
  3666. ;;
  3667. *N32*)
  3668. LD="${LD-ld} -melf32bmipn32"
  3669. ;;
  3670. *64-bit*)
  3671. LD="${LD-ld} -melf64bmip"
  3672. ;;
  3673. esac
  3674. else
  3675. case `/usr/bin/file conftest.$ac_objext` in
  3676. *32-bit*)
  3677. LD="${LD-ld} -32"
  3678. ;;
  3679. *N32*)
  3680. LD="${LD-ld} -n32"
  3681. ;;
  3682. *64-bit*)
  3683. LD="${LD-ld} -64"
  3684. ;;
  3685. esac
  3686. fi
  3687. fi
  3688. rm -rf conftest*
  3689. ;;
  3690. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  3691. s390*-*linux*|sparc*-*linux*)
  3692. # Find out which ABI we are using.
  3693. echo 'int i;' > conftest.$ac_ext
  3694. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3695. (eval $ac_compile) 2>&5
  3696. ac_status=$?
  3697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3698. (exit $ac_status); }; then
  3699. case `/usr/bin/file conftest.o` in
  3700. *32-bit*)
  3701. case $host in
  3702. x86_64-*kfreebsd*-gnu)
  3703. LD="${LD-ld} -m elf_i386_fbsd"
  3704. ;;
  3705. x86_64-*linux*)
  3706. LD="${LD-ld} -m elf_i386"
  3707. ;;
  3708. ppc64-*linux*|powerpc64-*linux*)
  3709. LD="${LD-ld} -m elf32ppclinux"
  3710. ;;
  3711. s390x-*linux*)
  3712. LD="${LD-ld} -m elf_s390"
  3713. ;;
  3714. sparc64-*linux*)
  3715. LD="${LD-ld} -m elf32_sparc"
  3716. ;;
  3717. esac
  3718. ;;
  3719. *64-bit*)
  3720. case $host in
  3721. x86_64-*kfreebsd*-gnu)
  3722. LD="${LD-ld} -m elf_x86_64_fbsd"
  3723. ;;
  3724. x86_64-*linux*)
  3725. LD="${LD-ld} -m elf_x86_64"
  3726. ;;
  3727. ppc*-*linux*|powerpc*-*linux*)
  3728. LD="${LD-ld} -m elf64ppc"
  3729. ;;
  3730. s390*-*linux*)
  3731. LD="${LD-ld} -m elf64_s390"
  3732. ;;
  3733. sparc*-*linux*)
  3734. LD="${LD-ld} -m elf64_sparc"
  3735. ;;
  3736. esac
  3737. ;;
  3738. esac
  3739. fi
  3740. rm -rf conftest*
  3741. ;;
  3742. *-*-sco3.2v5*)
  3743. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3744. SAVE_CFLAGS="$CFLAGS"
  3745. CFLAGS="$CFLAGS -belf"
  3746. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3747. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  3748. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3749. echo $ECHO_N "(cached) $ECHO_C" >&6
  3750. else
  3751. ac_ext=c
  3752. ac_cpp='$CPP $CPPFLAGS'
  3753. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3754. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3755. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3756. cat >conftest.$ac_ext <<_ACEOF
  3757. /* confdefs.h. */
  3758. _ACEOF
  3759. cat confdefs.h >>conftest.$ac_ext
  3760. cat >>conftest.$ac_ext <<_ACEOF
  3761. /* end confdefs.h. */
  3762. int
  3763. main ()
  3764. {
  3765. ;
  3766. return 0;
  3767. }
  3768. _ACEOF
  3769. rm -f conftest.$ac_objext conftest$ac_exeext
  3770. if { (ac_try="$ac_link"
  3771. case "(($ac_try" in
  3772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3773. *) ac_try_echo=$ac_try;;
  3774. esac
  3775. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3776. (eval "$ac_link") 2>conftest.er1
  3777. ac_status=$?
  3778. grep -v '^ *+' conftest.er1 >conftest.err
  3779. rm -f conftest.er1
  3780. cat conftest.err >&5
  3781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3782. (exit $ac_status); } && {
  3783. test -z "$ac_c_werror_flag" ||
  3784. test ! -s conftest.err
  3785. } && test -s conftest$ac_exeext &&
  3786. $as_test_x conftest$ac_exeext; then
  3787. lt_cv_cc_needs_belf=yes
  3788. else
  3789. echo "$as_me: failed program was:" >&5
  3790. sed 's/^/| /' conftest.$ac_ext >&5
  3791. lt_cv_cc_needs_belf=no
  3792. fi
  3793. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3794. conftest$ac_exeext conftest.$ac_ext
  3795. ac_ext=c
  3796. ac_cpp='$CPP $CPPFLAGS'
  3797. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3798. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3799. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3800. fi
  3801. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  3802. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  3803. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  3804. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  3805. CFLAGS="$SAVE_CFLAGS"
  3806. fi
  3807. ;;
  3808. sparc*-*solaris*)
  3809. # Find out which ABI we are using.
  3810. echo 'int i;' > conftest.$ac_ext
  3811. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3812. (eval $ac_compile) 2>&5
  3813. ac_status=$?
  3814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3815. (exit $ac_status); }; then
  3816. case `/usr/bin/file conftest.o` in
  3817. *64-bit*)
  3818. case $lt_cv_prog_gnu_ld in
  3819. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  3820. *)
  3821. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  3822. LD="${LD-ld} -64"
  3823. fi
  3824. ;;
  3825. esac
  3826. ;;
  3827. esac
  3828. fi
  3829. rm -rf conftest*
  3830. ;;
  3831. *-*-cygwin* | *-*-mingw* | *-*-pw32*)
  3832. if test -n "$ac_tool_prefix"; then
  3833. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3834. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3835. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3836. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3837. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  3838. echo $ECHO_N "(cached) $ECHO_C" >&6
  3839. else
  3840. if test -n "$DLLTOOL"; then
  3841. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3842. else
  3843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3844. for as_dir in $PATH
  3845. do
  3846. IFS=$as_save_IFS
  3847. test -z "$as_dir" && as_dir=.
  3848. for ac_exec_ext in '' $ac_executable_extensions; do
  3849. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3850. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3851. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3852. break 2
  3853. fi
  3854. done
  3855. done
  3856. IFS=$as_save_IFS
  3857. fi
  3858. fi
  3859. DLLTOOL=$ac_cv_prog_DLLTOOL
  3860. if test -n "$DLLTOOL"; then
  3861. { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  3862. echo "${ECHO_T}$DLLTOOL" >&6; }
  3863. else
  3864. { echo "$as_me:$LINENO: result: no" >&5
  3865. echo "${ECHO_T}no" >&6; }
  3866. fi
  3867. fi
  3868. if test -z "$ac_cv_prog_DLLTOOL"; then
  3869. ac_ct_DLLTOOL=$DLLTOOL
  3870. # Extract the first word of "dlltool", so it can be a program name with args.
  3871. set dummy dlltool; ac_word=$2
  3872. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3873. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3874. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  3875. echo $ECHO_N "(cached) $ECHO_C" >&6
  3876. else
  3877. if test -n "$ac_ct_DLLTOOL"; then
  3878. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3879. else
  3880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3881. for as_dir in $PATH
  3882. do
  3883. IFS=$as_save_IFS
  3884. test -z "$as_dir" && as_dir=.
  3885. for ac_exec_ext in '' $ac_executable_extensions; do
  3886. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3887. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3888. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3889. break 2
  3890. fi
  3891. done
  3892. done
  3893. IFS=$as_save_IFS
  3894. fi
  3895. fi
  3896. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3897. if test -n "$ac_ct_DLLTOOL"; then
  3898. { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  3899. echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
  3900. else
  3901. { echo "$as_me:$LINENO: result: no" >&5
  3902. echo "${ECHO_T}no" >&6; }
  3903. fi
  3904. if test "x$ac_ct_DLLTOOL" = x; then
  3905. DLLTOOL="false"
  3906. else
  3907. case $cross_compiling:$ac_tool_warned in
  3908. yes:)
  3909. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3910. whose name does not start with the host triplet. If you think this
  3911. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3912. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3913. whose name does not start with the host triplet. If you think this
  3914. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3915. ac_tool_warned=yes ;;
  3916. esac
  3917. DLLTOOL=$ac_ct_DLLTOOL
  3918. fi
  3919. else
  3920. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3921. fi
  3922. if test -n "$ac_tool_prefix"; then
  3923. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3924. set dummy ${ac_tool_prefix}as; ac_word=$2
  3925. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3926. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3927. if test "${ac_cv_prog_AS+set}" = set; then
  3928. echo $ECHO_N "(cached) $ECHO_C" >&6
  3929. else
  3930. if test -n "$AS"; then
  3931. ac_cv_prog_AS="$AS" # Let the user override the test.
  3932. else
  3933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3934. for as_dir in $PATH
  3935. do
  3936. IFS=$as_save_IFS
  3937. test -z "$as_dir" && as_dir=.
  3938. for ac_exec_ext in '' $ac_executable_extensions; do
  3939. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3940. ac_cv_prog_AS="${ac_tool_prefix}as"
  3941. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3942. break 2
  3943. fi
  3944. done
  3945. done
  3946. IFS=$as_save_IFS
  3947. fi
  3948. fi
  3949. AS=$ac_cv_prog_AS
  3950. if test -n "$AS"; then
  3951. { echo "$as_me:$LINENO: result: $AS" >&5
  3952. echo "${ECHO_T}$AS" >&6; }
  3953. else
  3954. { echo "$as_me:$LINENO: result: no" >&5
  3955. echo "${ECHO_T}no" >&6; }
  3956. fi
  3957. fi
  3958. if test -z "$ac_cv_prog_AS"; then
  3959. ac_ct_AS=$AS
  3960. # Extract the first word of "as", so it can be a program name with args.
  3961. set dummy as; ac_word=$2
  3962. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3963. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3964. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  3965. echo $ECHO_N "(cached) $ECHO_C" >&6
  3966. else
  3967. if test -n "$ac_ct_AS"; then
  3968. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3969. else
  3970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3971. for as_dir in $PATH
  3972. do
  3973. IFS=$as_save_IFS
  3974. test -z "$as_dir" && as_dir=.
  3975. for ac_exec_ext in '' $ac_executable_extensions; do
  3976. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3977. ac_cv_prog_ac_ct_AS="as"
  3978. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3979. break 2
  3980. fi
  3981. done
  3982. done
  3983. IFS=$as_save_IFS
  3984. fi
  3985. fi
  3986. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3987. if test -n "$ac_ct_AS"; then
  3988. { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  3989. echo "${ECHO_T}$ac_ct_AS" >&6; }
  3990. else
  3991. { echo "$as_me:$LINENO: result: no" >&5
  3992. echo "${ECHO_T}no" >&6; }
  3993. fi
  3994. if test "x$ac_ct_AS" = x; then
  3995. AS="false"
  3996. else
  3997. case $cross_compiling:$ac_tool_warned in
  3998. yes:)
  3999. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4000. whose name does not start with the host triplet. If you think this
  4001. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4002. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4003. whose name does not start with the host triplet. If you think this
  4004. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4005. ac_tool_warned=yes ;;
  4006. esac
  4007. AS=$ac_ct_AS
  4008. fi
  4009. else
  4010. AS="$ac_cv_prog_AS"
  4011. fi
  4012. if test -n "$ac_tool_prefix"; then
  4013. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4014. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4015. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4016. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4017. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4018. echo $ECHO_N "(cached) $ECHO_C" >&6
  4019. else
  4020. if test -n "$OBJDUMP"; then
  4021. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4022. else
  4023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4024. for as_dir in $PATH
  4025. do
  4026. IFS=$as_save_IFS
  4027. test -z "$as_dir" && as_dir=.
  4028. for ac_exec_ext in '' $ac_executable_extensions; do
  4029. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4030. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4031. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4032. break 2
  4033. fi
  4034. done
  4035. done
  4036. IFS=$as_save_IFS
  4037. fi
  4038. fi
  4039. OBJDUMP=$ac_cv_prog_OBJDUMP
  4040. if test -n "$OBJDUMP"; then
  4041. { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4042. echo "${ECHO_T}$OBJDUMP" >&6; }
  4043. else
  4044. { echo "$as_me:$LINENO: result: no" >&5
  4045. echo "${ECHO_T}no" >&6; }
  4046. fi
  4047. fi
  4048. if test -z "$ac_cv_prog_OBJDUMP"; then
  4049. ac_ct_OBJDUMP=$OBJDUMP
  4050. # Extract the first word of "objdump", so it can be a program name with args.
  4051. set dummy objdump; ac_word=$2
  4052. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4053. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4054. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4055. echo $ECHO_N "(cached) $ECHO_C" >&6
  4056. else
  4057. if test -n "$ac_ct_OBJDUMP"; then
  4058. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4059. else
  4060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4061. for as_dir in $PATH
  4062. do
  4063. IFS=$as_save_IFS
  4064. test -z "$as_dir" && as_dir=.
  4065. for ac_exec_ext in '' $ac_executable_extensions; do
  4066. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4067. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4068. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4069. break 2
  4070. fi
  4071. done
  4072. done
  4073. IFS=$as_save_IFS
  4074. fi
  4075. fi
  4076. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4077. if test -n "$ac_ct_OBJDUMP"; then
  4078. { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4079. echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
  4080. else
  4081. { echo "$as_me:$LINENO: result: no" >&5
  4082. echo "${ECHO_T}no" >&6; }
  4083. fi
  4084. if test "x$ac_ct_OBJDUMP" = x; then
  4085. OBJDUMP="false"
  4086. else
  4087. case $cross_compiling:$ac_tool_warned in
  4088. yes:)
  4089. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4090. whose name does not start with the host triplet. If you think this
  4091. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4092. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4093. whose name does not start with the host triplet. If you think this
  4094. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4095. ac_tool_warned=yes ;;
  4096. esac
  4097. OBJDUMP=$ac_ct_OBJDUMP
  4098. fi
  4099. else
  4100. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4101. fi
  4102. ;;
  4103. esac
  4104. need_locks="$enable_libtool_lock"
  4105. ac_ext=c
  4106. ac_cpp='$CPP $CPPFLAGS'
  4107. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4108. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4109. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4110. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4111. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4112. # On Suns, sometimes $CPP names a directory.
  4113. if test -n "$CPP" && test -d "$CPP"; then
  4114. CPP=
  4115. fi
  4116. if test -z "$CPP"; then
  4117. if test "${ac_cv_prog_CPP+set}" = set; then
  4118. echo $ECHO_N "(cached) $ECHO_C" >&6
  4119. else
  4120. # Double quotes because CPP needs to be expanded
  4121. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4122. do
  4123. ac_preproc_ok=false
  4124. for ac_c_preproc_warn_flag in '' yes
  4125. do
  4126. # Use a header file that comes with gcc, so configuring glibc
  4127. # with a fresh cross-compiler works.
  4128. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4129. # <limits.h> exists even on freestanding compilers.
  4130. # On the NeXT, cc -E runs the code through the compiler's parser,
  4131. # not just through cpp. "Syntax error" is here to catch this case.
  4132. cat >conftest.$ac_ext <<_ACEOF
  4133. /* confdefs.h. */
  4134. _ACEOF
  4135. cat confdefs.h >>conftest.$ac_ext
  4136. cat >>conftest.$ac_ext <<_ACEOF
  4137. /* end confdefs.h. */
  4138. #ifdef __STDC__
  4139. # include <limits.h>
  4140. #else
  4141. # include <assert.h>
  4142. #endif
  4143. Syntax error
  4144. _ACEOF
  4145. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4146. case "(($ac_try" in
  4147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4148. *) ac_try_echo=$ac_try;;
  4149. esac
  4150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4151. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4152. ac_status=$?
  4153. grep -v '^ *+' conftest.er1 >conftest.err
  4154. rm -f conftest.er1
  4155. cat conftest.err >&5
  4156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4157. (exit $ac_status); } >/dev/null && {
  4158. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4159. test ! -s conftest.err
  4160. }; then
  4161. :
  4162. else
  4163. echo "$as_me: failed program was:" >&5
  4164. sed 's/^/| /' conftest.$ac_ext >&5
  4165. # Broken: fails on valid input.
  4166. continue
  4167. fi
  4168. rm -f conftest.err conftest.$ac_ext
  4169. # OK, works on sane cases. Now check whether nonexistent headers
  4170. # can be detected and how.
  4171. cat >conftest.$ac_ext <<_ACEOF
  4172. /* confdefs.h. */
  4173. _ACEOF
  4174. cat confdefs.h >>conftest.$ac_ext
  4175. cat >>conftest.$ac_ext <<_ACEOF
  4176. /* end confdefs.h. */
  4177. #include <ac_nonexistent.h>
  4178. _ACEOF
  4179. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4180. case "(($ac_try" in
  4181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4182. *) ac_try_echo=$ac_try;;
  4183. esac
  4184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4185. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4186. ac_status=$?
  4187. grep -v '^ *+' conftest.er1 >conftest.err
  4188. rm -f conftest.er1
  4189. cat conftest.err >&5
  4190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4191. (exit $ac_status); } >/dev/null && {
  4192. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4193. test ! -s conftest.err
  4194. }; then
  4195. # Broken: success on invalid input.
  4196. continue
  4197. else
  4198. echo "$as_me: failed program was:" >&5
  4199. sed 's/^/| /' conftest.$ac_ext >&5
  4200. # Passes both tests.
  4201. ac_preproc_ok=:
  4202. break
  4203. fi
  4204. rm -f conftest.err conftest.$ac_ext
  4205. done
  4206. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4207. rm -f conftest.err conftest.$ac_ext
  4208. if $ac_preproc_ok; then
  4209. break
  4210. fi
  4211. done
  4212. ac_cv_prog_CPP=$CPP
  4213. fi
  4214. CPP=$ac_cv_prog_CPP
  4215. else
  4216. ac_cv_prog_CPP=$CPP
  4217. fi
  4218. { echo "$as_me:$LINENO: result: $CPP" >&5
  4219. echo "${ECHO_T}$CPP" >&6; }
  4220. ac_preproc_ok=false
  4221. for ac_c_preproc_warn_flag in '' yes
  4222. do
  4223. # Use a header file that comes with gcc, so configuring glibc
  4224. # with a fresh cross-compiler works.
  4225. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4226. # <limits.h> exists even on freestanding compilers.
  4227. # On the NeXT, cc -E runs the code through the compiler's parser,
  4228. # not just through cpp. "Syntax error" is here to catch this case.
  4229. cat >conftest.$ac_ext <<_ACEOF
  4230. /* confdefs.h. */
  4231. _ACEOF
  4232. cat confdefs.h >>conftest.$ac_ext
  4233. cat >>conftest.$ac_ext <<_ACEOF
  4234. /* end confdefs.h. */
  4235. #ifdef __STDC__
  4236. # include <limits.h>
  4237. #else
  4238. # include <assert.h>
  4239. #endif
  4240. Syntax error
  4241. _ACEOF
  4242. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4243. case "(($ac_try" in
  4244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4245. *) ac_try_echo=$ac_try;;
  4246. esac
  4247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4248. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4249. ac_status=$?
  4250. grep -v '^ *+' conftest.er1 >conftest.err
  4251. rm -f conftest.er1
  4252. cat conftest.err >&5
  4253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4254. (exit $ac_status); } >/dev/null && {
  4255. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4256. test ! -s conftest.err
  4257. }; then
  4258. :
  4259. else
  4260. echo "$as_me: failed program was:" >&5
  4261. sed 's/^/| /' conftest.$ac_ext >&5
  4262. # Broken: fails on valid input.
  4263. continue
  4264. fi
  4265. rm -f conftest.err conftest.$ac_ext
  4266. # OK, works on sane cases. Now check whether nonexistent headers
  4267. # can be detected and how.
  4268. cat >conftest.$ac_ext <<_ACEOF
  4269. /* confdefs.h. */
  4270. _ACEOF
  4271. cat confdefs.h >>conftest.$ac_ext
  4272. cat >>conftest.$ac_ext <<_ACEOF
  4273. /* end confdefs.h. */
  4274. #include <ac_nonexistent.h>
  4275. _ACEOF
  4276. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4277. case "(($ac_try" in
  4278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4279. *) ac_try_echo=$ac_try;;
  4280. esac
  4281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4282. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4283. ac_status=$?
  4284. grep -v '^ *+' conftest.er1 >conftest.err
  4285. rm -f conftest.er1
  4286. cat conftest.err >&5
  4287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4288. (exit $ac_status); } >/dev/null && {
  4289. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4290. test ! -s conftest.err
  4291. }; then
  4292. # Broken: success on invalid input.
  4293. continue
  4294. else
  4295. echo "$as_me: failed program was:" >&5
  4296. sed 's/^/| /' conftest.$ac_ext >&5
  4297. # Passes both tests.
  4298. ac_preproc_ok=:
  4299. break
  4300. fi
  4301. rm -f conftest.err conftest.$ac_ext
  4302. done
  4303. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4304. rm -f conftest.err conftest.$ac_ext
  4305. if $ac_preproc_ok; then
  4306. :
  4307. else
  4308. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4309. See \`config.log' for more details." >&5
  4310. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4311. See \`config.log' for more details." >&2;}
  4312. { (exit 1); exit 1; }; }
  4313. fi
  4314. ac_ext=c
  4315. ac_cpp='$CPP $CPPFLAGS'
  4316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4319. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4320. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4321. if test "${ac_cv_header_stdc+set}" = set; then
  4322. echo $ECHO_N "(cached) $ECHO_C" >&6
  4323. else
  4324. cat >conftest.$ac_ext <<_ACEOF
  4325. /* confdefs.h. */
  4326. _ACEOF
  4327. cat confdefs.h >>conftest.$ac_ext
  4328. cat >>conftest.$ac_ext <<_ACEOF
  4329. /* end confdefs.h. */
  4330. #include <stdlib.h>
  4331. #include <stdarg.h>
  4332. #include <string.h>
  4333. #include <float.h>
  4334. int
  4335. main ()
  4336. {
  4337. ;
  4338. return 0;
  4339. }
  4340. _ACEOF
  4341. rm -f conftest.$ac_objext
  4342. if { (ac_try="$ac_compile"
  4343. case "(($ac_try" in
  4344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4345. *) ac_try_echo=$ac_try;;
  4346. esac
  4347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4348. (eval "$ac_compile") 2>conftest.er1
  4349. ac_status=$?
  4350. grep -v '^ *+' conftest.er1 >conftest.err
  4351. rm -f conftest.er1
  4352. cat conftest.err >&5
  4353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4354. (exit $ac_status); } && {
  4355. test -z "$ac_c_werror_flag" ||
  4356. test ! -s conftest.err
  4357. } && test -s conftest.$ac_objext; then
  4358. ac_cv_header_stdc=yes
  4359. else
  4360. echo "$as_me: failed program was:" >&5
  4361. sed 's/^/| /' conftest.$ac_ext >&5
  4362. ac_cv_header_stdc=no
  4363. fi
  4364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4365. if test $ac_cv_header_stdc = yes; then
  4366. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4367. cat >conftest.$ac_ext <<_ACEOF
  4368. /* confdefs.h. */
  4369. _ACEOF
  4370. cat confdefs.h >>conftest.$ac_ext
  4371. cat >>conftest.$ac_ext <<_ACEOF
  4372. /* end confdefs.h. */
  4373. #include <string.h>
  4374. _ACEOF
  4375. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4376. $EGREP "memchr" >/dev/null 2>&1; then
  4377. :
  4378. else
  4379. ac_cv_header_stdc=no
  4380. fi
  4381. rm -f conftest*
  4382. fi
  4383. if test $ac_cv_header_stdc = yes; then
  4384. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4385. cat >conftest.$ac_ext <<_ACEOF
  4386. /* confdefs.h. */
  4387. _ACEOF
  4388. cat confdefs.h >>conftest.$ac_ext
  4389. cat >>conftest.$ac_ext <<_ACEOF
  4390. /* end confdefs.h. */
  4391. #include <stdlib.h>
  4392. _ACEOF
  4393. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4394. $EGREP "free" >/dev/null 2>&1; then
  4395. :
  4396. else
  4397. ac_cv_header_stdc=no
  4398. fi
  4399. rm -f conftest*
  4400. fi
  4401. if test $ac_cv_header_stdc = yes; then
  4402. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4403. if test "$cross_compiling" = yes; then
  4404. :
  4405. else
  4406. cat >conftest.$ac_ext <<_ACEOF
  4407. /* confdefs.h. */
  4408. _ACEOF
  4409. cat confdefs.h >>conftest.$ac_ext
  4410. cat >>conftest.$ac_ext <<_ACEOF
  4411. /* end confdefs.h. */
  4412. #include <ctype.h>
  4413. #include <stdlib.h>
  4414. #if ((' ' & 0x0FF) == 0x020)
  4415. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4416. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4417. #else
  4418. # define ISLOWER(c) \
  4419. (('a' <= (c) && (c) <= 'i') \
  4420. || ('j' <= (c) && (c) <= 'r') \
  4421. || ('s' <= (c) && (c) <= 'z'))
  4422. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4423. #endif
  4424. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4425. int
  4426. main ()
  4427. {
  4428. int i;
  4429. for (i = 0; i < 256; i++)
  4430. if (XOR (islower (i), ISLOWER (i))
  4431. || toupper (i) != TOUPPER (i))
  4432. return 2;
  4433. return 0;
  4434. }
  4435. _ACEOF
  4436. rm -f conftest$ac_exeext
  4437. if { (ac_try="$ac_link"
  4438. case "(($ac_try" in
  4439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4440. *) ac_try_echo=$ac_try;;
  4441. esac
  4442. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4443. (eval "$ac_link") 2>&5
  4444. ac_status=$?
  4445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4446. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4447. { (case "(($ac_try" in
  4448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4449. *) ac_try_echo=$ac_try;;
  4450. esac
  4451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4452. (eval "$ac_try") 2>&5
  4453. ac_status=$?
  4454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4455. (exit $ac_status); }; }; then
  4456. :
  4457. else
  4458. echo "$as_me: program exited with status $ac_status" >&5
  4459. echo "$as_me: failed program was:" >&5
  4460. sed 's/^/| /' conftest.$ac_ext >&5
  4461. ( exit $ac_status )
  4462. ac_cv_header_stdc=no
  4463. fi
  4464. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4465. fi
  4466. fi
  4467. fi
  4468. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4469. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4470. if test $ac_cv_header_stdc = yes; then
  4471. cat >>confdefs.h <<\_ACEOF
  4472. #define STDC_HEADERS 1
  4473. _ACEOF
  4474. fi
  4475. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4476. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4477. inttypes.h stdint.h unistd.h
  4478. do
  4479. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4480. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4481. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4482. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4483. echo $ECHO_N "(cached) $ECHO_C" >&6
  4484. else
  4485. cat >conftest.$ac_ext <<_ACEOF
  4486. /* confdefs.h. */
  4487. _ACEOF
  4488. cat confdefs.h >>conftest.$ac_ext
  4489. cat >>conftest.$ac_ext <<_ACEOF
  4490. /* end confdefs.h. */
  4491. $ac_includes_default
  4492. #include <$ac_header>
  4493. _ACEOF
  4494. rm -f conftest.$ac_objext
  4495. if { (ac_try="$ac_compile"
  4496. case "(($ac_try" in
  4497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4498. *) ac_try_echo=$ac_try;;
  4499. esac
  4500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4501. (eval "$ac_compile") 2>conftest.er1
  4502. ac_status=$?
  4503. grep -v '^ *+' conftest.er1 >conftest.err
  4504. rm -f conftest.er1
  4505. cat conftest.err >&5
  4506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4507. (exit $ac_status); } && {
  4508. test -z "$ac_c_werror_flag" ||
  4509. test ! -s conftest.err
  4510. } && test -s conftest.$ac_objext; then
  4511. eval "$as_ac_Header=yes"
  4512. else
  4513. echo "$as_me: failed program was:" >&5
  4514. sed 's/^/| /' conftest.$ac_ext >&5
  4515. eval "$as_ac_Header=no"
  4516. fi
  4517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4518. fi
  4519. ac_res=`eval echo '${'$as_ac_Header'}'`
  4520. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4521. echo "${ECHO_T}$ac_res" >&6; }
  4522. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4523. cat >>confdefs.h <<_ACEOF
  4524. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4525. _ACEOF
  4526. fi
  4527. done
  4528. for ac_header in dlfcn.h
  4529. do
  4530. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4531. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4532. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4533. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4534. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4535. echo $ECHO_N "(cached) $ECHO_C" >&6
  4536. fi
  4537. ac_res=`eval echo '${'$as_ac_Header'}'`
  4538. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4539. echo "${ECHO_T}$ac_res" >&6; }
  4540. else
  4541. # Is the header compilable?
  4542. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4543. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4544. cat >conftest.$ac_ext <<_ACEOF
  4545. /* confdefs.h. */
  4546. _ACEOF
  4547. cat confdefs.h >>conftest.$ac_ext
  4548. cat >>conftest.$ac_ext <<_ACEOF
  4549. /* end confdefs.h. */
  4550. $ac_includes_default
  4551. #include <$ac_header>
  4552. _ACEOF
  4553. rm -f conftest.$ac_objext
  4554. if { (ac_try="$ac_compile"
  4555. case "(($ac_try" in
  4556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4557. *) ac_try_echo=$ac_try;;
  4558. esac
  4559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4560. (eval "$ac_compile") 2>conftest.er1
  4561. ac_status=$?
  4562. grep -v '^ *+' conftest.er1 >conftest.err
  4563. rm -f conftest.er1
  4564. cat conftest.err >&5
  4565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4566. (exit $ac_status); } && {
  4567. test -z "$ac_c_werror_flag" ||
  4568. test ! -s conftest.err
  4569. } && test -s conftest.$ac_objext; then
  4570. ac_header_compiler=yes
  4571. else
  4572. echo "$as_me: failed program was:" >&5
  4573. sed 's/^/| /' conftest.$ac_ext >&5
  4574. ac_header_compiler=no
  4575. fi
  4576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4577. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4578. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4579. # Is the header present?
  4580. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4581. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4582. cat >conftest.$ac_ext <<_ACEOF
  4583. /* confdefs.h. */
  4584. _ACEOF
  4585. cat confdefs.h >>conftest.$ac_ext
  4586. cat >>conftest.$ac_ext <<_ACEOF
  4587. /* end confdefs.h. */
  4588. #include <$ac_header>
  4589. _ACEOF
  4590. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4591. case "(($ac_try" in
  4592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4593. *) ac_try_echo=$ac_try;;
  4594. esac
  4595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4596. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4597. ac_status=$?
  4598. grep -v '^ *+' conftest.er1 >conftest.err
  4599. rm -f conftest.er1
  4600. cat conftest.err >&5
  4601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4602. (exit $ac_status); } >/dev/null && {
  4603. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4604. test ! -s conftest.err
  4605. }; then
  4606. ac_header_preproc=yes
  4607. else
  4608. echo "$as_me: failed program was:" >&5
  4609. sed 's/^/| /' conftest.$ac_ext >&5
  4610. ac_header_preproc=no
  4611. fi
  4612. rm -f conftest.err conftest.$ac_ext
  4613. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4614. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4615. # So? What about this header?
  4616. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4617. yes:no: )
  4618. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4619. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4620. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4621. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4622. ac_header_preproc=yes
  4623. ;;
  4624. no:yes:* )
  4625. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4626. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4627. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4628. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4629. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4630. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4631. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4632. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4633. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4634. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4635. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4636. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4637. ( cat <<\_ASBOX
  4638. ## ---------------------------------------------------------- ##
  4639. ## Report this to gmckerrell at users dot sourceforge dot net ##
  4640. ## ---------------------------------------------------------- ##
  4641. _ASBOX
  4642. ) | sed "s/^/$as_me: WARNING: /" >&2
  4643. ;;
  4644. esac
  4645. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4646. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4647. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4648. echo $ECHO_N "(cached) $ECHO_C" >&6
  4649. else
  4650. eval "$as_ac_Header=\$ac_header_preproc"
  4651. fi
  4652. ac_res=`eval echo '${'$as_ac_Header'}'`
  4653. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4654. echo "${ECHO_T}$ac_res" >&6; }
  4655. fi
  4656. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4657. cat >>confdefs.h <<_ACEOF
  4658. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4659. _ACEOF
  4660. fi
  4661. done
  4662. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4663. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4664. (test "X$CXX" != "Xg++"))) ; then
  4665. ac_ext=cpp
  4666. ac_cpp='$CXXCPP $CPPFLAGS'
  4667. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4668. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4669. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4670. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4671. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4672. if test -z "$CXXCPP"; then
  4673. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4674. echo $ECHO_N "(cached) $ECHO_C" >&6
  4675. else
  4676. # Double quotes because CXXCPP needs to be expanded
  4677. for CXXCPP in "$CXX -E" "/lib/cpp"
  4678. do
  4679. ac_preproc_ok=false
  4680. for ac_cxx_preproc_warn_flag in '' yes
  4681. do
  4682. # Use a header file that comes with gcc, so configuring glibc
  4683. # with a fresh cross-compiler works.
  4684. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4685. # <limits.h> exists even on freestanding compilers.
  4686. # On the NeXT, cc -E runs the code through the compiler's parser,
  4687. # not just through cpp. "Syntax error" is here to catch this case.
  4688. cat >conftest.$ac_ext <<_ACEOF
  4689. /* confdefs.h. */
  4690. _ACEOF
  4691. cat confdefs.h >>conftest.$ac_ext
  4692. cat >>conftest.$ac_ext <<_ACEOF
  4693. /* end confdefs.h. */
  4694. #ifdef __STDC__
  4695. # include <limits.h>
  4696. #else
  4697. # include <assert.h>
  4698. #endif
  4699. Syntax error
  4700. _ACEOF
  4701. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4702. case "(($ac_try" in
  4703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4704. *) ac_try_echo=$ac_try;;
  4705. esac
  4706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4707. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4708. ac_status=$?
  4709. grep -v '^ *+' conftest.er1 >conftest.err
  4710. rm -f conftest.er1
  4711. cat conftest.err >&5
  4712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4713. (exit $ac_status); } >/dev/null && {
  4714. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4715. test ! -s conftest.err
  4716. }; then
  4717. :
  4718. else
  4719. echo "$as_me: failed program was:" >&5
  4720. sed 's/^/| /' conftest.$ac_ext >&5
  4721. # Broken: fails on valid input.
  4722. continue
  4723. fi
  4724. rm -f conftest.err conftest.$ac_ext
  4725. # OK, works on sane cases. Now check whether nonexistent headers
  4726. # can be detected and how.
  4727. cat >conftest.$ac_ext <<_ACEOF
  4728. /* confdefs.h. */
  4729. _ACEOF
  4730. cat confdefs.h >>conftest.$ac_ext
  4731. cat >>conftest.$ac_ext <<_ACEOF
  4732. /* end confdefs.h. */
  4733. #include <ac_nonexistent.h>
  4734. _ACEOF
  4735. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4736. case "(($ac_try" in
  4737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4738. *) ac_try_echo=$ac_try;;
  4739. esac
  4740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4741. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4742. ac_status=$?
  4743. grep -v '^ *+' conftest.er1 >conftest.err
  4744. rm -f conftest.er1
  4745. cat conftest.err >&5
  4746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4747. (exit $ac_status); } >/dev/null && {
  4748. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4749. test ! -s conftest.err
  4750. }; then
  4751. # Broken: success on invalid input.
  4752. continue
  4753. else
  4754. echo "$as_me: failed program was:" >&5
  4755. sed 's/^/| /' conftest.$ac_ext >&5
  4756. # Passes both tests.
  4757. ac_preproc_ok=:
  4758. break
  4759. fi
  4760. rm -f conftest.err conftest.$ac_ext
  4761. done
  4762. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4763. rm -f conftest.err conftest.$ac_ext
  4764. if $ac_preproc_ok; then
  4765. break
  4766. fi
  4767. done
  4768. ac_cv_prog_CXXCPP=$CXXCPP
  4769. fi
  4770. CXXCPP=$ac_cv_prog_CXXCPP
  4771. else
  4772. ac_cv_prog_CXXCPP=$CXXCPP
  4773. fi
  4774. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4775. echo "${ECHO_T}$CXXCPP" >&6; }
  4776. ac_preproc_ok=false
  4777. for ac_cxx_preproc_warn_flag in '' yes
  4778. do
  4779. # Use a header file that comes with gcc, so configuring glibc
  4780. # with a fresh cross-compiler works.
  4781. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4782. # <limits.h> exists even on freestanding compilers.
  4783. # On the NeXT, cc -E runs the code through the compiler's parser,
  4784. # not just through cpp. "Syntax error" is here to catch this case.
  4785. cat >conftest.$ac_ext <<_ACEOF
  4786. /* confdefs.h. */
  4787. _ACEOF
  4788. cat confdefs.h >>conftest.$ac_ext
  4789. cat >>conftest.$ac_ext <<_ACEOF
  4790. /* end confdefs.h. */
  4791. #ifdef __STDC__
  4792. # include <limits.h>
  4793. #else
  4794. # include <assert.h>
  4795. #endif
  4796. Syntax error
  4797. _ACEOF
  4798. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4799. case "(($ac_try" in
  4800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4801. *) ac_try_echo=$ac_try;;
  4802. esac
  4803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4804. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4805. ac_status=$?
  4806. grep -v '^ *+' conftest.er1 >conftest.err
  4807. rm -f conftest.er1
  4808. cat conftest.err >&5
  4809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4810. (exit $ac_status); } >/dev/null && {
  4811. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4812. test ! -s conftest.err
  4813. }; then
  4814. :
  4815. else
  4816. echo "$as_me: failed program was:" >&5
  4817. sed 's/^/| /' conftest.$ac_ext >&5
  4818. # Broken: fails on valid input.
  4819. continue
  4820. fi
  4821. rm -f conftest.err conftest.$ac_ext
  4822. # OK, works on sane cases. Now check whether nonexistent headers
  4823. # can be detected and how.
  4824. cat >conftest.$ac_ext <<_ACEOF
  4825. /* confdefs.h. */
  4826. _ACEOF
  4827. cat confdefs.h >>conftest.$ac_ext
  4828. cat >>conftest.$ac_ext <<_ACEOF
  4829. /* end confdefs.h. */
  4830. #include <ac_nonexistent.h>
  4831. _ACEOF
  4832. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4833. case "(($ac_try" in
  4834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4835. *) ac_try_echo=$ac_try;;
  4836. esac
  4837. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4838. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4839. ac_status=$?
  4840. grep -v '^ *+' conftest.er1 >conftest.err
  4841. rm -f conftest.er1
  4842. cat conftest.err >&5
  4843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4844. (exit $ac_status); } >/dev/null && {
  4845. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4846. test ! -s conftest.err
  4847. }; then
  4848. # Broken: success on invalid input.
  4849. continue
  4850. else
  4851. echo "$as_me: failed program was:" >&5
  4852. sed 's/^/| /' conftest.$ac_ext >&5
  4853. # Passes both tests.
  4854. ac_preproc_ok=:
  4855. break
  4856. fi
  4857. rm -f conftest.err conftest.$ac_ext
  4858. done
  4859. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4860. rm -f conftest.err conftest.$ac_ext
  4861. if $ac_preproc_ok; then
  4862. :
  4863. else
  4864. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4865. See \`config.log' for more details." >&5
  4866. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4867. See \`config.log' for more details." >&2;}
  4868. { (exit 1); exit 1; }; }
  4869. fi
  4870. ac_ext=cpp
  4871. ac_cpp='$CXXCPP $CPPFLAGS'
  4872. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4873. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4874. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4875. fi
  4876. ac_ext=f
  4877. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4878. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4879. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4880. if test -n "$ac_tool_prefix"; then
  4881. 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
  4882. do
  4883. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4884. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4885. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4886. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4887. if test "${ac_cv_prog_F77+set}" = set; then
  4888. echo $ECHO_N "(cached) $ECHO_C" >&6
  4889. else
  4890. if test -n "$F77"; then
  4891. ac_cv_prog_F77="$F77" # Let the user override the test.
  4892. else
  4893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4894. for as_dir in $PATH
  4895. do
  4896. IFS=$as_save_IFS
  4897. test -z "$as_dir" && as_dir=.
  4898. for ac_exec_ext in '' $ac_executable_extensions; do
  4899. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4900. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4901. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4902. break 2
  4903. fi
  4904. done
  4905. done
  4906. IFS=$as_save_IFS
  4907. fi
  4908. fi
  4909. F77=$ac_cv_prog_F77
  4910. if test -n "$F77"; then
  4911. { echo "$as_me:$LINENO: result: $F77" >&5
  4912. echo "${ECHO_T}$F77" >&6; }
  4913. else
  4914. { echo "$as_me:$LINENO: result: no" >&5
  4915. echo "${ECHO_T}no" >&6; }
  4916. fi
  4917. test -n "$F77" && break
  4918. done
  4919. fi
  4920. if test -z "$F77"; then
  4921. ac_ct_F77=$F77
  4922. 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
  4923. do
  4924. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4925. set dummy $ac_prog; ac_word=$2
  4926. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4927. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4928. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4929. echo $ECHO_N "(cached) $ECHO_C" >&6
  4930. else
  4931. if test -n "$ac_ct_F77"; then
  4932. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4933. else
  4934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4935. for as_dir in $PATH
  4936. do
  4937. IFS=$as_save_IFS
  4938. test -z "$as_dir" && as_dir=.
  4939. for ac_exec_ext in '' $ac_executable_extensions; do
  4940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4941. ac_cv_prog_ac_ct_F77="$ac_prog"
  4942. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4943. break 2
  4944. fi
  4945. done
  4946. done
  4947. IFS=$as_save_IFS
  4948. fi
  4949. fi
  4950. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4951. if test -n "$ac_ct_F77"; then
  4952. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4953. echo "${ECHO_T}$ac_ct_F77" >&6; }
  4954. else
  4955. { echo "$as_me:$LINENO: result: no" >&5
  4956. echo "${ECHO_T}no" >&6; }
  4957. fi
  4958. test -n "$ac_ct_F77" && break
  4959. done
  4960. if test "x$ac_ct_F77" = x; then
  4961. F77=""
  4962. else
  4963. case $cross_compiling:$ac_tool_warned in
  4964. yes:)
  4965. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4966. whose name does not start with the host triplet. If you think this
  4967. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4968. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4969. whose name does not start with the host triplet. If you think this
  4970. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4971. ac_tool_warned=yes ;;
  4972. esac
  4973. F77=$ac_ct_F77
  4974. fi
  4975. fi
  4976. # Provide some information about the compiler.
  4977. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  4978. ac_compiler=`set X $ac_compile; echo $2`
  4979. { (ac_try="$ac_compiler --version >&5"
  4980. case "(($ac_try" in
  4981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4982. *) ac_try_echo=$ac_try;;
  4983. esac
  4984. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4985. (eval "$ac_compiler --version >&5") 2>&5
  4986. ac_status=$?
  4987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4988. (exit $ac_status); }
  4989. { (ac_try="$ac_compiler -v >&5"
  4990. case "(($ac_try" in
  4991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4992. *) ac_try_echo=$ac_try;;
  4993. esac
  4994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4995. (eval "$ac_compiler -v >&5") 2>&5
  4996. ac_status=$?
  4997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4998. (exit $ac_status); }
  4999. { (ac_try="$ac_compiler -V >&5"
  5000. case "(($ac_try" in
  5001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5002. *) ac_try_echo=$ac_try;;
  5003. esac
  5004. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5005. (eval "$ac_compiler -V >&5") 2>&5
  5006. ac_status=$?
  5007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5008. (exit $ac_status); }
  5009. rm -f a.out
  5010. # If we don't use `.F' as extension, the preprocessor is not run on the
  5011. # input file. (Note that this only needs to work for GNU compilers.)
  5012. ac_save_ext=$ac_ext
  5013. ac_ext=F
  5014. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5015. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5016. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5017. echo $ECHO_N "(cached) $ECHO_C" >&6
  5018. else
  5019. cat >conftest.$ac_ext <<_ACEOF
  5020. program main
  5021. #ifndef __GNUC__
  5022. choke me
  5023. #endif
  5024. end
  5025. _ACEOF
  5026. rm -f conftest.$ac_objext
  5027. if { (ac_try="$ac_compile"
  5028. case "(($ac_try" in
  5029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5030. *) ac_try_echo=$ac_try;;
  5031. esac
  5032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5033. (eval "$ac_compile") 2>conftest.er1
  5034. ac_status=$?
  5035. grep -v '^ *+' conftest.er1 >conftest.err
  5036. rm -f conftest.er1
  5037. cat conftest.err >&5
  5038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5039. (exit $ac_status); } && {
  5040. test -z "$ac_f77_werror_flag" ||
  5041. test ! -s conftest.err
  5042. } && test -s conftest.$ac_objext; then
  5043. ac_compiler_gnu=yes
  5044. else
  5045. echo "$as_me: failed program was:" >&5
  5046. sed 's/^/| /' conftest.$ac_ext >&5
  5047. ac_compiler_gnu=no
  5048. fi
  5049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5050. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5051. fi
  5052. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5053. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5054. ac_ext=$ac_save_ext
  5055. ac_test_FFLAGS=${FFLAGS+set}
  5056. ac_save_FFLAGS=$FFLAGS
  5057. FFLAGS=
  5058. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5059. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5060. if test "${ac_cv_prog_f77_g+set}" = set; then
  5061. echo $ECHO_N "(cached) $ECHO_C" >&6
  5062. else
  5063. FFLAGS=-g
  5064. cat >conftest.$ac_ext <<_ACEOF
  5065. program main
  5066. end
  5067. _ACEOF
  5068. rm -f conftest.$ac_objext
  5069. if { (ac_try="$ac_compile"
  5070. case "(($ac_try" in
  5071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5072. *) ac_try_echo=$ac_try;;
  5073. esac
  5074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5075. (eval "$ac_compile") 2>conftest.er1
  5076. ac_status=$?
  5077. grep -v '^ *+' conftest.er1 >conftest.err
  5078. rm -f conftest.er1
  5079. cat conftest.err >&5
  5080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5081. (exit $ac_status); } && {
  5082. test -z "$ac_f77_werror_flag" ||
  5083. test ! -s conftest.err
  5084. } && test -s conftest.$ac_objext; then
  5085. ac_cv_prog_f77_g=yes
  5086. else
  5087. echo "$as_me: failed program was:" >&5
  5088. sed 's/^/| /' conftest.$ac_ext >&5
  5089. ac_cv_prog_f77_g=no
  5090. fi
  5091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5092. fi
  5093. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5094. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5095. if test "$ac_test_FFLAGS" = set; then
  5096. FFLAGS=$ac_save_FFLAGS
  5097. elif test $ac_cv_prog_f77_g = yes; then
  5098. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5099. FFLAGS="-g -O2"
  5100. else
  5101. FFLAGS="-g"
  5102. fi
  5103. else
  5104. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5105. FFLAGS="-O2"
  5106. else
  5107. FFLAGS=
  5108. fi
  5109. fi
  5110. G77=`test $ac_compiler_gnu = yes && echo yes`
  5111. ac_ext=c
  5112. ac_cpp='$CPP $CPPFLAGS'
  5113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5116. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5117. # find the maximum length of command line arguments
  5118. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5119. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5120. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5121. echo $ECHO_N "(cached) $ECHO_C" >&6
  5122. else
  5123. i=0
  5124. teststring="ABCD"
  5125. case $build_os in
  5126. msdosdjgpp*)
  5127. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5128. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5129. # during glob expansion). Even if it were fixed, the result of this
  5130. # check would be larger than it should be.
  5131. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5132. ;;
  5133. gnu*)
  5134. # Under GNU Hurd, this test is not required because there is
  5135. # no limit to the length of command line arguments.
  5136. # Libtool will interpret -1 as no limit whatsoever
  5137. lt_cv_sys_max_cmd_len=-1;
  5138. ;;
  5139. cygwin* | mingw*)
  5140. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5141. # about 5 minutes as the teststring grows exponentially.
  5142. # Worse, since 9x/ME are not pre-emptively multitasking,
  5143. # you end up with a "frozen" computer, even though with patience
  5144. # the test eventually succeeds (with a max line length of 256k).
  5145. # Instead, let's just punt: use the minimum linelength reported by
  5146. # all of the supported platforms: 8192 (on NT/2K/XP).
  5147. lt_cv_sys_max_cmd_len=8192;
  5148. ;;
  5149. amigaos*)
  5150. # On AmigaOS with pdksh, this test takes hours, literally.
  5151. # So we just punt and use a minimum line length of 8192.
  5152. lt_cv_sys_max_cmd_len=8192;
  5153. ;;
  5154. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5155. # This has been around since 386BSD, at least. Likely further.
  5156. if test -x /sbin/sysctl; then
  5157. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5158. elif test -x /usr/sbin/sysctl; then
  5159. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5160. else
  5161. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5162. fi
  5163. # And add a safety zone
  5164. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5165. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5166. ;;
  5167. interix*)
  5168. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5169. lt_cv_sys_max_cmd_len=196608
  5170. ;;
  5171. osf*)
  5172. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5173. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5174. # nice to cause kernel panics so lets avoid the loop below.
  5175. # First set a reasonable default.
  5176. lt_cv_sys_max_cmd_len=16384
  5177. #
  5178. if test -x /sbin/sysconfig; then
  5179. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5180. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5181. esac
  5182. fi
  5183. ;;
  5184. sco3.2v5*)
  5185. lt_cv_sys_max_cmd_len=102400
  5186. ;;
  5187. sysv5* | sco5v6* | sysv4.2uw2*)
  5188. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5189. if test -n "$kargmax"; then
  5190. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5191. else
  5192. lt_cv_sys_max_cmd_len=32768
  5193. fi
  5194. ;;
  5195. *)
  5196. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5197. if test -n "$lt_cv_sys_max_cmd_len"; then
  5198. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5199. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5200. else
  5201. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5202. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5203. = "XX$teststring") >/dev/null 2>&1 &&
  5204. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5205. lt_cv_sys_max_cmd_len=$new_result &&
  5206. test $i != 17 # 1/2 MB should be enough
  5207. do
  5208. i=`expr $i + 1`
  5209. teststring=$teststring$teststring
  5210. done
  5211. teststring=
  5212. # Add a significant safety factor because C++ compilers can tack on massive
  5213. # amounts of additional arguments before passing them to the linker.
  5214. # It appears as though 1/2 is a usable value.
  5215. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5216. fi
  5217. ;;
  5218. esac
  5219. fi
  5220. if test -n $lt_cv_sys_max_cmd_len ; then
  5221. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5222. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5223. else
  5224. { echo "$as_me:$LINENO: result: none" >&5
  5225. echo "${ECHO_T}none" >&6; }
  5226. fi
  5227. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5228. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5229. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5230. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5231. echo $ECHO_N "(cached) $ECHO_C" >&6
  5232. else
  5233. # These are sane defaults that work on at least a few old systems.
  5234. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5235. # Character class describing NM global symbol codes.
  5236. symcode='[BCDEGRST]'
  5237. # Regexp to match symbols that can be accessed directly from C.
  5238. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5239. # Transform an extracted symbol line into a proper C declaration
  5240. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5241. # Transform an extracted symbol line into symbol name and symbol address
  5242. 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'"
  5243. # Define system-specific variables.
  5244. case $host_os in
  5245. aix*)
  5246. symcode='[BCDT]'
  5247. ;;
  5248. cygwin* | mingw* | pw32*)
  5249. symcode='[ABCDGISTW]'
  5250. ;;
  5251. hpux*) # Its linker distinguishes data from code symbols
  5252. if test "$host_cpu" = ia64; then
  5253. symcode='[ABCDEGRST]'
  5254. fi
  5255. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5256. 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'"
  5257. ;;
  5258. linux* | k*bsd*-gnu)
  5259. if test "$host_cpu" = ia64; then
  5260. symcode='[ABCDGIRSTW]'
  5261. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5262. 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'"
  5263. fi
  5264. ;;
  5265. irix* | nonstopux*)
  5266. symcode='[BCDEGRST]'
  5267. ;;
  5268. osf*)
  5269. symcode='[BCDEGQRST]'
  5270. ;;
  5271. solaris*)
  5272. symcode='[BDRT]'
  5273. ;;
  5274. sco3.2v5*)
  5275. symcode='[DT]'
  5276. ;;
  5277. sysv4.2uw2*)
  5278. symcode='[DT]'
  5279. ;;
  5280. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5281. symcode='[ABDT]'
  5282. ;;
  5283. sysv4)
  5284. symcode='[DFNSTU]'
  5285. ;;
  5286. esac
  5287. # Handle CRLF in mingw tool chain
  5288. opt_cr=
  5289. case $build_os in
  5290. mingw*)
  5291. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5292. ;;
  5293. esac
  5294. # If we're using GNU nm, then use its standard symbol codes.
  5295. case `$NM -V 2>&1` in
  5296. *GNU* | *'with BFD'*)
  5297. symcode='[ABCDGIRSTW]' ;;
  5298. esac
  5299. # Try without a prefix undercore, then with it.
  5300. for ac_symprfx in "" "_"; do
  5301. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5302. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5303. # Write the raw and C identifiers.
  5304. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5305. # Check to see that the pipe works correctly.
  5306. pipe_works=no
  5307. rm -f conftest*
  5308. cat > conftest.$ac_ext <<EOF
  5309. #ifdef __cplusplus
  5310. extern "C" {
  5311. #endif
  5312. char nm_test_var;
  5313. void nm_test_func(){}
  5314. #ifdef __cplusplus
  5315. }
  5316. #endif
  5317. int main(){nm_test_var='a';nm_test_func();return(0);}
  5318. EOF
  5319. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5320. (eval $ac_compile) 2>&5
  5321. ac_status=$?
  5322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5323. (exit $ac_status); }; then
  5324. # Now try to grab the symbols.
  5325. nlist=conftest.nm
  5326. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5327. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5328. ac_status=$?
  5329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5330. (exit $ac_status); } && test -s "$nlist"; then
  5331. # Try sorting and uniquifying the output.
  5332. if sort "$nlist" | uniq > "$nlist"T; then
  5333. mv -f "$nlist"T "$nlist"
  5334. else
  5335. rm -f "$nlist"T
  5336. fi
  5337. # Make sure that we snagged all the symbols we need.
  5338. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5339. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5340. cat <<EOF > conftest.$ac_ext
  5341. #ifdef __cplusplus
  5342. extern "C" {
  5343. #endif
  5344. EOF
  5345. # Now generate the symbol file.
  5346. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5347. cat <<EOF >> conftest.$ac_ext
  5348. #if defined (__STDC__) && __STDC__
  5349. # define lt_ptr_t void *
  5350. #else
  5351. # define lt_ptr_t char *
  5352. # define const
  5353. #endif
  5354. /* The mapping between symbol names and symbols. */
  5355. const struct {
  5356. const char *name;
  5357. lt_ptr_t address;
  5358. }
  5359. lt_preloaded_symbols[] =
  5360. {
  5361. EOF
  5362. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5363. cat <<\EOF >> conftest.$ac_ext
  5364. {0, (lt_ptr_t) 0}
  5365. };
  5366. #ifdef __cplusplus
  5367. }
  5368. #endif
  5369. EOF
  5370. # Now try linking the two files.
  5371. mv conftest.$ac_objext conftstm.$ac_objext
  5372. lt_save_LIBS="$LIBS"
  5373. lt_save_CFLAGS="$CFLAGS"
  5374. LIBS="conftstm.$ac_objext"
  5375. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5376. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5377. (eval $ac_link) 2>&5
  5378. ac_status=$?
  5379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5380. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5381. pipe_works=yes
  5382. fi
  5383. LIBS="$lt_save_LIBS"
  5384. CFLAGS="$lt_save_CFLAGS"
  5385. else
  5386. echo "cannot find nm_test_func in $nlist" >&5
  5387. fi
  5388. else
  5389. echo "cannot find nm_test_var in $nlist" >&5
  5390. fi
  5391. else
  5392. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5393. fi
  5394. else
  5395. echo "$progname: failed program was:" >&5
  5396. cat conftest.$ac_ext >&5
  5397. fi
  5398. rm -rf conftest* conftst*
  5399. # Do not use the global_symbol_pipe unless it works.
  5400. if test "$pipe_works" = yes; then
  5401. break
  5402. else
  5403. lt_cv_sys_global_symbol_pipe=
  5404. fi
  5405. done
  5406. fi
  5407. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5408. lt_cv_sys_global_symbol_to_cdecl=
  5409. fi
  5410. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5411. { echo "$as_me:$LINENO: result: failed" >&5
  5412. echo "${ECHO_T}failed" >&6; }
  5413. else
  5414. { echo "$as_me:$LINENO: result: ok" >&5
  5415. echo "${ECHO_T}ok" >&6; }
  5416. fi
  5417. { echo "$as_me:$LINENO: checking for objdir" >&5
  5418. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5419. if test "${lt_cv_objdir+set}" = set; then
  5420. echo $ECHO_N "(cached) $ECHO_C" >&6
  5421. else
  5422. rm -f .libs 2>/dev/null
  5423. mkdir .libs 2>/dev/null
  5424. if test -d .libs; then
  5425. lt_cv_objdir=.libs
  5426. else
  5427. # MS-DOS does not allow filenames that begin with a dot.
  5428. lt_cv_objdir=_libs
  5429. fi
  5430. rmdir .libs 2>/dev/null
  5431. fi
  5432. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5433. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  5434. objdir=$lt_cv_objdir
  5435. case $host_os in
  5436. aix3*)
  5437. # AIX sometimes has problems with the GCC collect2 program. For some
  5438. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5439. # vanish in a puff of smoke.
  5440. if test "X${COLLECT_NAMES+set}" != Xset; then
  5441. COLLECT_NAMES=
  5442. export COLLECT_NAMES
  5443. fi
  5444. ;;
  5445. esac
  5446. # Sed substitution that helps us do robust quoting. It backslashifies
  5447. # metacharacters that are still active within double-quoted strings.
  5448. Xsed='sed -e 1s/^X//'
  5449. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5450. # Same as above, but do not quote variable references.
  5451. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5452. # Sed substitution to delay expansion of an escaped shell variable in a
  5453. # double_quote_subst'ed string.
  5454. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5455. # Sed substitution to avoid accidental globbing in evaled expressions
  5456. no_glob_subst='s/\*/\\\*/g'
  5457. # Constants:
  5458. rm="rm -f"
  5459. # Global variables:
  5460. default_ofile=libtool
  5461. can_build_shared=yes
  5462. # All known linkers require a `.a' archive for static linking (except MSVC,
  5463. # which needs '.lib').
  5464. libext=a
  5465. ltmain="$ac_aux_dir/ltmain.sh"
  5466. ofile="$default_ofile"
  5467. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5468. if test -n "$ac_tool_prefix"; then
  5469. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5470. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5471. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5472. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5473. if test "${ac_cv_prog_AR+set}" = set; then
  5474. echo $ECHO_N "(cached) $ECHO_C" >&6
  5475. else
  5476. if test -n "$AR"; then
  5477. ac_cv_prog_AR="$AR" # Let the user override the test.
  5478. else
  5479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5480. for as_dir in $PATH
  5481. do
  5482. IFS=$as_save_IFS
  5483. test -z "$as_dir" && as_dir=.
  5484. for ac_exec_ext in '' $ac_executable_extensions; do
  5485. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5486. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5487. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5488. break 2
  5489. fi
  5490. done
  5491. done
  5492. IFS=$as_save_IFS
  5493. fi
  5494. fi
  5495. AR=$ac_cv_prog_AR
  5496. if test -n "$AR"; then
  5497. { echo "$as_me:$LINENO: result: $AR" >&5
  5498. echo "${ECHO_T}$AR" >&6; }
  5499. else
  5500. { echo "$as_me:$LINENO: result: no" >&5
  5501. echo "${ECHO_T}no" >&6; }
  5502. fi
  5503. fi
  5504. if test -z "$ac_cv_prog_AR"; then
  5505. ac_ct_AR=$AR
  5506. # Extract the first word of "ar", so it can be a program name with args.
  5507. set dummy ar; ac_word=$2
  5508. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5509. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5510. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5511. echo $ECHO_N "(cached) $ECHO_C" >&6
  5512. else
  5513. if test -n "$ac_ct_AR"; then
  5514. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5515. else
  5516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5517. for as_dir in $PATH
  5518. do
  5519. IFS=$as_save_IFS
  5520. test -z "$as_dir" && as_dir=.
  5521. for ac_exec_ext in '' $ac_executable_extensions; do
  5522. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5523. ac_cv_prog_ac_ct_AR="ar"
  5524. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5525. break 2
  5526. fi
  5527. done
  5528. done
  5529. IFS=$as_save_IFS
  5530. fi
  5531. fi
  5532. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5533. if test -n "$ac_ct_AR"; then
  5534. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5535. echo "${ECHO_T}$ac_ct_AR" >&6; }
  5536. else
  5537. { echo "$as_me:$LINENO: result: no" >&5
  5538. echo "${ECHO_T}no" >&6; }
  5539. fi
  5540. if test "x$ac_ct_AR" = x; then
  5541. AR="false"
  5542. else
  5543. case $cross_compiling:$ac_tool_warned in
  5544. yes:)
  5545. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5546. whose name does not start with the host triplet. If you think this
  5547. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5548. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5549. whose name does not start with the host triplet. If you think this
  5550. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5551. ac_tool_warned=yes ;;
  5552. esac
  5553. AR=$ac_ct_AR
  5554. fi
  5555. else
  5556. AR="$ac_cv_prog_AR"
  5557. fi
  5558. if test -n "$ac_tool_prefix"; then
  5559. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5560. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5561. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5562. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5563. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5564. echo $ECHO_N "(cached) $ECHO_C" >&6
  5565. else
  5566. if test -n "$RANLIB"; then
  5567. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5568. else
  5569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5570. for as_dir in $PATH
  5571. do
  5572. IFS=$as_save_IFS
  5573. test -z "$as_dir" && as_dir=.
  5574. for ac_exec_ext in '' $ac_executable_extensions; do
  5575. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5576. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5577. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5578. break 2
  5579. fi
  5580. done
  5581. done
  5582. IFS=$as_save_IFS
  5583. fi
  5584. fi
  5585. RANLIB=$ac_cv_prog_RANLIB
  5586. if test -n "$RANLIB"; then
  5587. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  5588. echo "${ECHO_T}$RANLIB" >&6; }
  5589. else
  5590. { echo "$as_me:$LINENO: result: no" >&5
  5591. echo "${ECHO_T}no" >&6; }
  5592. fi
  5593. fi
  5594. if test -z "$ac_cv_prog_RANLIB"; then
  5595. ac_ct_RANLIB=$RANLIB
  5596. # Extract the first word of "ranlib", so it can be a program name with args.
  5597. set dummy ranlib; ac_word=$2
  5598. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5599. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5600. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5601. echo $ECHO_N "(cached) $ECHO_C" >&6
  5602. else
  5603. if test -n "$ac_ct_RANLIB"; then
  5604. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5605. else
  5606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5607. for as_dir in $PATH
  5608. do
  5609. IFS=$as_save_IFS
  5610. test -z "$as_dir" && as_dir=.
  5611. for ac_exec_ext in '' $ac_executable_extensions; do
  5612. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5613. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5614. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5615. break 2
  5616. fi
  5617. done
  5618. done
  5619. IFS=$as_save_IFS
  5620. fi
  5621. fi
  5622. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5623. if test -n "$ac_ct_RANLIB"; then
  5624. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5625. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  5626. else
  5627. { echo "$as_me:$LINENO: result: no" >&5
  5628. echo "${ECHO_T}no" >&6; }
  5629. fi
  5630. if test "x$ac_ct_RANLIB" = x; then
  5631. RANLIB=":"
  5632. else
  5633. case $cross_compiling:$ac_tool_warned in
  5634. yes:)
  5635. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5636. whose name does not start with the host triplet. If you think this
  5637. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5638. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5639. whose name does not start with the host triplet. If you think this
  5640. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5641. ac_tool_warned=yes ;;
  5642. esac
  5643. RANLIB=$ac_ct_RANLIB
  5644. fi
  5645. else
  5646. RANLIB="$ac_cv_prog_RANLIB"
  5647. fi
  5648. if test -n "$ac_tool_prefix"; then
  5649. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5650. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5651. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5652. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5653. if test "${ac_cv_prog_STRIP+set}" = set; then
  5654. echo $ECHO_N "(cached) $ECHO_C" >&6
  5655. else
  5656. if test -n "$STRIP"; then
  5657. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5658. else
  5659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5660. for as_dir in $PATH
  5661. do
  5662. IFS=$as_save_IFS
  5663. test -z "$as_dir" && as_dir=.
  5664. for ac_exec_ext in '' $ac_executable_extensions; do
  5665. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5666. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5667. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5668. break 2
  5669. fi
  5670. done
  5671. done
  5672. IFS=$as_save_IFS
  5673. fi
  5674. fi
  5675. STRIP=$ac_cv_prog_STRIP
  5676. if test -n "$STRIP"; then
  5677. { echo "$as_me:$LINENO: result: $STRIP" >&5
  5678. echo "${ECHO_T}$STRIP" >&6; }
  5679. else
  5680. { echo "$as_me:$LINENO: result: no" >&5
  5681. echo "${ECHO_T}no" >&6; }
  5682. fi
  5683. fi
  5684. if test -z "$ac_cv_prog_STRIP"; then
  5685. ac_ct_STRIP=$STRIP
  5686. # Extract the first word of "strip", so it can be a program name with args.
  5687. set dummy strip; ac_word=$2
  5688. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5689. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5690. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5691. echo $ECHO_N "(cached) $ECHO_C" >&6
  5692. else
  5693. if test -n "$ac_ct_STRIP"; then
  5694. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5695. else
  5696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5697. for as_dir in $PATH
  5698. do
  5699. IFS=$as_save_IFS
  5700. test -z "$as_dir" && as_dir=.
  5701. for ac_exec_ext in '' $ac_executable_extensions; do
  5702. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5703. ac_cv_prog_ac_ct_STRIP="strip"
  5704. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5705. break 2
  5706. fi
  5707. done
  5708. done
  5709. IFS=$as_save_IFS
  5710. fi
  5711. fi
  5712. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5713. if test -n "$ac_ct_STRIP"; then
  5714. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5715. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  5716. else
  5717. { echo "$as_me:$LINENO: result: no" >&5
  5718. echo "${ECHO_T}no" >&6; }
  5719. fi
  5720. if test "x$ac_ct_STRIP" = x; then
  5721. STRIP=":"
  5722. else
  5723. case $cross_compiling:$ac_tool_warned in
  5724. yes:)
  5725. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5726. whose name does not start with the host triplet. If you think this
  5727. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5728. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5729. whose name does not start with the host triplet. If you think this
  5730. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5731. ac_tool_warned=yes ;;
  5732. esac
  5733. STRIP=$ac_ct_STRIP
  5734. fi
  5735. else
  5736. STRIP="$ac_cv_prog_STRIP"
  5737. fi
  5738. old_CC="$CC"
  5739. old_CFLAGS="$CFLAGS"
  5740. # Set sane defaults for various variables
  5741. test -z "$AR" && AR=ar
  5742. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5743. test -z "$AS" && AS=as
  5744. test -z "$CC" && CC=cc
  5745. test -z "$LTCC" && LTCC=$CC
  5746. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5747. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5748. test -z "$LD" && LD=ld
  5749. test -z "$LN_S" && LN_S="ln -s"
  5750. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5751. test -z "$NM" && NM=nm
  5752. test -z "$SED" && SED=sed
  5753. test -z "$OBJDUMP" && OBJDUMP=objdump
  5754. test -z "$RANLIB" && RANLIB=:
  5755. test -z "$STRIP" && STRIP=:
  5756. test -z "$ac_objext" && ac_objext=o
  5757. # Determine commands to create old-style static archives.
  5758. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5759. old_postinstall_cmds='chmod 644 $oldlib'
  5760. old_postuninstall_cmds=
  5761. if test -n "$RANLIB"; then
  5762. case $host_os in
  5763. openbsd*)
  5764. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5765. ;;
  5766. *)
  5767. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5768. ;;
  5769. esac
  5770. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5771. fi
  5772. for cc_temp in $compiler""; do
  5773. case $cc_temp in
  5774. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5775. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5776. \-*) ;;
  5777. *) break;;
  5778. esac
  5779. done
  5780. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5781. # Only perform the check for file, if the check method requires it
  5782. case $deplibs_check_method in
  5783. file_magic*)
  5784. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5785. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5786. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  5787. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5788. echo $ECHO_N "(cached) $ECHO_C" >&6
  5789. else
  5790. case $MAGIC_CMD in
  5791. [\\/*] | ?:[\\/]*)
  5792. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5793. ;;
  5794. *)
  5795. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5796. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5797. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5798. for ac_dir in $ac_dummy; do
  5799. IFS="$lt_save_ifs"
  5800. test -z "$ac_dir" && ac_dir=.
  5801. if test -f $ac_dir/${ac_tool_prefix}file; then
  5802. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5803. if test -n "$file_magic_test_file"; then
  5804. case $deplibs_check_method in
  5805. "file_magic "*)
  5806. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5807. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5808. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5809. $EGREP "$file_magic_regex" > /dev/null; then
  5810. :
  5811. else
  5812. cat <<EOF 1>&2
  5813. *** Warning: the command libtool uses to detect shared libraries,
  5814. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5815. *** The result is that libtool may fail to recognize shared libraries
  5816. *** as such. This will affect the creation of libtool libraries that
  5817. *** depend on shared libraries, but programs linked with such libtool
  5818. *** libraries will work regardless of this problem. Nevertheless, you
  5819. *** may want to report the problem to your system manager and/or to
  5820. *** bug-libtool@gnu.org
  5821. EOF
  5822. fi ;;
  5823. esac
  5824. fi
  5825. break
  5826. fi
  5827. done
  5828. IFS="$lt_save_ifs"
  5829. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5830. ;;
  5831. esac
  5832. fi
  5833. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5834. if test -n "$MAGIC_CMD"; then
  5835. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5836. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  5837. else
  5838. { echo "$as_me:$LINENO: result: no" >&5
  5839. echo "${ECHO_T}no" >&6; }
  5840. fi
  5841. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5842. if test -n "$ac_tool_prefix"; then
  5843. { echo "$as_me:$LINENO: checking for file" >&5
  5844. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  5845. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5846. echo $ECHO_N "(cached) $ECHO_C" >&6
  5847. else
  5848. case $MAGIC_CMD in
  5849. [\\/*] | ?:[\\/]*)
  5850. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5851. ;;
  5852. *)
  5853. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5854. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5855. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5856. for ac_dir in $ac_dummy; do
  5857. IFS="$lt_save_ifs"
  5858. test -z "$ac_dir" && ac_dir=.
  5859. if test -f $ac_dir/file; then
  5860. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5861. if test -n "$file_magic_test_file"; then
  5862. case $deplibs_check_method in
  5863. "file_magic "*)
  5864. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5865. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5866. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5867. $EGREP "$file_magic_regex" > /dev/null; then
  5868. :
  5869. else
  5870. cat <<EOF 1>&2
  5871. *** Warning: the command libtool uses to detect shared libraries,
  5872. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5873. *** The result is that libtool may fail to recognize shared libraries
  5874. *** as such. This will affect the creation of libtool libraries that
  5875. *** depend on shared libraries, but programs linked with such libtool
  5876. *** libraries will work regardless of this problem. Nevertheless, you
  5877. *** may want to report the problem to your system manager and/or to
  5878. *** bug-libtool@gnu.org
  5879. EOF
  5880. fi ;;
  5881. esac
  5882. fi
  5883. break
  5884. fi
  5885. done
  5886. IFS="$lt_save_ifs"
  5887. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5888. ;;
  5889. esac
  5890. fi
  5891. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5892. if test -n "$MAGIC_CMD"; then
  5893. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5894. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  5895. else
  5896. { echo "$as_me:$LINENO: result: no" >&5
  5897. echo "${ECHO_T}no" >&6; }
  5898. fi
  5899. else
  5900. MAGIC_CMD=:
  5901. fi
  5902. fi
  5903. fi
  5904. ;;
  5905. esac
  5906. case $host_os in
  5907. rhapsody* | darwin*)
  5908. if test -n "$ac_tool_prefix"; then
  5909. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5910. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5911. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5912. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5913. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5914. echo $ECHO_N "(cached) $ECHO_C" >&6
  5915. else
  5916. if test -n "$DSYMUTIL"; then
  5917. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5918. else
  5919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5920. for as_dir in $PATH
  5921. do
  5922. IFS=$as_save_IFS
  5923. test -z "$as_dir" && as_dir=.
  5924. for ac_exec_ext in '' $ac_executable_extensions; do
  5925. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5926. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5927. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5928. break 2
  5929. fi
  5930. done
  5931. done
  5932. IFS=$as_save_IFS
  5933. fi
  5934. fi
  5935. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5936. if test -n "$DSYMUTIL"; then
  5937. { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5938. echo "${ECHO_T}$DSYMUTIL" >&6; }
  5939. else
  5940. { echo "$as_me:$LINENO: result: no" >&5
  5941. echo "${ECHO_T}no" >&6; }
  5942. fi
  5943. fi
  5944. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5945. ac_ct_DSYMUTIL=$DSYMUTIL
  5946. # Extract the first word of "dsymutil", so it can be a program name with args.
  5947. set dummy dsymutil; ac_word=$2
  5948. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5949. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5950. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5951. echo $ECHO_N "(cached) $ECHO_C" >&6
  5952. else
  5953. if test -n "$ac_ct_DSYMUTIL"; then
  5954. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5955. else
  5956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5957. for as_dir in $PATH
  5958. do
  5959. IFS=$as_save_IFS
  5960. test -z "$as_dir" && as_dir=.
  5961. for ac_exec_ext in '' $ac_executable_extensions; do
  5962. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5963. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5964. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5965. break 2
  5966. fi
  5967. done
  5968. done
  5969. IFS=$as_save_IFS
  5970. fi
  5971. fi
  5972. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5973. if test -n "$ac_ct_DSYMUTIL"; then
  5974. { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5975. echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
  5976. else
  5977. { echo "$as_me:$LINENO: result: no" >&5
  5978. echo "${ECHO_T}no" >&6; }
  5979. fi
  5980. if test "x$ac_ct_DSYMUTIL" = x; then
  5981. DSYMUTIL=":"
  5982. else
  5983. case $cross_compiling:$ac_tool_warned in
  5984. yes:)
  5985. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5986. whose name does not start with the host triplet. If you think this
  5987. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5988. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5989. whose name does not start with the host triplet. If you think this
  5990. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5991. ac_tool_warned=yes ;;
  5992. esac
  5993. DSYMUTIL=$ac_ct_DSYMUTIL
  5994. fi
  5995. else
  5996. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5997. fi
  5998. if test -n "$ac_tool_prefix"; then
  5999. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6000. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6001. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6002. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6003. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6004. echo $ECHO_N "(cached) $ECHO_C" >&6
  6005. else
  6006. if test -n "$NMEDIT"; then
  6007. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6008. else
  6009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6010. for as_dir in $PATH
  6011. do
  6012. IFS=$as_save_IFS
  6013. test -z "$as_dir" && as_dir=.
  6014. for ac_exec_ext in '' $ac_executable_extensions; do
  6015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6016. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6017. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6018. break 2
  6019. fi
  6020. done
  6021. done
  6022. IFS=$as_save_IFS
  6023. fi
  6024. fi
  6025. NMEDIT=$ac_cv_prog_NMEDIT
  6026. if test -n "$NMEDIT"; then
  6027. { echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6028. echo "${ECHO_T}$NMEDIT" >&6; }
  6029. else
  6030. { echo "$as_me:$LINENO: result: no" >&5
  6031. echo "${ECHO_T}no" >&6; }
  6032. fi
  6033. fi
  6034. if test -z "$ac_cv_prog_NMEDIT"; then
  6035. ac_ct_NMEDIT=$NMEDIT
  6036. # Extract the first word of "nmedit", so it can be a program name with args.
  6037. set dummy nmedit; ac_word=$2
  6038. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6039. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6040. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6041. echo $ECHO_N "(cached) $ECHO_C" >&6
  6042. else
  6043. if test -n "$ac_ct_NMEDIT"; then
  6044. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6045. else
  6046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6047. for as_dir in $PATH
  6048. do
  6049. IFS=$as_save_IFS
  6050. test -z "$as_dir" && as_dir=.
  6051. for ac_exec_ext in '' $ac_executable_extensions; do
  6052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6053. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6054. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6055. break 2
  6056. fi
  6057. done
  6058. done
  6059. IFS=$as_save_IFS
  6060. fi
  6061. fi
  6062. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6063. if test -n "$ac_ct_NMEDIT"; then
  6064. { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6065. echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
  6066. else
  6067. { echo "$as_me:$LINENO: result: no" >&5
  6068. echo "${ECHO_T}no" >&6; }
  6069. fi
  6070. if test "x$ac_ct_NMEDIT" = x; then
  6071. NMEDIT=":"
  6072. else
  6073. case $cross_compiling:$ac_tool_warned in
  6074. yes:)
  6075. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6076. whose name does not start with the host triplet. If you think this
  6077. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6078. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6079. whose name does not start with the host triplet. If you think this
  6080. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6081. ac_tool_warned=yes ;;
  6082. esac
  6083. NMEDIT=$ac_ct_NMEDIT
  6084. fi
  6085. else
  6086. NMEDIT="$ac_cv_prog_NMEDIT"
  6087. fi
  6088. { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6089. echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
  6090. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6091. echo $ECHO_N "(cached) $ECHO_C" >&6
  6092. else
  6093. lt_cv_apple_cc_single_mod=no
  6094. if test -z "${LT_MULTI_MODULE}"; then
  6095. # By default we will add the -single_module flag. You can override
  6096. # by either setting the environment variable LT_MULTI_MODULE
  6097. # non-empty at configure time, or by adding -multi_module to the
  6098. # link flags.
  6099. echo "int foo(void){return 1;}" > conftest.c
  6100. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6101. -dynamiclib ${wl}-single_module conftest.c
  6102. if test -f libconftest.dylib; then
  6103. lt_cv_apple_cc_single_mod=yes
  6104. rm -rf libconftest.dylib*
  6105. fi
  6106. rm conftest.c
  6107. fi
  6108. fi
  6109. { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6110. echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
  6111. { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6112. echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
  6113. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6114. echo $ECHO_N "(cached) $ECHO_C" >&6
  6115. else
  6116. lt_cv_ld_exported_symbols_list=no
  6117. save_LDFLAGS=$LDFLAGS
  6118. echo "_main" > conftest.sym
  6119. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6120. cat >conftest.$ac_ext <<_ACEOF
  6121. /* confdefs.h. */
  6122. _ACEOF
  6123. cat confdefs.h >>conftest.$ac_ext
  6124. cat >>conftest.$ac_ext <<_ACEOF
  6125. /* end confdefs.h. */
  6126. int
  6127. main ()
  6128. {
  6129. ;
  6130. return 0;
  6131. }
  6132. _ACEOF
  6133. rm -f conftest.$ac_objext conftest$ac_exeext
  6134. if { (ac_try="$ac_link"
  6135. case "(($ac_try" in
  6136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6137. *) ac_try_echo=$ac_try;;
  6138. esac
  6139. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6140. (eval "$ac_link") 2>conftest.er1
  6141. ac_status=$?
  6142. grep -v '^ *+' conftest.er1 >conftest.err
  6143. rm -f conftest.er1
  6144. cat conftest.err >&5
  6145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6146. (exit $ac_status); } && {
  6147. test -z "$ac_c_werror_flag" ||
  6148. test ! -s conftest.err
  6149. } && test -s conftest$ac_exeext &&
  6150. $as_test_x conftest$ac_exeext; then
  6151. lt_cv_ld_exported_symbols_list=yes
  6152. else
  6153. echo "$as_me: failed program was:" >&5
  6154. sed 's/^/| /' conftest.$ac_ext >&5
  6155. lt_cv_ld_exported_symbols_list=no
  6156. fi
  6157. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6158. conftest$ac_exeext conftest.$ac_ext
  6159. LDFLAGS="$save_LDFLAGS"
  6160. fi
  6161. { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6162. echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
  6163. case $host_os in
  6164. rhapsody* | darwin1.[0123])
  6165. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6166. darwin1.*)
  6167. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6168. darwin*)
  6169. # if running on 10.5 or later, the deployment target defaults
  6170. # to the OS version, if on x86, and 10.4, the deployment
  6171. # target defaults to 10.4. Don't you love it?
  6172. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6173. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6174. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6175. 10.[012]*)
  6176. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6177. 10.*)
  6178. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6179. esac
  6180. ;;
  6181. esac
  6182. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6183. _lt_dar_single_mod='$single_module'
  6184. fi
  6185. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6186. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6187. else
  6188. _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  6189. fi
  6190. if test "$DSYMUTIL" != ":"; then
  6191. _lt_dsymutil="~$DSYMUTIL \$lib || :"
  6192. else
  6193. _lt_dsymutil=
  6194. fi
  6195. ;;
  6196. esac
  6197. enable_dlopen=no
  6198. enable_win32_dll=yes
  6199. # Check whether --enable-libtool-lock was given.
  6200. if test "${enable_libtool_lock+set}" = set; then
  6201. enableval=$enable_libtool_lock;
  6202. fi
  6203. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6204. # Check whether --with-pic was given.
  6205. if test "${with_pic+set}" = set; then
  6206. withval=$with_pic; pic_mode="$withval"
  6207. else
  6208. pic_mode=default
  6209. fi
  6210. test -z "$pic_mode" && pic_mode=default
  6211. # Use C for the default configuration in the libtool script
  6212. tagname=
  6213. lt_save_CC="$CC"
  6214. ac_ext=c
  6215. ac_cpp='$CPP $CPPFLAGS'
  6216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6219. # Source file extension for C test sources.
  6220. ac_ext=c
  6221. # Object file extension for compiled C test sources.
  6222. objext=o
  6223. objext=$objext
  6224. # Code to be used in simple compile tests
  6225. lt_simple_compile_test_code="int some_variable = 0;"
  6226. # Code to be used in simple link tests
  6227. lt_simple_link_test_code='int main(){return(0);}'
  6228. # If no C compiler was specified, use CC.
  6229. LTCC=${LTCC-"$CC"}
  6230. # If no C compiler flags were specified, use CFLAGS.
  6231. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6232. # Allow CC to be a program name with arguments.
  6233. compiler=$CC
  6234. # save warnings/boilerplate of simple test code
  6235. ac_outfile=conftest.$ac_objext
  6236. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6237. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6238. _lt_compiler_boilerplate=`cat conftest.err`
  6239. $rm conftest*
  6240. ac_outfile=conftest.$ac_objext
  6241. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6242. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6243. _lt_linker_boilerplate=`cat conftest.err`
  6244. $rm -r conftest*
  6245. lt_prog_compiler_no_builtin_flag=
  6246. if test "$GCC" = yes; then
  6247. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6248. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6249. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6250. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6251. echo $ECHO_N "(cached) $ECHO_C" >&6
  6252. else
  6253. lt_cv_prog_compiler_rtti_exceptions=no
  6254. ac_outfile=conftest.$ac_objext
  6255. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6256. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6257. # Insert the option either (1) after the last *FLAGS variable, or
  6258. # (2) before a word containing "conftest.", or (3) at the end.
  6259. # Note that $ac_compile itself does not contain backslashes and begins
  6260. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6261. # The option is referenced via a variable to avoid confusing sed.
  6262. lt_compile=`echo "$ac_compile" | $SED \
  6263. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6264. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6265. -e 's:$: $lt_compiler_flag:'`
  6266. (eval echo "\"\$as_me:6969: $lt_compile\"" >&5)
  6267. (eval "$lt_compile" 2>conftest.err)
  6268. ac_status=$?
  6269. cat conftest.err >&5
  6270. echo "$as_me:6973: \$? = $ac_status" >&5
  6271. if (exit $ac_status) && test -s "$ac_outfile"; then
  6272. # The compiler can only warn and ignore the option if not recognized
  6273. # So say no if there are warnings other than the usual output.
  6274. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6275. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6276. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6277. lt_cv_prog_compiler_rtti_exceptions=yes
  6278. fi
  6279. fi
  6280. $rm conftest*
  6281. fi
  6282. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6283. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6284. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6285. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6286. else
  6287. :
  6288. fi
  6289. fi
  6290. lt_prog_compiler_wl=
  6291. lt_prog_compiler_pic=
  6292. lt_prog_compiler_static=
  6293. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6294. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6295. if test "$GCC" = yes; then
  6296. lt_prog_compiler_wl='-Wl,'
  6297. lt_prog_compiler_static='-static'
  6298. case $host_os in
  6299. aix*)
  6300. # All AIX code is PIC.
  6301. if test "$host_cpu" = ia64; then
  6302. # AIX 5 now supports IA64 processor
  6303. lt_prog_compiler_static='-Bstatic'
  6304. fi
  6305. ;;
  6306. amigaos*)
  6307. # FIXME: we need at least 68020 code to build shared libraries, but
  6308. # adding the `-m68020' flag to GCC prevents building anything better,
  6309. # like `-m68040'.
  6310. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6311. ;;
  6312. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6313. # PIC is the default for these OSes.
  6314. ;;
  6315. mingw* | cygwin* | pw32* | os2*)
  6316. # This hack is so that the source file can tell whether it is being
  6317. # built for inclusion in a dll (and should export symbols for example).
  6318. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6319. # (--disable-auto-import) libraries
  6320. lt_prog_compiler_pic='-DDLL_EXPORT'
  6321. ;;
  6322. darwin* | rhapsody*)
  6323. # PIC is the default on this platform
  6324. # Common symbols not allowed in MH_DYLIB files
  6325. lt_prog_compiler_pic='-fno-common'
  6326. ;;
  6327. interix[3-9]*)
  6328. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6329. # Instead, we relocate shared libraries at runtime.
  6330. ;;
  6331. msdosdjgpp*)
  6332. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6333. # on systems that don't support them.
  6334. lt_prog_compiler_can_build_shared=no
  6335. enable_shared=no
  6336. ;;
  6337. sysv4*MP*)
  6338. if test -d /usr/nec; then
  6339. lt_prog_compiler_pic=-Kconform_pic
  6340. fi
  6341. ;;
  6342. hpux*)
  6343. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6344. # not for PA HP-UX.
  6345. case $host_cpu in
  6346. hppa*64*|ia64*)
  6347. # +Z the default
  6348. ;;
  6349. *)
  6350. lt_prog_compiler_pic='-fPIC'
  6351. ;;
  6352. esac
  6353. ;;
  6354. *)
  6355. lt_prog_compiler_pic='-fPIC'
  6356. ;;
  6357. esac
  6358. else
  6359. # PORTME Check for flag to pass linker flags through the system compiler.
  6360. case $host_os in
  6361. aix*)
  6362. lt_prog_compiler_wl='-Wl,'
  6363. if test "$host_cpu" = ia64; then
  6364. # AIX 5 now supports IA64 processor
  6365. lt_prog_compiler_static='-Bstatic'
  6366. else
  6367. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6368. fi
  6369. ;;
  6370. darwin*)
  6371. # PIC is the default on this platform
  6372. # Common symbols not allowed in MH_DYLIB files
  6373. case $cc_basename in
  6374. xlc*)
  6375. lt_prog_compiler_pic='-qnocommon'
  6376. lt_prog_compiler_wl='-Wl,'
  6377. ;;
  6378. esac
  6379. ;;
  6380. mingw* | cygwin* | pw32* | os2*)
  6381. # This hack is so that the source file can tell whether it is being
  6382. # built for inclusion in a dll (and should export symbols for example).
  6383. lt_prog_compiler_pic='-DDLL_EXPORT'
  6384. ;;
  6385. hpux9* | hpux10* | hpux11*)
  6386. lt_prog_compiler_wl='-Wl,'
  6387. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6388. # not for PA HP-UX.
  6389. case $host_cpu in
  6390. hppa*64*|ia64*)
  6391. # +Z the default
  6392. ;;
  6393. *)
  6394. lt_prog_compiler_pic='+Z'
  6395. ;;
  6396. esac
  6397. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6398. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6399. ;;
  6400. irix5* | irix6* | nonstopux*)
  6401. lt_prog_compiler_wl='-Wl,'
  6402. # PIC (with -KPIC) is the default.
  6403. lt_prog_compiler_static='-non_shared'
  6404. ;;
  6405. newsos6)
  6406. lt_prog_compiler_pic='-KPIC'
  6407. lt_prog_compiler_static='-Bstatic'
  6408. ;;
  6409. linux* | k*bsd*-gnu)
  6410. case $cc_basename in
  6411. icc* | ecc*)
  6412. lt_prog_compiler_wl='-Wl,'
  6413. lt_prog_compiler_pic='-KPIC'
  6414. lt_prog_compiler_static='-static'
  6415. ;;
  6416. pgcc* | pgf77* | pgf90* | pgf95*)
  6417. # Portland Group compilers (*not* the Pentium gcc compiler,
  6418. # which looks to be a dead project)
  6419. lt_prog_compiler_wl='-Wl,'
  6420. lt_prog_compiler_pic='-fpic'
  6421. lt_prog_compiler_static='-Bstatic'
  6422. ;;
  6423. ccc*)
  6424. lt_prog_compiler_wl='-Wl,'
  6425. # All Alpha code is PIC.
  6426. lt_prog_compiler_static='-non_shared'
  6427. ;;
  6428. *)
  6429. case `$CC -V 2>&1 | sed 5q` in
  6430. *Sun\ C*)
  6431. # Sun C 5.9
  6432. lt_prog_compiler_pic='-KPIC'
  6433. lt_prog_compiler_static='-Bstatic'
  6434. lt_prog_compiler_wl='-Wl,'
  6435. ;;
  6436. *Sun\ F*)
  6437. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6438. lt_prog_compiler_pic='-KPIC'
  6439. lt_prog_compiler_static='-Bstatic'
  6440. lt_prog_compiler_wl=''
  6441. ;;
  6442. esac
  6443. ;;
  6444. esac
  6445. ;;
  6446. osf3* | osf4* | osf5*)
  6447. lt_prog_compiler_wl='-Wl,'
  6448. # All OSF/1 code is PIC.
  6449. lt_prog_compiler_static='-non_shared'
  6450. ;;
  6451. rdos*)
  6452. lt_prog_compiler_static='-non_shared'
  6453. ;;
  6454. solaris*)
  6455. lt_prog_compiler_pic='-KPIC'
  6456. lt_prog_compiler_static='-Bstatic'
  6457. case $cc_basename in
  6458. f77* | f90* | f95*)
  6459. lt_prog_compiler_wl='-Qoption ld ';;
  6460. *)
  6461. lt_prog_compiler_wl='-Wl,';;
  6462. esac
  6463. ;;
  6464. sunos4*)
  6465. lt_prog_compiler_wl='-Qoption ld '
  6466. lt_prog_compiler_pic='-PIC'
  6467. lt_prog_compiler_static='-Bstatic'
  6468. ;;
  6469. sysv4 | sysv4.2uw2* | sysv4.3*)
  6470. lt_prog_compiler_wl='-Wl,'
  6471. lt_prog_compiler_pic='-KPIC'
  6472. lt_prog_compiler_static='-Bstatic'
  6473. ;;
  6474. sysv4*MP*)
  6475. if test -d /usr/nec ;then
  6476. lt_prog_compiler_pic='-Kconform_pic'
  6477. lt_prog_compiler_static='-Bstatic'
  6478. fi
  6479. ;;
  6480. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6481. lt_prog_compiler_wl='-Wl,'
  6482. lt_prog_compiler_pic='-KPIC'
  6483. lt_prog_compiler_static='-Bstatic'
  6484. ;;
  6485. unicos*)
  6486. lt_prog_compiler_wl='-Wl,'
  6487. lt_prog_compiler_can_build_shared=no
  6488. ;;
  6489. uts4*)
  6490. lt_prog_compiler_pic='-pic'
  6491. lt_prog_compiler_static='-Bstatic'
  6492. ;;
  6493. *)
  6494. lt_prog_compiler_can_build_shared=no
  6495. ;;
  6496. esac
  6497. fi
  6498. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6499. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6500. #
  6501. # Check to make sure the PIC flag actually works.
  6502. #
  6503. if test -n "$lt_prog_compiler_pic"; then
  6504. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6505. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6506. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  6507. echo $ECHO_N "(cached) $ECHO_C" >&6
  6508. else
  6509. lt_cv_prog_compiler_pic_works=no
  6510. ac_outfile=conftest.$ac_objext
  6511. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6512. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6513. # Insert the option either (1) after the last *FLAGS variable, or
  6514. # (2) before a word containing "conftest.", or (3) at the end.
  6515. # Note that $ac_compile itself does not contain backslashes and begins
  6516. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6517. # The option is referenced via a variable to avoid confusing sed.
  6518. lt_compile=`echo "$ac_compile" | $SED \
  6519. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6520. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6521. -e 's:$: $lt_compiler_flag:'`
  6522. (eval echo "\"\$as_me:7259: $lt_compile\"" >&5)
  6523. (eval "$lt_compile" 2>conftest.err)
  6524. ac_status=$?
  6525. cat conftest.err >&5
  6526. echo "$as_me:7263: \$? = $ac_status" >&5
  6527. if (exit $ac_status) && test -s "$ac_outfile"; then
  6528. # The compiler can only warn and ignore the option if not recognized
  6529. # So say no if there are warnings other than the usual output.
  6530. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6531. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6532. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6533. lt_cv_prog_compiler_pic_works=yes
  6534. fi
  6535. fi
  6536. $rm conftest*
  6537. fi
  6538. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  6539. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
  6540. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6541. case $lt_prog_compiler_pic in
  6542. "" | " "*) ;;
  6543. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6544. esac
  6545. else
  6546. lt_prog_compiler_pic=
  6547. lt_prog_compiler_can_build_shared=no
  6548. fi
  6549. fi
  6550. case $host_os in
  6551. # For platforms which do not support PIC, -DPIC is meaningless:
  6552. *djgpp*)
  6553. lt_prog_compiler_pic=
  6554. ;;
  6555. *)
  6556. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6557. ;;
  6558. esac
  6559. #
  6560. # Check to make sure the static flag actually works.
  6561. #
  6562. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6563. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6564. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6565. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  6566. echo $ECHO_N "(cached) $ECHO_C" >&6
  6567. else
  6568. lt_cv_prog_compiler_static_works=no
  6569. save_LDFLAGS="$LDFLAGS"
  6570. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6571. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6572. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6573. # The linker can only warn and ignore the option if not recognized
  6574. # So say no if there are warnings
  6575. if test -s conftest.err; then
  6576. # Append any errors to the config.log.
  6577. cat conftest.err 1>&5
  6578. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6579. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6580. if diff conftest.exp conftest.er2 >/dev/null; then
  6581. lt_cv_prog_compiler_static_works=yes
  6582. fi
  6583. else
  6584. lt_cv_prog_compiler_static_works=yes
  6585. fi
  6586. fi
  6587. $rm -r conftest*
  6588. LDFLAGS="$save_LDFLAGS"
  6589. fi
  6590. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  6591. echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
  6592. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6593. :
  6594. else
  6595. lt_prog_compiler_static=
  6596. fi
  6597. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6598. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6599. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6600. echo $ECHO_N "(cached) $ECHO_C" >&6
  6601. else
  6602. lt_cv_prog_compiler_c_o=no
  6603. $rm -r conftest 2>/dev/null
  6604. mkdir conftest
  6605. cd conftest
  6606. mkdir out
  6607. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6608. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6609. # Insert the option either (1) after the last *FLAGS variable, or
  6610. # (2) before a word containing "conftest.", or (3) at the end.
  6611. # Note that $ac_compile itself does not contain backslashes and begins
  6612. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6613. lt_compile=`echo "$ac_compile" | $SED \
  6614. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6615. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6616. -e 's:$: $lt_compiler_flag:'`
  6617. (eval echo "\"\$as_me:7363: $lt_compile\"" >&5)
  6618. (eval "$lt_compile" 2>out/conftest.err)
  6619. ac_status=$?
  6620. cat out/conftest.err >&5
  6621. echo "$as_me:7367: \$? = $ac_status" >&5
  6622. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6623. then
  6624. # The compiler can only warn and ignore the option if not recognized
  6625. # So say no if there are warnings
  6626. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6627. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6628. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6629. lt_cv_prog_compiler_c_o=yes
  6630. fi
  6631. fi
  6632. chmod u+w . 2>&5
  6633. $rm conftest*
  6634. # SGI C++ compiler will create directory out/ii_files/ for
  6635. # template instantiation
  6636. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6637. $rm out/* && rmdir out
  6638. cd ..
  6639. rmdir conftest
  6640. $rm conftest*
  6641. fi
  6642. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6643. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6644. hard_links="nottested"
  6645. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6646. # do not overwrite the value of need_locks provided by the user
  6647. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6648. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6649. hard_links=yes
  6650. $rm conftest*
  6651. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6652. touch conftest.a
  6653. ln conftest.a conftest.b 2>&5 || hard_links=no
  6654. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6655. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6656. echo "${ECHO_T}$hard_links" >&6; }
  6657. if test "$hard_links" = no; then
  6658. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6659. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6660. need_locks=warn
  6661. fi
  6662. else
  6663. need_locks=no
  6664. fi
  6665. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6666. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6667. runpath_var=
  6668. allow_undefined_flag=
  6669. enable_shared_with_static_runtimes=no
  6670. archive_cmds=
  6671. archive_expsym_cmds=
  6672. old_archive_From_new_cmds=
  6673. old_archive_from_expsyms_cmds=
  6674. export_dynamic_flag_spec=
  6675. whole_archive_flag_spec=
  6676. thread_safe_flag_spec=
  6677. hardcode_libdir_flag_spec=
  6678. hardcode_libdir_flag_spec_ld=
  6679. hardcode_libdir_separator=
  6680. hardcode_direct=no
  6681. hardcode_minus_L=no
  6682. hardcode_shlibpath_var=unsupported
  6683. link_all_deplibs=unknown
  6684. hardcode_automatic=no
  6685. module_cmds=
  6686. module_expsym_cmds=
  6687. always_export_symbols=no
  6688. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6689. # include_expsyms should be a list of space-separated symbols to be *always*
  6690. # included in the symbol list
  6691. include_expsyms=
  6692. # exclude_expsyms can be an extended regexp of symbols to exclude
  6693. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6694. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6695. # as well as any symbol that contains `d'.
  6696. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6697. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6698. # platforms (ab)use it in PIC code, but their linkers get confused if
  6699. # the symbol is explicitly referenced. Since portable code cannot
  6700. # rely on this symbol name, it's probably fine to never include it in
  6701. # preloaded symbol tables.
  6702. # Exclude shared library initialization/finalization symbols.
  6703. extract_expsyms_cmds=
  6704. # Just being paranoid about ensuring that cc_basename is set.
  6705. for cc_temp in $compiler""; do
  6706. case $cc_temp in
  6707. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6708. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6709. \-*) ;;
  6710. *) break;;
  6711. esac
  6712. done
  6713. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6714. case $host_os in
  6715. cygwin* | mingw* | pw32*)
  6716. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6717. # When not using gcc, we currently assume that we are using
  6718. # Microsoft Visual C++.
  6719. if test "$GCC" != yes; then
  6720. with_gnu_ld=no
  6721. fi
  6722. ;;
  6723. interix*)
  6724. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6725. with_gnu_ld=yes
  6726. ;;
  6727. openbsd*)
  6728. with_gnu_ld=no
  6729. ;;
  6730. esac
  6731. ld_shlibs=yes
  6732. if test "$with_gnu_ld" = yes; then
  6733. # If archive_cmds runs LD, not CC, wlarc should be empty
  6734. wlarc='${wl}'
  6735. # Set some defaults for GNU ld with shared library support. These
  6736. # are reset later if shared libraries are not supported. Putting them
  6737. # here allows them to be overridden if necessary.
  6738. runpath_var=LD_RUN_PATH
  6739. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6740. export_dynamic_flag_spec='${wl}--export-dynamic'
  6741. # ancient GNU ld didn't support --whole-archive et. al.
  6742. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6743. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6744. else
  6745. whole_archive_flag_spec=
  6746. fi
  6747. supports_anon_versioning=no
  6748. case `$LD -v 2>/dev/null` in
  6749. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6750. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6751. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6752. *\ 2.11.*) ;; # other 2.11 versions
  6753. *) supports_anon_versioning=yes ;;
  6754. esac
  6755. # See if GNU ld supports shared libraries.
  6756. case $host_os in
  6757. aix[3-9]*)
  6758. # On AIX/PPC, the GNU linker is very broken
  6759. if test "$host_cpu" != ia64; then
  6760. ld_shlibs=no
  6761. cat <<EOF 1>&2
  6762. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6763. *** to be unable to reliably create shared libraries on AIX.
  6764. *** Therefore, libtool is disabling shared libraries support. If you
  6765. *** really care for shared libraries, you may want to modify your PATH
  6766. *** so that a non-GNU linker is found, and then restart.
  6767. EOF
  6768. fi
  6769. ;;
  6770. amigaos*)
  6771. 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)'
  6772. hardcode_libdir_flag_spec='-L$libdir'
  6773. hardcode_minus_L=yes
  6774. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6775. # that the semantics of dynamic libraries on AmigaOS, at least up
  6776. # to version 4, is to share data among multiple programs linked
  6777. # with the same dynamic library. Since this doesn't match the
  6778. # behavior of shared libraries on other platforms, we can't use
  6779. # them.
  6780. ld_shlibs=no
  6781. ;;
  6782. beos*)
  6783. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6784. allow_undefined_flag=unsupported
  6785. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6786. # support --undefined. This deserves some investigation. FIXME
  6787. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6788. else
  6789. ld_shlibs=no
  6790. fi
  6791. ;;
  6792. cygwin* | mingw* | pw32*)
  6793. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6794. # as there is no search path for DLLs.
  6795. hardcode_libdir_flag_spec='-L$libdir'
  6796. allow_undefined_flag=unsupported
  6797. always_export_symbols=no
  6798. enable_shared_with_static_runtimes=yes
  6799. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6800. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6801. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6802. # If the export-symbols file already is a .def file (1st line
  6803. # is EXPORTS), use it as is; otherwise, prepend...
  6804. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6805. cp $export_symbols $output_objdir/$soname.def;
  6806. else
  6807. echo EXPORTS > $output_objdir/$soname.def;
  6808. cat $export_symbols >> $output_objdir/$soname.def;
  6809. fi~
  6810. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6811. else
  6812. ld_shlibs=no
  6813. fi
  6814. ;;
  6815. interix[3-9]*)
  6816. hardcode_direct=no
  6817. hardcode_shlibpath_var=no
  6818. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6819. export_dynamic_flag_spec='${wl}-E'
  6820. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6821. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6822. # default) and relocated if they conflict, which is a slow very memory
  6823. # consuming and fragmenting process. To avoid this, we pick a random,
  6824. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6825. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6826. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6827. 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'
  6828. ;;
  6829. gnu* | linux* | k*bsd*-gnu)
  6830. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6831. tmp_addflag=
  6832. case $cc_basename,$host_cpu in
  6833. pgcc*) # Portland Group C compiler
  6834. 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'
  6835. tmp_addflag=' $pic_flag'
  6836. ;;
  6837. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6838. 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'
  6839. tmp_addflag=' $pic_flag -Mnomain' ;;
  6840. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6841. tmp_addflag=' -i_dynamic' ;;
  6842. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6843. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6844. ifc* | ifort*) # Intel Fortran compiler
  6845. tmp_addflag=' -nofor_main' ;;
  6846. esac
  6847. case `$CC -V 2>&1 | sed 5q` in
  6848. *Sun\ C*) # Sun C 5.9
  6849. 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'
  6850. tmp_sharedflag='-G' ;;
  6851. *Sun\ F*) # Sun Fortran 8.3
  6852. tmp_sharedflag='-G' ;;
  6853. *)
  6854. tmp_sharedflag='-shared' ;;
  6855. esac
  6856. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6857. if test $supports_anon_versioning = yes; then
  6858. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6859. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6860. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6861. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6862. fi
  6863. link_all_deplibs=no
  6864. else
  6865. ld_shlibs=no
  6866. fi
  6867. ;;
  6868. netbsd* | netbsdelf*-gnu)
  6869. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6870. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6871. wlarc=
  6872. else
  6873. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6874. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6875. fi
  6876. ;;
  6877. solaris*)
  6878. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6879. ld_shlibs=no
  6880. cat <<EOF 1>&2
  6881. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6882. *** create shared libraries on Solaris systems. Therefore, libtool
  6883. *** is disabling shared libraries support. We urge you to upgrade GNU
  6884. *** binutils to release 2.9.1 or newer. Another option is to modify
  6885. *** your PATH or compiler configuration so that the native linker is
  6886. *** used, and then restart.
  6887. EOF
  6888. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6889. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6890. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6891. else
  6892. ld_shlibs=no
  6893. fi
  6894. ;;
  6895. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6896. case `$LD -v 2>&1` in
  6897. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6898. ld_shlibs=no
  6899. cat <<_LT_EOF 1>&2
  6900. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6901. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6902. *** is disabling shared libraries support. We urge you to upgrade GNU
  6903. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6904. *** your PATH or compiler configuration so that the native linker is
  6905. *** used, and then restart.
  6906. _LT_EOF
  6907. ;;
  6908. *)
  6909. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6910. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6911. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6912. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6913. else
  6914. ld_shlibs=no
  6915. fi
  6916. ;;
  6917. esac
  6918. ;;
  6919. sunos4*)
  6920. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6921. wlarc=
  6922. hardcode_direct=yes
  6923. hardcode_shlibpath_var=no
  6924. ;;
  6925. *)
  6926. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6927. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6928. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6929. else
  6930. ld_shlibs=no
  6931. fi
  6932. ;;
  6933. esac
  6934. if test "$ld_shlibs" = no; then
  6935. runpath_var=
  6936. hardcode_libdir_flag_spec=
  6937. export_dynamic_flag_spec=
  6938. whole_archive_flag_spec=
  6939. fi
  6940. else
  6941. # PORTME fill in a description of your system's linker (not GNU ld)
  6942. case $host_os in
  6943. aix3*)
  6944. allow_undefined_flag=unsupported
  6945. always_export_symbols=yes
  6946. 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'
  6947. # Note: this linker hardcodes the directories in LIBPATH if there
  6948. # are no directories specified by -L.
  6949. hardcode_minus_L=yes
  6950. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6951. # Neither direct hardcoding nor static linking is supported with a
  6952. # broken collect2.
  6953. hardcode_direct=unsupported
  6954. fi
  6955. ;;
  6956. aix[4-9]*)
  6957. if test "$host_cpu" = ia64; then
  6958. # On IA64, the linker does run time linking by default, so we don't
  6959. # have to do anything special.
  6960. aix_use_runtimelinking=no
  6961. exp_sym_flag='-Bexport'
  6962. no_entry_flag=""
  6963. else
  6964. # If we're using GNU nm, then we don't want the "-C" option.
  6965. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6966. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6967. 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'
  6968. else
  6969. 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'
  6970. fi
  6971. aix_use_runtimelinking=no
  6972. # Test if we are trying to use run time linking or normal
  6973. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6974. # need to do runtime linking.
  6975. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  6976. for ld_flag in $LDFLAGS; do
  6977. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6978. aix_use_runtimelinking=yes
  6979. break
  6980. fi
  6981. done
  6982. ;;
  6983. esac
  6984. exp_sym_flag='-bexport'
  6985. no_entry_flag='-bnoentry'
  6986. fi
  6987. # When large executables or shared objects are built, AIX ld can
  6988. # have problems creating the table of contents. If linking a library
  6989. # or program results in "error TOC overflow" add -mminimal-toc to
  6990. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6991. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6992. archive_cmds=''
  6993. hardcode_direct=yes
  6994. hardcode_libdir_separator=':'
  6995. link_all_deplibs=yes
  6996. if test "$GCC" = yes; then
  6997. case $host_os in aix4.[012]|aix4.[012].*)
  6998. # We only want to do this on AIX 4.2 and lower, the check
  6999. # below for broken collect2 doesn't work under 4.3+
  7000. collect2name=`${CC} -print-prog-name=collect2`
  7001. if test -f "$collect2name" && \
  7002. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7003. then
  7004. # We have reworked collect2
  7005. :
  7006. else
  7007. # We have old collect2
  7008. hardcode_direct=unsupported
  7009. # It fails to find uninstalled libraries when the uninstalled
  7010. # path is not listed in the libpath. Setting hardcode_minus_L
  7011. # to unsupported forces relinking
  7012. hardcode_minus_L=yes
  7013. hardcode_libdir_flag_spec='-L$libdir'
  7014. hardcode_libdir_separator=
  7015. fi
  7016. ;;
  7017. esac
  7018. shared_flag='-shared'
  7019. if test "$aix_use_runtimelinking" = yes; then
  7020. shared_flag="$shared_flag "'${wl}-G'
  7021. fi
  7022. else
  7023. # not using gcc
  7024. if test "$host_cpu" = ia64; then
  7025. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7026. # chokes on -Wl,-G. The following line is correct:
  7027. shared_flag='-G'
  7028. else
  7029. if test "$aix_use_runtimelinking" = yes; then
  7030. shared_flag='${wl}-G'
  7031. else
  7032. shared_flag='${wl}-bM:SRE'
  7033. fi
  7034. fi
  7035. fi
  7036. # It seems that -bexpall does not export symbols beginning with
  7037. # underscore (_), so it is better to generate a list of symbols to export.
  7038. always_export_symbols=yes
  7039. if test "$aix_use_runtimelinking" = yes; then
  7040. # Warning - without using the other runtime loading flags (-brtl),
  7041. # -berok will link without error, but may produce a broken library.
  7042. allow_undefined_flag='-berok'
  7043. # Determine the default libpath from the value encoded in an empty executable.
  7044. cat >conftest.$ac_ext <<_ACEOF
  7045. /* confdefs.h. */
  7046. _ACEOF
  7047. cat confdefs.h >>conftest.$ac_ext
  7048. cat >>conftest.$ac_ext <<_ACEOF
  7049. /* end confdefs.h. */
  7050. int
  7051. main ()
  7052. {
  7053. ;
  7054. return 0;
  7055. }
  7056. _ACEOF
  7057. rm -f conftest.$ac_objext conftest$ac_exeext
  7058. if { (ac_try="$ac_link"
  7059. case "(($ac_try" in
  7060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7061. *) ac_try_echo=$ac_try;;
  7062. esac
  7063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7064. (eval "$ac_link") 2>conftest.er1
  7065. ac_status=$?
  7066. grep -v '^ *+' conftest.er1 >conftest.err
  7067. rm -f conftest.er1
  7068. cat conftest.err >&5
  7069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7070. (exit $ac_status); } && {
  7071. test -z "$ac_c_werror_flag" ||
  7072. test ! -s conftest.err
  7073. } && test -s conftest$ac_exeext &&
  7074. $as_test_x conftest$ac_exeext; then
  7075. lt_aix_libpath_sed='
  7076. /Import File Strings/,/^$/ {
  7077. /^0/ {
  7078. s/^0 *\(.*\)$/\1/
  7079. p
  7080. }
  7081. }'
  7082. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7083. # Check for a 64-bit object if we didn't find anything.
  7084. if test -z "$aix_libpath"; then
  7085. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7086. fi
  7087. else
  7088. echo "$as_me: failed program was:" >&5
  7089. sed 's/^/| /' conftest.$ac_ext >&5
  7090. fi
  7091. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7092. conftest$ac_exeext conftest.$ac_ext
  7093. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7094. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7095. 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"
  7096. else
  7097. if test "$host_cpu" = ia64; then
  7098. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7099. allow_undefined_flag="-z nodefs"
  7100. 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"
  7101. else
  7102. # Determine the default libpath from the value encoded in an empty executable.
  7103. cat >conftest.$ac_ext <<_ACEOF
  7104. /* confdefs.h. */
  7105. _ACEOF
  7106. cat confdefs.h >>conftest.$ac_ext
  7107. cat >>conftest.$ac_ext <<_ACEOF
  7108. /* end confdefs.h. */
  7109. int
  7110. main ()
  7111. {
  7112. ;
  7113. return 0;
  7114. }
  7115. _ACEOF
  7116. rm -f conftest.$ac_objext conftest$ac_exeext
  7117. if { (ac_try="$ac_link"
  7118. case "(($ac_try" in
  7119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7120. *) ac_try_echo=$ac_try;;
  7121. esac
  7122. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7123. (eval "$ac_link") 2>conftest.er1
  7124. ac_status=$?
  7125. grep -v '^ *+' conftest.er1 >conftest.err
  7126. rm -f conftest.er1
  7127. cat conftest.err >&5
  7128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7129. (exit $ac_status); } && {
  7130. test -z "$ac_c_werror_flag" ||
  7131. test ! -s conftest.err
  7132. } && test -s conftest$ac_exeext &&
  7133. $as_test_x conftest$ac_exeext; then
  7134. lt_aix_libpath_sed='
  7135. /Import File Strings/,/^$/ {
  7136. /^0/ {
  7137. s/^0 *\(.*\)$/\1/
  7138. p
  7139. }
  7140. }'
  7141. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7142. # Check for a 64-bit object if we didn't find anything.
  7143. if test -z "$aix_libpath"; then
  7144. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7145. fi
  7146. else
  7147. echo "$as_me: failed program was:" >&5
  7148. sed 's/^/| /' conftest.$ac_ext >&5
  7149. fi
  7150. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7151. conftest$ac_exeext conftest.$ac_ext
  7152. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7153. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7154. # Warning - without using the other run time loading flags,
  7155. # -berok will link without error, but may produce a broken library.
  7156. no_undefined_flag=' ${wl}-bernotok'
  7157. allow_undefined_flag=' ${wl}-berok'
  7158. # Exported symbols can be pulled into shared objects from archives
  7159. whole_archive_flag_spec='$convenience'
  7160. archive_cmds_need_lc=yes
  7161. # This is similar to how AIX traditionally builds its shared libraries.
  7162. 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'
  7163. fi
  7164. fi
  7165. ;;
  7166. amigaos*)
  7167. 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)'
  7168. hardcode_libdir_flag_spec='-L$libdir'
  7169. hardcode_minus_L=yes
  7170. # see comment about different semantics on the GNU ld section
  7171. ld_shlibs=no
  7172. ;;
  7173. bsdi[45]*)
  7174. export_dynamic_flag_spec=-rdynamic
  7175. ;;
  7176. cygwin* | mingw* | pw32*)
  7177. # When not using gcc, we currently assume that we are using
  7178. # Microsoft Visual C++.
  7179. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7180. # no search path for DLLs.
  7181. hardcode_libdir_flag_spec=' '
  7182. allow_undefined_flag=unsupported
  7183. # Tell ltmain to make .lib files, not .a files.
  7184. libext=lib
  7185. # Tell ltmain to make .dll files, not .so files.
  7186. shrext_cmds=".dll"
  7187. # FIXME: Setting linknames here is a bad hack.
  7188. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7189. # The linker will automatically build a .lib file if we build a DLL.
  7190. old_archive_From_new_cmds='true'
  7191. # FIXME: Should let the user specify the lib program.
  7192. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7193. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7194. enable_shared_with_static_runtimes=yes
  7195. ;;
  7196. darwin* | rhapsody*)
  7197. case $host_os in
  7198. rhapsody* | darwin1.[012])
  7199. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7200. ;;
  7201. *) # Darwin 1.3 on
  7202. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7203. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7204. else
  7205. case ${MACOSX_DEPLOYMENT_TARGET} in
  7206. 10.[012])
  7207. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7208. ;;
  7209. 10.*)
  7210. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7211. ;;
  7212. esac
  7213. fi
  7214. ;;
  7215. esac
  7216. archive_cmds_need_lc=no
  7217. hardcode_direct=no
  7218. hardcode_automatic=yes
  7219. hardcode_shlibpath_var=unsupported
  7220. whole_archive_flag_spec=''
  7221. link_all_deplibs=yes
  7222. if test "$GCC" = yes ; then
  7223. output_verbose_link_cmd='echo'
  7224. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7225. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7226. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7227. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7228. else
  7229. case $cc_basename in
  7230. xlc*)
  7231. output_verbose_link_cmd='echo'
  7232. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  7233. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7234. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7235. 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}'
  7236. 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}'
  7237. ;;
  7238. *)
  7239. ld_shlibs=no
  7240. ;;
  7241. esac
  7242. fi
  7243. ;;
  7244. dgux*)
  7245. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7246. hardcode_libdir_flag_spec='-L$libdir'
  7247. hardcode_shlibpath_var=no
  7248. ;;
  7249. freebsd1*)
  7250. ld_shlibs=no
  7251. ;;
  7252. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7253. # support. Future versions do this automatically, but an explicit c++rt0.o
  7254. # does not break anything, and helps significantly (at the cost of a little
  7255. # extra space).
  7256. freebsd2.2*)
  7257. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7258. hardcode_libdir_flag_spec='-R$libdir'
  7259. hardcode_direct=yes
  7260. hardcode_shlibpath_var=no
  7261. ;;
  7262. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7263. freebsd2*)
  7264. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7265. hardcode_direct=yes
  7266. hardcode_minus_L=yes
  7267. hardcode_shlibpath_var=no
  7268. ;;
  7269. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7270. freebsd* | dragonfly*)
  7271. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7272. hardcode_libdir_flag_spec='-R$libdir'
  7273. hardcode_direct=yes
  7274. hardcode_shlibpath_var=no
  7275. ;;
  7276. hpux9*)
  7277. if test "$GCC" = yes; then
  7278. 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'
  7279. else
  7280. 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'
  7281. fi
  7282. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7283. hardcode_libdir_separator=:
  7284. hardcode_direct=yes
  7285. # hardcode_minus_L: Not really in the search PATH,
  7286. # but as the default location of the library.
  7287. hardcode_minus_L=yes
  7288. export_dynamic_flag_spec='${wl}-E'
  7289. ;;
  7290. hpux10*)
  7291. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7292. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7293. else
  7294. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7295. fi
  7296. if test "$with_gnu_ld" = no; then
  7297. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7298. hardcode_libdir_separator=:
  7299. hardcode_direct=yes
  7300. export_dynamic_flag_spec='${wl}-E'
  7301. # hardcode_minus_L: Not really in the search PATH,
  7302. # but as the default location of the library.
  7303. hardcode_minus_L=yes
  7304. fi
  7305. ;;
  7306. hpux11*)
  7307. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7308. case $host_cpu in
  7309. hppa*64*)
  7310. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7311. ;;
  7312. ia64*)
  7313. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7314. ;;
  7315. *)
  7316. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7317. ;;
  7318. esac
  7319. else
  7320. case $host_cpu in
  7321. hppa*64*)
  7322. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7323. ;;
  7324. ia64*)
  7325. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7326. ;;
  7327. *)
  7328. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7329. ;;
  7330. esac
  7331. fi
  7332. if test "$with_gnu_ld" = no; then
  7333. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7334. hardcode_libdir_separator=:
  7335. case $host_cpu in
  7336. hppa*64*|ia64*)
  7337. hardcode_libdir_flag_spec_ld='+b $libdir'
  7338. hardcode_direct=no
  7339. hardcode_shlibpath_var=no
  7340. ;;
  7341. *)
  7342. hardcode_direct=yes
  7343. export_dynamic_flag_spec='${wl}-E'
  7344. # hardcode_minus_L: Not really in the search PATH,
  7345. # but as the default location of the library.
  7346. hardcode_minus_L=yes
  7347. ;;
  7348. esac
  7349. fi
  7350. ;;
  7351. irix5* | irix6* | nonstopux*)
  7352. if test "$GCC" = yes; then
  7353. 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'
  7354. else
  7355. 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'
  7356. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7357. fi
  7358. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7359. hardcode_libdir_separator=:
  7360. link_all_deplibs=yes
  7361. ;;
  7362. netbsd* | netbsdelf*-gnu)
  7363. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7364. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7365. else
  7366. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7367. fi
  7368. hardcode_libdir_flag_spec='-R$libdir'
  7369. hardcode_direct=yes
  7370. hardcode_shlibpath_var=no
  7371. ;;
  7372. newsos6)
  7373. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7374. hardcode_direct=yes
  7375. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7376. hardcode_libdir_separator=:
  7377. hardcode_shlibpath_var=no
  7378. ;;
  7379. openbsd*)
  7380. if test -f /usr/libexec/ld.so; then
  7381. hardcode_direct=yes
  7382. hardcode_shlibpath_var=no
  7383. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7384. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7385. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7386. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7387. export_dynamic_flag_spec='${wl}-E'
  7388. else
  7389. case $host_os in
  7390. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7391. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7392. hardcode_libdir_flag_spec='-R$libdir'
  7393. ;;
  7394. *)
  7395. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7396. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7397. ;;
  7398. esac
  7399. fi
  7400. else
  7401. ld_shlibs=no
  7402. fi
  7403. ;;
  7404. os2*)
  7405. hardcode_libdir_flag_spec='-L$libdir'
  7406. hardcode_minus_L=yes
  7407. allow_undefined_flag=unsupported
  7408. 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'
  7409. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7410. ;;
  7411. osf3*)
  7412. if test "$GCC" = yes; then
  7413. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7414. 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'
  7415. else
  7416. allow_undefined_flag=' -expect_unresolved \*'
  7417. 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'
  7418. fi
  7419. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7420. hardcode_libdir_separator=:
  7421. ;;
  7422. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7423. if test "$GCC" = yes; then
  7424. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7425. 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'
  7426. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7427. else
  7428. allow_undefined_flag=' -expect_unresolved \*'
  7429. 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'
  7430. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7431. $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'
  7432. # Both c and cxx compiler support -rpath directly
  7433. hardcode_libdir_flag_spec='-rpath $libdir'
  7434. fi
  7435. hardcode_libdir_separator=:
  7436. ;;
  7437. solaris*)
  7438. no_undefined_flag=' -z text'
  7439. if test "$GCC" = yes; then
  7440. wlarc='${wl}'
  7441. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7442. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7443. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7444. else
  7445. wlarc=''
  7446. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7447. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7448. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7449. fi
  7450. hardcode_libdir_flag_spec='-R$libdir'
  7451. hardcode_shlibpath_var=no
  7452. case $host_os in
  7453. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7454. *)
  7455. # The compiler driver will combine and reorder linker options,
  7456. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7457. # but is careful enough not to reorder.
  7458. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7459. if test "$GCC" = yes; then
  7460. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7461. else
  7462. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7463. fi
  7464. ;;
  7465. esac
  7466. link_all_deplibs=yes
  7467. ;;
  7468. sunos4*)
  7469. if test "x$host_vendor" = xsequent; then
  7470. # Use $CC to link under sequent, because it throws in some extra .o
  7471. # files that make .init and .fini sections work.
  7472. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7473. else
  7474. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7475. fi
  7476. hardcode_libdir_flag_spec='-L$libdir'
  7477. hardcode_direct=yes
  7478. hardcode_minus_L=yes
  7479. hardcode_shlibpath_var=no
  7480. ;;
  7481. sysv4)
  7482. case $host_vendor in
  7483. sni)
  7484. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7485. hardcode_direct=yes # is this really true???
  7486. ;;
  7487. siemens)
  7488. ## LD is ld it makes a PLAMLIB
  7489. ## CC just makes a GrossModule.
  7490. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7491. reload_cmds='$CC -r -o $output$reload_objs'
  7492. hardcode_direct=no
  7493. ;;
  7494. motorola)
  7495. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7496. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7497. ;;
  7498. esac
  7499. runpath_var='LD_RUN_PATH'
  7500. hardcode_shlibpath_var=no
  7501. ;;
  7502. sysv4.3*)
  7503. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7504. hardcode_shlibpath_var=no
  7505. export_dynamic_flag_spec='-Bexport'
  7506. ;;
  7507. sysv4*MP*)
  7508. if test -d /usr/nec; then
  7509. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7510. hardcode_shlibpath_var=no
  7511. runpath_var=LD_RUN_PATH
  7512. hardcode_runpath_var=yes
  7513. ld_shlibs=yes
  7514. fi
  7515. ;;
  7516. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7517. no_undefined_flag='${wl}-z,text'
  7518. archive_cmds_need_lc=no
  7519. hardcode_shlibpath_var=no
  7520. runpath_var='LD_RUN_PATH'
  7521. if test "$GCC" = yes; then
  7522. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7523. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7524. else
  7525. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7526. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7527. fi
  7528. ;;
  7529. sysv5* | sco3.2v5* | sco5v6*)
  7530. # Note: We can NOT use -z defs as we might desire, because we do not
  7531. # link with -lc, and that would cause any symbols used from libc to
  7532. # always be unresolved, which means just about no library would
  7533. # ever link correctly. If we're not using GNU ld we use -z text
  7534. # though, which does catch some bad symbols but isn't as heavy-handed
  7535. # as -z defs.
  7536. no_undefined_flag='${wl}-z,text'
  7537. allow_undefined_flag='${wl}-z,nodefs'
  7538. archive_cmds_need_lc=no
  7539. hardcode_shlibpath_var=no
  7540. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7541. hardcode_libdir_separator=':'
  7542. link_all_deplibs=yes
  7543. export_dynamic_flag_spec='${wl}-Bexport'
  7544. runpath_var='LD_RUN_PATH'
  7545. if test "$GCC" = yes; then
  7546. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7547. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7548. else
  7549. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7550. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7551. fi
  7552. ;;
  7553. uts4*)
  7554. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7555. hardcode_libdir_flag_spec='-L$libdir'
  7556. hardcode_shlibpath_var=no
  7557. ;;
  7558. *)
  7559. ld_shlibs=no
  7560. ;;
  7561. esac
  7562. fi
  7563. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7564. echo "${ECHO_T}$ld_shlibs" >&6; }
  7565. test "$ld_shlibs" = no && can_build_shared=no
  7566. #
  7567. # Do we need to explicitly link libc?
  7568. #
  7569. case "x$archive_cmds_need_lc" in
  7570. x|xyes)
  7571. # Assume -lc should be added
  7572. archive_cmds_need_lc=yes
  7573. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7574. case $archive_cmds in
  7575. *'~'*)
  7576. # FIXME: we may have to deal with multi-command sequences.
  7577. ;;
  7578. '$CC '*)
  7579. # Test whether the compiler implicitly links with -lc since on some
  7580. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7581. # to ld, don't add -lc before -lgcc.
  7582. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7583. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7584. $rm conftest*
  7585. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7586. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7587. (eval $ac_compile) 2>&5
  7588. ac_status=$?
  7589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7590. (exit $ac_status); } 2>conftest.err; then
  7591. soname=conftest
  7592. lib=conftest
  7593. libobjs=conftest.$ac_objext
  7594. deplibs=
  7595. wl=$lt_prog_compiler_wl
  7596. pic_flag=$lt_prog_compiler_pic
  7597. compiler_flags=-v
  7598. linker_flags=-v
  7599. verstring=
  7600. output_objdir=.
  7601. libname=conftest
  7602. lt_save_allow_undefined_flag=$allow_undefined_flag
  7603. allow_undefined_flag=
  7604. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7605. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7606. ac_status=$?
  7607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7608. (exit $ac_status); }
  7609. then
  7610. archive_cmds_need_lc=no
  7611. else
  7612. archive_cmds_need_lc=yes
  7613. fi
  7614. allow_undefined_flag=$lt_save_allow_undefined_flag
  7615. else
  7616. cat conftest.err 1>&5
  7617. fi
  7618. $rm conftest*
  7619. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7620. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7621. ;;
  7622. esac
  7623. fi
  7624. ;;
  7625. esac
  7626. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7627. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7628. library_names_spec=
  7629. libname_spec='lib$name'
  7630. soname_spec=
  7631. shrext_cmds=".so"
  7632. postinstall_cmds=
  7633. postuninstall_cmds=
  7634. finish_cmds=
  7635. finish_eval=
  7636. shlibpath_var=
  7637. shlibpath_overrides_runpath=unknown
  7638. version_type=none
  7639. dynamic_linker="$host_os ld.so"
  7640. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7641. if test "$GCC" = yes; then
  7642. case $host_os in
  7643. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7644. *) lt_awk_arg="/^libraries:/" ;;
  7645. esac
  7646. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7647. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  7648. # if the path contains ";" then we assume it to be the separator
  7649. # otherwise default to the standard path separator (i.e. ":") - it is
  7650. # assumed that no part of a normal pathname contains ";" but that should
  7651. # okay in the real world where ";" in dirpaths is itself problematic.
  7652. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7653. else
  7654. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7655. fi
  7656. # Ok, now we have the path, separated by spaces, we can step through it
  7657. # and add multilib dir if necessary.
  7658. lt_tmp_lt_search_path_spec=
  7659. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7660. for lt_sys_path in $lt_search_path_spec; do
  7661. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7662. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7663. else
  7664. test -d "$lt_sys_path" && \
  7665. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7666. fi
  7667. done
  7668. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  7669. BEGIN {RS=" "; FS="/|\n";} {
  7670. lt_foo="";
  7671. lt_count=0;
  7672. for (lt_i = NF; lt_i > 0; lt_i--) {
  7673. if ($lt_i != "" && $lt_i != ".") {
  7674. if ($lt_i == "..") {
  7675. lt_count++;
  7676. } else {
  7677. if (lt_count == 0) {
  7678. lt_foo="/" $lt_i lt_foo;
  7679. } else {
  7680. lt_count--;
  7681. }
  7682. }
  7683. }
  7684. }
  7685. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7686. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7687. }'`
  7688. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  7689. else
  7690. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7691. fi
  7692. need_lib_prefix=unknown
  7693. hardcode_into_libs=no
  7694. # when you set need_version to no, make sure it does not cause -set_version
  7695. # flags to be left without arguments
  7696. need_version=unknown
  7697. case $host_os in
  7698. aix3*)
  7699. version_type=linux
  7700. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7701. shlibpath_var=LIBPATH
  7702. # AIX 3 has no versioning support, so we append a major version to the name.
  7703. soname_spec='${libname}${release}${shared_ext}$major'
  7704. ;;
  7705. aix[4-9]*)
  7706. version_type=linux
  7707. need_lib_prefix=no
  7708. need_version=no
  7709. hardcode_into_libs=yes
  7710. if test "$host_cpu" = ia64; then
  7711. # AIX 5 supports IA64
  7712. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7713. shlibpath_var=LD_LIBRARY_PATH
  7714. else
  7715. # With GCC up to 2.95.x, collect2 would create an import file
  7716. # for dependence libraries. The import file would start with
  7717. # the line `#! .'. This would cause the generated library to
  7718. # depend on `.', always an invalid library. This was fixed in
  7719. # development snapshots of GCC prior to 3.0.
  7720. case $host_os in
  7721. aix4 | aix4.[01] | aix4.[01].*)
  7722. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7723. echo ' yes '
  7724. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7725. :
  7726. else
  7727. can_build_shared=no
  7728. fi
  7729. ;;
  7730. esac
  7731. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7732. # soname into executable. Probably we can add versioning support to
  7733. # collect2, so additional links can be useful in future.
  7734. if test "$aix_use_runtimelinking" = yes; then
  7735. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7736. # instead of lib<name>.a to let people know that these are not
  7737. # typical AIX shared libraries.
  7738. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7739. else
  7740. # We preserve .a as extension for shared libraries through AIX4.2
  7741. # and later when we are not doing run time linking.
  7742. library_names_spec='${libname}${release}.a $libname.a'
  7743. soname_spec='${libname}${release}${shared_ext}$major'
  7744. fi
  7745. shlibpath_var=LIBPATH
  7746. fi
  7747. ;;
  7748. amigaos*)
  7749. library_names_spec='$libname.ixlibrary $libname.a'
  7750. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7751. 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'
  7752. ;;
  7753. beos*)
  7754. library_names_spec='${libname}${shared_ext}'
  7755. dynamic_linker="$host_os ld.so"
  7756. shlibpath_var=LIBRARY_PATH
  7757. ;;
  7758. bsdi[45]*)
  7759. version_type=linux
  7760. need_version=no
  7761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7762. soname_spec='${libname}${release}${shared_ext}$major'
  7763. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7764. shlibpath_var=LD_LIBRARY_PATH
  7765. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7766. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7767. # the default ld.so.conf also contains /usr/contrib/lib and
  7768. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7769. # libtool to hard-code these into programs
  7770. ;;
  7771. cygwin* | mingw* | pw32*)
  7772. version_type=windows
  7773. shrext_cmds=".dll"
  7774. need_version=no
  7775. need_lib_prefix=no
  7776. case $GCC,$host_os in
  7777. yes,cygwin* | yes,mingw* | yes,pw32*)
  7778. library_names_spec='$libname.dll.a'
  7779. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7780. postinstall_cmds='base_file=`basename \${file}`~
  7781. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7782. dldir=$destdir/`dirname \$dlpath`~
  7783. test -d \$dldir || mkdir -p \$dldir~
  7784. $install_prog $dir/$dlname \$dldir/$dlname~
  7785. chmod a+x \$dldir/$dlname'
  7786. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7787. dlpath=$dir/\$dldll~
  7788. $rm \$dlpath'
  7789. shlibpath_overrides_runpath=yes
  7790. case $host_os in
  7791. cygwin*)
  7792. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7793. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7794. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7795. ;;
  7796. mingw*)
  7797. # MinGW DLLs use traditional 'lib' prefix
  7798. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7799. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7800. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7801. # It is most probably a Windows format PATH printed by
  7802. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7803. # path with ; separators, and with drive letters. We can handle the
  7804. # drive letters (cygwin fileutils understands them), so leave them,
  7805. # especially as we might pass files found there to a mingw objdump,
  7806. # which wouldn't understand a cygwinified path. Ahh.
  7807. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7808. else
  7809. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7810. fi
  7811. ;;
  7812. pw32*)
  7813. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7814. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7815. ;;
  7816. esac
  7817. ;;
  7818. *)
  7819. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7820. ;;
  7821. esac
  7822. dynamic_linker='Win32 ld.exe'
  7823. # FIXME: first we should search . and the directory the executable is in
  7824. shlibpath_var=PATH
  7825. ;;
  7826. darwin* | rhapsody*)
  7827. dynamic_linker="$host_os dyld"
  7828. version_type=darwin
  7829. need_lib_prefix=no
  7830. need_version=no
  7831. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7832. soname_spec='${libname}${release}${major}$shared_ext'
  7833. shlibpath_overrides_runpath=yes
  7834. shlibpath_var=DYLD_LIBRARY_PATH
  7835. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7836. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  7837. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7838. ;;
  7839. dgux*)
  7840. version_type=linux
  7841. need_lib_prefix=no
  7842. need_version=no
  7843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7844. soname_spec='${libname}${release}${shared_ext}$major'
  7845. shlibpath_var=LD_LIBRARY_PATH
  7846. ;;
  7847. freebsd1*)
  7848. dynamic_linker=no
  7849. ;;
  7850. freebsd* | dragonfly*)
  7851. # DragonFly does not have aout. When/if they implement a new
  7852. # versioning mechanism, adjust this.
  7853. if test -x /usr/bin/objformat; then
  7854. objformat=`/usr/bin/objformat`
  7855. else
  7856. case $host_os in
  7857. freebsd[123]*) objformat=aout ;;
  7858. *) objformat=elf ;;
  7859. esac
  7860. fi
  7861. version_type=freebsd-$objformat
  7862. case $version_type in
  7863. freebsd-elf*)
  7864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7865. need_version=no
  7866. need_lib_prefix=no
  7867. ;;
  7868. freebsd-*)
  7869. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7870. need_version=yes
  7871. ;;
  7872. esac
  7873. shlibpath_var=LD_LIBRARY_PATH
  7874. case $host_os in
  7875. freebsd2*)
  7876. shlibpath_overrides_runpath=yes
  7877. ;;
  7878. freebsd3.[01]* | freebsdelf3.[01]*)
  7879. shlibpath_overrides_runpath=yes
  7880. hardcode_into_libs=yes
  7881. ;;
  7882. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7883. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7884. shlibpath_overrides_runpath=no
  7885. hardcode_into_libs=yes
  7886. ;;
  7887. *) # from 4.6 on, and DragonFly
  7888. shlibpath_overrides_runpath=yes
  7889. hardcode_into_libs=yes
  7890. ;;
  7891. esac
  7892. ;;
  7893. gnu*)
  7894. version_type=linux
  7895. need_lib_prefix=no
  7896. need_version=no
  7897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7898. soname_spec='${libname}${release}${shared_ext}$major'
  7899. shlibpath_var=LD_LIBRARY_PATH
  7900. hardcode_into_libs=yes
  7901. ;;
  7902. hpux9* | hpux10* | hpux11*)
  7903. # Give a soname corresponding to the major version so that dld.sl refuses to
  7904. # link against other versions.
  7905. version_type=sunos
  7906. need_lib_prefix=no
  7907. need_version=no
  7908. case $host_cpu in
  7909. ia64*)
  7910. shrext_cmds='.so'
  7911. hardcode_into_libs=yes
  7912. dynamic_linker="$host_os dld.so"
  7913. shlibpath_var=LD_LIBRARY_PATH
  7914. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7916. soname_spec='${libname}${release}${shared_ext}$major'
  7917. if test "X$HPUX_IA64_MODE" = X32; then
  7918. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7919. else
  7920. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7921. fi
  7922. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7923. ;;
  7924. hppa*64*)
  7925. shrext_cmds='.sl'
  7926. hardcode_into_libs=yes
  7927. dynamic_linker="$host_os dld.sl"
  7928. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7929. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7930. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7931. soname_spec='${libname}${release}${shared_ext}$major'
  7932. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7933. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7934. ;;
  7935. *)
  7936. shrext_cmds='.sl'
  7937. dynamic_linker="$host_os dld.sl"
  7938. shlibpath_var=SHLIB_PATH
  7939. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7941. soname_spec='${libname}${release}${shared_ext}$major'
  7942. ;;
  7943. esac
  7944. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7945. postinstall_cmds='chmod 555 $lib'
  7946. ;;
  7947. interix[3-9]*)
  7948. version_type=linux
  7949. need_lib_prefix=no
  7950. need_version=no
  7951. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7952. soname_spec='${libname}${release}${shared_ext}$major'
  7953. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7954. shlibpath_var=LD_LIBRARY_PATH
  7955. shlibpath_overrides_runpath=no
  7956. hardcode_into_libs=yes
  7957. ;;
  7958. irix5* | irix6* | nonstopux*)
  7959. case $host_os in
  7960. nonstopux*) version_type=nonstopux ;;
  7961. *)
  7962. if test "$lt_cv_prog_gnu_ld" = yes; then
  7963. version_type=linux
  7964. else
  7965. version_type=irix
  7966. fi ;;
  7967. esac
  7968. need_lib_prefix=no
  7969. need_version=no
  7970. soname_spec='${libname}${release}${shared_ext}$major'
  7971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7972. case $host_os in
  7973. irix5* | nonstopux*)
  7974. libsuff= shlibsuff=
  7975. ;;
  7976. *)
  7977. case $LD in # libtool.m4 will add one of these switches to LD
  7978. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7979. libsuff= shlibsuff= libmagic=32-bit;;
  7980. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7981. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7982. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7983. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7984. *) libsuff= shlibsuff= libmagic=never-match;;
  7985. esac
  7986. ;;
  7987. esac
  7988. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7989. shlibpath_overrides_runpath=no
  7990. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7991. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7992. hardcode_into_libs=yes
  7993. ;;
  7994. # No shared lib support for Linux oldld, aout, or coff.
  7995. linux*oldld* | linux*aout* | linux*coff*)
  7996. dynamic_linker=no
  7997. ;;
  7998. # This must be Linux ELF.
  7999. linux* | k*bsd*-gnu)
  8000. version_type=linux
  8001. need_lib_prefix=no
  8002. need_version=no
  8003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8004. soname_spec='${libname}${release}${shared_ext}$major'
  8005. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8006. shlibpath_var=LD_LIBRARY_PATH
  8007. shlibpath_overrides_runpath=no
  8008. # This implies no fast_install, which is unacceptable.
  8009. # Some rework will be needed to allow for fast_install
  8010. # before this can be enabled.
  8011. hardcode_into_libs=yes
  8012. # Append ld.so.conf contents to the search path
  8013. if test -f /etc/ld.so.conf; then
  8014. 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' ' '`
  8015. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8016. fi
  8017. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8018. # powerpc, because MkLinux only supported shared libraries with the
  8019. # GNU dynamic linker. Since this was broken with cross compilers,
  8020. # most powerpc-linux boxes support dynamic linking these days and
  8021. # people can always --disable-shared, the test was removed, and we
  8022. # assume the GNU/Linux dynamic linker is in use.
  8023. dynamic_linker='GNU/Linux ld.so'
  8024. ;;
  8025. netbsdelf*-gnu)
  8026. version_type=linux
  8027. need_lib_prefix=no
  8028. need_version=no
  8029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8030. soname_spec='${libname}${release}${shared_ext}$major'
  8031. shlibpath_var=LD_LIBRARY_PATH
  8032. shlibpath_overrides_runpath=no
  8033. hardcode_into_libs=yes
  8034. dynamic_linker='NetBSD ld.elf_so'
  8035. ;;
  8036. netbsd*)
  8037. version_type=sunos
  8038. need_lib_prefix=no
  8039. need_version=no
  8040. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8042. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8043. dynamic_linker='NetBSD (a.out) ld.so'
  8044. else
  8045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8046. soname_spec='${libname}${release}${shared_ext}$major'
  8047. dynamic_linker='NetBSD ld.elf_so'
  8048. fi
  8049. shlibpath_var=LD_LIBRARY_PATH
  8050. shlibpath_overrides_runpath=yes
  8051. hardcode_into_libs=yes
  8052. ;;
  8053. newsos6)
  8054. version_type=linux
  8055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8056. shlibpath_var=LD_LIBRARY_PATH
  8057. shlibpath_overrides_runpath=yes
  8058. ;;
  8059. nto-qnx*)
  8060. version_type=linux
  8061. need_lib_prefix=no
  8062. need_version=no
  8063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8064. soname_spec='${libname}${release}${shared_ext}$major'
  8065. shlibpath_var=LD_LIBRARY_PATH
  8066. shlibpath_overrides_runpath=yes
  8067. ;;
  8068. openbsd*)
  8069. version_type=sunos
  8070. sys_lib_dlsearch_path_spec="/usr/lib"
  8071. need_lib_prefix=no
  8072. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8073. case $host_os in
  8074. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8075. *) need_version=no ;;
  8076. esac
  8077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8078. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8079. shlibpath_var=LD_LIBRARY_PATH
  8080. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8081. case $host_os in
  8082. openbsd2.[89] | openbsd2.[89].*)
  8083. shlibpath_overrides_runpath=no
  8084. ;;
  8085. *)
  8086. shlibpath_overrides_runpath=yes
  8087. ;;
  8088. esac
  8089. else
  8090. shlibpath_overrides_runpath=yes
  8091. fi
  8092. ;;
  8093. os2*)
  8094. libname_spec='$name'
  8095. shrext_cmds=".dll"
  8096. need_lib_prefix=no
  8097. library_names_spec='$libname${shared_ext} $libname.a'
  8098. dynamic_linker='OS/2 ld.exe'
  8099. shlibpath_var=LIBPATH
  8100. ;;
  8101. osf3* | osf4* | osf5*)
  8102. version_type=osf
  8103. need_lib_prefix=no
  8104. need_version=no
  8105. soname_spec='${libname}${release}${shared_ext}$major'
  8106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8107. shlibpath_var=LD_LIBRARY_PATH
  8108. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8109. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8110. ;;
  8111. rdos*)
  8112. dynamic_linker=no
  8113. ;;
  8114. solaris*)
  8115. version_type=linux
  8116. need_lib_prefix=no
  8117. need_version=no
  8118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8119. soname_spec='${libname}${release}${shared_ext}$major'
  8120. shlibpath_var=LD_LIBRARY_PATH
  8121. shlibpath_overrides_runpath=yes
  8122. hardcode_into_libs=yes
  8123. # ldd complains unless libraries are executable
  8124. postinstall_cmds='chmod +x $lib'
  8125. ;;
  8126. sunos4*)
  8127. version_type=sunos
  8128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8129. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8130. shlibpath_var=LD_LIBRARY_PATH
  8131. shlibpath_overrides_runpath=yes
  8132. if test "$with_gnu_ld" = yes; then
  8133. need_lib_prefix=no
  8134. fi
  8135. need_version=yes
  8136. ;;
  8137. sysv4 | sysv4.3*)
  8138. version_type=linux
  8139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8140. soname_spec='${libname}${release}${shared_ext}$major'
  8141. shlibpath_var=LD_LIBRARY_PATH
  8142. case $host_vendor in
  8143. sni)
  8144. shlibpath_overrides_runpath=no
  8145. need_lib_prefix=no
  8146. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8147. runpath_var=LD_RUN_PATH
  8148. ;;
  8149. siemens)
  8150. need_lib_prefix=no
  8151. ;;
  8152. motorola)
  8153. need_lib_prefix=no
  8154. need_version=no
  8155. shlibpath_overrides_runpath=no
  8156. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8157. ;;
  8158. esac
  8159. ;;
  8160. sysv4*MP*)
  8161. if test -d /usr/nec ;then
  8162. version_type=linux
  8163. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8164. soname_spec='$libname${shared_ext}.$major'
  8165. shlibpath_var=LD_LIBRARY_PATH
  8166. fi
  8167. ;;
  8168. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8169. version_type=freebsd-elf
  8170. need_lib_prefix=no
  8171. need_version=no
  8172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8173. soname_spec='${libname}${release}${shared_ext}$major'
  8174. shlibpath_var=LD_LIBRARY_PATH
  8175. hardcode_into_libs=yes
  8176. if test "$with_gnu_ld" = yes; then
  8177. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8178. shlibpath_overrides_runpath=no
  8179. else
  8180. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8181. shlibpath_overrides_runpath=yes
  8182. case $host_os in
  8183. sco3.2v5*)
  8184. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8185. ;;
  8186. esac
  8187. fi
  8188. sys_lib_dlsearch_path_spec='/usr/lib'
  8189. ;;
  8190. uts4*)
  8191. version_type=linux
  8192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8193. soname_spec='${libname}${release}${shared_ext}$major'
  8194. shlibpath_var=LD_LIBRARY_PATH
  8195. ;;
  8196. *)
  8197. dynamic_linker=no
  8198. ;;
  8199. esac
  8200. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8201. echo "${ECHO_T}$dynamic_linker" >&6; }
  8202. test "$dynamic_linker" = no && can_build_shared=no
  8203. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8204. echo $ECHO_N "(cached) $ECHO_C" >&6
  8205. else
  8206. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  8207. fi
  8208. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8209. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8210. echo $ECHO_N "(cached) $ECHO_C" >&6
  8211. else
  8212. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  8213. fi
  8214. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8215. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8216. if test "$GCC" = yes; then
  8217. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8218. fi
  8219. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8220. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8221. hardcode_action=
  8222. if test -n "$hardcode_libdir_flag_spec" || \
  8223. test -n "$runpath_var" || \
  8224. test "X$hardcode_automatic" = "Xyes" ; then
  8225. # We can hardcode non-existant directories.
  8226. if test "$hardcode_direct" != no &&
  8227. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8228. # have to relink, otherwise we might link with an installed library
  8229. # when we should be linking with a yet-to-be-installed one
  8230. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8231. test "$hardcode_minus_L" != no; then
  8232. # Linking always hardcodes the temporary library directory.
  8233. hardcode_action=relink
  8234. else
  8235. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8236. hardcode_action=immediate
  8237. fi
  8238. else
  8239. # We cannot hardcode anything, or else we can only hardcode existing
  8240. # directories.
  8241. hardcode_action=unsupported
  8242. fi
  8243. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8244. echo "${ECHO_T}$hardcode_action" >&6; }
  8245. if test "$hardcode_action" = relink; then
  8246. # Fast installation is not supported
  8247. enable_fast_install=no
  8248. elif test "$shlibpath_overrides_runpath" = yes ||
  8249. test "$enable_shared" = no; then
  8250. # Fast installation is not necessary
  8251. enable_fast_install=needless
  8252. fi
  8253. striplib=
  8254. old_striplib=
  8255. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8256. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8257. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8258. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8259. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8260. { echo "$as_me:$LINENO: result: yes" >&5
  8261. echo "${ECHO_T}yes" >&6; }
  8262. else
  8263. # FIXME - insert some real tests, host_os isn't really good enough
  8264. case $host_os in
  8265. darwin*)
  8266. if test -n "$STRIP" ; then
  8267. striplib="$STRIP -x"
  8268. old_striplib="$STRIP -S"
  8269. { echo "$as_me:$LINENO: result: yes" >&5
  8270. echo "${ECHO_T}yes" >&6; }
  8271. else
  8272. { echo "$as_me:$LINENO: result: no" >&5
  8273. echo "${ECHO_T}no" >&6; }
  8274. fi
  8275. ;;
  8276. *)
  8277. { echo "$as_me:$LINENO: result: no" >&5
  8278. echo "${ECHO_T}no" >&6; }
  8279. ;;
  8280. esac
  8281. fi
  8282. if test "x$enable_dlopen" != xyes; then
  8283. enable_dlopen=unknown
  8284. enable_dlopen_self=unknown
  8285. enable_dlopen_self_static=unknown
  8286. else
  8287. lt_cv_dlopen=no
  8288. lt_cv_dlopen_libs=
  8289. case $host_os in
  8290. beos*)
  8291. lt_cv_dlopen="load_add_on"
  8292. lt_cv_dlopen_libs=
  8293. lt_cv_dlopen_self=yes
  8294. ;;
  8295. mingw* | pw32*)
  8296. lt_cv_dlopen="LoadLibrary"
  8297. lt_cv_dlopen_libs=
  8298. ;;
  8299. cygwin*)
  8300. lt_cv_dlopen="dlopen"
  8301. lt_cv_dlopen_libs=
  8302. ;;
  8303. darwin*)
  8304. # if libdl is installed we need to link against it
  8305. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8306. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8307. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8308. echo $ECHO_N "(cached) $ECHO_C" >&6
  8309. else
  8310. ac_check_lib_save_LIBS=$LIBS
  8311. LIBS="-ldl $LIBS"
  8312. cat >conftest.$ac_ext <<_ACEOF
  8313. /* confdefs.h. */
  8314. _ACEOF
  8315. cat confdefs.h >>conftest.$ac_ext
  8316. cat >>conftest.$ac_ext <<_ACEOF
  8317. /* end confdefs.h. */
  8318. /* Override any GCC internal prototype to avoid an error.
  8319. Use char because int might match the return type of a GCC
  8320. builtin and then its argument prototype would still apply. */
  8321. #ifdef __cplusplus
  8322. extern "C"
  8323. #endif
  8324. char dlopen ();
  8325. int
  8326. main ()
  8327. {
  8328. return dlopen ();
  8329. ;
  8330. return 0;
  8331. }
  8332. _ACEOF
  8333. rm -f conftest.$ac_objext conftest$ac_exeext
  8334. if { (ac_try="$ac_link"
  8335. case "(($ac_try" in
  8336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8337. *) ac_try_echo=$ac_try;;
  8338. esac
  8339. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8340. (eval "$ac_link") 2>conftest.er1
  8341. ac_status=$?
  8342. grep -v '^ *+' conftest.er1 >conftest.err
  8343. rm -f conftest.er1
  8344. cat conftest.err >&5
  8345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8346. (exit $ac_status); } && {
  8347. test -z "$ac_c_werror_flag" ||
  8348. test ! -s conftest.err
  8349. } && test -s conftest$ac_exeext &&
  8350. $as_test_x conftest$ac_exeext; then
  8351. ac_cv_lib_dl_dlopen=yes
  8352. else
  8353. echo "$as_me: failed program was:" >&5
  8354. sed 's/^/| /' conftest.$ac_ext >&5
  8355. ac_cv_lib_dl_dlopen=no
  8356. fi
  8357. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8358. conftest$ac_exeext conftest.$ac_ext
  8359. LIBS=$ac_check_lib_save_LIBS
  8360. fi
  8361. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8362. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8363. if test $ac_cv_lib_dl_dlopen = yes; then
  8364. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8365. else
  8366. lt_cv_dlopen="dyld"
  8367. lt_cv_dlopen_libs=
  8368. lt_cv_dlopen_self=yes
  8369. fi
  8370. ;;
  8371. *)
  8372. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8373. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8374. if test "${ac_cv_func_shl_load+set}" = set; then
  8375. echo $ECHO_N "(cached) $ECHO_C" >&6
  8376. else
  8377. cat >conftest.$ac_ext <<_ACEOF
  8378. /* confdefs.h. */
  8379. _ACEOF
  8380. cat confdefs.h >>conftest.$ac_ext
  8381. cat >>conftest.$ac_ext <<_ACEOF
  8382. /* end confdefs.h. */
  8383. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8384. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8385. #define shl_load innocuous_shl_load
  8386. /* System header to define __stub macros and hopefully few prototypes,
  8387. which can conflict with char shl_load (); below.
  8388. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8389. <limits.h> exists even on freestanding compilers. */
  8390. #ifdef __STDC__
  8391. # include <limits.h>
  8392. #else
  8393. # include <assert.h>
  8394. #endif
  8395. #undef shl_load
  8396. /* Override any GCC internal prototype to avoid an error.
  8397. Use char because int might match the return type of a GCC
  8398. builtin and then its argument prototype would still apply. */
  8399. #ifdef __cplusplus
  8400. extern "C"
  8401. #endif
  8402. char shl_load ();
  8403. /* The GNU C library defines this for functions which it implements
  8404. to always fail with ENOSYS. Some functions are actually named
  8405. something starting with __ and the normal name is an alias. */
  8406. #if defined __stub_shl_load || defined __stub___shl_load
  8407. choke me
  8408. #endif
  8409. int
  8410. main ()
  8411. {
  8412. return shl_load ();
  8413. ;
  8414. return 0;
  8415. }
  8416. _ACEOF
  8417. rm -f conftest.$ac_objext conftest$ac_exeext
  8418. if { (ac_try="$ac_link"
  8419. case "(($ac_try" in
  8420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8421. *) ac_try_echo=$ac_try;;
  8422. esac
  8423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8424. (eval "$ac_link") 2>conftest.er1
  8425. ac_status=$?
  8426. grep -v '^ *+' conftest.er1 >conftest.err
  8427. rm -f conftest.er1
  8428. cat conftest.err >&5
  8429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8430. (exit $ac_status); } && {
  8431. test -z "$ac_c_werror_flag" ||
  8432. test ! -s conftest.err
  8433. } && test -s conftest$ac_exeext &&
  8434. $as_test_x conftest$ac_exeext; then
  8435. ac_cv_func_shl_load=yes
  8436. else
  8437. echo "$as_me: failed program was:" >&5
  8438. sed 's/^/| /' conftest.$ac_ext >&5
  8439. ac_cv_func_shl_load=no
  8440. fi
  8441. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8442. conftest$ac_exeext conftest.$ac_ext
  8443. fi
  8444. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8445. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8446. if test $ac_cv_func_shl_load = yes; then
  8447. lt_cv_dlopen="shl_load"
  8448. else
  8449. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8450. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8451. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8452. echo $ECHO_N "(cached) $ECHO_C" >&6
  8453. else
  8454. ac_check_lib_save_LIBS=$LIBS
  8455. LIBS="-ldld $LIBS"
  8456. cat >conftest.$ac_ext <<_ACEOF
  8457. /* confdefs.h. */
  8458. _ACEOF
  8459. cat confdefs.h >>conftest.$ac_ext
  8460. cat >>conftest.$ac_ext <<_ACEOF
  8461. /* end confdefs.h. */
  8462. /* Override any GCC internal prototype to avoid an error.
  8463. Use char because int might match the return type of a GCC
  8464. builtin and then its argument prototype would still apply. */
  8465. #ifdef __cplusplus
  8466. extern "C"
  8467. #endif
  8468. char shl_load ();
  8469. int
  8470. main ()
  8471. {
  8472. return shl_load ();
  8473. ;
  8474. return 0;
  8475. }
  8476. _ACEOF
  8477. rm -f conftest.$ac_objext conftest$ac_exeext
  8478. if { (ac_try="$ac_link"
  8479. case "(($ac_try" in
  8480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8481. *) ac_try_echo=$ac_try;;
  8482. esac
  8483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8484. (eval "$ac_link") 2>conftest.er1
  8485. ac_status=$?
  8486. grep -v '^ *+' conftest.er1 >conftest.err
  8487. rm -f conftest.er1
  8488. cat conftest.err >&5
  8489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8490. (exit $ac_status); } && {
  8491. test -z "$ac_c_werror_flag" ||
  8492. test ! -s conftest.err
  8493. } && test -s conftest$ac_exeext &&
  8494. $as_test_x conftest$ac_exeext; then
  8495. ac_cv_lib_dld_shl_load=yes
  8496. else
  8497. echo "$as_me: failed program was:" >&5
  8498. sed 's/^/| /' conftest.$ac_ext >&5
  8499. ac_cv_lib_dld_shl_load=no
  8500. fi
  8501. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8502. conftest$ac_exeext conftest.$ac_ext
  8503. LIBS=$ac_check_lib_save_LIBS
  8504. fi
  8505. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8506. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8507. if test $ac_cv_lib_dld_shl_load = yes; then
  8508. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8509. else
  8510. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8511. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8512. if test "${ac_cv_func_dlopen+set}" = set; then
  8513. echo $ECHO_N "(cached) $ECHO_C" >&6
  8514. else
  8515. cat >conftest.$ac_ext <<_ACEOF
  8516. /* confdefs.h. */
  8517. _ACEOF
  8518. cat confdefs.h >>conftest.$ac_ext
  8519. cat >>conftest.$ac_ext <<_ACEOF
  8520. /* end confdefs.h. */
  8521. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8522. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8523. #define dlopen innocuous_dlopen
  8524. /* System header to define __stub macros and hopefully few prototypes,
  8525. which can conflict with char dlopen (); below.
  8526. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8527. <limits.h> exists even on freestanding compilers. */
  8528. #ifdef __STDC__
  8529. # include <limits.h>
  8530. #else
  8531. # include <assert.h>
  8532. #endif
  8533. #undef dlopen
  8534. /* Override any GCC internal prototype to avoid an error.
  8535. Use char because int might match the return type of a GCC
  8536. builtin and then its argument prototype would still apply. */
  8537. #ifdef __cplusplus
  8538. extern "C"
  8539. #endif
  8540. char dlopen ();
  8541. /* The GNU C library defines this for functions which it implements
  8542. to always fail with ENOSYS. Some functions are actually named
  8543. something starting with __ and the normal name is an alias. */
  8544. #if defined __stub_dlopen || defined __stub___dlopen
  8545. choke me
  8546. #endif
  8547. int
  8548. main ()
  8549. {
  8550. return dlopen ();
  8551. ;
  8552. return 0;
  8553. }
  8554. _ACEOF
  8555. rm -f conftest.$ac_objext conftest$ac_exeext
  8556. if { (ac_try="$ac_link"
  8557. case "(($ac_try" in
  8558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8559. *) ac_try_echo=$ac_try;;
  8560. esac
  8561. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8562. (eval "$ac_link") 2>conftest.er1
  8563. ac_status=$?
  8564. grep -v '^ *+' conftest.er1 >conftest.err
  8565. rm -f conftest.er1
  8566. cat conftest.err >&5
  8567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8568. (exit $ac_status); } && {
  8569. test -z "$ac_c_werror_flag" ||
  8570. test ! -s conftest.err
  8571. } && test -s conftest$ac_exeext &&
  8572. $as_test_x conftest$ac_exeext; then
  8573. ac_cv_func_dlopen=yes
  8574. else
  8575. echo "$as_me: failed program was:" >&5
  8576. sed 's/^/| /' conftest.$ac_ext >&5
  8577. ac_cv_func_dlopen=no
  8578. fi
  8579. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8580. conftest$ac_exeext conftest.$ac_ext
  8581. fi
  8582. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8583. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8584. if test $ac_cv_func_dlopen = yes; then
  8585. lt_cv_dlopen="dlopen"
  8586. else
  8587. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8588. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8589. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8590. echo $ECHO_N "(cached) $ECHO_C" >&6
  8591. else
  8592. ac_check_lib_save_LIBS=$LIBS
  8593. LIBS="-ldl $LIBS"
  8594. cat >conftest.$ac_ext <<_ACEOF
  8595. /* confdefs.h. */
  8596. _ACEOF
  8597. cat confdefs.h >>conftest.$ac_ext
  8598. cat >>conftest.$ac_ext <<_ACEOF
  8599. /* end confdefs.h. */
  8600. /* Override any GCC internal prototype to avoid an error.
  8601. Use char because int might match the return type of a GCC
  8602. builtin and then its argument prototype would still apply. */
  8603. #ifdef __cplusplus
  8604. extern "C"
  8605. #endif
  8606. char dlopen ();
  8607. int
  8608. main ()
  8609. {
  8610. return dlopen ();
  8611. ;
  8612. return 0;
  8613. }
  8614. _ACEOF
  8615. rm -f conftest.$ac_objext conftest$ac_exeext
  8616. if { (ac_try="$ac_link"
  8617. case "(($ac_try" in
  8618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8619. *) ac_try_echo=$ac_try;;
  8620. esac
  8621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8622. (eval "$ac_link") 2>conftest.er1
  8623. ac_status=$?
  8624. grep -v '^ *+' conftest.er1 >conftest.err
  8625. rm -f conftest.er1
  8626. cat conftest.err >&5
  8627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8628. (exit $ac_status); } && {
  8629. test -z "$ac_c_werror_flag" ||
  8630. test ! -s conftest.err
  8631. } && test -s conftest$ac_exeext &&
  8632. $as_test_x conftest$ac_exeext; then
  8633. ac_cv_lib_dl_dlopen=yes
  8634. else
  8635. echo "$as_me: failed program was:" >&5
  8636. sed 's/^/| /' conftest.$ac_ext >&5
  8637. ac_cv_lib_dl_dlopen=no
  8638. fi
  8639. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8640. conftest$ac_exeext conftest.$ac_ext
  8641. LIBS=$ac_check_lib_save_LIBS
  8642. fi
  8643. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8644. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8645. if test $ac_cv_lib_dl_dlopen = yes; then
  8646. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8647. else
  8648. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8649. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8650. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8651. echo $ECHO_N "(cached) $ECHO_C" >&6
  8652. else
  8653. ac_check_lib_save_LIBS=$LIBS
  8654. LIBS="-lsvld $LIBS"
  8655. cat >conftest.$ac_ext <<_ACEOF
  8656. /* confdefs.h. */
  8657. _ACEOF
  8658. cat confdefs.h >>conftest.$ac_ext
  8659. cat >>conftest.$ac_ext <<_ACEOF
  8660. /* end confdefs.h. */
  8661. /* Override any GCC internal prototype to avoid an error.
  8662. Use char because int might match the return type of a GCC
  8663. builtin and then its argument prototype would still apply. */
  8664. #ifdef __cplusplus
  8665. extern "C"
  8666. #endif
  8667. char dlopen ();
  8668. int
  8669. main ()
  8670. {
  8671. return dlopen ();
  8672. ;
  8673. return 0;
  8674. }
  8675. _ACEOF
  8676. rm -f conftest.$ac_objext conftest$ac_exeext
  8677. if { (ac_try="$ac_link"
  8678. case "(($ac_try" in
  8679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8680. *) ac_try_echo=$ac_try;;
  8681. esac
  8682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8683. (eval "$ac_link") 2>conftest.er1
  8684. ac_status=$?
  8685. grep -v '^ *+' conftest.er1 >conftest.err
  8686. rm -f conftest.er1
  8687. cat conftest.err >&5
  8688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8689. (exit $ac_status); } && {
  8690. test -z "$ac_c_werror_flag" ||
  8691. test ! -s conftest.err
  8692. } && test -s conftest$ac_exeext &&
  8693. $as_test_x conftest$ac_exeext; then
  8694. ac_cv_lib_svld_dlopen=yes
  8695. else
  8696. echo "$as_me: failed program was:" >&5
  8697. sed 's/^/| /' conftest.$ac_ext >&5
  8698. ac_cv_lib_svld_dlopen=no
  8699. fi
  8700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8701. conftest$ac_exeext conftest.$ac_ext
  8702. LIBS=$ac_check_lib_save_LIBS
  8703. fi
  8704. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8705. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8706. if test $ac_cv_lib_svld_dlopen = yes; then
  8707. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8708. else
  8709. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8710. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8711. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8712. echo $ECHO_N "(cached) $ECHO_C" >&6
  8713. else
  8714. ac_check_lib_save_LIBS=$LIBS
  8715. LIBS="-ldld $LIBS"
  8716. cat >conftest.$ac_ext <<_ACEOF
  8717. /* confdefs.h. */
  8718. _ACEOF
  8719. cat confdefs.h >>conftest.$ac_ext
  8720. cat >>conftest.$ac_ext <<_ACEOF
  8721. /* end confdefs.h. */
  8722. /* Override any GCC internal prototype to avoid an error.
  8723. Use char because int might match the return type of a GCC
  8724. builtin and then its argument prototype would still apply. */
  8725. #ifdef __cplusplus
  8726. extern "C"
  8727. #endif
  8728. char dld_link ();
  8729. int
  8730. main ()
  8731. {
  8732. return dld_link ();
  8733. ;
  8734. return 0;
  8735. }
  8736. _ACEOF
  8737. rm -f conftest.$ac_objext conftest$ac_exeext
  8738. if { (ac_try="$ac_link"
  8739. case "(($ac_try" in
  8740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8741. *) ac_try_echo=$ac_try;;
  8742. esac
  8743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8744. (eval "$ac_link") 2>conftest.er1
  8745. ac_status=$?
  8746. grep -v '^ *+' conftest.er1 >conftest.err
  8747. rm -f conftest.er1
  8748. cat conftest.err >&5
  8749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8750. (exit $ac_status); } && {
  8751. test -z "$ac_c_werror_flag" ||
  8752. test ! -s conftest.err
  8753. } && test -s conftest$ac_exeext &&
  8754. $as_test_x conftest$ac_exeext; then
  8755. ac_cv_lib_dld_dld_link=yes
  8756. else
  8757. echo "$as_me: failed program was:" >&5
  8758. sed 's/^/| /' conftest.$ac_ext >&5
  8759. ac_cv_lib_dld_dld_link=no
  8760. fi
  8761. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8762. conftest$ac_exeext conftest.$ac_ext
  8763. LIBS=$ac_check_lib_save_LIBS
  8764. fi
  8765. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8766. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  8767. if test $ac_cv_lib_dld_dld_link = yes; then
  8768. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8769. fi
  8770. fi
  8771. fi
  8772. fi
  8773. fi
  8774. fi
  8775. ;;
  8776. esac
  8777. if test "x$lt_cv_dlopen" != xno; then
  8778. enable_dlopen=yes
  8779. else
  8780. enable_dlopen=no
  8781. fi
  8782. case $lt_cv_dlopen in
  8783. dlopen)
  8784. save_CPPFLAGS="$CPPFLAGS"
  8785. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8786. save_LDFLAGS="$LDFLAGS"
  8787. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8788. save_LIBS="$LIBS"
  8789. LIBS="$lt_cv_dlopen_libs $LIBS"
  8790. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8791. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  8792. if test "${lt_cv_dlopen_self+set}" = set; then
  8793. echo $ECHO_N "(cached) $ECHO_C" >&6
  8794. else
  8795. if test "$cross_compiling" = yes; then :
  8796. lt_cv_dlopen_self=cross
  8797. else
  8798. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8799. lt_status=$lt_dlunknown
  8800. cat > conftest.$ac_ext <<EOF
  8801. #line 9740 "configure"
  8802. #include "confdefs.h"
  8803. #if HAVE_DLFCN_H
  8804. #include <dlfcn.h>
  8805. #endif
  8806. #include <stdio.h>
  8807. #ifdef RTLD_GLOBAL
  8808. # define LT_DLGLOBAL RTLD_GLOBAL
  8809. #else
  8810. # ifdef DL_GLOBAL
  8811. # define LT_DLGLOBAL DL_GLOBAL
  8812. # else
  8813. # define LT_DLGLOBAL 0
  8814. # endif
  8815. #endif
  8816. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8817. find out it does not work in some platform. */
  8818. #ifndef LT_DLLAZY_OR_NOW
  8819. # ifdef RTLD_LAZY
  8820. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8821. # else
  8822. # ifdef DL_LAZY
  8823. # define LT_DLLAZY_OR_NOW DL_LAZY
  8824. # else
  8825. # ifdef RTLD_NOW
  8826. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8827. # else
  8828. # ifdef DL_NOW
  8829. # define LT_DLLAZY_OR_NOW DL_NOW
  8830. # else
  8831. # define LT_DLLAZY_OR_NOW 0
  8832. # endif
  8833. # endif
  8834. # endif
  8835. # endif
  8836. #endif
  8837. #ifdef __cplusplus
  8838. extern "C" void exit (int);
  8839. #endif
  8840. void fnord() { int i=42;}
  8841. int main ()
  8842. {
  8843. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8844. int status = $lt_dlunknown;
  8845. if (self)
  8846. {
  8847. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8848. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8849. /* dlclose (self); */
  8850. }
  8851. else
  8852. puts (dlerror ());
  8853. exit (status);
  8854. }
  8855. EOF
  8856. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8857. (eval $ac_link) 2>&5
  8858. ac_status=$?
  8859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8860. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8861. (./conftest; exit; ) >&5 2>/dev/null
  8862. lt_status=$?
  8863. case x$lt_status in
  8864. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8865. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8866. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8867. esac
  8868. else :
  8869. # compilation failed
  8870. lt_cv_dlopen_self=no
  8871. fi
  8872. fi
  8873. rm -fr conftest*
  8874. fi
  8875. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8876. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  8877. if test "x$lt_cv_dlopen_self" = xyes; then
  8878. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8879. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8880. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  8881. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8882. echo $ECHO_N "(cached) $ECHO_C" >&6
  8883. else
  8884. if test "$cross_compiling" = yes; then :
  8885. lt_cv_dlopen_self_static=cross
  8886. else
  8887. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8888. lt_status=$lt_dlunknown
  8889. cat > conftest.$ac_ext <<EOF
  8890. #line 9840 "configure"
  8891. #include "confdefs.h"
  8892. #if HAVE_DLFCN_H
  8893. #include <dlfcn.h>
  8894. #endif
  8895. #include <stdio.h>
  8896. #ifdef RTLD_GLOBAL
  8897. # define LT_DLGLOBAL RTLD_GLOBAL
  8898. #else
  8899. # ifdef DL_GLOBAL
  8900. # define LT_DLGLOBAL DL_GLOBAL
  8901. # else
  8902. # define LT_DLGLOBAL 0
  8903. # endif
  8904. #endif
  8905. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8906. find out it does not work in some platform. */
  8907. #ifndef LT_DLLAZY_OR_NOW
  8908. # ifdef RTLD_LAZY
  8909. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8910. # else
  8911. # ifdef DL_LAZY
  8912. # define LT_DLLAZY_OR_NOW DL_LAZY
  8913. # else
  8914. # ifdef RTLD_NOW
  8915. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8916. # else
  8917. # ifdef DL_NOW
  8918. # define LT_DLLAZY_OR_NOW DL_NOW
  8919. # else
  8920. # define LT_DLLAZY_OR_NOW 0
  8921. # endif
  8922. # endif
  8923. # endif
  8924. # endif
  8925. #endif
  8926. #ifdef __cplusplus
  8927. extern "C" void exit (int);
  8928. #endif
  8929. void fnord() { int i=42;}
  8930. int main ()
  8931. {
  8932. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8933. int status = $lt_dlunknown;
  8934. if (self)
  8935. {
  8936. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8937. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8938. /* dlclose (self); */
  8939. }
  8940. else
  8941. puts (dlerror ());
  8942. exit (status);
  8943. }
  8944. EOF
  8945. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8946. (eval $ac_link) 2>&5
  8947. ac_status=$?
  8948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8949. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8950. (./conftest; exit; ) >&5 2>/dev/null
  8951. lt_status=$?
  8952. case x$lt_status in
  8953. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8954. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8955. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8956. esac
  8957. else :
  8958. # compilation failed
  8959. lt_cv_dlopen_self_static=no
  8960. fi
  8961. fi
  8962. rm -fr conftest*
  8963. fi
  8964. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8965. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  8966. fi
  8967. CPPFLAGS="$save_CPPFLAGS"
  8968. LDFLAGS="$save_LDFLAGS"
  8969. LIBS="$save_LIBS"
  8970. ;;
  8971. esac
  8972. case $lt_cv_dlopen_self in
  8973. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8974. *) enable_dlopen_self=unknown ;;
  8975. esac
  8976. case $lt_cv_dlopen_self_static in
  8977. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8978. *) enable_dlopen_self_static=unknown ;;
  8979. esac
  8980. fi
  8981. # Report which library types will actually be built
  8982. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8983. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  8984. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8985. echo "${ECHO_T}$can_build_shared" >&6; }
  8986. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8987. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  8988. test "$can_build_shared" = "no" && enable_shared=no
  8989. # On AIX, shared libraries and static libraries use the same namespace, and
  8990. # are all built from PIC.
  8991. case $host_os in
  8992. aix3*)
  8993. test "$enable_shared" = yes && enable_static=no
  8994. if test -n "$RANLIB"; then
  8995. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8996. postinstall_cmds='$RANLIB $lib'
  8997. fi
  8998. ;;
  8999. aix[4-9]*)
  9000. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9001. test "$enable_shared" = yes && enable_static=no
  9002. fi
  9003. ;;
  9004. esac
  9005. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9006. echo "${ECHO_T}$enable_shared" >&6; }
  9007. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9008. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9009. # Make sure either enable_shared or enable_static is yes.
  9010. test "$enable_shared" = yes || enable_static=yes
  9011. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9012. echo "${ECHO_T}$enable_static" >&6; }
  9013. # The else clause should only fire when bootstrapping the
  9014. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9015. # with your package, and you will get complaints that there are
  9016. # no rules to generate ltmain.sh.
  9017. if test -f "$ltmain"; then
  9018. # See if we are running on zsh, and set the options which allow our commands through
  9019. # without removal of \ escapes.
  9020. if test -n "${ZSH_VERSION+set}" ; then
  9021. setopt NO_GLOB_SUBST
  9022. fi
  9023. # Now quote all the things that may contain metacharacters while being
  9024. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9025. # variables and quote the copies for generation of the libtool script.
  9026. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9027. SED SHELL STRIP \
  9028. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9029. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9030. deplibs_check_method reload_flag reload_cmds need_locks \
  9031. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9032. lt_cv_sys_global_symbol_to_c_name_address \
  9033. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9034. old_postinstall_cmds old_postuninstall_cmds \
  9035. compiler \
  9036. CC \
  9037. LD \
  9038. lt_prog_compiler_wl \
  9039. lt_prog_compiler_pic \
  9040. lt_prog_compiler_static \
  9041. lt_prog_compiler_no_builtin_flag \
  9042. export_dynamic_flag_spec \
  9043. thread_safe_flag_spec \
  9044. whole_archive_flag_spec \
  9045. enable_shared_with_static_runtimes \
  9046. old_archive_cmds \
  9047. old_archive_from_new_cmds \
  9048. predep_objects \
  9049. postdep_objects \
  9050. predeps \
  9051. postdeps \
  9052. compiler_lib_search_path \
  9053. compiler_lib_search_dirs \
  9054. archive_cmds \
  9055. archive_expsym_cmds \
  9056. postinstall_cmds \
  9057. postuninstall_cmds \
  9058. old_archive_from_expsyms_cmds \
  9059. allow_undefined_flag \
  9060. no_undefined_flag \
  9061. export_symbols_cmds \
  9062. hardcode_libdir_flag_spec \
  9063. hardcode_libdir_flag_spec_ld \
  9064. hardcode_libdir_separator \
  9065. hardcode_automatic \
  9066. module_cmds \
  9067. module_expsym_cmds \
  9068. lt_cv_prog_compiler_c_o \
  9069. fix_srcfile_path \
  9070. exclude_expsyms \
  9071. include_expsyms; do
  9072. case $var in
  9073. old_archive_cmds | \
  9074. old_archive_from_new_cmds | \
  9075. archive_cmds | \
  9076. archive_expsym_cmds | \
  9077. module_cmds | \
  9078. module_expsym_cmds | \
  9079. old_archive_from_expsyms_cmds | \
  9080. export_symbols_cmds | \
  9081. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9082. postinstall_cmds | postuninstall_cmds | \
  9083. old_postinstall_cmds | old_postuninstall_cmds | \
  9084. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9085. # Double-quote double-evaled strings.
  9086. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9087. ;;
  9088. *)
  9089. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9090. ;;
  9091. esac
  9092. done
  9093. case $lt_echo in
  9094. *'\$0 --fallback-echo"')
  9095. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9096. ;;
  9097. esac
  9098. cfgfile="${ofile}T"
  9099. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9100. $rm -f "$cfgfile"
  9101. { echo "$as_me:$LINENO: creating $ofile" >&5
  9102. echo "$as_me: creating $ofile" >&6;}
  9103. cat <<__EOF__ >> "$cfgfile"
  9104. #! $SHELL
  9105. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9106. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9107. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9108. #
  9109. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  9110. # Free Software Foundation, Inc.
  9111. #
  9112. # This file is part of GNU Libtool:
  9113. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9114. #
  9115. # This program is free software; you can redistribute it and/or modify
  9116. # it under the terms of the GNU General Public License as published by
  9117. # the Free Software Foundation; either version 2 of the License, or
  9118. # (at your option) any later version.
  9119. #
  9120. # This program is distributed in the hope that it will be useful, but
  9121. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9122. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9123. # General Public License for more details.
  9124. #
  9125. # You should have received a copy of the GNU General Public License
  9126. # along with this program; if not, write to the Free Software
  9127. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9128. #
  9129. # As a special exception to the GNU General Public License, if you
  9130. # distribute this file as part of a program that contains a
  9131. # configuration script generated by Autoconf, you may include it under
  9132. # the same distribution terms that you use for the rest of that program.
  9133. # A sed program that does not truncate output.
  9134. SED=$lt_SED
  9135. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9136. Xsed="$SED -e 1s/^X//"
  9137. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9138. # if CDPATH is set.
  9139. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9140. # The names of the tagged configurations supported by this script.
  9141. available_tags=
  9142. # ### BEGIN LIBTOOL CONFIG
  9143. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9144. # Shell to use when invoking shell scripts.
  9145. SHELL=$lt_SHELL
  9146. # Whether or not to build shared libraries.
  9147. build_libtool_libs=$enable_shared
  9148. # Whether or not to build static libraries.
  9149. build_old_libs=$enable_static
  9150. # Whether or not to add -lc for building shared libraries.
  9151. build_libtool_need_lc=$archive_cmds_need_lc
  9152. # Whether or not to disallow shared libs when runtime libs are static
  9153. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9154. # Whether or not to optimize for fast installation.
  9155. fast_install=$enable_fast_install
  9156. # The host system.
  9157. host_alias=$host_alias
  9158. host=$host
  9159. host_os=$host_os
  9160. # The build system.
  9161. build_alias=$build_alias
  9162. build=$build
  9163. build_os=$build_os
  9164. # An echo program that does not interpret backslashes.
  9165. echo=$lt_echo
  9166. # The archiver.
  9167. AR=$lt_AR
  9168. AR_FLAGS=$lt_AR_FLAGS
  9169. # A C compiler.
  9170. LTCC=$lt_LTCC
  9171. # LTCC compiler flags.
  9172. LTCFLAGS=$lt_LTCFLAGS
  9173. # A language-specific compiler.
  9174. CC=$lt_compiler
  9175. # Is the compiler the GNU C compiler?
  9176. with_gcc=$GCC
  9177. # An ERE matcher.
  9178. EGREP=$lt_EGREP
  9179. # The linker used to build libraries.
  9180. LD=$lt_LD
  9181. # Whether we need hard or soft links.
  9182. LN_S=$lt_LN_S
  9183. # A BSD-compatible nm program.
  9184. NM=$lt_NM
  9185. # A symbol stripping program
  9186. STRIP=$lt_STRIP
  9187. # Used to examine libraries when file_magic_cmd begins "file"
  9188. MAGIC_CMD=$MAGIC_CMD
  9189. # Used on cygwin: DLL creation program.
  9190. DLLTOOL="$DLLTOOL"
  9191. # Used on cygwin: object dumper.
  9192. OBJDUMP="$OBJDUMP"
  9193. # Used on cygwin: assembler.
  9194. AS="$AS"
  9195. # The name of the directory that contains temporary libtool files.
  9196. objdir=$objdir
  9197. # How to create reloadable object files.
  9198. reload_flag=$lt_reload_flag
  9199. reload_cmds=$lt_reload_cmds
  9200. # How to pass a linker flag through the compiler.
  9201. wl=$lt_lt_prog_compiler_wl
  9202. # Object file suffix (normally "o").
  9203. objext="$ac_objext"
  9204. # Old archive suffix (normally "a").
  9205. libext="$libext"
  9206. # Shared library suffix (normally ".so").
  9207. shrext_cmds='$shrext_cmds'
  9208. # Executable file suffix (normally "").
  9209. exeext="$exeext"
  9210. # Additional compiler flags for building library objects.
  9211. pic_flag=$lt_lt_prog_compiler_pic
  9212. pic_mode=$pic_mode
  9213. # What is the maximum length of a command?
  9214. max_cmd_len=$lt_cv_sys_max_cmd_len
  9215. # Does compiler simultaneously support -c and -o options?
  9216. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9217. # Must we lock files when doing compilation?
  9218. need_locks=$lt_need_locks
  9219. # Do we need the lib prefix for modules?
  9220. need_lib_prefix=$need_lib_prefix
  9221. # Do we need a version for libraries?
  9222. need_version=$need_version
  9223. # Whether dlopen is supported.
  9224. dlopen_support=$enable_dlopen
  9225. # Whether dlopen of programs is supported.
  9226. dlopen_self=$enable_dlopen_self
  9227. # Whether dlopen of statically linked programs is supported.
  9228. dlopen_self_static=$enable_dlopen_self_static
  9229. # Compiler flag to prevent dynamic linking.
  9230. link_static_flag=$lt_lt_prog_compiler_static
  9231. # Compiler flag to turn off builtin functions.
  9232. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9233. # Compiler flag to allow reflexive dlopens.
  9234. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9235. # Compiler flag to generate shared objects directly from archives.
  9236. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9237. # Compiler flag to generate thread-safe objects.
  9238. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9239. # Library versioning type.
  9240. version_type=$version_type
  9241. # Format of library name prefix.
  9242. libname_spec=$lt_libname_spec
  9243. # List of archive names. First name is the real one, the rest are links.
  9244. # The last name is the one that the linker finds with -lNAME.
  9245. library_names_spec=$lt_library_names_spec
  9246. # The coded name of the library, if different from the real name.
  9247. soname_spec=$lt_soname_spec
  9248. # Commands used to build and install an old-style archive.
  9249. RANLIB=$lt_RANLIB
  9250. old_archive_cmds=$lt_old_archive_cmds
  9251. old_postinstall_cmds=$lt_old_postinstall_cmds
  9252. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9253. # Create an old-style archive from a shared archive.
  9254. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9255. # Create a temporary old-style archive to link instead of a shared archive.
  9256. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9257. # Commands used to build and install a shared archive.
  9258. archive_cmds=$lt_archive_cmds
  9259. archive_expsym_cmds=$lt_archive_expsym_cmds
  9260. postinstall_cmds=$lt_postinstall_cmds
  9261. postuninstall_cmds=$lt_postuninstall_cmds
  9262. # Commands used to build a loadable module (assumed same as above if empty)
  9263. module_cmds=$lt_module_cmds
  9264. module_expsym_cmds=$lt_module_expsym_cmds
  9265. # Commands to strip libraries.
  9266. old_striplib=$lt_old_striplib
  9267. striplib=$lt_striplib
  9268. # Dependencies to place before the objects being linked to create a
  9269. # shared library.
  9270. predep_objects=$lt_predep_objects
  9271. # Dependencies to place after the objects being linked to create a
  9272. # shared library.
  9273. postdep_objects=$lt_postdep_objects
  9274. # Dependencies to place before the objects being linked to create a
  9275. # shared library.
  9276. predeps=$lt_predeps
  9277. # Dependencies to place after the objects being linked to create a
  9278. # shared library.
  9279. postdeps=$lt_postdeps
  9280. # The directories searched by this compiler when creating a shared
  9281. # library
  9282. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  9283. # The library search path used internally by the compiler when linking
  9284. # a shared library.
  9285. compiler_lib_search_path=$lt_compiler_lib_search_path
  9286. # Method to check whether dependent libraries are shared objects.
  9287. deplibs_check_method=$lt_deplibs_check_method
  9288. # Command to use when deplibs_check_method == file_magic.
  9289. file_magic_cmd=$lt_file_magic_cmd
  9290. # Flag that allows shared libraries with undefined symbols to be built.
  9291. allow_undefined_flag=$lt_allow_undefined_flag
  9292. # Flag that forces no undefined symbols.
  9293. no_undefined_flag=$lt_no_undefined_flag
  9294. # Commands used to finish a libtool library installation in a directory.
  9295. finish_cmds=$lt_finish_cmds
  9296. # Same as above, but a single script fragment to be evaled but not shown.
  9297. finish_eval=$lt_finish_eval
  9298. # Take the output of nm and produce a listing of raw symbols and C names.
  9299. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9300. # Transform the output of nm in a proper C declaration
  9301. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9302. # Transform the output of nm in a C name address pair
  9303. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9304. # This is the shared library runtime path variable.
  9305. runpath_var=$runpath_var
  9306. # This is the shared library path variable.
  9307. shlibpath_var=$shlibpath_var
  9308. # Is shlibpath searched before the hard-coded library search path?
  9309. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9310. # How to hardcode a shared library path into an executable.
  9311. hardcode_action=$hardcode_action
  9312. # Whether we should hardcode library paths into libraries.
  9313. hardcode_into_libs=$hardcode_into_libs
  9314. # Flag to hardcode \$libdir into a binary during linking.
  9315. # This must work even if \$libdir does not exist.
  9316. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9317. # If ld is used when linking, flag to hardcode \$libdir into
  9318. # a binary during linking. This must work even if \$libdir does
  9319. # not exist.
  9320. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9321. # Whether we need a single -rpath flag with a separated argument.
  9322. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9323. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9324. # resulting binary.
  9325. hardcode_direct=$hardcode_direct
  9326. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9327. # resulting binary.
  9328. hardcode_minus_L=$hardcode_minus_L
  9329. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9330. # the resulting binary.
  9331. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9332. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9333. # and all subsequent libraries and executables linked against it.
  9334. hardcode_automatic=$hardcode_automatic
  9335. # Variables whose values should be saved in libtool wrapper scripts and
  9336. # restored at relink time.
  9337. variables_saved_for_relink="$variables_saved_for_relink"
  9338. # Whether libtool must link a program against all its dependency libraries.
  9339. link_all_deplibs=$link_all_deplibs
  9340. # Compile-time system search path for libraries
  9341. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9342. # Run-time system search path for libraries
  9343. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9344. # Fix the shell variable \$srcfile for the compiler.
  9345. fix_srcfile_path=$lt_fix_srcfile_path
  9346. # Set to yes if exported symbols are required.
  9347. always_export_symbols=$always_export_symbols
  9348. # The commands to list exported symbols.
  9349. export_symbols_cmds=$lt_export_symbols_cmds
  9350. # The commands to extract the exported symbol list from a shared archive.
  9351. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9352. # Symbols that should not be listed in the preloaded symbols.
  9353. exclude_expsyms=$lt_exclude_expsyms
  9354. # Symbols that must always be exported.
  9355. include_expsyms=$lt_include_expsyms
  9356. # ### END LIBTOOL CONFIG
  9357. __EOF__
  9358. case $host_os in
  9359. aix3*)
  9360. cat <<\EOF >> "$cfgfile"
  9361. # AIX sometimes has problems with the GCC collect2 program. For some
  9362. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9363. # vanish in a puff of smoke.
  9364. if test "X${COLLECT_NAMES+set}" != Xset; then
  9365. COLLECT_NAMES=
  9366. export COLLECT_NAMES
  9367. fi
  9368. EOF
  9369. ;;
  9370. esac
  9371. # We use sed instead of cat because bash on DJGPP gets confused if
  9372. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9373. # text mode, it properly converts lines to CR/LF. This bash problem
  9374. # is reportedly fixed, but why not run on old versions too?
  9375. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9376. mv -f "$cfgfile" "$ofile" || \
  9377. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9378. chmod +x "$ofile"
  9379. else
  9380. # If there is no Makefile yet, we rely on a make rule to execute
  9381. # `config.status --recheck' to rerun these tests and create the
  9382. # libtool script then.
  9383. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9384. if test -f "$ltmain_in"; then
  9385. test -f Makefile && make "$ltmain"
  9386. fi
  9387. fi
  9388. ac_ext=c
  9389. ac_cpp='$CPP $CPPFLAGS'
  9390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9393. CC="$lt_save_CC"
  9394. # Check whether --with-tags was given.
  9395. if test "${with_tags+set}" = set; then
  9396. withval=$with_tags; tagnames="$withval"
  9397. fi
  9398. if test -f "$ltmain" && test -n "$tagnames"; then
  9399. if test ! -f "${ofile}"; then
  9400. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9401. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9402. fi
  9403. if test -z "$LTCC"; then
  9404. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9405. if test -z "$LTCC"; then
  9406. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9407. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9408. else
  9409. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9410. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9411. fi
  9412. fi
  9413. if test -z "$LTCFLAGS"; then
  9414. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9415. fi
  9416. # Extract list of available tagged configurations in $ofile.
  9417. # Note that this assumes the entire list is on one line.
  9418. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9419. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9420. for tagname in $tagnames; do
  9421. IFS="$lt_save_ifs"
  9422. # Check whether tagname contains only valid characters
  9423. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9424. "") ;;
  9425. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9426. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9427. { (exit 1); exit 1; }; }
  9428. ;;
  9429. esac
  9430. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9431. then
  9432. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9433. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9434. { (exit 1); exit 1; }; }
  9435. fi
  9436. # Update the list of available tags.
  9437. if test -n "$tagname"; then
  9438. echo appending configuration tag \"$tagname\" to $ofile
  9439. case $tagname in
  9440. CXX)
  9441. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9442. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9443. (test "X$CXX" != "Xg++"))) ; then
  9444. ac_ext=cpp
  9445. ac_cpp='$CXXCPP $CPPFLAGS'
  9446. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9447. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9448. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9449. archive_cmds_need_lc_CXX=no
  9450. allow_undefined_flag_CXX=
  9451. always_export_symbols_CXX=no
  9452. archive_expsym_cmds_CXX=
  9453. export_dynamic_flag_spec_CXX=
  9454. hardcode_direct_CXX=no
  9455. hardcode_libdir_flag_spec_CXX=
  9456. hardcode_libdir_flag_spec_ld_CXX=
  9457. hardcode_libdir_separator_CXX=
  9458. hardcode_minus_L_CXX=no
  9459. hardcode_shlibpath_var_CXX=unsupported
  9460. hardcode_automatic_CXX=no
  9461. module_cmds_CXX=
  9462. module_expsym_cmds_CXX=
  9463. link_all_deplibs_CXX=unknown
  9464. old_archive_cmds_CXX=$old_archive_cmds
  9465. no_undefined_flag_CXX=
  9466. whole_archive_flag_spec_CXX=
  9467. enable_shared_with_static_runtimes_CXX=no
  9468. # Dependencies to place before and after the object being linked:
  9469. predep_objects_CXX=
  9470. postdep_objects_CXX=
  9471. predeps_CXX=
  9472. postdeps_CXX=
  9473. compiler_lib_search_path_CXX=
  9474. compiler_lib_search_dirs_CXX=
  9475. # Source file extension for C++ test sources.
  9476. ac_ext=cpp
  9477. # Object file extension for compiled C++ test sources.
  9478. objext=o
  9479. objext_CXX=$objext
  9480. # Code to be used in simple compile tests
  9481. lt_simple_compile_test_code="int some_variable = 0;"
  9482. # Code to be used in simple link tests
  9483. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9484. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9485. # If no C compiler was specified, use CC.
  9486. LTCC=${LTCC-"$CC"}
  9487. # If no C compiler flags were specified, use CFLAGS.
  9488. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9489. # Allow CC to be a program name with arguments.
  9490. compiler=$CC
  9491. # save warnings/boilerplate of simple test code
  9492. ac_outfile=conftest.$ac_objext
  9493. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9494. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9495. _lt_compiler_boilerplate=`cat conftest.err`
  9496. $rm conftest*
  9497. ac_outfile=conftest.$ac_objext
  9498. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9499. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9500. _lt_linker_boilerplate=`cat conftest.err`
  9501. $rm -r conftest*
  9502. # Allow CC to be a program name with arguments.
  9503. lt_save_CC=$CC
  9504. lt_save_LD=$LD
  9505. lt_save_GCC=$GCC
  9506. GCC=$GXX
  9507. lt_save_with_gnu_ld=$with_gnu_ld
  9508. lt_save_path_LD=$lt_cv_path_LD
  9509. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9510. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9511. else
  9512. $as_unset lt_cv_prog_gnu_ld
  9513. fi
  9514. if test -n "${lt_cv_path_LDCXX+set}"; then
  9515. lt_cv_path_LD=$lt_cv_path_LDCXX
  9516. else
  9517. $as_unset lt_cv_path_LD
  9518. fi
  9519. test -z "${LDCXX+set}" || LD=$LDCXX
  9520. CC=${CXX-"c++"}
  9521. compiler=$CC
  9522. compiler_CXX=$CC
  9523. for cc_temp in $compiler""; do
  9524. case $cc_temp in
  9525. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9526. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9527. \-*) ;;
  9528. *) break;;
  9529. esac
  9530. done
  9531. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9532. # We don't want -fno-exception wen compiling C++ code, so set the
  9533. # no_builtin_flag separately
  9534. if test "$GXX" = yes; then
  9535. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9536. else
  9537. lt_prog_compiler_no_builtin_flag_CXX=
  9538. fi
  9539. if test "$GXX" = yes; then
  9540. # Set up default GNU C++ configuration
  9541. # Check whether --with-gnu-ld was given.
  9542. if test "${with_gnu_ld+set}" = set; then
  9543. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9544. else
  9545. with_gnu_ld=no
  9546. fi
  9547. ac_prog=ld
  9548. if test "$GCC" = yes; then
  9549. # Check if gcc -print-prog-name=ld gives a path.
  9550. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9551. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9552. case $host in
  9553. *-*-mingw*)
  9554. # gcc leaves a trailing carriage return which upsets mingw
  9555. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9556. *)
  9557. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9558. esac
  9559. case $ac_prog in
  9560. # Accept absolute paths.
  9561. [\\/]* | ?:[\\/]*)
  9562. re_direlt='/[^/][^/]*/\.\./'
  9563. # Canonicalize the pathname of ld
  9564. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9565. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9566. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9567. done
  9568. test -z "$LD" && LD="$ac_prog"
  9569. ;;
  9570. "")
  9571. # If it fails, then pretend we aren't using GCC.
  9572. ac_prog=ld
  9573. ;;
  9574. *)
  9575. # If it is relative, then search for the first ld in PATH.
  9576. with_gnu_ld=unknown
  9577. ;;
  9578. esac
  9579. elif test "$with_gnu_ld" = yes; then
  9580. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9581. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9582. else
  9583. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9584. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9585. fi
  9586. if test "${lt_cv_path_LD+set}" = set; then
  9587. echo $ECHO_N "(cached) $ECHO_C" >&6
  9588. else
  9589. if test -z "$LD"; then
  9590. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9591. for ac_dir in $PATH; do
  9592. IFS="$lt_save_ifs"
  9593. test -z "$ac_dir" && ac_dir=.
  9594. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9595. lt_cv_path_LD="$ac_dir/$ac_prog"
  9596. # Check to see if the program is GNU ld. I'd rather use --version,
  9597. # but apparently some variants of GNU ld only accept -v.
  9598. # Break only if it was the GNU/non-GNU ld that we prefer.
  9599. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9600. *GNU* | *'with BFD'*)
  9601. test "$with_gnu_ld" != no && break
  9602. ;;
  9603. *)
  9604. test "$with_gnu_ld" != yes && break
  9605. ;;
  9606. esac
  9607. fi
  9608. done
  9609. IFS="$lt_save_ifs"
  9610. else
  9611. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9612. fi
  9613. fi
  9614. LD="$lt_cv_path_LD"
  9615. if test -n "$LD"; then
  9616. { echo "$as_me:$LINENO: result: $LD" >&5
  9617. echo "${ECHO_T}$LD" >&6; }
  9618. else
  9619. { echo "$as_me:$LINENO: result: no" >&5
  9620. echo "${ECHO_T}no" >&6; }
  9621. fi
  9622. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9623. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9624. { (exit 1); exit 1; }; }
  9625. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9626. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9627. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9628. echo $ECHO_N "(cached) $ECHO_C" >&6
  9629. else
  9630. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9631. case `$LD -v 2>&1 </dev/null` in
  9632. *GNU* | *'with BFD'*)
  9633. lt_cv_prog_gnu_ld=yes
  9634. ;;
  9635. *)
  9636. lt_cv_prog_gnu_ld=no
  9637. ;;
  9638. esac
  9639. fi
  9640. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9641. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9642. with_gnu_ld=$lt_cv_prog_gnu_ld
  9643. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9644. # archiving commands below assume that GNU ld is being used.
  9645. if test "$with_gnu_ld" = yes; then
  9646. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9647. 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'
  9648. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9649. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9650. # If archive_cmds runs LD, not CC, wlarc should be empty
  9651. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9652. # investigate it a little bit more. (MM)
  9653. wlarc='${wl}'
  9654. # ancient GNU ld didn't support --whole-archive et. al.
  9655. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9656. grep 'no-whole-archive' > /dev/null; then
  9657. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9658. else
  9659. whole_archive_flag_spec_CXX=
  9660. fi
  9661. else
  9662. with_gnu_ld=no
  9663. wlarc=
  9664. # A generic and very simple default shared library creation
  9665. # command for GNU C++ for the case where it uses the native
  9666. # linker, instead of GNU ld. If possible, this setting should
  9667. # overridden to take advantage of the native linker features on
  9668. # the platform it is being used on.
  9669. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9670. fi
  9671. # Commands to make compiler produce verbose output that lists
  9672. # what "hidden" libraries, object files and flags are used when
  9673. # linking a shared library.
  9674. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9675. else
  9676. GXX=no
  9677. with_gnu_ld=no
  9678. wlarc=
  9679. fi
  9680. # PORTME: fill in a description of your system's C++ link characteristics
  9681. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9682. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9683. ld_shlibs_CXX=yes
  9684. case $host_os in
  9685. aix3*)
  9686. # FIXME: insert proper C++ library support
  9687. ld_shlibs_CXX=no
  9688. ;;
  9689. aix[4-9]*)
  9690. if test "$host_cpu" = ia64; then
  9691. # On IA64, the linker does run time linking by default, so we don't
  9692. # have to do anything special.
  9693. aix_use_runtimelinking=no
  9694. exp_sym_flag='-Bexport'
  9695. no_entry_flag=""
  9696. else
  9697. aix_use_runtimelinking=no
  9698. # Test if we are trying to use run time linking or normal
  9699. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9700. # need to do runtime linking.
  9701. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9702. for ld_flag in $LDFLAGS; do
  9703. case $ld_flag in
  9704. *-brtl*)
  9705. aix_use_runtimelinking=yes
  9706. break
  9707. ;;
  9708. esac
  9709. done
  9710. ;;
  9711. esac
  9712. exp_sym_flag='-bexport'
  9713. no_entry_flag='-bnoentry'
  9714. fi
  9715. # When large executables or shared objects are built, AIX ld can
  9716. # have problems creating the table of contents. If linking a library
  9717. # or program results in "error TOC overflow" add -mminimal-toc to
  9718. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9719. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9720. archive_cmds_CXX=''
  9721. hardcode_direct_CXX=yes
  9722. hardcode_libdir_separator_CXX=':'
  9723. link_all_deplibs_CXX=yes
  9724. if test "$GXX" = yes; then
  9725. case $host_os in aix4.[012]|aix4.[012].*)
  9726. # We only want to do this on AIX 4.2 and lower, the check
  9727. # below for broken collect2 doesn't work under 4.3+
  9728. collect2name=`${CC} -print-prog-name=collect2`
  9729. if test -f "$collect2name" && \
  9730. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9731. then
  9732. # We have reworked collect2
  9733. :
  9734. else
  9735. # We have old collect2
  9736. hardcode_direct_CXX=unsupported
  9737. # It fails to find uninstalled libraries when the uninstalled
  9738. # path is not listed in the libpath. Setting hardcode_minus_L
  9739. # to unsupported forces relinking
  9740. hardcode_minus_L_CXX=yes
  9741. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9742. hardcode_libdir_separator_CXX=
  9743. fi
  9744. ;;
  9745. esac
  9746. shared_flag='-shared'
  9747. if test "$aix_use_runtimelinking" = yes; then
  9748. shared_flag="$shared_flag "'${wl}-G'
  9749. fi
  9750. else
  9751. # not using gcc
  9752. if test "$host_cpu" = ia64; then
  9753. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9754. # chokes on -Wl,-G. The following line is correct:
  9755. shared_flag='-G'
  9756. else
  9757. if test "$aix_use_runtimelinking" = yes; then
  9758. shared_flag='${wl}-G'
  9759. else
  9760. shared_flag='${wl}-bM:SRE'
  9761. fi
  9762. fi
  9763. fi
  9764. # It seems that -bexpall does not export symbols beginning with
  9765. # underscore (_), so it is better to generate a list of symbols to export.
  9766. always_export_symbols_CXX=yes
  9767. if test "$aix_use_runtimelinking" = yes; then
  9768. # Warning - without using the other runtime loading flags (-brtl),
  9769. # -berok will link without error, but may produce a broken library.
  9770. allow_undefined_flag_CXX='-berok'
  9771. # Determine the default libpath from the value encoded in an empty executable.
  9772. cat >conftest.$ac_ext <<_ACEOF
  9773. /* confdefs.h. */
  9774. _ACEOF
  9775. cat confdefs.h >>conftest.$ac_ext
  9776. cat >>conftest.$ac_ext <<_ACEOF
  9777. /* end confdefs.h. */
  9778. int
  9779. main ()
  9780. {
  9781. ;
  9782. return 0;
  9783. }
  9784. _ACEOF
  9785. rm -f conftest.$ac_objext conftest$ac_exeext
  9786. if { (ac_try="$ac_link"
  9787. case "(($ac_try" in
  9788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9789. *) ac_try_echo=$ac_try;;
  9790. esac
  9791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9792. (eval "$ac_link") 2>conftest.er1
  9793. ac_status=$?
  9794. grep -v '^ *+' conftest.er1 >conftest.err
  9795. rm -f conftest.er1
  9796. cat conftest.err >&5
  9797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9798. (exit $ac_status); } && {
  9799. test -z "$ac_cxx_werror_flag" ||
  9800. test ! -s conftest.err
  9801. } && test -s conftest$ac_exeext &&
  9802. $as_test_x conftest$ac_exeext; then
  9803. lt_aix_libpath_sed='
  9804. /Import File Strings/,/^$/ {
  9805. /^0/ {
  9806. s/^0 *\(.*\)$/\1/
  9807. p
  9808. }
  9809. }'
  9810. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9811. # Check for a 64-bit object if we didn't find anything.
  9812. if test -z "$aix_libpath"; then
  9813. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9814. fi
  9815. else
  9816. echo "$as_me: failed program was:" >&5
  9817. sed 's/^/| /' conftest.$ac_ext >&5
  9818. fi
  9819. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9820. conftest$ac_exeext conftest.$ac_ext
  9821. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9822. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9823. 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"
  9824. else
  9825. if test "$host_cpu" = ia64; then
  9826. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9827. allow_undefined_flag_CXX="-z nodefs"
  9828. 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"
  9829. else
  9830. # Determine the default libpath from the value encoded in an empty executable.
  9831. cat >conftest.$ac_ext <<_ACEOF
  9832. /* confdefs.h. */
  9833. _ACEOF
  9834. cat confdefs.h >>conftest.$ac_ext
  9835. cat >>conftest.$ac_ext <<_ACEOF
  9836. /* end confdefs.h. */
  9837. int
  9838. main ()
  9839. {
  9840. ;
  9841. return 0;
  9842. }
  9843. _ACEOF
  9844. rm -f conftest.$ac_objext conftest$ac_exeext
  9845. if { (ac_try="$ac_link"
  9846. case "(($ac_try" in
  9847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9848. *) ac_try_echo=$ac_try;;
  9849. esac
  9850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9851. (eval "$ac_link") 2>conftest.er1
  9852. ac_status=$?
  9853. grep -v '^ *+' conftest.er1 >conftest.err
  9854. rm -f conftest.er1
  9855. cat conftest.err >&5
  9856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9857. (exit $ac_status); } && {
  9858. test -z "$ac_cxx_werror_flag" ||
  9859. test ! -s conftest.err
  9860. } && test -s conftest$ac_exeext &&
  9861. $as_test_x conftest$ac_exeext; then
  9862. lt_aix_libpath_sed='
  9863. /Import File Strings/,/^$/ {
  9864. /^0/ {
  9865. s/^0 *\(.*\)$/\1/
  9866. p
  9867. }
  9868. }'
  9869. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9870. # Check for a 64-bit object if we didn't find anything.
  9871. if test -z "$aix_libpath"; then
  9872. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9873. fi
  9874. else
  9875. echo "$as_me: failed program was:" >&5
  9876. sed 's/^/| /' conftest.$ac_ext >&5
  9877. fi
  9878. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9879. conftest$ac_exeext conftest.$ac_ext
  9880. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9881. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9882. # Warning - without using the other run time loading flags,
  9883. # -berok will link without error, but may produce a broken library.
  9884. no_undefined_flag_CXX=' ${wl}-bernotok'
  9885. allow_undefined_flag_CXX=' ${wl}-berok'
  9886. # Exported symbols can be pulled into shared objects from archives
  9887. whole_archive_flag_spec_CXX='$convenience'
  9888. archive_cmds_need_lc_CXX=yes
  9889. # This is similar to how AIX traditionally builds its shared libraries.
  9890. 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'
  9891. fi
  9892. fi
  9893. ;;
  9894. beos*)
  9895. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9896. allow_undefined_flag_CXX=unsupported
  9897. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9898. # support --undefined. This deserves some investigation. FIXME
  9899. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9900. else
  9901. ld_shlibs_CXX=no
  9902. fi
  9903. ;;
  9904. chorus*)
  9905. case $cc_basename in
  9906. *)
  9907. # FIXME: insert proper C++ library support
  9908. ld_shlibs_CXX=no
  9909. ;;
  9910. esac
  9911. ;;
  9912. cygwin* | mingw* | pw32*)
  9913. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9914. # as there is no search path for DLLs.
  9915. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9916. allow_undefined_flag_CXX=unsupported
  9917. always_export_symbols_CXX=no
  9918. enable_shared_with_static_runtimes_CXX=yes
  9919. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9920. 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'
  9921. # If the export-symbols file already is a .def file (1st line
  9922. # is EXPORTS), use it as is; otherwise, prepend...
  9923. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9924. cp $export_symbols $output_objdir/$soname.def;
  9925. else
  9926. echo EXPORTS > $output_objdir/$soname.def;
  9927. cat $export_symbols >> $output_objdir/$soname.def;
  9928. fi~
  9929. $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'
  9930. else
  9931. ld_shlibs_CXX=no
  9932. fi
  9933. ;;
  9934. darwin* | rhapsody*)
  9935. archive_cmds_need_lc_CXX=no
  9936. hardcode_direct_CXX=no
  9937. hardcode_automatic_CXX=yes
  9938. hardcode_shlibpath_var_CXX=unsupported
  9939. whole_archive_flag_spec_CXX=''
  9940. link_all_deplibs_CXX=yes
  9941. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  9942. if test "$GXX" = yes ; then
  9943. output_verbose_link_cmd='echo'
  9944. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9945. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9946. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  9947. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  9948. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  9949. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  9950. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  9951. fi
  9952. else
  9953. case $cc_basename in
  9954. xlc*)
  9955. output_verbose_link_cmd='echo'
  9956. 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'
  9957. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9958. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9959. 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}'
  9960. 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}'
  9961. ;;
  9962. *)
  9963. ld_shlibs_CXX=no
  9964. ;;
  9965. esac
  9966. fi
  9967. ;;
  9968. dgux*)
  9969. case $cc_basename in
  9970. ec++*)
  9971. # FIXME: insert proper C++ library support
  9972. ld_shlibs_CXX=no
  9973. ;;
  9974. ghcx*)
  9975. # Green Hills C++ Compiler
  9976. # FIXME: insert proper C++ library support
  9977. ld_shlibs_CXX=no
  9978. ;;
  9979. *)
  9980. # FIXME: insert proper C++ library support
  9981. ld_shlibs_CXX=no
  9982. ;;
  9983. esac
  9984. ;;
  9985. freebsd[12]*)
  9986. # C++ shared libraries reported to be fairly broken before switch to ELF
  9987. ld_shlibs_CXX=no
  9988. ;;
  9989. freebsd-elf*)
  9990. archive_cmds_need_lc_CXX=no
  9991. ;;
  9992. freebsd* | dragonfly*)
  9993. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9994. # conventions
  9995. ld_shlibs_CXX=yes
  9996. ;;
  9997. gnu*)
  9998. ;;
  9999. hpux9*)
  10000. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10001. hardcode_libdir_separator_CXX=:
  10002. export_dynamic_flag_spec_CXX='${wl}-E'
  10003. hardcode_direct_CXX=yes
  10004. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10005. # but as the default
  10006. # location of the library.
  10007. case $cc_basename in
  10008. CC*)
  10009. # FIXME: insert proper C++ library support
  10010. ld_shlibs_CXX=no
  10011. ;;
  10012. aCC*)
  10013. 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'
  10014. # Commands to make compiler produce verbose output that lists
  10015. # what "hidden" libraries, object files and flags are used when
  10016. # linking a shared library.
  10017. #
  10018. # There doesn't appear to be a way to prevent this compiler from
  10019. # explicitly linking system object files so we need to strip them
  10020. # from the output so that they don't get included in the library
  10021. # dependencies.
  10022. 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'
  10023. ;;
  10024. *)
  10025. if test "$GXX" = yes; then
  10026. 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'
  10027. else
  10028. # FIXME: insert proper C++ library support
  10029. ld_shlibs_CXX=no
  10030. fi
  10031. ;;
  10032. esac
  10033. ;;
  10034. hpux10*|hpux11*)
  10035. if test $with_gnu_ld = no; then
  10036. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10037. hardcode_libdir_separator_CXX=:
  10038. case $host_cpu in
  10039. hppa*64*|ia64*) ;;
  10040. *)
  10041. export_dynamic_flag_spec_CXX='${wl}-E'
  10042. ;;
  10043. esac
  10044. fi
  10045. case $host_cpu in
  10046. hppa*64*|ia64*)
  10047. hardcode_direct_CXX=no
  10048. hardcode_shlibpath_var_CXX=no
  10049. ;;
  10050. *)
  10051. hardcode_direct_CXX=yes
  10052. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10053. # but as the default
  10054. # location of the library.
  10055. ;;
  10056. esac
  10057. case $cc_basename in
  10058. CC*)
  10059. # FIXME: insert proper C++ library support
  10060. ld_shlibs_CXX=no
  10061. ;;
  10062. aCC*)
  10063. case $host_cpu in
  10064. hppa*64*)
  10065. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10066. ;;
  10067. ia64*)
  10068. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10069. ;;
  10070. *)
  10071. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10072. ;;
  10073. esac
  10074. # Commands to make compiler produce verbose output that lists
  10075. # what "hidden" libraries, object files and flags are used when
  10076. # linking a shared library.
  10077. #
  10078. # There doesn't appear to be a way to prevent this compiler from
  10079. # explicitly linking system object files so we need to strip them
  10080. # from the output so that they don't get included in the library
  10081. # dependencies.
  10082. 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'
  10083. ;;
  10084. *)
  10085. if test "$GXX" = yes; then
  10086. if test $with_gnu_ld = no; then
  10087. case $host_cpu in
  10088. hppa*64*)
  10089. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10090. ;;
  10091. ia64*)
  10092. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10093. ;;
  10094. *)
  10095. 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'
  10096. ;;
  10097. esac
  10098. fi
  10099. else
  10100. # FIXME: insert proper C++ library support
  10101. ld_shlibs_CXX=no
  10102. fi
  10103. ;;
  10104. esac
  10105. ;;
  10106. interix[3-9]*)
  10107. hardcode_direct_CXX=no
  10108. hardcode_shlibpath_var_CXX=no
  10109. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10110. export_dynamic_flag_spec_CXX='${wl}-E'
  10111. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10112. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10113. # default) and relocated if they conflict, which is a slow very memory
  10114. # consuming and fragmenting process. To avoid this, we pick a random,
  10115. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10116. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10117. 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'
  10118. 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'
  10119. ;;
  10120. irix5* | irix6*)
  10121. case $cc_basename in
  10122. CC*)
  10123. # SGI C++
  10124. 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'
  10125. # Archives containing C++ object files must be created using
  10126. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10127. # necessary to make sure instantiated templates are included
  10128. # in the archive.
  10129. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10130. ;;
  10131. *)
  10132. if test "$GXX" = yes; then
  10133. if test "$with_gnu_ld" = no; then
  10134. 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'
  10135. else
  10136. 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'
  10137. fi
  10138. fi
  10139. link_all_deplibs_CXX=yes
  10140. ;;
  10141. esac
  10142. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10143. hardcode_libdir_separator_CXX=:
  10144. ;;
  10145. linux* | k*bsd*-gnu)
  10146. case $cc_basename in
  10147. KCC*)
  10148. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10149. # KCC will only create a shared library if the output file
  10150. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10151. # to its proper name (with version) after linking.
  10152. 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'
  10153. 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'
  10154. # Commands to make compiler produce verbose output that lists
  10155. # what "hidden" libraries, object files and flags are used when
  10156. # linking a shared library.
  10157. #
  10158. # There doesn't appear to be a way to prevent this compiler from
  10159. # explicitly linking system object files so we need to strip them
  10160. # from the output so that they don't get included in the library
  10161. # dependencies.
  10162. 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'
  10163. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10164. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10165. # Archives containing C++ object files must be created using
  10166. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10167. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10168. ;;
  10169. icpc*)
  10170. # Intel C++
  10171. with_gnu_ld=yes
  10172. # version 8.0 and above of icpc choke on multiply defined symbols
  10173. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10174. # earlier do not add the objects themselves.
  10175. case `$CC -V 2>&1` in
  10176. *"Version 7."*)
  10177. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10178. 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'
  10179. ;;
  10180. *) # Version 8.0 or newer
  10181. tmp_idyn=
  10182. case $host_cpu in
  10183. ia64*) tmp_idyn=' -i_dynamic';;
  10184. esac
  10185. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10186. 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'
  10187. ;;
  10188. esac
  10189. archive_cmds_need_lc_CXX=no
  10190. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10191. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10192. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10193. ;;
  10194. pgCC* | pgcpp*)
  10195. # Portland Group C++ compiler
  10196. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10197. 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'
  10198. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10199. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10200. 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'
  10201. ;;
  10202. cxx*)
  10203. # Compaq C++
  10204. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10205. 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'
  10206. runpath_var=LD_RUN_PATH
  10207. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10208. hardcode_libdir_separator_CXX=:
  10209. # Commands to make compiler produce verbose output that lists
  10210. # what "hidden" libraries, object files and flags are used when
  10211. # linking a shared library.
  10212. #
  10213. # There doesn't appear to be a way to prevent this compiler from
  10214. # explicitly linking system object files so we need to strip them
  10215. # from the output so that they don't get included in the library
  10216. # dependencies.
  10217. 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'
  10218. ;;
  10219. *)
  10220. case `$CC -V 2>&1 | sed 5q` in
  10221. *Sun\ C*)
  10222. # Sun C++ 5.9
  10223. no_undefined_flag_CXX=' -zdefs'
  10224. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10225. 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'
  10226. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10227. 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'
  10228. # Not sure whether something based on
  10229. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10230. # would be better.
  10231. output_verbose_link_cmd='echo'
  10232. # Archives containing C++ object files must be created using
  10233. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10234. # necessary to make sure instantiated templates are included
  10235. # in the archive.
  10236. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10237. ;;
  10238. esac
  10239. ;;
  10240. esac
  10241. ;;
  10242. lynxos*)
  10243. # FIXME: insert proper C++ library support
  10244. ld_shlibs_CXX=no
  10245. ;;
  10246. m88k*)
  10247. # FIXME: insert proper C++ library support
  10248. ld_shlibs_CXX=no
  10249. ;;
  10250. mvs*)
  10251. case $cc_basename in
  10252. cxx*)
  10253. # FIXME: insert proper C++ library support
  10254. ld_shlibs_CXX=no
  10255. ;;
  10256. *)
  10257. # FIXME: insert proper C++ library support
  10258. ld_shlibs_CXX=no
  10259. ;;
  10260. esac
  10261. ;;
  10262. netbsd* | netbsdelf*-gnu)
  10263. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10264. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10265. wlarc=
  10266. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10267. hardcode_direct_CXX=yes
  10268. hardcode_shlibpath_var_CXX=no
  10269. fi
  10270. # Workaround some broken pre-1.5 toolchains
  10271. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10272. ;;
  10273. openbsd2*)
  10274. # C++ shared libraries are fairly broken
  10275. ld_shlibs_CXX=no
  10276. ;;
  10277. openbsd*)
  10278. if test -f /usr/libexec/ld.so; then
  10279. hardcode_direct_CXX=yes
  10280. hardcode_shlibpath_var_CXX=no
  10281. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10282. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10283. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10284. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10285. export_dynamic_flag_spec_CXX='${wl}-E'
  10286. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10287. fi
  10288. output_verbose_link_cmd='echo'
  10289. else
  10290. ld_shlibs_CXX=no
  10291. fi
  10292. ;;
  10293. osf3*)
  10294. case $cc_basename in
  10295. KCC*)
  10296. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10297. # KCC will only create a shared library if the output file
  10298. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10299. # to its proper name (with version) after linking.
  10300. 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'
  10301. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10302. hardcode_libdir_separator_CXX=:
  10303. # Archives containing C++ object files must be created using
  10304. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10305. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10306. ;;
  10307. RCC*)
  10308. # Rational C++ 2.4.1
  10309. # FIXME: insert proper C++ library support
  10310. ld_shlibs_CXX=no
  10311. ;;
  10312. cxx*)
  10313. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10314. 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'
  10315. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10316. hardcode_libdir_separator_CXX=:
  10317. # Commands to make compiler produce verbose output that lists
  10318. # what "hidden" libraries, object files and flags are used when
  10319. # linking a shared library.
  10320. #
  10321. # There doesn't appear to be a way to prevent this compiler from
  10322. # explicitly linking system object files so we need to strip them
  10323. # from the output so that they don't get included in the library
  10324. # dependencies.
  10325. 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'
  10326. ;;
  10327. *)
  10328. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10329. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10330. 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'
  10331. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10332. hardcode_libdir_separator_CXX=:
  10333. # Commands to make compiler produce verbose output that lists
  10334. # what "hidden" libraries, object files and flags are used when
  10335. # linking a shared library.
  10336. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10337. else
  10338. # FIXME: insert proper C++ library support
  10339. ld_shlibs_CXX=no
  10340. fi
  10341. ;;
  10342. esac
  10343. ;;
  10344. osf4* | osf5*)
  10345. case $cc_basename in
  10346. KCC*)
  10347. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10348. # KCC will only create a shared library if the output file
  10349. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10350. # to its proper name (with version) after linking.
  10351. 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'
  10352. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10353. hardcode_libdir_separator_CXX=:
  10354. # Archives containing C++ object files must be created using
  10355. # the KAI C++ compiler.
  10356. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10357. ;;
  10358. RCC*)
  10359. # Rational C++ 2.4.1
  10360. # FIXME: insert proper C++ library support
  10361. ld_shlibs_CXX=no
  10362. ;;
  10363. cxx*)
  10364. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10365. 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'
  10366. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10367. echo "-hidden">> $lib.exp~
  10368. $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~
  10369. $rm $lib.exp'
  10370. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10371. hardcode_libdir_separator_CXX=:
  10372. # Commands to make compiler produce verbose output that lists
  10373. # what "hidden" libraries, object files and flags are used when
  10374. # linking a shared library.
  10375. #
  10376. # There doesn't appear to be a way to prevent this compiler from
  10377. # explicitly linking system object files so we need to strip them
  10378. # from the output so that they don't get included in the library
  10379. # dependencies.
  10380. 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'
  10381. ;;
  10382. *)
  10383. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10384. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10385. 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'
  10386. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10387. hardcode_libdir_separator_CXX=:
  10388. # Commands to make compiler produce verbose output that lists
  10389. # what "hidden" libraries, object files and flags are used when
  10390. # linking a shared library.
  10391. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10392. else
  10393. # FIXME: insert proper C++ library support
  10394. ld_shlibs_CXX=no
  10395. fi
  10396. ;;
  10397. esac
  10398. ;;
  10399. psos*)
  10400. # FIXME: insert proper C++ library support
  10401. ld_shlibs_CXX=no
  10402. ;;
  10403. sunos4*)
  10404. case $cc_basename in
  10405. CC*)
  10406. # Sun C++ 4.x
  10407. # FIXME: insert proper C++ library support
  10408. ld_shlibs_CXX=no
  10409. ;;
  10410. lcc*)
  10411. # Lucid
  10412. # FIXME: insert proper C++ library support
  10413. ld_shlibs_CXX=no
  10414. ;;
  10415. *)
  10416. # FIXME: insert proper C++ library support
  10417. ld_shlibs_CXX=no
  10418. ;;
  10419. esac
  10420. ;;
  10421. solaris*)
  10422. case $cc_basename in
  10423. CC*)
  10424. # Sun C++ 4.2, 5.x and Centerline C++
  10425. archive_cmds_need_lc_CXX=yes
  10426. no_undefined_flag_CXX=' -zdefs'
  10427. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10428. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10429. $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'
  10430. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10431. hardcode_shlibpath_var_CXX=no
  10432. case $host_os in
  10433. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10434. *)
  10435. # The compiler driver will combine and reorder linker options,
  10436. # but understands `-z linker_flag'.
  10437. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10438. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10439. ;;
  10440. esac
  10441. link_all_deplibs_CXX=yes
  10442. output_verbose_link_cmd='echo'
  10443. # Archives containing C++ object files must be created using
  10444. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10445. # necessary to make sure instantiated templates are included
  10446. # in the archive.
  10447. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10448. ;;
  10449. gcx*)
  10450. # Green Hills C++ Compiler
  10451. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10452. # The C++ compiler must be used to create the archive.
  10453. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10454. ;;
  10455. *)
  10456. # GNU C++ compiler with Solaris linker
  10457. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10458. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10459. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10460. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10461. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10462. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10463. # Commands to make compiler produce verbose output that lists
  10464. # what "hidden" libraries, object files and flags are used when
  10465. # linking a shared library.
  10466. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10467. else
  10468. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10469. # platform.
  10470. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10471. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10472. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10473. # Commands to make compiler produce verbose output that lists
  10474. # what "hidden" libraries, object files and flags are used when
  10475. # linking a shared library.
  10476. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10477. fi
  10478. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10479. case $host_os in
  10480. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10481. *)
  10482. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10483. ;;
  10484. esac
  10485. fi
  10486. ;;
  10487. esac
  10488. ;;
  10489. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10490. no_undefined_flag_CXX='${wl}-z,text'
  10491. archive_cmds_need_lc_CXX=no
  10492. hardcode_shlibpath_var_CXX=no
  10493. runpath_var='LD_RUN_PATH'
  10494. case $cc_basename in
  10495. CC*)
  10496. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10497. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10498. ;;
  10499. *)
  10500. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10501. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10502. ;;
  10503. esac
  10504. ;;
  10505. sysv5* | sco3.2v5* | sco5v6*)
  10506. # Note: We can NOT use -z defs as we might desire, because we do not
  10507. # link with -lc, and that would cause any symbols used from libc to
  10508. # always be unresolved, which means just about no library would
  10509. # ever link correctly. If we're not using GNU ld we use -z text
  10510. # though, which does catch some bad symbols but isn't as heavy-handed
  10511. # as -z defs.
  10512. # For security reasons, it is highly recommended that you always
  10513. # use absolute paths for naming shared libraries, and exclude the
  10514. # DT_RUNPATH tag from executables and libraries. But doing so
  10515. # requires that you compile everything twice, which is a pain.
  10516. # So that behaviour is only enabled if SCOABSPATH is set to a
  10517. # non-empty value in the environment. Most likely only useful for
  10518. # creating official distributions of packages.
  10519. # This is a hack until libtool officially supports absolute path
  10520. # names for shared libraries.
  10521. no_undefined_flag_CXX='${wl}-z,text'
  10522. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10523. archive_cmds_need_lc_CXX=no
  10524. hardcode_shlibpath_var_CXX=no
  10525. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10526. hardcode_libdir_separator_CXX=':'
  10527. link_all_deplibs_CXX=yes
  10528. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10529. runpath_var='LD_RUN_PATH'
  10530. case $cc_basename in
  10531. CC*)
  10532. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10533. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10534. ;;
  10535. *)
  10536. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10537. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10538. ;;
  10539. esac
  10540. ;;
  10541. tandem*)
  10542. case $cc_basename in
  10543. NCC*)
  10544. # NonStop-UX NCC 3.20
  10545. # FIXME: insert proper C++ library support
  10546. ld_shlibs_CXX=no
  10547. ;;
  10548. *)
  10549. # FIXME: insert proper C++ library support
  10550. ld_shlibs_CXX=no
  10551. ;;
  10552. esac
  10553. ;;
  10554. vxworks*)
  10555. # FIXME: insert proper C++ library support
  10556. ld_shlibs_CXX=no
  10557. ;;
  10558. *)
  10559. # FIXME: insert proper C++ library support
  10560. ld_shlibs_CXX=no
  10561. ;;
  10562. esac
  10563. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10564. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10565. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10566. GCC_CXX="$GXX"
  10567. LD_CXX="$LD"
  10568. cat > conftest.$ac_ext <<EOF
  10569. class Foo
  10570. {
  10571. public:
  10572. Foo (void) { a = 0; }
  10573. private:
  10574. int a;
  10575. };
  10576. EOF
  10577. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10578. (eval $ac_compile) 2>&5
  10579. ac_status=$?
  10580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10581. (exit $ac_status); }; then
  10582. # Parse the compiler output and extract the necessary
  10583. # objects, libraries and library flags.
  10584. # Sentinel used to keep track of whether or not we are before
  10585. # the conftest object file.
  10586. pre_test_object_deps_done=no
  10587. # The `*' in the case matches for architectures that use `case' in
  10588. # $output_verbose_cmd can trigger glob expansion during the loop
  10589. # eval without this substitution.
  10590. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10591. for p in `eval $output_verbose_link_cmd`; do
  10592. case $p in
  10593. -L* | -R* | -l*)
  10594. # Some compilers place space between "-{L,R}" and the path.
  10595. # Remove the space.
  10596. if test $p = "-L" \
  10597. || test $p = "-R"; then
  10598. prev=$p
  10599. continue
  10600. else
  10601. prev=
  10602. fi
  10603. if test "$pre_test_object_deps_done" = no; then
  10604. case $p in
  10605. -L* | -R*)
  10606. # Internal compiler library paths should come after those
  10607. # provided the user. The postdeps already come after the
  10608. # user supplied libs so there is no need to process them.
  10609. if test -z "$compiler_lib_search_path_CXX"; then
  10610. compiler_lib_search_path_CXX="${prev}${p}"
  10611. else
  10612. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10613. fi
  10614. ;;
  10615. # The "-l" case would never come before the object being
  10616. # linked, so don't bother handling this case.
  10617. esac
  10618. else
  10619. if test -z "$postdeps_CXX"; then
  10620. postdeps_CXX="${prev}${p}"
  10621. else
  10622. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10623. fi
  10624. fi
  10625. ;;
  10626. *.$objext)
  10627. # This assumes that the test object file only shows up
  10628. # once in the compiler output.
  10629. if test "$p" = "conftest.$objext"; then
  10630. pre_test_object_deps_done=yes
  10631. continue
  10632. fi
  10633. if test "$pre_test_object_deps_done" = no; then
  10634. if test -z "$predep_objects_CXX"; then
  10635. predep_objects_CXX="$p"
  10636. else
  10637. predep_objects_CXX="$predep_objects_CXX $p"
  10638. fi
  10639. else
  10640. if test -z "$postdep_objects_CXX"; then
  10641. postdep_objects_CXX="$p"
  10642. else
  10643. postdep_objects_CXX="$postdep_objects_CXX $p"
  10644. fi
  10645. fi
  10646. ;;
  10647. *) ;; # Ignore the rest.
  10648. esac
  10649. done
  10650. # Clean up.
  10651. rm -f a.out a.exe
  10652. else
  10653. echo "libtool.m4: error: problem compiling CXX test program"
  10654. fi
  10655. $rm -f confest.$objext
  10656. compiler_lib_search_dirs_CXX=
  10657. if test -n "$compiler_lib_search_path_CXX"; then
  10658. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10659. fi
  10660. # PORTME: override above test on systems where it is broken
  10661. case $host_os in
  10662. interix[3-9]*)
  10663. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10664. # hack all around it, let's just trust "g++" to DTRT.
  10665. predep_objects_CXX=
  10666. postdep_objects_CXX=
  10667. postdeps_CXX=
  10668. ;;
  10669. linux*)
  10670. case `$CC -V 2>&1 | sed 5q` in
  10671. *Sun\ C*)
  10672. # Sun C++ 5.9
  10673. #
  10674. # The more standards-conforming stlport4 library is
  10675. # incompatible with the Cstd library. Avoid specifying
  10676. # it if it's in CXXFLAGS. Ignore libCrun as
  10677. # -library=stlport4 depends on it.
  10678. case " $CXX $CXXFLAGS " in
  10679. *" -library=stlport4 "*)
  10680. solaris_use_stlport4=yes
  10681. ;;
  10682. esac
  10683. if test "$solaris_use_stlport4" != yes; then
  10684. postdeps_CXX='-library=Cstd -library=Crun'
  10685. fi
  10686. ;;
  10687. esac
  10688. ;;
  10689. solaris*)
  10690. case $cc_basename in
  10691. CC*)
  10692. # The more standards-conforming stlport4 library is
  10693. # incompatible with the Cstd library. Avoid specifying
  10694. # it if it's in CXXFLAGS. Ignore libCrun as
  10695. # -library=stlport4 depends on it.
  10696. case " $CXX $CXXFLAGS " in
  10697. *" -library=stlport4 "*)
  10698. solaris_use_stlport4=yes
  10699. ;;
  10700. esac
  10701. # Adding this requires a known-good setup of shared libraries for
  10702. # Sun compiler versions before 5.6, else PIC objects from an old
  10703. # archive will be linked into the output, leading to subtle bugs.
  10704. if test "$solaris_use_stlport4" != yes; then
  10705. postdeps_CXX='-library=Cstd -library=Crun'
  10706. fi
  10707. ;;
  10708. esac
  10709. ;;
  10710. esac
  10711. case " $postdeps_CXX " in
  10712. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10713. esac
  10714. lt_prog_compiler_wl_CXX=
  10715. lt_prog_compiler_pic_CXX=
  10716. lt_prog_compiler_static_CXX=
  10717. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10718. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  10719. # C++ specific cases for pic, static, wl, etc.
  10720. if test "$GXX" = yes; then
  10721. lt_prog_compiler_wl_CXX='-Wl,'
  10722. lt_prog_compiler_static_CXX='-static'
  10723. case $host_os in
  10724. aix*)
  10725. # All AIX code is PIC.
  10726. if test "$host_cpu" = ia64; then
  10727. # AIX 5 now supports IA64 processor
  10728. lt_prog_compiler_static_CXX='-Bstatic'
  10729. fi
  10730. ;;
  10731. amigaos*)
  10732. # FIXME: we need at least 68020 code to build shared libraries, but
  10733. # adding the `-m68020' flag to GCC prevents building anything better,
  10734. # like `-m68040'.
  10735. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10736. ;;
  10737. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10738. # PIC is the default for these OSes.
  10739. ;;
  10740. mingw* | cygwin* | os2* | pw32*)
  10741. # This hack is so that the source file can tell whether it is being
  10742. # built for inclusion in a dll (and should export symbols for example).
  10743. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10744. # (--disable-auto-import) libraries
  10745. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10746. ;;
  10747. darwin* | rhapsody*)
  10748. # PIC is the default on this platform
  10749. # Common symbols not allowed in MH_DYLIB files
  10750. lt_prog_compiler_pic_CXX='-fno-common'
  10751. ;;
  10752. *djgpp*)
  10753. # DJGPP does not support shared libraries at all
  10754. lt_prog_compiler_pic_CXX=
  10755. ;;
  10756. interix[3-9]*)
  10757. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10758. # Instead, we relocate shared libraries at runtime.
  10759. ;;
  10760. sysv4*MP*)
  10761. if test -d /usr/nec; then
  10762. lt_prog_compiler_pic_CXX=-Kconform_pic
  10763. fi
  10764. ;;
  10765. hpux*)
  10766. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10767. # not for PA HP-UX.
  10768. case $host_cpu in
  10769. hppa*64*|ia64*)
  10770. ;;
  10771. *)
  10772. lt_prog_compiler_pic_CXX='-fPIC'
  10773. ;;
  10774. esac
  10775. ;;
  10776. *)
  10777. lt_prog_compiler_pic_CXX='-fPIC'
  10778. ;;
  10779. esac
  10780. else
  10781. case $host_os in
  10782. aix[4-9]*)
  10783. # All AIX code is PIC.
  10784. if test "$host_cpu" = ia64; then
  10785. # AIX 5 now supports IA64 processor
  10786. lt_prog_compiler_static_CXX='-Bstatic'
  10787. else
  10788. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10789. fi
  10790. ;;
  10791. chorus*)
  10792. case $cc_basename in
  10793. cxch68*)
  10794. # Green Hills C++ Compiler
  10795. # _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"
  10796. ;;
  10797. esac
  10798. ;;
  10799. darwin*)
  10800. # PIC is the default on this platform
  10801. # Common symbols not allowed in MH_DYLIB files
  10802. case $cc_basename in
  10803. xlc*)
  10804. lt_prog_compiler_pic_CXX='-qnocommon'
  10805. lt_prog_compiler_wl_CXX='-Wl,'
  10806. ;;
  10807. esac
  10808. ;;
  10809. dgux*)
  10810. case $cc_basename in
  10811. ec++*)
  10812. lt_prog_compiler_pic_CXX='-KPIC'
  10813. ;;
  10814. ghcx*)
  10815. # Green Hills C++ Compiler
  10816. lt_prog_compiler_pic_CXX='-pic'
  10817. ;;
  10818. *)
  10819. ;;
  10820. esac
  10821. ;;
  10822. freebsd* | dragonfly*)
  10823. # FreeBSD uses GNU C++
  10824. ;;
  10825. hpux9* | hpux10* | hpux11*)
  10826. case $cc_basename in
  10827. CC*)
  10828. lt_prog_compiler_wl_CXX='-Wl,'
  10829. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10830. if test "$host_cpu" != ia64; then
  10831. lt_prog_compiler_pic_CXX='+Z'
  10832. fi
  10833. ;;
  10834. aCC*)
  10835. lt_prog_compiler_wl_CXX='-Wl,'
  10836. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10837. case $host_cpu in
  10838. hppa*64*|ia64*)
  10839. # +Z the default
  10840. ;;
  10841. *)
  10842. lt_prog_compiler_pic_CXX='+Z'
  10843. ;;
  10844. esac
  10845. ;;
  10846. *)
  10847. ;;
  10848. esac
  10849. ;;
  10850. interix*)
  10851. # This is c89, which is MS Visual C++ (no shared libs)
  10852. # Anyone wants to do a port?
  10853. ;;
  10854. irix5* | irix6* | nonstopux*)
  10855. case $cc_basename in
  10856. CC*)
  10857. lt_prog_compiler_wl_CXX='-Wl,'
  10858. lt_prog_compiler_static_CXX='-non_shared'
  10859. # CC pic flag -KPIC is the default.
  10860. ;;
  10861. *)
  10862. ;;
  10863. esac
  10864. ;;
  10865. linux* | k*bsd*-gnu)
  10866. case $cc_basename in
  10867. KCC*)
  10868. # KAI C++ Compiler
  10869. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10870. lt_prog_compiler_pic_CXX='-fPIC'
  10871. ;;
  10872. icpc* | ecpc*)
  10873. # Intel C++
  10874. lt_prog_compiler_wl_CXX='-Wl,'
  10875. lt_prog_compiler_pic_CXX='-KPIC'
  10876. lt_prog_compiler_static_CXX='-static'
  10877. ;;
  10878. pgCC* | pgcpp*)
  10879. # Portland Group C++ compiler.
  10880. lt_prog_compiler_wl_CXX='-Wl,'
  10881. lt_prog_compiler_pic_CXX='-fpic'
  10882. lt_prog_compiler_static_CXX='-Bstatic'
  10883. ;;
  10884. cxx*)
  10885. # Compaq C++
  10886. # Make sure the PIC flag is empty. It appears that all Alpha
  10887. # Linux and Compaq Tru64 Unix objects are PIC.
  10888. lt_prog_compiler_pic_CXX=
  10889. lt_prog_compiler_static_CXX='-non_shared'
  10890. ;;
  10891. *)
  10892. case `$CC -V 2>&1 | sed 5q` in
  10893. *Sun\ C*)
  10894. # Sun C++ 5.9
  10895. lt_prog_compiler_pic_CXX='-KPIC'
  10896. lt_prog_compiler_static_CXX='-Bstatic'
  10897. lt_prog_compiler_wl_CXX='-Qoption ld '
  10898. ;;
  10899. esac
  10900. ;;
  10901. esac
  10902. ;;
  10903. lynxos*)
  10904. ;;
  10905. m88k*)
  10906. ;;
  10907. mvs*)
  10908. case $cc_basename in
  10909. cxx*)
  10910. lt_prog_compiler_pic_CXX='-W c,exportall'
  10911. ;;
  10912. *)
  10913. ;;
  10914. esac
  10915. ;;
  10916. netbsd* | netbsdelf*-gnu)
  10917. ;;
  10918. osf3* | osf4* | osf5*)
  10919. case $cc_basename in
  10920. KCC*)
  10921. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10922. ;;
  10923. RCC*)
  10924. # Rational C++ 2.4.1
  10925. lt_prog_compiler_pic_CXX='-pic'
  10926. ;;
  10927. cxx*)
  10928. # Digital/Compaq C++
  10929. lt_prog_compiler_wl_CXX='-Wl,'
  10930. # Make sure the PIC flag is empty. It appears that all Alpha
  10931. # Linux and Compaq Tru64 Unix objects are PIC.
  10932. lt_prog_compiler_pic_CXX=
  10933. lt_prog_compiler_static_CXX='-non_shared'
  10934. ;;
  10935. *)
  10936. ;;
  10937. esac
  10938. ;;
  10939. psos*)
  10940. ;;
  10941. solaris*)
  10942. case $cc_basename in
  10943. CC*)
  10944. # Sun C++ 4.2, 5.x and Centerline C++
  10945. lt_prog_compiler_pic_CXX='-KPIC'
  10946. lt_prog_compiler_static_CXX='-Bstatic'
  10947. lt_prog_compiler_wl_CXX='-Qoption ld '
  10948. ;;
  10949. gcx*)
  10950. # Green Hills C++ Compiler
  10951. lt_prog_compiler_pic_CXX='-PIC'
  10952. ;;
  10953. *)
  10954. ;;
  10955. esac
  10956. ;;
  10957. sunos4*)
  10958. case $cc_basename in
  10959. CC*)
  10960. # Sun C++ 4.x
  10961. lt_prog_compiler_pic_CXX='-pic'
  10962. lt_prog_compiler_static_CXX='-Bstatic'
  10963. ;;
  10964. lcc*)
  10965. # Lucid
  10966. lt_prog_compiler_pic_CXX='-pic'
  10967. ;;
  10968. *)
  10969. ;;
  10970. esac
  10971. ;;
  10972. tandem*)
  10973. case $cc_basename in
  10974. NCC*)
  10975. # NonStop-UX NCC 3.20
  10976. lt_prog_compiler_pic_CXX='-KPIC'
  10977. ;;
  10978. *)
  10979. ;;
  10980. esac
  10981. ;;
  10982. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10983. case $cc_basename in
  10984. CC*)
  10985. lt_prog_compiler_wl_CXX='-Wl,'
  10986. lt_prog_compiler_pic_CXX='-KPIC'
  10987. lt_prog_compiler_static_CXX='-Bstatic'
  10988. ;;
  10989. esac
  10990. ;;
  10991. vxworks*)
  10992. ;;
  10993. *)
  10994. lt_prog_compiler_can_build_shared_CXX=no
  10995. ;;
  10996. esac
  10997. fi
  10998. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10999. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11000. #
  11001. # Check to make sure the PIC flag actually works.
  11002. #
  11003. if test -n "$lt_prog_compiler_pic_CXX"; then
  11004. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11005. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11006. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  11007. echo $ECHO_N "(cached) $ECHO_C" >&6
  11008. else
  11009. lt_cv_prog_compiler_pic_works_CXX=no
  11010. ac_outfile=conftest.$ac_objext
  11011. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11012. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11013. # Insert the option either (1) after the last *FLAGS variable, or
  11014. # (2) before a word containing "conftest.", or (3) at the end.
  11015. # Note that $ac_compile itself does not contain backslashes and begins
  11016. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11017. # The option is referenced via a variable to avoid confusing sed.
  11018. lt_compile=`echo "$ac_compile" | $SED \
  11019. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11020. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11021. -e 's:$: $lt_compiler_flag:'`
  11022. (eval echo "\"\$as_me:12241: $lt_compile\"" >&5)
  11023. (eval "$lt_compile" 2>conftest.err)
  11024. ac_status=$?
  11025. cat conftest.err >&5
  11026. echo "$as_me:12245: \$? = $ac_status" >&5
  11027. if (exit $ac_status) && test -s "$ac_outfile"; then
  11028. # The compiler can only warn and ignore the option if not recognized
  11029. # So say no if there are warnings other than the usual output.
  11030. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11031. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11032. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11033. lt_cv_prog_compiler_pic_works_CXX=yes
  11034. fi
  11035. fi
  11036. $rm conftest*
  11037. fi
  11038. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11039. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11040. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11041. case $lt_prog_compiler_pic_CXX in
  11042. "" | " "*) ;;
  11043. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11044. esac
  11045. else
  11046. lt_prog_compiler_pic_CXX=
  11047. lt_prog_compiler_can_build_shared_CXX=no
  11048. fi
  11049. fi
  11050. case $host_os in
  11051. # For platforms which do not support PIC, -DPIC is meaningless:
  11052. *djgpp*)
  11053. lt_prog_compiler_pic_CXX=
  11054. ;;
  11055. *)
  11056. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11057. ;;
  11058. esac
  11059. #
  11060. # Check to make sure the static flag actually works.
  11061. #
  11062. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11063. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11064. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11065. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  11066. echo $ECHO_N "(cached) $ECHO_C" >&6
  11067. else
  11068. lt_cv_prog_compiler_static_works_CXX=no
  11069. save_LDFLAGS="$LDFLAGS"
  11070. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11071. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11072. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11073. # The linker can only warn and ignore the option if not recognized
  11074. # So say no if there are warnings
  11075. if test -s conftest.err; then
  11076. # Append any errors to the config.log.
  11077. cat conftest.err 1>&5
  11078. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11079. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11080. if diff conftest.exp conftest.er2 >/dev/null; then
  11081. lt_cv_prog_compiler_static_works_CXX=yes
  11082. fi
  11083. else
  11084. lt_cv_prog_compiler_static_works_CXX=yes
  11085. fi
  11086. fi
  11087. $rm -r conftest*
  11088. LDFLAGS="$save_LDFLAGS"
  11089. fi
  11090. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11091. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11092. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11093. :
  11094. else
  11095. lt_prog_compiler_static_CXX=
  11096. fi
  11097. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11098. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11099. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11100. echo $ECHO_N "(cached) $ECHO_C" >&6
  11101. else
  11102. lt_cv_prog_compiler_c_o_CXX=no
  11103. $rm -r conftest 2>/dev/null
  11104. mkdir conftest
  11105. cd conftest
  11106. mkdir out
  11107. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11108. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11109. # Insert the option either (1) after the last *FLAGS variable, or
  11110. # (2) before a word containing "conftest.", or (3) at the end.
  11111. # Note that $ac_compile itself does not contain backslashes and begins
  11112. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11113. lt_compile=`echo "$ac_compile" | $SED \
  11114. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11115. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11116. -e 's:$: $lt_compiler_flag:'`
  11117. (eval echo "\"\$as_me:12345: $lt_compile\"" >&5)
  11118. (eval "$lt_compile" 2>out/conftest.err)
  11119. ac_status=$?
  11120. cat out/conftest.err >&5
  11121. echo "$as_me:12349: \$? = $ac_status" >&5
  11122. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11123. then
  11124. # The compiler can only warn and ignore the option if not recognized
  11125. # So say no if there are warnings
  11126. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11127. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11128. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11129. lt_cv_prog_compiler_c_o_CXX=yes
  11130. fi
  11131. fi
  11132. chmod u+w . 2>&5
  11133. $rm conftest*
  11134. # SGI C++ compiler will create directory out/ii_files/ for
  11135. # template instantiation
  11136. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11137. $rm out/* && rmdir out
  11138. cd ..
  11139. rmdir conftest
  11140. $rm conftest*
  11141. fi
  11142. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11143. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11144. hard_links="nottested"
  11145. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11146. # do not overwrite the value of need_locks provided by the user
  11147. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11148. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11149. hard_links=yes
  11150. $rm conftest*
  11151. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11152. touch conftest.a
  11153. ln conftest.a conftest.b 2>&5 || hard_links=no
  11154. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11155. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11156. echo "${ECHO_T}$hard_links" >&6; }
  11157. if test "$hard_links" = no; then
  11158. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11159. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11160. need_locks=warn
  11161. fi
  11162. else
  11163. need_locks=no
  11164. fi
  11165. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11166. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11167. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11168. case $host_os in
  11169. aix[4-9]*)
  11170. # If we're using GNU nm, then we don't want the "-C" option.
  11171. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11172. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11173. 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'
  11174. else
  11175. 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'
  11176. fi
  11177. ;;
  11178. pw32*)
  11179. export_symbols_cmds_CXX="$ltdll_cmds"
  11180. ;;
  11181. cygwin* | mingw*)
  11182. 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'
  11183. ;;
  11184. linux* | k*bsd*-gnu)
  11185. link_all_deplibs_CXX=no
  11186. ;;
  11187. *)
  11188. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11189. ;;
  11190. esac
  11191. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11192. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11193. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11194. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11195. #
  11196. # Do we need to explicitly link libc?
  11197. #
  11198. case "x$archive_cmds_need_lc_CXX" in
  11199. x|xyes)
  11200. # Assume -lc should be added
  11201. archive_cmds_need_lc_CXX=yes
  11202. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11203. case $archive_cmds_CXX in
  11204. *'~'*)
  11205. # FIXME: we may have to deal with multi-command sequences.
  11206. ;;
  11207. '$CC '*)
  11208. # Test whether the compiler implicitly links with -lc since on some
  11209. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11210. # to ld, don't add -lc before -lgcc.
  11211. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11212. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11213. $rm conftest*
  11214. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11215. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11216. (eval $ac_compile) 2>&5
  11217. ac_status=$?
  11218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11219. (exit $ac_status); } 2>conftest.err; then
  11220. soname=conftest
  11221. lib=conftest
  11222. libobjs=conftest.$ac_objext
  11223. deplibs=
  11224. wl=$lt_prog_compiler_wl_CXX
  11225. pic_flag=$lt_prog_compiler_pic_CXX
  11226. compiler_flags=-v
  11227. linker_flags=-v
  11228. verstring=
  11229. output_objdir=.
  11230. libname=conftest
  11231. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11232. allow_undefined_flag_CXX=
  11233. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11234. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11235. ac_status=$?
  11236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11237. (exit $ac_status); }
  11238. then
  11239. archive_cmds_need_lc_CXX=no
  11240. else
  11241. archive_cmds_need_lc_CXX=yes
  11242. fi
  11243. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11244. else
  11245. cat conftest.err 1>&5
  11246. fi
  11247. $rm conftest*
  11248. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11249. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11250. ;;
  11251. esac
  11252. fi
  11253. ;;
  11254. esac
  11255. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11256. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11257. library_names_spec=
  11258. libname_spec='lib$name'
  11259. soname_spec=
  11260. shrext_cmds=".so"
  11261. postinstall_cmds=
  11262. postuninstall_cmds=
  11263. finish_cmds=
  11264. finish_eval=
  11265. shlibpath_var=
  11266. shlibpath_overrides_runpath=unknown
  11267. version_type=none
  11268. dynamic_linker="$host_os ld.so"
  11269. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11270. need_lib_prefix=unknown
  11271. hardcode_into_libs=no
  11272. # when you set need_version to no, make sure it does not cause -set_version
  11273. # flags to be left without arguments
  11274. need_version=unknown
  11275. case $host_os in
  11276. aix3*)
  11277. version_type=linux
  11278. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11279. shlibpath_var=LIBPATH
  11280. # AIX 3 has no versioning support, so we append a major version to the name.
  11281. soname_spec='${libname}${release}${shared_ext}$major'
  11282. ;;
  11283. aix[4-9]*)
  11284. version_type=linux
  11285. need_lib_prefix=no
  11286. need_version=no
  11287. hardcode_into_libs=yes
  11288. if test "$host_cpu" = ia64; then
  11289. # AIX 5 supports IA64
  11290. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11291. shlibpath_var=LD_LIBRARY_PATH
  11292. else
  11293. # With GCC up to 2.95.x, collect2 would create an import file
  11294. # for dependence libraries. The import file would start with
  11295. # the line `#! .'. This would cause the generated library to
  11296. # depend on `.', always an invalid library. This was fixed in
  11297. # development snapshots of GCC prior to 3.0.
  11298. case $host_os in
  11299. aix4 | aix4.[01] | aix4.[01].*)
  11300. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11301. echo ' yes '
  11302. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11303. :
  11304. else
  11305. can_build_shared=no
  11306. fi
  11307. ;;
  11308. esac
  11309. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11310. # soname into executable. Probably we can add versioning support to
  11311. # collect2, so additional links can be useful in future.
  11312. if test "$aix_use_runtimelinking" = yes; then
  11313. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11314. # instead of lib<name>.a to let people know that these are not
  11315. # typical AIX shared libraries.
  11316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11317. else
  11318. # We preserve .a as extension for shared libraries through AIX4.2
  11319. # and later when we are not doing run time linking.
  11320. library_names_spec='${libname}${release}.a $libname.a'
  11321. soname_spec='${libname}${release}${shared_ext}$major'
  11322. fi
  11323. shlibpath_var=LIBPATH
  11324. fi
  11325. ;;
  11326. amigaos*)
  11327. library_names_spec='$libname.ixlibrary $libname.a'
  11328. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11329. 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'
  11330. ;;
  11331. beos*)
  11332. library_names_spec='${libname}${shared_ext}'
  11333. dynamic_linker="$host_os ld.so"
  11334. shlibpath_var=LIBRARY_PATH
  11335. ;;
  11336. bsdi[45]*)
  11337. version_type=linux
  11338. need_version=no
  11339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11340. soname_spec='${libname}${release}${shared_ext}$major'
  11341. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11342. shlibpath_var=LD_LIBRARY_PATH
  11343. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11344. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11345. # the default ld.so.conf also contains /usr/contrib/lib and
  11346. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11347. # libtool to hard-code these into programs
  11348. ;;
  11349. cygwin* | mingw* | pw32*)
  11350. version_type=windows
  11351. shrext_cmds=".dll"
  11352. need_version=no
  11353. need_lib_prefix=no
  11354. case $GCC,$host_os in
  11355. yes,cygwin* | yes,mingw* | yes,pw32*)
  11356. library_names_spec='$libname.dll.a'
  11357. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11358. postinstall_cmds='base_file=`basename \${file}`~
  11359. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11360. dldir=$destdir/`dirname \$dlpath`~
  11361. test -d \$dldir || mkdir -p \$dldir~
  11362. $install_prog $dir/$dlname \$dldir/$dlname~
  11363. chmod a+x \$dldir/$dlname'
  11364. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11365. dlpath=$dir/\$dldll~
  11366. $rm \$dlpath'
  11367. shlibpath_overrides_runpath=yes
  11368. case $host_os in
  11369. cygwin*)
  11370. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11371. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11372. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11373. ;;
  11374. mingw*)
  11375. # MinGW DLLs use traditional 'lib' prefix
  11376. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11377. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11378. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11379. # It is most probably a Windows format PATH printed by
  11380. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11381. # path with ; separators, and with drive letters. We can handle the
  11382. # drive letters (cygwin fileutils understands them), so leave them,
  11383. # especially as we might pass files found there to a mingw objdump,
  11384. # which wouldn't understand a cygwinified path. Ahh.
  11385. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11386. else
  11387. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11388. fi
  11389. ;;
  11390. pw32*)
  11391. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11392. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11393. ;;
  11394. esac
  11395. ;;
  11396. *)
  11397. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11398. ;;
  11399. esac
  11400. dynamic_linker='Win32 ld.exe'
  11401. # FIXME: first we should search . and the directory the executable is in
  11402. shlibpath_var=PATH
  11403. ;;
  11404. darwin* | rhapsody*)
  11405. dynamic_linker="$host_os dyld"
  11406. version_type=darwin
  11407. need_lib_prefix=no
  11408. need_version=no
  11409. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11410. soname_spec='${libname}${release}${major}$shared_ext'
  11411. shlibpath_overrides_runpath=yes
  11412. shlibpath_var=DYLD_LIBRARY_PATH
  11413. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11414. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11415. ;;
  11416. dgux*)
  11417. version_type=linux
  11418. need_lib_prefix=no
  11419. need_version=no
  11420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11421. soname_spec='${libname}${release}${shared_ext}$major'
  11422. shlibpath_var=LD_LIBRARY_PATH
  11423. ;;
  11424. freebsd1*)
  11425. dynamic_linker=no
  11426. ;;
  11427. freebsd* | dragonfly*)
  11428. # DragonFly does not have aout. When/if they implement a new
  11429. # versioning mechanism, adjust this.
  11430. if test -x /usr/bin/objformat; then
  11431. objformat=`/usr/bin/objformat`
  11432. else
  11433. case $host_os in
  11434. freebsd[123]*) objformat=aout ;;
  11435. *) objformat=elf ;;
  11436. esac
  11437. fi
  11438. version_type=freebsd-$objformat
  11439. case $version_type in
  11440. freebsd-elf*)
  11441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11442. need_version=no
  11443. need_lib_prefix=no
  11444. ;;
  11445. freebsd-*)
  11446. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11447. need_version=yes
  11448. ;;
  11449. esac
  11450. shlibpath_var=LD_LIBRARY_PATH
  11451. case $host_os in
  11452. freebsd2*)
  11453. shlibpath_overrides_runpath=yes
  11454. ;;
  11455. freebsd3.[01]* | freebsdelf3.[01]*)
  11456. shlibpath_overrides_runpath=yes
  11457. hardcode_into_libs=yes
  11458. ;;
  11459. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11460. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11461. shlibpath_overrides_runpath=no
  11462. hardcode_into_libs=yes
  11463. ;;
  11464. *) # from 4.6 on, and DragonFly
  11465. shlibpath_overrides_runpath=yes
  11466. hardcode_into_libs=yes
  11467. ;;
  11468. esac
  11469. ;;
  11470. gnu*)
  11471. version_type=linux
  11472. need_lib_prefix=no
  11473. need_version=no
  11474. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11475. soname_spec='${libname}${release}${shared_ext}$major'
  11476. shlibpath_var=LD_LIBRARY_PATH
  11477. hardcode_into_libs=yes
  11478. ;;
  11479. hpux9* | hpux10* | hpux11*)
  11480. # Give a soname corresponding to the major version so that dld.sl refuses to
  11481. # link against other versions.
  11482. version_type=sunos
  11483. need_lib_prefix=no
  11484. need_version=no
  11485. case $host_cpu in
  11486. ia64*)
  11487. shrext_cmds='.so'
  11488. hardcode_into_libs=yes
  11489. dynamic_linker="$host_os dld.so"
  11490. shlibpath_var=LD_LIBRARY_PATH
  11491. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11493. soname_spec='${libname}${release}${shared_ext}$major'
  11494. if test "X$HPUX_IA64_MODE" = X32; then
  11495. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11496. else
  11497. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11498. fi
  11499. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11500. ;;
  11501. hppa*64*)
  11502. shrext_cmds='.sl'
  11503. hardcode_into_libs=yes
  11504. dynamic_linker="$host_os dld.sl"
  11505. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11506. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11507. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11508. soname_spec='${libname}${release}${shared_ext}$major'
  11509. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11510. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11511. ;;
  11512. *)
  11513. shrext_cmds='.sl'
  11514. dynamic_linker="$host_os dld.sl"
  11515. shlibpath_var=SHLIB_PATH
  11516. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11518. soname_spec='${libname}${release}${shared_ext}$major'
  11519. ;;
  11520. esac
  11521. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11522. postinstall_cmds='chmod 555 $lib'
  11523. ;;
  11524. interix[3-9]*)
  11525. version_type=linux
  11526. need_lib_prefix=no
  11527. need_version=no
  11528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11529. soname_spec='${libname}${release}${shared_ext}$major'
  11530. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11531. shlibpath_var=LD_LIBRARY_PATH
  11532. shlibpath_overrides_runpath=no
  11533. hardcode_into_libs=yes
  11534. ;;
  11535. irix5* | irix6* | nonstopux*)
  11536. case $host_os in
  11537. nonstopux*) version_type=nonstopux ;;
  11538. *)
  11539. if test "$lt_cv_prog_gnu_ld" = yes; then
  11540. version_type=linux
  11541. else
  11542. version_type=irix
  11543. fi ;;
  11544. esac
  11545. need_lib_prefix=no
  11546. need_version=no
  11547. soname_spec='${libname}${release}${shared_ext}$major'
  11548. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11549. case $host_os in
  11550. irix5* | nonstopux*)
  11551. libsuff= shlibsuff=
  11552. ;;
  11553. *)
  11554. case $LD in # libtool.m4 will add one of these switches to LD
  11555. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11556. libsuff= shlibsuff= libmagic=32-bit;;
  11557. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11558. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11559. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11560. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11561. *) libsuff= shlibsuff= libmagic=never-match;;
  11562. esac
  11563. ;;
  11564. esac
  11565. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11566. shlibpath_overrides_runpath=no
  11567. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11568. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11569. hardcode_into_libs=yes
  11570. ;;
  11571. # No shared lib support for Linux oldld, aout, or coff.
  11572. linux*oldld* | linux*aout* | linux*coff*)
  11573. dynamic_linker=no
  11574. ;;
  11575. # This must be Linux ELF.
  11576. linux* | k*bsd*-gnu)
  11577. version_type=linux
  11578. need_lib_prefix=no
  11579. need_version=no
  11580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11581. soname_spec='${libname}${release}${shared_ext}$major'
  11582. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11583. shlibpath_var=LD_LIBRARY_PATH
  11584. shlibpath_overrides_runpath=no
  11585. # This implies no fast_install, which is unacceptable.
  11586. # Some rework will be needed to allow for fast_install
  11587. # before this can be enabled.
  11588. hardcode_into_libs=yes
  11589. # Append ld.so.conf contents to the search path
  11590. if test -f /etc/ld.so.conf; then
  11591. 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' ' '`
  11592. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11593. fi
  11594. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11595. # powerpc, because MkLinux only supported shared libraries with the
  11596. # GNU dynamic linker. Since this was broken with cross compilers,
  11597. # most powerpc-linux boxes support dynamic linking these days and
  11598. # people can always --disable-shared, the test was removed, and we
  11599. # assume the GNU/Linux dynamic linker is in use.
  11600. dynamic_linker='GNU/Linux ld.so'
  11601. ;;
  11602. netbsdelf*-gnu)
  11603. version_type=linux
  11604. need_lib_prefix=no
  11605. need_version=no
  11606. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11607. soname_spec='${libname}${release}${shared_ext}$major'
  11608. shlibpath_var=LD_LIBRARY_PATH
  11609. shlibpath_overrides_runpath=no
  11610. hardcode_into_libs=yes
  11611. dynamic_linker='NetBSD ld.elf_so'
  11612. ;;
  11613. netbsd*)
  11614. version_type=sunos
  11615. need_lib_prefix=no
  11616. need_version=no
  11617. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11619. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11620. dynamic_linker='NetBSD (a.out) ld.so'
  11621. else
  11622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11623. soname_spec='${libname}${release}${shared_ext}$major'
  11624. dynamic_linker='NetBSD ld.elf_so'
  11625. fi
  11626. shlibpath_var=LD_LIBRARY_PATH
  11627. shlibpath_overrides_runpath=yes
  11628. hardcode_into_libs=yes
  11629. ;;
  11630. newsos6)
  11631. version_type=linux
  11632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11633. shlibpath_var=LD_LIBRARY_PATH
  11634. shlibpath_overrides_runpath=yes
  11635. ;;
  11636. nto-qnx*)
  11637. version_type=linux
  11638. need_lib_prefix=no
  11639. need_version=no
  11640. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11641. soname_spec='${libname}${release}${shared_ext}$major'
  11642. shlibpath_var=LD_LIBRARY_PATH
  11643. shlibpath_overrides_runpath=yes
  11644. ;;
  11645. openbsd*)
  11646. version_type=sunos
  11647. sys_lib_dlsearch_path_spec="/usr/lib"
  11648. need_lib_prefix=no
  11649. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11650. case $host_os in
  11651. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11652. *) need_version=no ;;
  11653. esac
  11654. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11655. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11656. shlibpath_var=LD_LIBRARY_PATH
  11657. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11658. case $host_os in
  11659. openbsd2.[89] | openbsd2.[89].*)
  11660. shlibpath_overrides_runpath=no
  11661. ;;
  11662. *)
  11663. shlibpath_overrides_runpath=yes
  11664. ;;
  11665. esac
  11666. else
  11667. shlibpath_overrides_runpath=yes
  11668. fi
  11669. ;;
  11670. os2*)
  11671. libname_spec='$name'
  11672. shrext_cmds=".dll"
  11673. need_lib_prefix=no
  11674. library_names_spec='$libname${shared_ext} $libname.a'
  11675. dynamic_linker='OS/2 ld.exe'
  11676. shlibpath_var=LIBPATH
  11677. ;;
  11678. osf3* | osf4* | osf5*)
  11679. version_type=osf
  11680. need_lib_prefix=no
  11681. need_version=no
  11682. soname_spec='${libname}${release}${shared_ext}$major'
  11683. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11684. shlibpath_var=LD_LIBRARY_PATH
  11685. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11686. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11687. ;;
  11688. rdos*)
  11689. dynamic_linker=no
  11690. ;;
  11691. solaris*)
  11692. version_type=linux
  11693. need_lib_prefix=no
  11694. need_version=no
  11695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11696. soname_spec='${libname}${release}${shared_ext}$major'
  11697. shlibpath_var=LD_LIBRARY_PATH
  11698. shlibpath_overrides_runpath=yes
  11699. hardcode_into_libs=yes
  11700. # ldd complains unless libraries are executable
  11701. postinstall_cmds='chmod +x $lib'
  11702. ;;
  11703. sunos4*)
  11704. version_type=sunos
  11705. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11706. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11707. shlibpath_var=LD_LIBRARY_PATH
  11708. shlibpath_overrides_runpath=yes
  11709. if test "$with_gnu_ld" = yes; then
  11710. need_lib_prefix=no
  11711. fi
  11712. need_version=yes
  11713. ;;
  11714. sysv4 | sysv4.3*)
  11715. version_type=linux
  11716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11717. soname_spec='${libname}${release}${shared_ext}$major'
  11718. shlibpath_var=LD_LIBRARY_PATH
  11719. case $host_vendor in
  11720. sni)
  11721. shlibpath_overrides_runpath=no
  11722. need_lib_prefix=no
  11723. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11724. runpath_var=LD_RUN_PATH
  11725. ;;
  11726. siemens)
  11727. need_lib_prefix=no
  11728. ;;
  11729. motorola)
  11730. need_lib_prefix=no
  11731. need_version=no
  11732. shlibpath_overrides_runpath=no
  11733. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11734. ;;
  11735. esac
  11736. ;;
  11737. sysv4*MP*)
  11738. if test -d /usr/nec ;then
  11739. version_type=linux
  11740. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11741. soname_spec='$libname${shared_ext}.$major'
  11742. shlibpath_var=LD_LIBRARY_PATH
  11743. fi
  11744. ;;
  11745. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11746. version_type=freebsd-elf
  11747. need_lib_prefix=no
  11748. need_version=no
  11749. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11750. soname_spec='${libname}${release}${shared_ext}$major'
  11751. shlibpath_var=LD_LIBRARY_PATH
  11752. hardcode_into_libs=yes
  11753. if test "$with_gnu_ld" = yes; then
  11754. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11755. shlibpath_overrides_runpath=no
  11756. else
  11757. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11758. shlibpath_overrides_runpath=yes
  11759. case $host_os in
  11760. sco3.2v5*)
  11761. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11762. ;;
  11763. esac
  11764. fi
  11765. sys_lib_dlsearch_path_spec='/usr/lib'
  11766. ;;
  11767. uts4*)
  11768. version_type=linux
  11769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11770. soname_spec='${libname}${release}${shared_ext}$major'
  11771. shlibpath_var=LD_LIBRARY_PATH
  11772. ;;
  11773. *)
  11774. dynamic_linker=no
  11775. ;;
  11776. esac
  11777. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11778. echo "${ECHO_T}$dynamic_linker" >&6; }
  11779. test "$dynamic_linker" = no && can_build_shared=no
  11780. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  11781. echo $ECHO_N "(cached) $ECHO_C" >&6
  11782. else
  11783. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  11784. fi
  11785. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  11786. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  11787. echo $ECHO_N "(cached) $ECHO_C" >&6
  11788. else
  11789. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  11790. fi
  11791. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  11792. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11793. if test "$GCC" = yes; then
  11794. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11795. fi
  11796. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11797. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  11798. hardcode_action_CXX=
  11799. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11800. test -n "$runpath_var_CXX" || \
  11801. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11802. # We can hardcode non-existant directories.
  11803. if test "$hardcode_direct_CXX" != no &&
  11804. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11805. # have to relink, otherwise we might link with an installed library
  11806. # when we should be linking with a yet-to-be-installed one
  11807. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11808. test "$hardcode_minus_L_CXX" != no; then
  11809. # Linking always hardcodes the temporary library directory.
  11810. hardcode_action_CXX=relink
  11811. else
  11812. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11813. hardcode_action_CXX=immediate
  11814. fi
  11815. else
  11816. # We cannot hardcode anything, or else we can only hardcode existing
  11817. # directories.
  11818. hardcode_action_CXX=unsupported
  11819. fi
  11820. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11821. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  11822. if test "$hardcode_action_CXX" = relink; then
  11823. # Fast installation is not supported
  11824. enable_fast_install=no
  11825. elif test "$shlibpath_overrides_runpath" = yes ||
  11826. test "$enable_shared" = no; then
  11827. # Fast installation is not necessary
  11828. enable_fast_install=needless
  11829. fi
  11830. # The else clause should only fire when bootstrapping the
  11831. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11832. # with your package, and you will get complaints that there are
  11833. # no rules to generate ltmain.sh.
  11834. if test -f "$ltmain"; then
  11835. # See if we are running on zsh, and set the options which allow our commands through
  11836. # without removal of \ escapes.
  11837. if test -n "${ZSH_VERSION+set}" ; then
  11838. setopt NO_GLOB_SUBST
  11839. fi
  11840. # Now quote all the things that may contain metacharacters while being
  11841. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11842. # variables and quote the copies for generation of the libtool script.
  11843. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11844. SED SHELL STRIP \
  11845. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11846. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11847. deplibs_check_method reload_flag reload_cmds need_locks \
  11848. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11849. lt_cv_sys_global_symbol_to_c_name_address \
  11850. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11851. old_postinstall_cmds old_postuninstall_cmds \
  11852. compiler_CXX \
  11853. CC_CXX \
  11854. LD_CXX \
  11855. lt_prog_compiler_wl_CXX \
  11856. lt_prog_compiler_pic_CXX \
  11857. lt_prog_compiler_static_CXX \
  11858. lt_prog_compiler_no_builtin_flag_CXX \
  11859. export_dynamic_flag_spec_CXX \
  11860. thread_safe_flag_spec_CXX \
  11861. whole_archive_flag_spec_CXX \
  11862. enable_shared_with_static_runtimes_CXX \
  11863. old_archive_cmds_CXX \
  11864. old_archive_from_new_cmds_CXX \
  11865. predep_objects_CXX \
  11866. postdep_objects_CXX \
  11867. predeps_CXX \
  11868. postdeps_CXX \
  11869. compiler_lib_search_path_CXX \
  11870. compiler_lib_search_dirs_CXX \
  11871. archive_cmds_CXX \
  11872. archive_expsym_cmds_CXX \
  11873. postinstall_cmds_CXX \
  11874. postuninstall_cmds_CXX \
  11875. old_archive_from_expsyms_cmds_CXX \
  11876. allow_undefined_flag_CXX \
  11877. no_undefined_flag_CXX \
  11878. export_symbols_cmds_CXX \
  11879. hardcode_libdir_flag_spec_CXX \
  11880. hardcode_libdir_flag_spec_ld_CXX \
  11881. hardcode_libdir_separator_CXX \
  11882. hardcode_automatic_CXX \
  11883. module_cmds_CXX \
  11884. module_expsym_cmds_CXX \
  11885. lt_cv_prog_compiler_c_o_CXX \
  11886. fix_srcfile_path_CXX \
  11887. exclude_expsyms_CXX \
  11888. include_expsyms_CXX; do
  11889. case $var in
  11890. old_archive_cmds_CXX | \
  11891. old_archive_from_new_cmds_CXX | \
  11892. archive_cmds_CXX | \
  11893. archive_expsym_cmds_CXX | \
  11894. module_cmds_CXX | \
  11895. module_expsym_cmds_CXX | \
  11896. old_archive_from_expsyms_cmds_CXX | \
  11897. export_symbols_cmds_CXX | \
  11898. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11899. postinstall_cmds | postuninstall_cmds | \
  11900. old_postinstall_cmds | old_postuninstall_cmds | \
  11901. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11902. # Double-quote double-evaled strings.
  11903. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11904. ;;
  11905. *)
  11906. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11907. ;;
  11908. esac
  11909. done
  11910. case $lt_echo in
  11911. *'\$0 --fallback-echo"')
  11912. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11913. ;;
  11914. esac
  11915. cfgfile="$ofile"
  11916. cat <<__EOF__ >> "$cfgfile"
  11917. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11918. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11919. # Shell to use when invoking shell scripts.
  11920. SHELL=$lt_SHELL
  11921. # Whether or not to build shared libraries.
  11922. build_libtool_libs=$enable_shared
  11923. # Whether or not to build static libraries.
  11924. build_old_libs=$enable_static
  11925. # Whether or not to add -lc for building shared libraries.
  11926. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11927. # Whether or not to disallow shared libs when runtime libs are static
  11928. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11929. # Whether or not to optimize for fast installation.
  11930. fast_install=$enable_fast_install
  11931. # The host system.
  11932. host_alias=$host_alias
  11933. host=$host
  11934. host_os=$host_os
  11935. # The build system.
  11936. build_alias=$build_alias
  11937. build=$build
  11938. build_os=$build_os
  11939. # An echo program that does not interpret backslashes.
  11940. echo=$lt_echo
  11941. # The archiver.
  11942. AR=$lt_AR
  11943. AR_FLAGS=$lt_AR_FLAGS
  11944. # A C compiler.
  11945. LTCC=$lt_LTCC
  11946. # LTCC compiler flags.
  11947. LTCFLAGS=$lt_LTCFLAGS
  11948. # A language-specific compiler.
  11949. CC=$lt_compiler_CXX
  11950. # Is the compiler the GNU C compiler?
  11951. with_gcc=$GCC_CXX
  11952. # An ERE matcher.
  11953. EGREP=$lt_EGREP
  11954. # The linker used to build libraries.
  11955. LD=$lt_LD_CXX
  11956. # Whether we need hard or soft links.
  11957. LN_S=$lt_LN_S
  11958. # A BSD-compatible nm program.
  11959. NM=$lt_NM
  11960. # A symbol stripping program
  11961. STRIP=$lt_STRIP
  11962. # Used to examine libraries when file_magic_cmd begins "file"
  11963. MAGIC_CMD=$MAGIC_CMD
  11964. # Used on cygwin: DLL creation program.
  11965. DLLTOOL="$DLLTOOL"
  11966. # Used on cygwin: object dumper.
  11967. OBJDUMP="$OBJDUMP"
  11968. # Used on cygwin: assembler.
  11969. AS="$AS"
  11970. # The name of the directory that contains temporary libtool files.
  11971. objdir=$objdir
  11972. # How to create reloadable object files.
  11973. reload_flag=$lt_reload_flag
  11974. reload_cmds=$lt_reload_cmds
  11975. # How to pass a linker flag through the compiler.
  11976. wl=$lt_lt_prog_compiler_wl_CXX
  11977. # Object file suffix (normally "o").
  11978. objext="$ac_objext"
  11979. # Old archive suffix (normally "a").
  11980. libext="$libext"
  11981. # Shared library suffix (normally ".so").
  11982. shrext_cmds='$shrext_cmds'
  11983. # Executable file suffix (normally "").
  11984. exeext="$exeext"
  11985. # Additional compiler flags for building library objects.
  11986. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11987. pic_mode=$pic_mode
  11988. # What is the maximum length of a command?
  11989. max_cmd_len=$lt_cv_sys_max_cmd_len
  11990. # Does compiler simultaneously support -c and -o options?
  11991. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11992. # Must we lock files when doing compilation?
  11993. need_locks=$lt_need_locks
  11994. # Do we need the lib prefix for modules?
  11995. need_lib_prefix=$need_lib_prefix
  11996. # Do we need a version for libraries?
  11997. need_version=$need_version
  11998. # Whether dlopen is supported.
  11999. dlopen_support=$enable_dlopen
  12000. # Whether dlopen of programs is supported.
  12001. dlopen_self=$enable_dlopen_self
  12002. # Whether dlopen of statically linked programs is supported.
  12003. dlopen_self_static=$enable_dlopen_self_static
  12004. # Compiler flag to prevent dynamic linking.
  12005. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12006. # Compiler flag to turn off builtin functions.
  12007. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12008. # Compiler flag to allow reflexive dlopens.
  12009. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12010. # Compiler flag to generate shared objects directly from archives.
  12011. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12012. # Compiler flag to generate thread-safe objects.
  12013. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12014. # Library versioning type.
  12015. version_type=$version_type
  12016. # Format of library name prefix.
  12017. libname_spec=$lt_libname_spec
  12018. # List of archive names. First name is the real one, the rest are links.
  12019. # The last name is the one that the linker finds with -lNAME.
  12020. library_names_spec=$lt_library_names_spec
  12021. # The coded name of the library, if different from the real name.
  12022. soname_spec=$lt_soname_spec
  12023. # Commands used to build and install an old-style archive.
  12024. RANLIB=$lt_RANLIB
  12025. old_archive_cmds=$lt_old_archive_cmds_CXX
  12026. old_postinstall_cmds=$lt_old_postinstall_cmds
  12027. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12028. # Create an old-style archive from a shared archive.
  12029. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12030. # Create a temporary old-style archive to link instead of a shared archive.
  12031. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12032. # Commands used to build and install a shared archive.
  12033. archive_cmds=$lt_archive_cmds_CXX
  12034. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12035. postinstall_cmds=$lt_postinstall_cmds
  12036. postuninstall_cmds=$lt_postuninstall_cmds
  12037. # Commands used to build a loadable module (assumed same as above if empty)
  12038. module_cmds=$lt_module_cmds_CXX
  12039. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12040. # Commands to strip libraries.
  12041. old_striplib=$lt_old_striplib
  12042. striplib=$lt_striplib
  12043. # Dependencies to place before the objects being linked to create a
  12044. # shared library.
  12045. predep_objects=$lt_predep_objects_CXX
  12046. # Dependencies to place after the objects being linked to create a
  12047. # shared library.
  12048. postdep_objects=$lt_postdep_objects_CXX
  12049. # Dependencies to place before the objects being linked to create a
  12050. # shared library.
  12051. predeps=$lt_predeps_CXX
  12052. # Dependencies to place after the objects being linked to create a
  12053. # shared library.
  12054. postdeps=$lt_postdeps_CXX
  12055. # The directories searched by this compiler when creating a shared
  12056. # library
  12057. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  12058. # The library search path used internally by the compiler when linking
  12059. # a shared library.
  12060. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12061. # Method to check whether dependent libraries are shared objects.
  12062. deplibs_check_method=$lt_deplibs_check_method
  12063. # Command to use when deplibs_check_method == file_magic.
  12064. file_magic_cmd=$lt_file_magic_cmd
  12065. # Flag that allows shared libraries with undefined symbols to be built.
  12066. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12067. # Flag that forces no undefined symbols.
  12068. no_undefined_flag=$lt_no_undefined_flag_CXX
  12069. # Commands used to finish a libtool library installation in a directory.
  12070. finish_cmds=$lt_finish_cmds
  12071. # Same as above, but a single script fragment to be evaled but not shown.
  12072. finish_eval=$lt_finish_eval
  12073. # Take the output of nm and produce a listing of raw symbols and C names.
  12074. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12075. # Transform the output of nm in a proper C declaration
  12076. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12077. # Transform the output of nm in a C name address pair
  12078. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12079. # This is the shared library runtime path variable.
  12080. runpath_var=$runpath_var
  12081. # This is the shared library path variable.
  12082. shlibpath_var=$shlibpath_var
  12083. # Is shlibpath searched before the hard-coded library search path?
  12084. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12085. # How to hardcode a shared library path into an executable.
  12086. hardcode_action=$hardcode_action_CXX
  12087. # Whether we should hardcode library paths into libraries.
  12088. hardcode_into_libs=$hardcode_into_libs
  12089. # Flag to hardcode \$libdir into a binary during linking.
  12090. # This must work even if \$libdir does not exist.
  12091. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12092. # If ld is used when linking, flag to hardcode \$libdir into
  12093. # a binary during linking. This must work even if \$libdir does
  12094. # not exist.
  12095. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12096. # Whether we need a single -rpath flag with a separated argument.
  12097. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12098. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12099. # resulting binary.
  12100. hardcode_direct=$hardcode_direct_CXX
  12101. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12102. # resulting binary.
  12103. hardcode_minus_L=$hardcode_minus_L_CXX
  12104. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12105. # the resulting binary.
  12106. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12107. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12108. # and all subsequent libraries and executables linked against it.
  12109. hardcode_automatic=$hardcode_automatic_CXX
  12110. # Variables whose values should be saved in libtool wrapper scripts and
  12111. # restored at relink time.
  12112. variables_saved_for_relink="$variables_saved_for_relink"
  12113. # Whether libtool must link a program against all its dependency libraries.
  12114. link_all_deplibs=$link_all_deplibs_CXX
  12115. # Compile-time system search path for libraries
  12116. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12117. # Run-time system search path for libraries
  12118. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12119. # Fix the shell variable \$srcfile for the compiler.
  12120. fix_srcfile_path=$lt_fix_srcfile_path
  12121. # Set to yes if exported symbols are required.
  12122. always_export_symbols=$always_export_symbols_CXX
  12123. # The commands to list exported symbols.
  12124. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12125. # The commands to extract the exported symbol list from a shared archive.
  12126. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12127. # Symbols that should not be listed in the preloaded symbols.
  12128. exclude_expsyms=$lt_exclude_expsyms_CXX
  12129. # Symbols that must always be exported.
  12130. include_expsyms=$lt_include_expsyms_CXX
  12131. # ### END LIBTOOL TAG CONFIG: $tagname
  12132. __EOF__
  12133. else
  12134. # If there is no Makefile yet, we rely on a make rule to execute
  12135. # `config.status --recheck' to rerun these tests and create the
  12136. # libtool script then.
  12137. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12138. if test -f "$ltmain_in"; then
  12139. test -f Makefile && make "$ltmain"
  12140. fi
  12141. fi
  12142. ac_ext=c
  12143. ac_cpp='$CPP $CPPFLAGS'
  12144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12147. CC=$lt_save_CC
  12148. LDCXX=$LD
  12149. LD=$lt_save_LD
  12150. GCC=$lt_save_GCC
  12151. with_gnu_ldcxx=$with_gnu_ld
  12152. with_gnu_ld=$lt_save_with_gnu_ld
  12153. lt_cv_path_LDCXX=$lt_cv_path_LD
  12154. lt_cv_path_LD=$lt_save_path_LD
  12155. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12156. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12157. else
  12158. tagname=""
  12159. fi
  12160. ;;
  12161. F77)
  12162. if test -n "$F77" && test "X$F77" != "Xno"; then
  12163. ac_ext=f
  12164. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12165. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12166. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12167. archive_cmds_need_lc_F77=no
  12168. allow_undefined_flag_F77=
  12169. always_export_symbols_F77=no
  12170. archive_expsym_cmds_F77=
  12171. export_dynamic_flag_spec_F77=
  12172. hardcode_direct_F77=no
  12173. hardcode_libdir_flag_spec_F77=
  12174. hardcode_libdir_flag_spec_ld_F77=
  12175. hardcode_libdir_separator_F77=
  12176. hardcode_minus_L_F77=no
  12177. hardcode_automatic_F77=no
  12178. module_cmds_F77=
  12179. module_expsym_cmds_F77=
  12180. link_all_deplibs_F77=unknown
  12181. old_archive_cmds_F77=$old_archive_cmds
  12182. no_undefined_flag_F77=
  12183. whole_archive_flag_spec_F77=
  12184. enable_shared_with_static_runtimes_F77=no
  12185. # Source file extension for f77 test sources.
  12186. ac_ext=f
  12187. # Object file extension for compiled f77 test sources.
  12188. objext=o
  12189. objext_F77=$objext
  12190. # Code to be used in simple compile tests
  12191. lt_simple_compile_test_code="\
  12192. subroutine t
  12193. return
  12194. end
  12195. "
  12196. # Code to be used in simple link tests
  12197. lt_simple_link_test_code="\
  12198. program t
  12199. end
  12200. "
  12201. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12202. # If no C compiler was specified, use CC.
  12203. LTCC=${LTCC-"$CC"}
  12204. # If no C compiler flags were specified, use CFLAGS.
  12205. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12206. # Allow CC to be a program name with arguments.
  12207. compiler=$CC
  12208. # save warnings/boilerplate of simple test code
  12209. ac_outfile=conftest.$ac_objext
  12210. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12211. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12212. _lt_compiler_boilerplate=`cat conftest.err`
  12213. $rm conftest*
  12214. ac_outfile=conftest.$ac_objext
  12215. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12216. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12217. _lt_linker_boilerplate=`cat conftest.err`
  12218. $rm -r conftest*
  12219. # Allow CC to be a program name with arguments.
  12220. lt_save_CC="$CC"
  12221. CC=${F77-"f77"}
  12222. compiler=$CC
  12223. compiler_F77=$CC
  12224. for cc_temp in $compiler""; do
  12225. case $cc_temp in
  12226. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12227. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12228. \-*) ;;
  12229. *) break;;
  12230. esac
  12231. done
  12232. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12233. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12234. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12235. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12236. echo "${ECHO_T}$can_build_shared" >&6; }
  12237. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12238. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12239. test "$can_build_shared" = "no" && enable_shared=no
  12240. # On AIX, shared libraries and static libraries use the same namespace, and
  12241. # are all built from PIC.
  12242. case $host_os in
  12243. aix3*)
  12244. test "$enable_shared" = yes && enable_static=no
  12245. if test -n "$RANLIB"; then
  12246. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12247. postinstall_cmds='$RANLIB $lib'
  12248. fi
  12249. ;;
  12250. aix[4-9]*)
  12251. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12252. test "$enable_shared" = yes && enable_static=no
  12253. fi
  12254. ;;
  12255. esac
  12256. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12257. echo "${ECHO_T}$enable_shared" >&6; }
  12258. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12259. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12260. # Make sure either enable_shared or enable_static is yes.
  12261. test "$enable_shared" = yes || enable_static=yes
  12262. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12263. echo "${ECHO_T}$enable_static" >&6; }
  12264. GCC_F77="$G77"
  12265. LD_F77="$LD"
  12266. lt_prog_compiler_wl_F77=
  12267. lt_prog_compiler_pic_F77=
  12268. lt_prog_compiler_static_F77=
  12269. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12270. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12271. if test "$GCC" = yes; then
  12272. lt_prog_compiler_wl_F77='-Wl,'
  12273. lt_prog_compiler_static_F77='-static'
  12274. case $host_os in
  12275. aix*)
  12276. # All AIX code is PIC.
  12277. if test "$host_cpu" = ia64; then
  12278. # AIX 5 now supports IA64 processor
  12279. lt_prog_compiler_static_F77='-Bstatic'
  12280. fi
  12281. ;;
  12282. amigaos*)
  12283. # FIXME: we need at least 68020 code to build shared libraries, but
  12284. # adding the `-m68020' flag to GCC prevents building anything better,
  12285. # like `-m68040'.
  12286. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12287. ;;
  12288. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12289. # PIC is the default for these OSes.
  12290. ;;
  12291. mingw* | cygwin* | pw32* | os2*)
  12292. # This hack is so that the source file can tell whether it is being
  12293. # built for inclusion in a dll (and should export symbols for example).
  12294. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12295. # (--disable-auto-import) libraries
  12296. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12297. ;;
  12298. darwin* | rhapsody*)
  12299. # PIC is the default on this platform
  12300. # Common symbols not allowed in MH_DYLIB files
  12301. lt_prog_compiler_pic_F77='-fno-common'
  12302. ;;
  12303. interix[3-9]*)
  12304. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12305. # Instead, we relocate shared libraries at runtime.
  12306. ;;
  12307. msdosdjgpp*)
  12308. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12309. # on systems that don't support them.
  12310. lt_prog_compiler_can_build_shared_F77=no
  12311. enable_shared=no
  12312. ;;
  12313. sysv4*MP*)
  12314. if test -d /usr/nec; then
  12315. lt_prog_compiler_pic_F77=-Kconform_pic
  12316. fi
  12317. ;;
  12318. hpux*)
  12319. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12320. # not for PA HP-UX.
  12321. case $host_cpu in
  12322. hppa*64*|ia64*)
  12323. # +Z the default
  12324. ;;
  12325. *)
  12326. lt_prog_compiler_pic_F77='-fPIC'
  12327. ;;
  12328. esac
  12329. ;;
  12330. *)
  12331. lt_prog_compiler_pic_F77='-fPIC'
  12332. ;;
  12333. esac
  12334. else
  12335. # PORTME Check for flag to pass linker flags through the system compiler.
  12336. case $host_os in
  12337. aix*)
  12338. lt_prog_compiler_wl_F77='-Wl,'
  12339. if test "$host_cpu" = ia64; then
  12340. # AIX 5 now supports IA64 processor
  12341. lt_prog_compiler_static_F77='-Bstatic'
  12342. else
  12343. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12344. fi
  12345. ;;
  12346. darwin*)
  12347. # PIC is the default on this platform
  12348. # Common symbols not allowed in MH_DYLIB files
  12349. case $cc_basename in
  12350. xlc*)
  12351. lt_prog_compiler_pic_F77='-qnocommon'
  12352. lt_prog_compiler_wl_F77='-Wl,'
  12353. ;;
  12354. esac
  12355. ;;
  12356. mingw* | cygwin* | pw32* | os2*)
  12357. # This hack is so that the source file can tell whether it is being
  12358. # built for inclusion in a dll (and should export symbols for example).
  12359. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12360. ;;
  12361. hpux9* | hpux10* | hpux11*)
  12362. lt_prog_compiler_wl_F77='-Wl,'
  12363. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12364. # not for PA HP-UX.
  12365. case $host_cpu in
  12366. hppa*64*|ia64*)
  12367. # +Z the default
  12368. ;;
  12369. *)
  12370. lt_prog_compiler_pic_F77='+Z'
  12371. ;;
  12372. esac
  12373. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12374. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12375. ;;
  12376. irix5* | irix6* | nonstopux*)
  12377. lt_prog_compiler_wl_F77='-Wl,'
  12378. # PIC (with -KPIC) is the default.
  12379. lt_prog_compiler_static_F77='-non_shared'
  12380. ;;
  12381. newsos6)
  12382. lt_prog_compiler_pic_F77='-KPIC'
  12383. lt_prog_compiler_static_F77='-Bstatic'
  12384. ;;
  12385. linux* | k*bsd*-gnu)
  12386. case $cc_basename in
  12387. icc* | ecc*)
  12388. lt_prog_compiler_wl_F77='-Wl,'
  12389. lt_prog_compiler_pic_F77='-KPIC'
  12390. lt_prog_compiler_static_F77='-static'
  12391. ;;
  12392. pgcc* | pgf77* | pgf90* | pgf95*)
  12393. # Portland Group compilers (*not* the Pentium gcc compiler,
  12394. # which looks to be a dead project)
  12395. lt_prog_compiler_wl_F77='-Wl,'
  12396. lt_prog_compiler_pic_F77='-fpic'
  12397. lt_prog_compiler_static_F77='-Bstatic'
  12398. ;;
  12399. ccc*)
  12400. lt_prog_compiler_wl_F77='-Wl,'
  12401. # All Alpha code is PIC.
  12402. lt_prog_compiler_static_F77='-non_shared'
  12403. ;;
  12404. *)
  12405. case `$CC -V 2>&1 | sed 5q` in
  12406. *Sun\ C*)
  12407. # Sun C 5.9
  12408. lt_prog_compiler_pic_F77='-KPIC'
  12409. lt_prog_compiler_static_F77='-Bstatic'
  12410. lt_prog_compiler_wl_F77='-Wl,'
  12411. ;;
  12412. *Sun\ F*)
  12413. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12414. lt_prog_compiler_pic_F77='-KPIC'
  12415. lt_prog_compiler_static_F77='-Bstatic'
  12416. lt_prog_compiler_wl_F77=''
  12417. ;;
  12418. esac
  12419. ;;
  12420. esac
  12421. ;;
  12422. osf3* | osf4* | osf5*)
  12423. lt_prog_compiler_wl_F77='-Wl,'
  12424. # All OSF/1 code is PIC.
  12425. lt_prog_compiler_static_F77='-non_shared'
  12426. ;;
  12427. rdos*)
  12428. lt_prog_compiler_static_F77='-non_shared'
  12429. ;;
  12430. solaris*)
  12431. lt_prog_compiler_pic_F77='-KPIC'
  12432. lt_prog_compiler_static_F77='-Bstatic'
  12433. case $cc_basename in
  12434. f77* | f90* | f95*)
  12435. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12436. *)
  12437. lt_prog_compiler_wl_F77='-Wl,';;
  12438. esac
  12439. ;;
  12440. sunos4*)
  12441. lt_prog_compiler_wl_F77='-Qoption ld '
  12442. lt_prog_compiler_pic_F77='-PIC'
  12443. lt_prog_compiler_static_F77='-Bstatic'
  12444. ;;
  12445. sysv4 | sysv4.2uw2* | sysv4.3*)
  12446. lt_prog_compiler_wl_F77='-Wl,'
  12447. lt_prog_compiler_pic_F77='-KPIC'
  12448. lt_prog_compiler_static_F77='-Bstatic'
  12449. ;;
  12450. sysv4*MP*)
  12451. if test -d /usr/nec ;then
  12452. lt_prog_compiler_pic_F77='-Kconform_pic'
  12453. lt_prog_compiler_static_F77='-Bstatic'
  12454. fi
  12455. ;;
  12456. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12457. lt_prog_compiler_wl_F77='-Wl,'
  12458. lt_prog_compiler_pic_F77='-KPIC'
  12459. lt_prog_compiler_static_F77='-Bstatic'
  12460. ;;
  12461. unicos*)
  12462. lt_prog_compiler_wl_F77='-Wl,'
  12463. lt_prog_compiler_can_build_shared_F77=no
  12464. ;;
  12465. uts4*)
  12466. lt_prog_compiler_pic_F77='-pic'
  12467. lt_prog_compiler_static_F77='-Bstatic'
  12468. ;;
  12469. *)
  12470. lt_prog_compiler_can_build_shared_F77=no
  12471. ;;
  12472. esac
  12473. fi
  12474. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12475. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12476. #
  12477. # Check to make sure the PIC flag actually works.
  12478. #
  12479. if test -n "$lt_prog_compiler_pic_F77"; then
  12480. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12481. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12482. if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  12483. echo $ECHO_N "(cached) $ECHO_C" >&6
  12484. else
  12485. lt_cv_prog_compiler_pic_works_F77=no
  12486. ac_outfile=conftest.$ac_objext
  12487. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12488. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12489. # Insert the option either (1) after the last *FLAGS variable, or
  12490. # (2) before a word containing "conftest.", or (3) at the end.
  12491. # Note that $ac_compile itself does not contain backslashes and begins
  12492. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12493. # The option is referenced via a variable to avoid confusing sed.
  12494. lt_compile=`echo "$ac_compile" | $SED \
  12495. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12496. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12497. -e 's:$: $lt_compiler_flag:'`
  12498. (eval echo "\"\$as_me:13943: $lt_compile\"" >&5)
  12499. (eval "$lt_compile" 2>conftest.err)
  12500. ac_status=$?
  12501. cat conftest.err >&5
  12502. echo "$as_me:13947: \$? = $ac_status" >&5
  12503. if (exit $ac_status) && test -s "$ac_outfile"; then
  12504. # The compiler can only warn and ignore the option if not recognized
  12505. # So say no if there are warnings other than the usual output.
  12506. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12507. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12508. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12509. lt_cv_prog_compiler_pic_works_F77=yes
  12510. fi
  12511. fi
  12512. $rm conftest*
  12513. fi
  12514. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  12515. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
  12516. if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  12517. case $lt_prog_compiler_pic_F77 in
  12518. "" | " "*) ;;
  12519. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12520. esac
  12521. else
  12522. lt_prog_compiler_pic_F77=
  12523. lt_prog_compiler_can_build_shared_F77=no
  12524. fi
  12525. fi
  12526. case $host_os in
  12527. # For platforms which do not support PIC, -DPIC is meaningless:
  12528. *djgpp*)
  12529. lt_prog_compiler_pic_F77=
  12530. ;;
  12531. *)
  12532. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12533. ;;
  12534. esac
  12535. #
  12536. # Check to make sure the static flag actually works.
  12537. #
  12538. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12539. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12540. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12541. if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  12542. echo $ECHO_N "(cached) $ECHO_C" >&6
  12543. else
  12544. lt_cv_prog_compiler_static_works_F77=no
  12545. save_LDFLAGS="$LDFLAGS"
  12546. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12547. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12548. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12549. # The linker can only warn and ignore the option if not recognized
  12550. # So say no if there are warnings
  12551. if test -s conftest.err; then
  12552. # Append any errors to the config.log.
  12553. cat conftest.err 1>&5
  12554. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12555. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12556. if diff conftest.exp conftest.er2 >/dev/null; then
  12557. lt_cv_prog_compiler_static_works_F77=yes
  12558. fi
  12559. else
  12560. lt_cv_prog_compiler_static_works_F77=yes
  12561. fi
  12562. fi
  12563. $rm -r conftest*
  12564. LDFLAGS="$save_LDFLAGS"
  12565. fi
  12566. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  12567. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
  12568. if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  12569. :
  12570. else
  12571. lt_prog_compiler_static_F77=
  12572. fi
  12573. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12574. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12575. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12576. echo $ECHO_N "(cached) $ECHO_C" >&6
  12577. else
  12578. lt_cv_prog_compiler_c_o_F77=no
  12579. $rm -r conftest 2>/dev/null
  12580. mkdir conftest
  12581. cd conftest
  12582. mkdir out
  12583. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12584. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12585. # Insert the option either (1) after the last *FLAGS variable, or
  12586. # (2) before a word containing "conftest.", or (3) at the end.
  12587. # Note that $ac_compile itself does not contain backslashes and begins
  12588. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12589. lt_compile=`echo "$ac_compile" | $SED \
  12590. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12591. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12592. -e 's:$: $lt_compiler_flag:'`
  12593. (eval echo "\"\$as_me:14047: $lt_compile\"" >&5)
  12594. (eval "$lt_compile" 2>out/conftest.err)
  12595. ac_status=$?
  12596. cat out/conftest.err >&5
  12597. echo "$as_me:14051: \$? = $ac_status" >&5
  12598. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12599. then
  12600. # The compiler can only warn and ignore the option if not recognized
  12601. # So say no if there are warnings
  12602. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12603. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12604. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12605. lt_cv_prog_compiler_c_o_F77=yes
  12606. fi
  12607. fi
  12608. chmod u+w . 2>&5
  12609. $rm conftest*
  12610. # SGI C++ compiler will create directory out/ii_files/ for
  12611. # template instantiation
  12612. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12613. $rm out/* && rmdir out
  12614. cd ..
  12615. rmdir conftest
  12616. $rm conftest*
  12617. fi
  12618. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12619. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  12620. hard_links="nottested"
  12621. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12622. # do not overwrite the value of need_locks provided by the user
  12623. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12624. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12625. hard_links=yes
  12626. $rm conftest*
  12627. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12628. touch conftest.a
  12629. ln conftest.a conftest.b 2>&5 || hard_links=no
  12630. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12631. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12632. echo "${ECHO_T}$hard_links" >&6; }
  12633. if test "$hard_links" = no; then
  12634. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12635. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12636. need_locks=warn
  12637. fi
  12638. else
  12639. need_locks=no
  12640. fi
  12641. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12642. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12643. runpath_var=
  12644. allow_undefined_flag_F77=
  12645. enable_shared_with_static_runtimes_F77=no
  12646. archive_cmds_F77=
  12647. archive_expsym_cmds_F77=
  12648. old_archive_From_new_cmds_F77=
  12649. old_archive_from_expsyms_cmds_F77=
  12650. export_dynamic_flag_spec_F77=
  12651. whole_archive_flag_spec_F77=
  12652. thread_safe_flag_spec_F77=
  12653. hardcode_libdir_flag_spec_F77=
  12654. hardcode_libdir_flag_spec_ld_F77=
  12655. hardcode_libdir_separator_F77=
  12656. hardcode_direct_F77=no
  12657. hardcode_minus_L_F77=no
  12658. hardcode_shlibpath_var_F77=unsupported
  12659. link_all_deplibs_F77=unknown
  12660. hardcode_automatic_F77=no
  12661. module_cmds_F77=
  12662. module_expsym_cmds_F77=
  12663. always_export_symbols_F77=no
  12664. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12665. # include_expsyms should be a list of space-separated symbols to be *always*
  12666. # included in the symbol list
  12667. include_expsyms_F77=
  12668. # exclude_expsyms can be an extended regexp of symbols to exclude
  12669. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12670. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12671. # as well as any symbol that contains `d'.
  12672. exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12673. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12674. # platforms (ab)use it in PIC code, but their linkers get confused if
  12675. # the symbol is explicitly referenced. Since portable code cannot
  12676. # rely on this symbol name, it's probably fine to never include it in
  12677. # preloaded symbol tables.
  12678. # Exclude shared library initialization/finalization symbols.
  12679. extract_expsyms_cmds=
  12680. # Just being paranoid about ensuring that cc_basename is set.
  12681. for cc_temp in $compiler""; do
  12682. case $cc_temp in
  12683. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12684. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12685. \-*) ;;
  12686. *) break;;
  12687. esac
  12688. done
  12689. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12690. case $host_os in
  12691. cygwin* | mingw* | pw32*)
  12692. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12693. # When not using gcc, we currently assume that we are using
  12694. # Microsoft Visual C++.
  12695. if test "$GCC" != yes; then
  12696. with_gnu_ld=no
  12697. fi
  12698. ;;
  12699. interix*)
  12700. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12701. with_gnu_ld=yes
  12702. ;;
  12703. openbsd*)
  12704. with_gnu_ld=no
  12705. ;;
  12706. esac
  12707. ld_shlibs_F77=yes
  12708. if test "$with_gnu_ld" = yes; then
  12709. # If archive_cmds runs LD, not CC, wlarc should be empty
  12710. wlarc='${wl}'
  12711. # Set some defaults for GNU ld with shared library support. These
  12712. # are reset later if shared libraries are not supported. Putting them
  12713. # here allows them to be overridden if necessary.
  12714. runpath_var=LD_RUN_PATH
  12715. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12716. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12717. # ancient GNU ld didn't support --whole-archive et. al.
  12718. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12719. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12720. else
  12721. whole_archive_flag_spec_F77=
  12722. fi
  12723. supports_anon_versioning=no
  12724. case `$LD -v 2>/dev/null` in
  12725. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12726. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12727. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12728. *\ 2.11.*) ;; # other 2.11 versions
  12729. *) supports_anon_versioning=yes ;;
  12730. esac
  12731. # See if GNU ld supports shared libraries.
  12732. case $host_os in
  12733. aix[3-9]*)
  12734. # On AIX/PPC, the GNU linker is very broken
  12735. if test "$host_cpu" != ia64; then
  12736. ld_shlibs_F77=no
  12737. cat <<EOF 1>&2
  12738. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12739. *** to be unable to reliably create shared libraries on AIX.
  12740. *** Therefore, libtool is disabling shared libraries support. If you
  12741. *** really care for shared libraries, you may want to modify your PATH
  12742. *** so that a non-GNU linker is found, and then restart.
  12743. EOF
  12744. fi
  12745. ;;
  12746. amigaos*)
  12747. 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)'
  12748. hardcode_libdir_flag_spec_F77='-L$libdir'
  12749. hardcode_minus_L_F77=yes
  12750. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  12751. # that the semantics of dynamic libraries on AmigaOS, at least up
  12752. # to version 4, is to share data among multiple programs linked
  12753. # with the same dynamic library. Since this doesn't match the
  12754. # behavior of shared libraries on other platforms, we can't use
  12755. # them.
  12756. ld_shlibs_F77=no
  12757. ;;
  12758. beos*)
  12759. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12760. allow_undefined_flag_F77=unsupported
  12761. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12762. # support --undefined. This deserves some investigation. FIXME
  12763. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12764. else
  12765. ld_shlibs_F77=no
  12766. fi
  12767. ;;
  12768. cygwin* | mingw* | pw32*)
  12769. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12770. # as there is no search path for DLLs.
  12771. hardcode_libdir_flag_spec_F77='-L$libdir'
  12772. allow_undefined_flag_F77=unsupported
  12773. always_export_symbols_F77=no
  12774. enable_shared_with_static_runtimes_F77=yes
  12775. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  12776. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12777. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12778. # If the export-symbols file already is a .def file (1st line
  12779. # is EXPORTS), use it as is; otherwise, prepend...
  12780. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12781. cp $export_symbols $output_objdir/$soname.def;
  12782. else
  12783. echo EXPORTS > $output_objdir/$soname.def;
  12784. cat $export_symbols >> $output_objdir/$soname.def;
  12785. fi~
  12786. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12787. else
  12788. ld_shlibs_F77=no
  12789. fi
  12790. ;;
  12791. interix[3-9]*)
  12792. hardcode_direct_F77=no
  12793. hardcode_shlibpath_var_F77=no
  12794. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12795. export_dynamic_flag_spec_F77='${wl}-E'
  12796. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12797. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12798. # default) and relocated if they conflict, which is a slow very memory
  12799. # consuming and fragmenting process. To avoid this, we pick a random,
  12800. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12801. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12802. 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'
  12803. 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'
  12804. ;;
  12805. gnu* | linux* | k*bsd*-gnu)
  12806. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12807. tmp_addflag=
  12808. case $cc_basename,$host_cpu in
  12809. pgcc*) # Portland Group C compiler
  12810. 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'
  12811. tmp_addflag=' $pic_flag'
  12812. ;;
  12813. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12814. 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'
  12815. tmp_addflag=' $pic_flag -Mnomain' ;;
  12816. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12817. tmp_addflag=' -i_dynamic' ;;
  12818. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12819. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12820. ifc* | ifort*) # Intel Fortran compiler
  12821. tmp_addflag=' -nofor_main' ;;
  12822. esac
  12823. case `$CC -V 2>&1 | sed 5q` in
  12824. *Sun\ C*) # Sun C 5.9
  12825. 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'
  12826. tmp_sharedflag='-G' ;;
  12827. *Sun\ F*) # Sun Fortran 8.3
  12828. tmp_sharedflag='-G' ;;
  12829. *)
  12830. tmp_sharedflag='-shared' ;;
  12831. esac
  12832. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12833. if test $supports_anon_versioning = yes; then
  12834. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12835. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12836. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12837. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12838. fi
  12839. link_all_deplibs_F77=no
  12840. else
  12841. ld_shlibs_F77=no
  12842. fi
  12843. ;;
  12844. netbsd* | netbsdelf*-gnu)
  12845. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12846. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12847. wlarc=
  12848. else
  12849. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12850. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12851. fi
  12852. ;;
  12853. solaris*)
  12854. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12855. ld_shlibs_F77=no
  12856. cat <<EOF 1>&2
  12857. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12858. *** create shared libraries on Solaris systems. Therefore, libtool
  12859. *** is disabling shared libraries support. We urge you to upgrade GNU
  12860. *** binutils to release 2.9.1 or newer. Another option is to modify
  12861. *** your PATH or compiler configuration so that the native linker is
  12862. *** used, and then restart.
  12863. EOF
  12864. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12865. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12866. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12867. else
  12868. ld_shlibs_F77=no
  12869. fi
  12870. ;;
  12871. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12872. case `$LD -v 2>&1` in
  12873. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12874. ld_shlibs_F77=no
  12875. cat <<_LT_EOF 1>&2
  12876. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12877. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12878. *** is disabling shared libraries support. We urge you to upgrade GNU
  12879. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12880. *** your PATH or compiler configuration so that the native linker is
  12881. *** used, and then restart.
  12882. _LT_EOF
  12883. ;;
  12884. *)
  12885. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12886. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12887. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12888. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12889. else
  12890. ld_shlibs_F77=no
  12891. fi
  12892. ;;
  12893. esac
  12894. ;;
  12895. sunos4*)
  12896. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12897. wlarc=
  12898. hardcode_direct_F77=yes
  12899. hardcode_shlibpath_var_F77=no
  12900. ;;
  12901. *)
  12902. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12903. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12904. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12905. else
  12906. ld_shlibs_F77=no
  12907. fi
  12908. ;;
  12909. esac
  12910. if test "$ld_shlibs_F77" = no; then
  12911. runpath_var=
  12912. hardcode_libdir_flag_spec_F77=
  12913. export_dynamic_flag_spec_F77=
  12914. whole_archive_flag_spec_F77=
  12915. fi
  12916. else
  12917. # PORTME fill in a description of your system's linker (not GNU ld)
  12918. case $host_os in
  12919. aix3*)
  12920. allow_undefined_flag_F77=unsupported
  12921. always_export_symbols_F77=yes
  12922. 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'
  12923. # Note: this linker hardcodes the directories in LIBPATH if there
  12924. # are no directories specified by -L.
  12925. hardcode_minus_L_F77=yes
  12926. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12927. # Neither direct hardcoding nor static linking is supported with a
  12928. # broken collect2.
  12929. hardcode_direct_F77=unsupported
  12930. fi
  12931. ;;
  12932. aix[4-9]*)
  12933. if test "$host_cpu" = ia64; then
  12934. # On IA64, the linker does run time linking by default, so we don't
  12935. # have to do anything special.
  12936. aix_use_runtimelinking=no
  12937. exp_sym_flag='-Bexport'
  12938. no_entry_flag=""
  12939. else
  12940. # If we're using GNU nm, then we don't want the "-C" option.
  12941. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12942. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12943. 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'
  12944. else
  12945. 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'
  12946. fi
  12947. aix_use_runtimelinking=no
  12948. # Test if we are trying to use run time linking or normal
  12949. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12950. # need to do runtime linking.
  12951. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12952. for ld_flag in $LDFLAGS; do
  12953. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12954. aix_use_runtimelinking=yes
  12955. break
  12956. fi
  12957. done
  12958. ;;
  12959. esac
  12960. exp_sym_flag='-bexport'
  12961. no_entry_flag='-bnoentry'
  12962. fi
  12963. # When large executables or shared objects are built, AIX ld can
  12964. # have problems creating the table of contents. If linking a library
  12965. # or program results in "error TOC overflow" add -mminimal-toc to
  12966. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12967. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12968. archive_cmds_F77=''
  12969. hardcode_direct_F77=yes
  12970. hardcode_libdir_separator_F77=':'
  12971. link_all_deplibs_F77=yes
  12972. if test "$GCC" = yes; then
  12973. case $host_os in aix4.[012]|aix4.[012].*)
  12974. # We only want to do this on AIX 4.2 and lower, the check
  12975. # below for broken collect2 doesn't work under 4.3+
  12976. collect2name=`${CC} -print-prog-name=collect2`
  12977. if test -f "$collect2name" && \
  12978. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12979. then
  12980. # We have reworked collect2
  12981. :
  12982. else
  12983. # We have old collect2
  12984. hardcode_direct_F77=unsupported
  12985. # It fails to find uninstalled libraries when the uninstalled
  12986. # path is not listed in the libpath. Setting hardcode_minus_L
  12987. # to unsupported forces relinking
  12988. hardcode_minus_L_F77=yes
  12989. hardcode_libdir_flag_spec_F77='-L$libdir'
  12990. hardcode_libdir_separator_F77=
  12991. fi
  12992. ;;
  12993. esac
  12994. shared_flag='-shared'
  12995. if test "$aix_use_runtimelinking" = yes; then
  12996. shared_flag="$shared_flag "'${wl}-G'
  12997. fi
  12998. else
  12999. # not using gcc
  13000. if test "$host_cpu" = ia64; then
  13001. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13002. # chokes on -Wl,-G. The following line is correct:
  13003. shared_flag='-G'
  13004. else
  13005. if test "$aix_use_runtimelinking" = yes; then
  13006. shared_flag='${wl}-G'
  13007. else
  13008. shared_flag='${wl}-bM:SRE'
  13009. fi
  13010. fi
  13011. fi
  13012. # It seems that -bexpall does not export symbols beginning with
  13013. # underscore (_), so it is better to generate a list of symbols to export.
  13014. always_export_symbols_F77=yes
  13015. if test "$aix_use_runtimelinking" = yes; then
  13016. # Warning - without using the other runtime loading flags (-brtl),
  13017. # -berok will link without error, but may produce a broken library.
  13018. allow_undefined_flag_F77='-berok'
  13019. # Determine the default libpath from the value encoded in an empty executable.
  13020. cat >conftest.$ac_ext <<_ACEOF
  13021. program main
  13022. end
  13023. _ACEOF
  13024. rm -f conftest.$ac_objext conftest$ac_exeext
  13025. if { (ac_try="$ac_link"
  13026. case "(($ac_try" in
  13027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13028. *) ac_try_echo=$ac_try;;
  13029. esac
  13030. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13031. (eval "$ac_link") 2>conftest.er1
  13032. ac_status=$?
  13033. grep -v '^ *+' conftest.er1 >conftest.err
  13034. rm -f conftest.er1
  13035. cat conftest.err >&5
  13036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13037. (exit $ac_status); } && {
  13038. test -z "$ac_f77_werror_flag" ||
  13039. test ! -s conftest.err
  13040. } && test -s conftest$ac_exeext &&
  13041. $as_test_x conftest$ac_exeext; then
  13042. lt_aix_libpath_sed='
  13043. /Import File Strings/,/^$/ {
  13044. /^0/ {
  13045. s/^0 *\(.*\)$/\1/
  13046. p
  13047. }
  13048. }'
  13049. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13050. # Check for a 64-bit object if we didn't find anything.
  13051. if test -z "$aix_libpath"; then
  13052. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13053. fi
  13054. else
  13055. echo "$as_me: failed program was:" >&5
  13056. sed 's/^/| /' conftest.$ac_ext >&5
  13057. fi
  13058. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13059. conftest$ac_exeext conftest.$ac_ext
  13060. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13061. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13062. 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"
  13063. else
  13064. if test "$host_cpu" = ia64; then
  13065. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13066. allow_undefined_flag_F77="-z nodefs"
  13067. 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"
  13068. else
  13069. # Determine the default libpath from the value encoded in an empty executable.
  13070. cat >conftest.$ac_ext <<_ACEOF
  13071. program main
  13072. end
  13073. _ACEOF
  13074. rm -f conftest.$ac_objext conftest$ac_exeext
  13075. if { (ac_try="$ac_link"
  13076. case "(($ac_try" in
  13077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13078. *) ac_try_echo=$ac_try;;
  13079. esac
  13080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13081. (eval "$ac_link") 2>conftest.er1
  13082. ac_status=$?
  13083. grep -v '^ *+' conftest.er1 >conftest.err
  13084. rm -f conftest.er1
  13085. cat conftest.err >&5
  13086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13087. (exit $ac_status); } && {
  13088. test -z "$ac_f77_werror_flag" ||
  13089. test ! -s conftest.err
  13090. } && test -s conftest$ac_exeext &&
  13091. $as_test_x conftest$ac_exeext; then
  13092. lt_aix_libpath_sed='
  13093. /Import File Strings/,/^$/ {
  13094. /^0/ {
  13095. s/^0 *\(.*\)$/\1/
  13096. p
  13097. }
  13098. }'
  13099. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13100. # Check for a 64-bit object if we didn't find anything.
  13101. if test -z "$aix_libpath"; then
  13102. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13103. fi
  13104. else
  13105. echo "$as_me: failed program was:" >&5
  13106. sed 's/^/| /' conftest.$ac_ext >&5
  13107. fi
  13108. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13109. conftest$ac_exeext conftest.$ac_ext
  13110. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13111. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13112. # Warning - without using the other run time loading flags,
  13113. # -berok will link without error, but may produce a broken library.
  13114. no_undefined_flag_F77=' ${wl}-bernotok'
  13115. allow_undefined_flag_F77=' ${wl}-berok'
  13116. # Exported symbols can be pulled into shared objects from archives
  13117. whole_archive_flag_spec_F77='$convenience'
  13118. archive_cmds_need_lc_F77=yes
  13119. # This is similar to how AIX traditionally builds its shared libraries.
  13120. 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'
  13121. fi
  13122. fi
  13123. ;;
  13124. amigaos*)
  13125. 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)'
  13126. hardcode_libdir_flag_spec_F77='-L$libdir'
  13127. hardcode_minus_L_F77=yes
  13128. # see comment about different semantics on the GNU ld section
  13129. ld_shlibs_F77=no
  13130. ;;
  13131. bsdi[45]*)
  13132. export_dynamic_flag_spec_F77=-rdynamic
  13133. ;;
  13134. cygwin* | mingw* | pw32*)
  13135. # When not using gcc, we currently assume that we are using
  13136. # Microsoft Visual C++.
  13137. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13138. # no search path for DLLs.
  13139. hardcode_libdir_flag_spec_F77=' '
  13140. allow_undefined_flag_F77=unsupported
  13141. # Tell ltmain to make .lib files, not .a files.
  13142. libext=lib
  13143. # Tell ltmain to make .dll files, not .so files.
  13144. shrext_cmds=".dll"
  13145. # FIXME: Setting linknames here is a bad hack.
  13146. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13147. # The linker will automatically build a .lib file if we build a DLL.
  13148. old_archive_From_new_cmds_F77='true'
  13149. # FIXME: Should let the user specify the lib program.
  13150. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13151. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13152. enable_shared_with_static_runtimes_F77=yes
  13153. ;;
  13154. darwin* | rhapsody*)
  13155. case $host_os in
  13156. rhapsody* | darwin1.[012])
  13157. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13158. ;;
  13159. *) # Darwin 1.3 on
  13160. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13161. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13162. else
  13163. case ${MACOSX_DEPLOYMENT_TARGET} in
  13164. 10.[012])
  13165. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13166. ;;
  13167. 10.*)
  13168. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13169. ;;
  13170. esac
  13171. fi
  13172. ;;
  13173. esac
  13174. archive_cmds_need_lc_F77=no
  13175. hardcode_direct_F77=no
  13176. hardcode_automatic_F77=yes
  13177. hardcode_shlibpath_var_F77=unsupported
  13178. whole_archive_flag_spec_F77=''
  13179. link_all_deplibs_F77=yes
  13180. if test "$GCC" = yes ; then
  13181. output_verbose_link_cmd='echo'
  13182. archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  13183. module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  13184. archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  13185. module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  13186. else
  13187. case $cc_basename in
  13188. xlc*)
  13189. output_verbose_link_cmd='echo'
  13190. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13191. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13192. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13193. 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}'
  13194. 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}'
  13195. ;;
  13196. *)
  13197. ld_shlibs_F77=no
  13198. ;;
  13199. esac
  13200. fi
  13201. ;;
  13202. dgux*)
  13203. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13204. hardcode_libdir_flag_spec_F77='-L$libdir'
  13205. hardcode_shlibpath_var_F77=no
  13206. ;;
  13207. freebsd1*)
  13208. ld_shlibs_F77=no
  13209. ;;
  13210. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13211. # support. Future versions do this automatically, but an explicit c++rt0.o
  13212. # does not break anything, and helps significantly (at the cost of a little
  13213. # extra space).
  13214. freebsd2.2*)
  13215. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13216. hardcode_libdir_flag_spec_F77='-R$libdir'
  13217. hardcode_direct_F77=yes
  13218. hardcode_shlibpath_var_F77=no
  13219. ;;
  13220. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13221. freebsd2*)
  13222. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13223. hardcode_direct_F77=yes
  13224. hardcode_minus_L_F77=yes
  13225. hardcode_shlibpath_var_F77=no
  13226. ;;
  13227. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13228. freebsd* | dragonfly*)
  13229. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13230. hardcode_libdir_flag_spec_F77='-R$libdir'
  13231. hardcode_direct_F77=yes
  13232. hardcode_shlibpath_var_F77=no
  13233. ;;
  13234. hpux9*)
  13235. if test "$GCC" = yes; then
  13236. 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'
  13237. else
  13238. 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'
  13239. fi
  13240. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13241. hardcode_libdir_separator_F77=:
  13242. hardcode_direct_F77=yes
  13243. # hardcode_minus_L: Not really in the search PATH,
  13244. # but as the default location of the library.
  13245. hardcode_minus_L_F77=yes
  13246. export_dynamic_flag_spec_F77='${wl}-E'
  13247. ;;
  13248. hpux10*)
  13249. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13250. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13251. else
  13252. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13253. fi
  13254. if test "$with_gnu_ld" = no; then
  13255. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13256. hardcode_libdir_separator_F77=:
  13257. hardcode_direct_F77=yes
  13258. export_dynamic_flag_spec_F77='${wl}-E'
  13259. # hardcode_minus_L: Not really in the search PATH,
  13260. # but as the default location of the library.
  13261. hardcode_minus_L_F77=yes
  13262. fi
  13263. ;;
  13264. hpux11*)
  13265. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13266. case $host_cpu in
  13267. hppa*64*)
  13268. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13269. ;;
  13270. ia64*)
  13271. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13272. ;;
  13273. *)
  13274. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13275. ;;
  13276. esac
  13277. else
  13278. case $host_cpu in
  13279. hppa*64*)
  13280. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13281. ;;
  13282. ia64*)
  13283. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13284. ;;
  13285. *)
  13286. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13287. ;;
  13288. esac
  13289. fi
  13290. if test "$with_gnu_ld" = no; then
  13291. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13292. hardcode_libdir_separator_F77=:
  13293. case $host_cpu in
  13294. hppa*64*|ia64*)
  13295. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13296. hardcode_direct_F77=no
  13297. hardcode_shlibpath_var_F77=no
  13298. ;;
  13299. *)
  13300. hardcode_direct_F77=yes
  13301. export_dynamic_flag_spec_F77='${wl}-E'
  13302. # hardcode_minus_L: Not really in the search PATH,
  13303. # but as the default location of the library.
  13304. hardcode_minus_L_F77=yes
  13305. ;;
  13306. esac
  13307. fi
  13308. ;;
  13309. irix5* | irix6* | nonstopux*)
  13310. if test "$GCC" = yes; then
  13311. 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'
  13312. else
  13313. 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'
  13314. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13315. fi
  13316. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13317. hardcode_libdir_separator_F77=:
  13318. link_all_deplibs_F77=yes
  13319. ;;
  13320. netbsd* | netbsdelf*-gnu)
  13321. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13322. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13323. else
  13324. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13325. fi
  13326. hardcode_libdir_flag_spec_F77='-R$libdir'
  13327. hardcode_direct_F77=yes
  13328. hardcode_shlibpath_var_F77=no
  13329. ;;
  13330. newsos6)
  13331. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13332. hardcode_direct_F77=yes
  13333. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13334. hardcode_libdir_separator_F77=:
  13335. hardcode_shlibpath_var_F77=no
  13336. ;;
  13337. openbsd*)
  13338. if test -f /usr/libexec/ld.so; then
  13339. hardcode_direct_F77=yes
  13340. hardcode_shlibpath_var_F77=no
  13341. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13342. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13343. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13344. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13345. export_dynamic_flag_spec_F77='${wl}-E'
  13346. else
  13347. case $host_os in
  13348. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13349. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13350. hardcode_libdir_flag_spec_F77='-R$libdir'
  13351. ;;
  13352. *)
  13353. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13354. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13355. ;;
  13356. esac
  13357. fi
  13358. else
  13359. ld_shlibs_F77=no
  13360. fi
  13361. ;;
  13362. os2*)
  13363. hardcode_libdir_flag_spec_F77='-L$libdir'
  13364. hardcode_minus_L_F77=yes
  13365. allow_undefined_flag_F77=unsupported
  13366. 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'
  13367. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13368. ;;
  13369. osf3*)
  13370. if test "$GCC" = yes; then
  13371. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13372. 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'
  13373. else
  13374. allow_undefined_flag_F77=' -expect_unresolved \*'
  13375. 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'
  13376. fi
  13377. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13378. hardcode_libdir_separator_F77=:
  13379. ;;
  13380. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13381. if test "$GCC" = yes; then
  13382. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13383. 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'
  13384. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13385. else
  13386. allow_undefined_flag_F77=' -expect_unresolved \*'
  13387. 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'
  13388. 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~
  13389. $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'
  13390. # Both c and cxx compiler support -rpath directly
  13391. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13392. fi
  13393. hardcode_libdir_separator_F77=:
  13394. ;;
  13395. solaris*)
  13396. no_undefined_flag_F77=' -z text'
  13397. if test "$GCC" = yes; then
  13398. wlarc='${wl}'
  13399. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13400. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13401. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13402. else
  13403. wlarc=''
  13404. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13405. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13406. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13407. fi
  13408. hardcode_libdir_flag_spec_F77='-R$libdir'
  13409. hardcode_shlibpath_var_F77=no
  13410. case $host_os in
  13411. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13412. *)
  13413. # The compiler driver will combine and reorder linker options,
  13414. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13415. # but is careful enough not to reorder.
  13416. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13417. if test "$GCC" = yes; then
  13418. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13419. else
  13420. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  13421. fi
  13422. ;;
  13423. esac
  13424. link_all_deplibs_F77=yes
  13425. ;;
  13426. sunos4*)
  13427. if test "x$host_vendor" = xsequent; then
  13428. # Use $CC to link under sequent, because it throws in some extra .o
  13429. # files that make .init and .fini sections work.
  13430. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13431. else
  13432. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13433. fi
  13434. hardcode_libdir_flag_spec_F77='-L$libdir'
  13435. hardcode_direct_F77=yes
  13436. hardcode_minus_L_F77=yes
  13437. hardcode_shlibpath_var_F77=no
  13438. ;;
  13439. sysv4)
  13440. case $host_vendor in
  13441. sni)
  13442. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13443. hardcode_direct_F77=yes # is this really true???
  13444. ;;
  13445. siemens)
  13446. ## LD is ld it makes a PLAMLIB
  13447. ## CC just makes a GrossModule.
  13448. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13449. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13450. hardcode_direct_F77=no
  13451. ;;
  13452. motorola)
  13453. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13454. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13455. ;;
  13456. esac
  13457. runpath_var='LD_RUN_PATH'
  13458. hardcode_shlibpath_var_F77=no
  13459. ;;
  13460. sysv4.3*)
  13461. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13462. hardcode_shlibpath_var_F77=no
  13463. export_dynamic_flag_spec_F77='-Bexport'
  13464. ;;
  13465. sysv4*MP*)
  13466. if test -d /usr/nec; then
  13467. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13468. hardcode_shlibpath_var_F77=no
  13469. runpath_var=LD_RUN_PATH
  13470. hardcode_runpath_var=yes
  13471. ld_shlibs_F77=yes
  13472. fi
  13473. ;;
  13474. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13475. no_undefined_flag_F77='${wl}-z,text'
  13476. archive_cmds_need_lc_F77=no
  13477. hardcode_shlibpath_var_F77=no
  13478. runpath_var='LD_RUN_PATH'
  13479. if test "$GCC" = yes; then
  13480. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13481. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13482. else
  13483. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13484. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13485. fi
  13486. ;;
  13487. sysv5* | sco3.2v5* | sco5v6*)
  13488. # Note: We can NOT use -z defs as we might desire, because we do not
  13489. # link with -lc, and that would cause any symbols used from libc to
  13490. # always be unresolved, which means just about no library would
  13491. # ever link correctly. If we're not using GNU ld we use -z text
  13492. # though, which does catch some bad symbols but isn't as heavy-handed
  13493. # as -z defs.
  13494. no_undefined_flag_F77='${wl}-z,text'
  13495. allow_undefined_flag_F77='${wl}-z,nodefs'
  13496. archive_cmds_need_lc_F77=no
  13497. hardcode_shlibpath_var_F77=no
  13498. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13499. hardcode_libdir_separator_F77=':'
  13500. link_all_deplibs_F77=yes
  13501. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13502. runpath_var='LD_RUN_PATH'
  13503. if test "$GCC" = yes; then
  13504. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13505. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13506. else
  13507. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13508. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13509. fi
  13510. ;;
  13511. uts4*)
  13512. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13513. hardcode_libdir_flag_spec_F77='-L$libdir'
  13514. hardcode_shlibpath_var_F77=no
  13515. ;;
  13516. *)
  13517. ld_shlibs_F77=no
  13518. ;;
  13519. esac
  13520. fi
  13521. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13522. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13523. test "$ld_shlibs_F77" = no && can_build_shared=no
  13524. #
  13525. # Do we need to explicitly link libc?
  13526. #
  13527. case "x$archive_cmds_need_lc_F77" in
  13528. x|xyes)
  13529. # Assume -lc should be added
  13530. archive_cmds_need_lc_F77=yes
  13531. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13532. case $archive_cmds_F77 in
  13533. *'~'*)
  13534. # FIXME: we may have to deal with multi-command sequences.
  13535. ;;
  13536. '$CC '*)
  13537. # Test whether the compiler implicitly links with -lc since on some
  13538. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13539. # to ld, don't add -lc before -lgcc.
  13540. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13541. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13542. $rm conftest*
  13543. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13544. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13545. (eval $ac_compile) 2>&5
  13546. ac_status=$?
  13547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13548. (exit $ac_status); } 2>conftest.err; then
  13549. soname=conftest
  13550. lib=conftest
  13551. libobjs=conftest.$ac_objext
  13552. deplibs=
  13553. wl=$lt_prog_compiler_wl_F77
  13554. pic_flag=$lt_prog_compiler_pic_F77
  13555. compiler_flags=-v
  13556. linker_flags=-v
  13557. verstring=
  13558. output_objdir=.
  13559. libname=conftest
  13560. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13561. allow_undefined_flag_F77=
  13562. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13563. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13564. ac_status=$?
  13565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13566. (exit $ac_status); }
  13567. then
  13568. archive_cmds_need_lc_F77=no
  13569. else
  13570. archive_cmds_need_lc_F77=yes
  13571. fi
  13572. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13573. else
  13574. cat conftest.err 1>&5
  13575. fi
  13576. $rm conftest*
  13577. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13578. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  13579. ;;
  13580. esac
  13581. fi
  13582. ;;
  13583. esac
  13584. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13585. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  13586. library_names_spec=
  13587. libname_spec='lib$name'
  13588. soname_spec=
  13589. shrext_cmds=".so"
  13590. postinstall_cmds=
  13591. postuninstall_cmds=
  13592. finish_cmds=
  13593. finish_eval=
  13594. shlibpath_var=
  13595. shlibpath_overrides_runpath=unknown
  13596. version_type=none
  13597. dynamic_linker="$host_os ld.so"
  13598. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13599. need_lib_prefix=unknown
  13600. hardcode_into_libs=no
  13601. # when you set need_version to no, make sure it does not cause -set_version
  13602. # flags to be left without arguments
  13603. need_version=unknown
  13604. case $host_os in
  13605. aix3*)
  13606. version_type=linux
  13607. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13608. shlibpath_var=LIBPATH
  13609. # AIX 3 has no versioning support, so we append a major version to the name.
  13610. soname_spec='${libname}${release}${shared_ext}$major'
  13611. ;;
  13612. aix[4-9]*)
  13613. version_type=linux
  13614. need_lib_prefix=no
  13615. need_version=no
  13616. hardcode_into_libs=yes
  13617. if test "$host_cpu" = ia64; then
  13618. # AIX 5 supports IA64
  13619. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13620. shlibpath_var=LD_LIBRARY_PATH
  13621. else
  13622. # With GCC up to 2.95.x, collect2 would create an import file
  13623. # for dependence libraries. The import file would start with
  13624. # the line `#! .'. This would cause the generated library to
  13625. # depend on `.', always an invalid library. This was fixed in
  13626. # development snapshots of GCC prior to 3.0.
  13627. case $host_os in
  13628. aix4 | aix4.[01] | aix4.[01].*)
  13629. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13630. echo ' yes '
  13631. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13632. :
  13633. else
  13634. can_build_shared=no
  13635. fi
  13636. ;;
  13637. esac
  13638. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13639. # soname into executable. Probably we can add versioning support to
  13640. # collect2, so additional links can be useful in future.
  13641. if test "$aix_use_runtimelinking" = yes; then
  13642. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13643. # instead of lib<name>.a to let people know that these are not
  13644. # typical AIX shared libraries.
  13645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13646. else
  13647. # We preserve .a as extension for shared libraries through AIX4.2
  13648. # and later when we are not doing run time linking.
  13649. library_names_spec='${libname}${release}.a $libname.a'
  13650. soname_spec='${libname}${release}${shared_ext}$major'
  13651. fi
  13652. shlibpath_var=LIBPATH
  13653. fi
  13654. ;;
  13655. amigaos*)
  13656. library_names_spec='$libname.ixlibrary $libname.a'
  13657. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13658. 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'
  13659. ;;
  13660. beos*)
  13661. library_names_spec='${libname}${shared_ext}'
  13662. dynamic_linker="$host_os ld.so"
  13663. shlibpath_var=LIBRARY_PATH
  13664. ;;
  13665. bsdi[45]*)
  13666. version_type=linux
  13667. need_version=no
  13668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13669. soname_spec='${libname}${release}${shared_ext}$major'
  13670. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13671. shlibpath_var=LD_LIBRARY_PATH
  13672. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13673. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13674. # the default ld.so.conf also contains /usr/contrib/lib and
  13675. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13676. # libtool to hard-code these into programs
  13677. ;;
  13678. cygwin* | mingw* | pw32*)
  13679. version_type=windows
  13680. shrext_cmds=".dll"
  13681. need_version=no
  13682. need_lib_prefix=no
  13683. case $GCC,$host_os in
  13684. yes,cygwin* | yes,mingw* | yes,pw32*)
  13685. library_names_spec='$libname.dll.a'
  13686. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13687. postinstall_cmds='base_file=`basename \${file}`~
  13688. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13689. dldir=$destdir/`dirname \$dlpath`~
  13690. test -d \$dldir || mkdir -p \$dldir~
  13691. $install_prog $dir/$dlname \$dldir/$dlname~
  13692. chmod a+x \$dldir/$dlname'
  13693. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13694. dlpath=$dir/\$dldll~
  13695. $rm \$dlpath'
  13696. shlibpath_overrides_runpath=yes
  13697. case $host_os in
  13698. cygwin*)
  13699. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13700. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13701. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13702. ;;
  13703. mingw*)
  13704. # MinGW DLLs use traditional 'lib' prefix
  13705. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13706. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13707. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13708. # It is most probably a Windows format PATH printed by
  13709. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13710. # path with ; separators, and with drive letters. We can handle the
  13711. # drive letters (cygwin fileutils understands them), so leave them,
  13712. # especially as we might pass files found there to a mingw objdump,
  13713. # which wouldn't understand a cygwinified path. Ahh.
  13714. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13715. else
  13716. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13717. fi
  13718. ;;
  13719. pw32*)
  13720. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13721. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13722. ;;
  13723. esac
  13724. ;;
  13725. *)
  13726. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13727. ;;
  13728. esac
  13729. dynamic_linker='Win32 ld.exe'
  13730. # FIXME: first we should search . and the directory the executable is in
  13731. shlibpath_var=PATH
  13732. ;;
  13733. darwin* | rhapsody*)
  13734. dynamic_linker="$host_os dyld"
  13735. version_type=darwin
  13736. need_lib_prefix=no
  13737. need_version=no
  13738. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13739. soname_spec='${libname}${release}${major}$shared_ext'
  13740. shlibpath_overrides_runpath=yes
  13741. shlibpath_var=DYLD_LIBRARY_PATH
  13742. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13743. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13744. ;;
  13745. dgux*)
  13746. version_type=linux
  13747. need_lib_prefix=no
  13748. need_version=no
  13749. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13750. soname_spec='${libname}${release}${shared_ext}$major'
  13751. shlibpath_var=LD_LIBRARY_PATH
  13752. ;;
  13753. freebsd1*)
  13754. dynamic_linker=no
  13755. ;;
  13756. freebsd* | dragonfly*)
  13757. # DragonFly does not have aout. When/if they implement a new
  13758. # versioning mechanism, adjust this.
  13759. if test -x /usr/bin/objformat; then
  13760. objformat=`/usr/bin/objformat`
  13761. else
  13762. case $host_os in
  13763. freebsd[123]*) objformat=aout ;;
  13764. *) objformat=elf ;;
  13765. esac
  13766. fi
  13767. version_type=freebsd-$objformat
  13768. case $version_type in
  13769. freebsd-elf*)
  13770. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13771. need_version=no
  13772. need_lib_prefix=no
  13773. ;;
  13774. freebsd-*)
  13775. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13776. need_version=yes
  13777. ;;
  13778. esac
  13779. shlibpath_var=LD_LIBRARY_PATH
  13780. case $host_os in
  13781. freebsd2*)
  13782. shlibpath_overrides_runpath=yes
  13783. ;;
  13784. freebsd3.[01]* | freebsdelf3.[01]*)
  13785. shlibpath_overrides_runpath=yes
  13786. hardcode_into_libs=yes
  13787. ;;
  13788. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13789. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13790. shlibpath_overrides_runpath=no
  13791. hardcode_into_libs=yes
  13792. ;;
  13793. *) # from 4.6 on, and DragonFly
  13794. shlibpath_overrides_runpath=yes
  13795. hardcode_into_libs=yes
  13796. ;;
  13797. esac
  13798. ;;
  13799. gnu*)
  13800. version_type=linux
  13801. need_lib_prefix=no
  13802. need_version=no
  13803. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13804. soname_spec='${libname}${release}${shared_ext}$major'
  13805. shlibpath_var=LD_LIBRARY_PATH
  13806. hardcode_into_libs=yes
  13807. ;;
  13808. hpux9* | hpux10* | hpux11*)
  13809. # Give a soname corresponding to the major version so that dld.sl refuses to
  13810. # link against other versions.
  13811. version_type=sunos
  13812. need_lib_prefix=no
  13813. need_version=no
  13814. case $host_cpu in
  13815. ia64*)
  13816. shrext_cmds='.so'
  13817. hardcode_into_libs=yes
  13818. dynamic_linker="$host_os dld.so"
  13819. shlibpath_var=LD_LIBRARY_PATH
  13820. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13822. soname_spec='${libname}${release}${shared_ext}$major'
  13823. if test "X$HPUX_IA64_MODE" = X32; then
  13824. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13825. else
  13826. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13827. fi
  13828. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13829. ;;
  13830. hppa*64*)
  13831. shrext_cmds='.sl'
  13832. hardcode_into_libs=yes
  13833. dynamic_linker="$host_os dld.sl"
  13834. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13835. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13837. soname_spec='${libname}${release}${shared_ext}$major'
  13838. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13839. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13840. ;;
  13841. *)
  13842. shrext_cmds='.sl'
  13843. dynamic_linker="$host_os dld.sl"
  13844. shlibpath_var=SHLIB_PATH
  13845. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13847. soname_spec='${libname}${release}${shared_ext}$major'
  13848. ;;
  13849. esac
  13850. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13851. postinstall_cmds='chmod 555 $lib'
  13852. ;;
  13853. interix[3-9]*)
  13854. version_type=linux
  13855. need_lib_prefix=no
  13856. need_version=no
  13857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13858. soname_spec='${libname}${release}${shared_ext}$major'
  13859. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13860. shlibpath_var=LD_LIBRARY_PATH
  13861. shlibpath_overrides_runpath=no
  13862. hardcode_into_libs=yes
  13863. ;;
  13864. irix5* | irix6* | nonstopux*)
  13865. case $host_os in
  13866. nonstopux*) version_type=nonstopux ;;
  13867. *)
  13868. if test "$lt_cv_prog_gnu_ld" = yes; then
  13869. version_type=linux
  13870. else
  13871. version_type=irix
  13872. fi ;;
  13873. esac
  13874. need_lib_prefix=no
  13875. need_version=no
  13876. soname_spec='${libname}${release}${shared_ext}$major'
  13877. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13878. case $host_os in
  13879. irix5* | nonstopux*)
  13880. libsuff= shlibsuff=
  13881. ;;
  13882. *)
  13883. case $LD in # libtool.m4 will add one of these switches to LD
  13884. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13885. libsuff= shlibsuff= libmagic=32-bit;;
  13886. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13887. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13888. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13889. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13890. *) libsuff= shlibsuff= libmagic=never-match;;
  13891. esac
  13892. ;;
  13893. esac
  13894. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13895. shlibpath_overrides_runpath=no
  13896. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13897. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13898. hardcode_into_libs=yes
  13899. ;;
  13900. # No shared lib support for Linux oldld, aout, or coff.
  13901. linux*oldld* | linux*aout* | linux*coff*)
  13902. dynamic_linker=no
  13903. ;;
  13904. # This must be Linux ELF.
  13905. linux* | k*bsd*-gnu)
  13906. version_type=linux
  13907. need_lib_prefix=no
  13908. need_version=no
  13909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13910. soname_spec='${libname}${release}${shared_ext}$major'
  13911. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13912. shlibpath_var=LD_LIBRARY_PATH
  13913. shlibpath_overrides_runpath=no
  13914. # This implies no fast_install, which is unacceptable.
  13915. # Some rework will be needed to allow for fast_install
  13916. # before this can be enabled.
  13917. hardcode_into_libs=yes
  13918. # Append ld.so.conf contents to the search path
  13919. if test -f /etc/ld.so.conf; then
  13920. 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' ' '`
  13921. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13922. fi
  13923. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13924. # powerpc, because MkLinux only supported shared libraries with the
  13925. # GNU dynamic linker. Since this was broken with cross compilers,
  13926. # most powerpc-linux boxes support dynamic linking these days and
  13927. # people can always --disable-shared, the test was removed, and we
  13928. # assume the GNU/Linux dynamic linker is in use.
  13929. dynamic_linker='GNU/Linux ld.so'
  13930. ;;
  13931. netbsdelf*-gnu)
  13932. version_type=linux
  13933. need_lib_prefix=no
  13934. need_version=no
  13935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13936. soname_spec='${libname}${release}${shared_ext}$major'
  13937. shlibpath_var=LD_LIBRARY_PATH
  13938. shlibpath_overrides_runpath=no
  13939. hardcode_into_libs=yes
  13940. dynamic_linker='NetBSD ld.elf_so'
  13941. ;;
  13942. netbsd*)
  13943. version_type=sunos
  13944. need_lib_prefix=no
  13945. need_version=no
  13946. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13948. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13949. dynamic_linker='NetBSD (a.out) ld.so'
  13950. else
  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. dynamic_linker='NetBSD ld.elf_so'
  13954. fi
  13955. shlibpath_var=LD_LIBRARY_PATH
  13956. shlibpath_overrides_runpath=yes
  13957. hardcode_into_libs=yes
  13958. ;;
  13959. newsos6)
  13960. version_type=linux
  13961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13962. shlibpath_var=LD_LIBRARY_PATH
  13963. shlibpath_overrides_runpath=yes
  13964. ;;
  13965. nto-qnx*)
  13966. version_type=linux
  13967. need_lib_prefix=no
  13968. need_version=no
  13969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13970. soname_spec='${libname}${release}${shared_ext}$major'
  13971. shlibpath_var=LD_LIBRARY_PATH
  13972. shlibpath_overrides_runpath=yes
  13973. ;;
  13974. openbsd*)
  13975. version_type=sunos
  13976. sys_lib_dlsearch_path_spec="/usr/lib"
  13977. need_lib_prefix=no
  13978. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13979. case $host_os in
  13980. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13981. *) need_version=no ;;
  13982. esac
  13983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13984. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13985. shlibpath_var=LD_LIBRARY_PATH
  13986. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13987. case $host_os in
  13988. openbsd2.[89] | openbsd2.[89].*)
  13989. shlibpath_overrides_runpath=no
  13990. ;;
  13991. *)
  13992. shlibpath_overrides_runpath=yes
  13993. ;;
  13994. esac
  13995. else
  13996. shlibpath_overrides_runpath=yes
  13997. fi
  13998. ;;
  13999. os2*)
  14000. libname_spec='$name'
  14001. shrext_cmds=".dll"
  14002. need_lib_prefix=no
  14003. library_names_spec='$libname${shared_ext} $libname.a'
  14004. dynamic_linker='OS/2 ld.exe'
  14005. shlibpath_var=LIBPATH
  14006. ;;
  14007. osf3* | osf4* | osf5*)
  14008. version_type=osf
  14009. need_lib_prefix=no
  14010. need_version=no
  14011. soname_spec='${libname}${release}${shared_ext}$major'
  14012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14013. shlibpath_var=LD_LIBRARY_PATH
  14014. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14015. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14016. ;;
  14017. rdos*)
  14018. dynamic_linker=no
  14019. ;;
  14020. solaris*)
  14021. version_type=linux
  14022. need_lib_prefix=no
  14023. need_version=no
  14024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14025. soname_spec='${libname}${release}${shared_ext}$major'
  14026. shlibpath_var=LD_LIBRARY_PATH
  14027. shlibpath_overrides_runpath=yes
  14028. hardcode_into_libs=yes
  14029. # ldd complains unless libraries are executable
  14030. postinstall_cmds='chmod +x $lib'
  14031. ;;
  14032. sunos4*)
  14033. version_type=sunos
  14034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14035. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14036. shlibpath_var=LD_LIBRARY_PATH
  14037. shlibpath_overrides_runpath=yes
  14038. if test "$with_gnu_ld" = yes; then
  14039. need_lib_prefix=no
  14040. fi
  14041. need_version=yes
  14042. ;;
  14043. sysv4 | sysv4.3*)
  14044. version_type=linux
  14045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14046. soname_spec='${libname}${release}${shared_ext}$major'
  14047. shlibpath_var=LD_LIBRARY_PATH
  14048. case $host_vendor in
  14049. sni)
  14050. shlibpath_overrides_runpath=no
  14051. need_lib_prefix=no
  14052. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14053. runpath_var=LD_RUN_PATH
  14054. ;;
  14055. siemens)
  14056. need_lib_prefix=no
  14057. ;;
  14058. motorola)
  14059. need_lib_prefix=no
  14060. need_version=no
  14061. shlibpath_overrides_runpath=no
  14062. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14063. ;;
  14064. esac
  14065. ;;
  14066. sysv4*MP*)
  14067. if test -d /usr/nec ;then
  14068. version_type=linux
  14069. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14070. soname_spec='$libname${shared_ext}.$major'
  14071. shlibpath_var=LD_LIBRARY_PATH
  14072. fi
  14073. ;;
  14074. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14075. version_type=freebsd-elf
  14076. need_lib_prefix=no
  14077. need_version=no
  14078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14079. soname_spec='${libname}${release}${shared_ext}$major'
  14080. shlibpath_var=LD_LIBRARY_PATH
  14081. hardcode_into_libs=yes
  14082. if test "$with_gnu_ld" = yes; then
  14083. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14084. shlibpath_overrides_runpath=no
  14085. else
  14086. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14087. shlibpath_overrides_runpath=yes
  14088. case $host_os in
  14089. sco3.2v5*)
  14090. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14091. ;;
  14092. esac
  14093. fi
  14094. sys_lib_dlsearch_path_spec='/usr/lib'
  14095. ;;
  14096. uts4*)
  14097. version_type=linux
  14098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14099. soname_spec='${libname}${release}${shared_ext}$major'
  14100. shlibpath_var=LD_LIBRARY_PATH
  14101. ;;
  14102. *)
  14103. dynamic_linker=no
  14104. ;;
  14105. esac
  14106. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14107. echo "${ECHO_T}$dynamic_linker" >&6; }
  14108. test "$dynamic_linker" = no && can_build_shared=no
  14109. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14110. echo $ECHO_N "(cached) $ECHO_C" >&6
  14111. else
  14112. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  14113. fi
  14114. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14115. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14116. echo $ECHO_N "(cached) $ECHO_C" >&6
  14117. else
  14118. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  14119. fi
  14120. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14121. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14122. if test "$GCC" = yes; then
  14123. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14124. fi
  14125. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14126. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14127. hardcode_action_F77=
  14128. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14129. test -n "$runpath_var_F77" || \
  14130. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14131. # We can hardcode non-existant directories.
  14132. if test "$hardcode_direct_F77" != no &&
  14133. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14134. # have to relink, otherwise we might link with an installed library
  14135. # when we should be linking with a yet-to-be-installed one
  14136. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14137. test "$hardcode_minus_L_F77" != no; then
  14138. # Linking always hardcodes the temporary library directory.
  14139. hardcode_action_F77=relink
  14140. else
  14141. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14142. hardcode_action_F77=immediate
  14143. fi
  14144. else
  14145. # We cannot hardcode anything, or else we can only hardcode existing
  14146. # directories.
  14147. hardcode_action_F77=unsupported
  14148. fi
  14149. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14150. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14151. if test "$hardcode_action_F77" = relink; then
  14152. # Fast installation is not supported
  14153. enable_fast_install=no
  14154. elif test "$shlibpath_overrides_runpath" = yes ||
  14155. test "$enable_shared" = no; then
  14156. # Fast installation is not necessary
  14157. enable_fast_install=needless
  14158. fi
  14159. # The else clause should only fire when bootstrapping the
  14160. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14161. # with your package, and you will get complaints that there are
  14162. # no rules to generate ltmain.sh.
  14163. if test -f "$ltmain"; then
  14164. # See if we are running on zsh, and set the options which allow our commands through
  14165. # without removal of \ escapes.
  14166. if test -n "${ZSH_VERSION+set}" ; then
  14167. setopt NO_GLOB_SUBST
  14168. fi
  14169. # Now quote all the things that may contain metacharacters while being
  14170. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14171. # variables and quote the copies for generation of the libtool script.
  14172. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14173. SED SHELL STRIP \
  14174. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14175. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14176. deplibs_check_method reload_flag reload_cmds need_locks \
  14177. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14178. lt_cv_sys_global_symbol_to_c_name_address \
  14179. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14180. old_postinstall_cmds old_postuninstall_cmds \
  14181. compiler_F77 \
  14182. CC_F77 \
  14183. LD_F77 \
  14184. lt_prog_compiler_wl_F77 \
  14185. lt_prog_compiler_pic_F77 \
  14186. lt_prog_compiler_static_F77 \
  14187. lt_prog_compiler_no_builtin_flag_F77 \
  14188. export_dynamic_flag_spec_F77 \
  14189. thread_safe_flag_spec_F77 \
  14190. whole_archive_flag_spec_F77 \
  14191. enable_shared_with_static_runtimes_F77 \
  14192. old_archive_cmds_F77 \
  14193. old_archive_from_new_cmds_F77 \
  14194. predep_objects_F77 \
  14195. postdep_objects_F77 \
  14196. predeps_F77 \
  14197. postdeps_F77 \
  14198. compiler_lib_search_path_F77 \
  14199. compiler_lib_search_dirs_F77 \
  14200. archive_cmds_F77 \
  14201. archive_expsym_cmds_F77 \
  14202. postinstall_cmds_F77 \
  14203. postuninstall_cmds_F77 \
  14204. old_archive_from_expsyms_cmds_F77 \
  14205. allow_undefined_flag_F77 \
  14206. no_undefined_flag_F77 \
  14207. export_symbols_cmds_F77 \
  14208. hardcode_libdir_flag_spec_F77 \
  14209. hardcode_libdir_flag_spec_ld_F77 \
  14210. hardcode_libdir_separator_F77 \
  14211. hardcode_automatic_F77 \
  14212. module_cmds_F77 \
  14213. module_expsym_cmds_F77 \
  14214. lt_cv_prog_compiler_c_o_F77 \
  14215. fix_srcfile_path_F77 \
  14216. exclude_expsyms_F77 \
  14217. include_expsyms_F77; do
  14218. case $var in
  14219. old_archive_cmds_F77 | \
  14220. old_archive_from_new_cmds_F77 | \
  14221. archive_cmds_F77 | \
  14222. archive_expsym_cmds_F77 | \
  14223. module_cmds_F77 | \
  14224. module_expsym_cmds_F77 | \
  14225. old_archive_from_expsyms_cmds_F77 | \
  14226. export_symbols_cmds_F77 | \
  14227. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14228. postinstall_cmds | postuninstall_cmds | \
  14229. old_postinstall_cmds | old_postuninstall_cmds | \
  14230. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14231. # Double-quote double-evaled strings.
  14232. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14233. ;;
  14234. *)
  14235. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14236. ;;
  14237. esac
  14238. done
  14239. case $lt_echo in
  14240. *'\$0 --fallback-echo"')
  14241. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14242. ;;
  14243. esac
  14244. cfgfile="$ofile"
  14245. cat <<__EOF__ >> "$cfgfile"
  14246. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14247. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14248. # Shell to use when invoking shell scripts.
  14249. SHELL=$lt_SHELL
  14250. # Whether or not to build shared libraries.
  14251. build_libtool_libs=$enable_shared
  14252. # Whether or not to build static libraries.
  14253. build_old_libs=$enable_static
  14254. # Whether or not to add -lc for building shared libraries.
  14255. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14256. # Whether or not to disallow shared libs when runtime libs are static
  14257. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14258. # Whether or not to optimize for fast installation.
  14259. fast_install=$enable_fast_install
  14260. # The host system.
  14261. host_alias=$host_alias
  14262. host=$host
  14263. host_os=$host_os
  14264. # The build system.
  14265. build_alias=$build_alias
  14266. build=$build
  14267. build_os=$build_os
  14268. # An echo program that does not interpret backslashes.
  14269. echo=$lt_echo
  14270. # The archiver.
  14271. AR=$lt_AR
  14272. AR_FLAGS=$lt_AR_FLAGS
  14273. # A C compiler.
  14274. LTCC=$lt_LTCC
  14275. # LTCC compiler flags.
  14276. LTCFLAGS=$lt_LTCFLAGS
  14277. # A language-specific compiler.
  14278. CC=$lt_compiler_F77
  14279. # Is the compiler the GNU C compiler?
  14280. with_gcc=$GCC_F77
  14281. # An ERE matcher.
  14282. EGREP=$lt_EGREP
  14283. # The linker used to build libraries.
  14284. LD=$lt_LD_F77
  14285. # Whether we need hard or soft links.
  14286. LN_S=$lt_LN_S
  14287. # A BSD-compatible nm program.
  14288. NM=$lt_NM
  14289. # A symbol stripping program
  14290. STRIP=$lt_STRIP
  14291. # Used to examine libraries when file_magic_cmd begins "file"
  14292. MAGIC_CMD=$MAGIC_CMD
  14293. # Used on cygwin: DLL creation program.
  14294. DLLTOOL="$DLLTOOL"
  14295. # Used on cygwin: object dumper.
  14296. OBJDUMP="$OBJDUMP"
  14297. # Used on cygwin: assembler.
  14298. AS="$AS"
  14299. # The name of the directory that contains temporary libtool files.
  14300. objdir=$objdir
  14301. # How to create reloadable object files.
  14302. reload_flag=$lt_reload_flag
  14303. reload_cmds=$lt_reload_cmds
  14304. # How to pass a linker flag through the compiler.
  14305. wl=$lt_lt_prog_compiler_wl_F77
  14306. # Object file suffix (normally "o").
  14307. objext="$ac_objext"
  14308. # Old archive suffix (normally "a").
  14309. libext="$libext"
  14310. # Shared library suffix (normally ".so").
  14311. shrext_cmds='$shrext_cmds'
  14312. # Executable file suffix (normally "").
  14313. exeext="$exeext"
  14314. # Additional compiler flags for building library objects.
  14315. pic_flag=$lt_lt_prog_compiler_pic_F77
  14316. pic_mode=$pic_mode
  14317. # What is the maximum length of a command?
  14318. max_cmd_len=$lt_cv_sys_max_cmd_len
  14319. # Does compiler simultaneously support -c and -o options?
  14320. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14321. # Must we lock files when doing compilation?
  14322. need_locks=$lt_need_locks
  14323. # Do we need the lib prefix for modules?
  14324. need_lib_prefix=$need_lib_prefix
  14325. # Do we need a version for libraries?
  14326. need_version=$need_version
  14327. # Whether dlopen is supported.
  14328. dlopen_support=$enable_dlopen
  14329. # Whether dlopen of programs is supported.
  14330. dlopen_self=$enable_dlopen_self
  14331. # Whether dlopen of statically linked programs is supported.
  14332. dlopen_self_static=$enable_dlopen_self_static
  14333. # Compiler flag to prevent dynamic linking.
  14334. link_static_flag=$lt_lt_prog_compiler_static_F77
  14335. # Compiler flag to turn off builtin functions.
  14336. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14337. # Compiler flag to allow reflexive dlopens.
  14338. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14339. # Compiler flag to generate shared objects directly from archives.
  14340. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14341. # Compiler flag to generate thread-safe objects.
  14342. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14343. # Library versioning type.
  14344. version_type=$version_type
  14345. # Format of library name prefix.
  14346. libname_spec=$lt_libname_spec
  14347. # List of archive names. First name is the real one, the rest are links.
  14348. # The last name is the one that the linker finds with -lNAME.
  14349. library_names_spec=$lt_library_names_spec
  14350. # The coded name of the library, if different from the real name.
  14351. soname_spec=$lt_soname_spec
  14352. # Commands used to build and install an old-style archive.
  14353. RANLIB=$lt_RANLIB
  14354. old_archive_cmds=$lt_old_archive_cmds_F77
  14355. old_postinstall_cmds=$lt_old_postinstall_cmds
  14356. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14357. # Create an old-style archive from a shared archive.
  14358. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14359. # Create a temporary old-style archive to link instead of a shared archive.
  14360. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14361. # Commands used to build and install a shared archive.
  14362. archive_cmds=$lt_archive_cmds_F77
  14363. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14364. postinstall_cmds=$lt_postinstall_cmds
  14365. postuninstall_cmds=$lt_postuninstall_cmds
  14366. # Commands used to build a loadable module (assumed same as above if empty)
  14367. module_cmds=$lt_module_cmds_F77
  14368. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14369. # Commands to strip libraries.
  14370. old_striplib=$lt_old_striplib
  14371. striplib=$lt_striplib
  14372. # Dependencies to place before the objects being linked to create a
  14373. # shared library.
  14374. predep_objects=$lt_predep_objects_F77
  14375. # Dependencies to place after the objects being linked to create a
  14376. # shared library.
  14377. postdep_objects=$lt_postdep_objects_F77
  14378. # Dependencies to place before the objects being linked to create a
  14379. # shared library.
  14380. predeps=$lt_predeps_F77
  14381. # Dependencies to place after the objects being linked to create a
  14382. # shared library.
  14383. postdeps=$lt_postdeps_F77
  14384. # The directories searched by this compiler when creating a shared
  14385. # library
  14386. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
  14387. # The library search path used internally by the compiler when linking
  14388. # a shared library.
  14389. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14390. # Method to check whether dependent libraries are shared objects.
  14391. deplibs_check_method=$lt_deplibs_check_method
  14392. # Command to use when deplibs_check_method == file_magic.
  14393. file_magic_cmd=$lt_file_magic_cmd
  14394. # Flag that allows shared libraries with undefined symbols to be built.
  14395. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14396. # Flag that forces no undefined symbols.
  14397. no_undefined_flag=$lt_no_undefined_flag_F77
  14398. # Commands used to finish a libtool library installation in a directory.
  14399. finish_cmds=$lt_finish_cmds
  14400. # Same as above, but a single script fragment to be evaled but not shown.
  14401. finish_eval=$lt_finish_eval
  14402. # Take the output of nm and produce a listing of raw symbols and C names.
  14403. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14404. # Transform the output of nm in a proper C declaration
  14405. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14406. # Transform the output of nm in a C name address pair
  14407. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14408. # This is the shared library runtime path variable.
  14409. runpath_var=$runpath_var
  14410. # This is the shared library path variable.
  14411. shlibpath_var=$shlibpath_var
  14412. # Is shlibpath searched before the hard-coded library search path?
  14413. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14414. # How to hardcode a shared library path into an executable.
  14415. hardcode_action=$hardcode_action_F77
  14416. # Whether we should hardcode library paths into libraries.
  14417. hardcode_into_libs=$hardcode_into_libs
  14418. # Flag to hardcode \$libdir into a binary during linking.
  14419. # This must work even if \$libdir does not exist.
  14420. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14421. # If ld is used when linking, flag to hardcode \$libdir into
  14422. # a binary during linking. This must work even if \$libdir does
  14423. # not exist.
  14424. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14425. # Whether we need a single -rpath flag with a separated argument.
  14426. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14427. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14428. # resulting binary.
  14429. hardcode_direct=$hardcode_direct_F77
  14430. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14431. # resulting binary.
  14432. hardcode_minus_L=$hardcode_minus_L_F77
  14433. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14434. # the resulting binary.
  14435. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14436. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14437. # and all subsequent libraries and executables linked against it.
  14438. hardcode_automatic=$hardcode_automatic_F77
  14439. # Variables whose values should be saved in libtool wrapper scripts and
  14440. # restored at relink time.
  14441. variables_saved_for_relink="$variables_saved_for_relink"
  14442. # Whether libtool must link a program against all its dependency libraries.
  14443. link_all_deplibs=$link_all_deplibs_F77
  14444. # Compile-time system search path for libraries
  14445. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14446. # Run-time system search path for libraries
  14447. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14448. # Fix the shell variable \$srcfile for the compiler.
  14449. fix_srcfile_path=$lt_fix_srcfile_path
  14450. # Set to yes if exported symbols are required.
  14451. always_export_symbols=$always_export_symbols_F77
  14452. # The commands to list exported symbols.
  14453. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14454. # The commands to extract the exported symbol list from a shared archive.
  14455. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14456. # Symbols that should not be listed in the preloaded symbols.
  14457. exclude_expsyms=$lt_exclude_expsyms_F77
  14458. # Symbols that must always be exported.
  14459. include_expsyms=$lt_include_expsyms_F77
  14460. # ### END LIBTOOL TAG CONFIG: $tagname
  14461. __EOF__
  14462. else
  14463. # If there is no Makefile yet, we rely on a make rule to execute
  14464. # `config.status --recheck' to rerun these tests and create the
  14465. # libtool script then.
  14466. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14467. if test -f "$ltmain_in"; then
  14468. test -f Makefile && make "$ltmain"
  14469. fi
  14470. fi
  14471. ac_ext=c
  14472. ac_cpp='$CPP $CPPFLAGS'
  14473. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14474. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14475. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14476. CC="$lt_save_CC"
  14477. else
  14478. tagname=""
  14479. fi
  14480. ;;
  14481. GCJ)
  14482. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14483. # Source file extension for Java test sources.
  14484. ac_ext=java
  14485. # Object file extension for compiled Java test sources.
  14486. objext=o
  14487. objext_GCJ=$objext
  14488. # Code to be used in simple compile tests
  14489. lt_simple_compile_test_code="class foo {}"
  14490. # Code to be used in simple link tests
  14491. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  14492. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14493. # If no C compiler was specified, use CC.
  14494. LTCC=${LTCC-"$CC"}
  14495. # If no C compiler flags were specified, use CFLAGS.
  14496. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14497. # Allow CC to be a program name with arguments.
  14498. compiler=$CC
  14499. # save warnings/boilerplate of simple test code
  14500. ac_outfile=conftest.$ac_objext
  14501. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14502. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14503. _lt_compiler_boilerplate=`cat conftest.err`
  14504. $rm conftest*
  14505. ac_outfile=conftest.$ac_objext
  14506. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14507. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14508. _lt_linker_boilerplate=`cat conftest.err`
  14509. $rm -r conftest*
  14510. # Allow CC to be a program name with arguments.
  14511. lt_save_CC="$CC"
  14512. CC=${GCJ-"gcj"}
  14513. compiler=$CC
  14514. compiler_GCJ=$CC
  14515. for cc_temp in $compiler""; do
  14516. case $cc_temp in
  14517. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14518. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14519. \-*) ;;
  14520. *) break;;
  14521. esac
  14522. done
  14523. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14524. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14525. archive_cmds_need_lc_GCJ=no
  14526. old_archive_cmds_GCJ=$old_archive_cmds
  14527. lt_prog_compiler_no_builtin_flag_GCJ=
  14528. if test "$GCC" = yes; then
  14529. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14530. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14531. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14532. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14533. echo $ECHO_N "(cached) $ECHO_C" >&6
  14534. else
  14535. lt_cv_prog_compiler_rtti_exceptions=no
  14536. ac_outfile=conftest.$ac_objext
  14537. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14538. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14539. # Insert the option either (1) after the last *FLAGS variable, or
  14540. # (2) before a word containing "conftest.", or (3) at the end.
  14541. # Note that $ac_compile itself does not contain backslashes and begins
  14542. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14543. # The option is referenced via a variable to avoid confusing sed.
  14544. lt_compile=`echo "$ac_compile" | $SED \
  14545. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14546. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14547. -e 's:$: $lt_compiler_flag:'`
  14548. (eval echo "\"\$as_me:16267: $lt_compile\"" >&5)
  14549. (eval "$lt_compile" 2>conftest.err)
  14550. ac_status=$?
  14551. cat conftest.err >&5
  14552. echo "$as_me:16271: \$? = $ac_status" >&5
  14553. if (exit $ac_status) && test -s "$ac_outfile"; then
  14554. # The compiler can only warn and ignore the option if not recognized
  14555. # So say no if there are warnings other than the usual output.
  14556. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14557. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14558. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14559. lt_cv_prog_compiler_rtti_exceptions=yes
  14560. fi
  14561. fi
  14562. $rm conftest*
  14563. fi
  14564. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14565. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14566. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14567. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14568. else
  14569. :
  14570. fi
  14571. fi
  14572. lt_prog_compiler_wl_GCJ=
  14573. lt_prog_compiler_pic_GCJ=
  14574. lt_prog_compiler_static_GCJ=
  14575. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14576. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14577. if test "$GCC" = yes; then
  14578. lt_prog_compiler_wl_GCJ='-Wl,'
  14579. lt_prog_compiler_static_GCJ='-static'
  14580. case $host_os in
  14581. aix*)
  14582. # All AIX code is PIC.
  14583. if test "$host_cpu" = ia64; then
  14584. # AIX 5 now supports IA64 processor
  14585. lt_prog_compiler_static_GCJ='-Bstatic'
  14586. fi
  14587. ;;
  14588. amigaos*)
  14589. # FIXME: we need at least 68020 code to build shared libraries, but
  14590. # adding the `-m68020' flag to GCC prevents building anything better,
  14591. # like `-m68040'.
  14592. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14593. ;;
  14594. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14595. # PIC is the default for these OSes.
  14596. ;;
  14597. mingw* | cygwin* | pw32* | os2*)
  14598. # This hack is so that the source file can tell whether it is being
  14599. # built for inclusion in a dll (and should export symbols for example).
  14600. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14601. # (--disable-auto-import) libraries
  14602. ;;
  14603. darwin* | rhapsody*)
  14604. # PIC is the default on this platform
  14605. # Common symbols not allowed in MH_DYLIB files
  14606. lt_prog_compiler_pic_GCJ='-fno-common'
  14607. ;;
  14608. interix[3-9]*)
  14609. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14610. # Instead, we relocate shared libraries at runtime.
  14611. ;;
  14612. msdosdjgpp*)
  14613. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14614. # on systems that don't support them.
  14615. lt_prog_compiler_can_build_shared_GCJ=no
  14616. enable_shared=no
  14617. ;;
  14618. sysv4*MP*)
  14619. if test -d /usr/nec; then
  14620. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14621. fi
  14622. ;;
  14623. hpux*)
  14624. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14625. # not for PA HP-UX.
  14626. case $host_cpu in
  14627. hppa*64*|ia64*)
  14628. # +Z the default
  14629. ;;
  14630. *)
  14631. lt_prog_compiler_pic_GCJ='-fPIC'
  14632. ;;
  14633. esac
  14634. ;;
  14635. *)
  14636. lt_prog_compiler_pic_GCJ='-fPIC'
  14637. ;;
  14638. esac
  14639. else
  14640. # PORTME Check for flag to pass linker flags through the system compiler.
  14641. case $host_os in
  14642. aix*)
  14643. lt_prog_compiler_wl_GCJ='-Wl,'
  14644. if test "$host_cpu" = ia64; then
  14645. # AIX 5 now supports IA64 processor
  14646. lt_prog_compiler_static_GCJ='-Bstatic'
  14647. else
  14648. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14649. fi
  14650. ;;
  14651. darwin*)
  14652. # PIC is the default on this platform
  14653. # Common symbols not allowed in MH_DYLIB files
  14654. case $cc_basename in
  14655. xlc*)
  14656. lt_prog_compiler_pic_GCJ='-qnocommon'
  14657. lt_prog_compiler_wl_GCJ='-Wl,'
  14658. ;;
  14659. esac
  14660. ;;
  14661. mingw* | cygwin* | pw32* | os2*)
  14662. # This hack is so that the source file can tell whether it is being
  14663. # built for inclusion in a dll (and should export symbols for example).
  14664. ;;
  14665. hpux9* | hpux10* | hpux11*)
  14666. lt_prog_compiler_wl_GCJ='-Wl,'
  14667. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14668. # not for PA HP-UX.
  14669. case $host_cpu in
  14670. hppa*64*|ia64*)
  14671. # +Z the default
  14672. ;;
  14673. *)
  14674. lt_prog_compiler_pic_GCJ='+Z'
  14675. ;;
  14676. esac
  14677. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14678. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14679. ;;
  14680. irix5* | irix6* | nonstopux*)
  14681. lt_prog_compiler_wl_GCJ='-Wl,'
  14682. # PIC (with -KPIC) is the default.
  14683. lt_prog_compiler_static_GCJ='-non_shared'
  14684. ;;
  14685. newsos6)
  14686. lt_prog_compiler_pic_GCJ='-KPIC'
  14687. lt_prog_compiler_static_GCJ='-Bstatic'
  14688. ;;
  14689. linux* | k*bsd*-gnu)
  14690. case $cc_basename in
  14691. icc* | ecc*)
  14692. lt_prog_compiler_wl_GCJ='-Wl,'
  14693. lt_prog_compiler_pic_GCJ='-KPIC'
  14694. lt_prog_compiler_static_GCJ='-static'
  14695. ;;
  14696. pgcc* | pgf77* | pgf90* | pgf95*)
  14697. # Portland Group compilers (*not* the Pentium gcc compiler,
  14698. # which looks to be a dead project)
  14699. lt_prog_compiler_wl_GCJ='-Wl,'
  14700. lt_prog_compiler_pic_GCJ='-fpic'
  14701. lt_prog_compiler_static_GCJ='-Bstatic'
  14702. ;;
  14703. ccc*)
  14704. lt_prog_compiler_wl_GCJ='-Wl,'
  14705. # All Alpha code is PIC.
  14706. lt_prog_compiler_static_GCJ='-non_shared'
  14707. ;;
  14708. *)
  14709. case `$CC -V 2>&1 | sed 5q` in
  14710. *Sun\ C*)
  14711. # Sun C 5.9
  14712. lt_prog_compiler_pic_GCJ='-KPIC'
  14713. lt_prog_compiler_static_GCJ='-Bstatic'
  14714. lt_prog_compiler_wl_GCJ='-Wl,'
  14715. ;;
  14716. *Sun\ F*)
  14717. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  14718. lt_prog_compiler_pic_GCJ='-KPIC'
  14719. lt_prog_compiler_static_GCJ='-Bstatic'
  14720. lt_prog_compiler_wl_GCJ=''
  14721. ;;
  14722. esac
  14723. ;;
  14724. esac
  14725. ;;
  14726. osf3* | osf4* | osf5*)
  14727. lt_prog_compiler_wl_GCJ='-Wl,'
  14728. # All OSF/1 code is PIC.
  14729. lt_prog_compiler_static_GCJ='-non_shared'
  14730. ;;
  14731. rdos*)
  14732. lt_prog_compiler_static_GCJ='-non_shared'
  14733. ;;
  14734. solaris*)
  14735. lt_prog_compiler_pic_GCJ='-KPIC'
  14736. lt_prog_compiler_static_GCJ='-Bstatic'
  14737. case $cc_basename in
  14738. f77* | f90* | f95*)
  14739. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14740. *)
  14741. lt_prog_compiler_wl_GCJ='-Wl,';;
  14742. esac
  14743. ;;
  14744. sunos4*)
  14745. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14746. lt_prog_compiler_pic_GCJ='-PIC'
  14747. lt_prog_compiler_static_GCJ='-Bstatic'
  14748. ;;
  14749. sysv4 | sysv4.2uw2* | sysv4.3*)
  14750. lt_prog_compiler_wl_GCJ='-Wl,'
  14751. lt_prog_compiler_pic_GCJ='-KPIC'
  14752. lt_prog_compiler_static_GCJ='-Bstatic'
  14753. ;;
  14754. sysv4*MP*)
  14755. if test -d /usr/nec ;then
  14756. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14757. lt_prog_compiler_static_GCJ='-Bstatic'
  14758. fi
  14759. ;;
  14760. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14761. lt_prog_compiler_wl_GCJ='-Wl,'
  14762. lt_prog_compiler_pic_GCJ='-KPIC'
  14763. lt_prog_compiler_static_GCJ='-Bstatic'
  14764. ;;
  14765. unicos*)
  14766. lt_prog_compiler_wl_GCJ='-Wl,'
  14767. lt_prog_compiler_can_build_shared_GCJ=no
  14768. ;;
  14769. uts4*)
  14770. lt_prog_compiler_pic_GCJ='-pic'
  14771. lt_prog_compiler_static_GCJ='-Bstatic'
  14772. ;;
  14773. *)
  14774. lt_prog_compiler_can_build_shared_GCJ=no
  14775. ;;
  14776. esac
  14777. fi
  14778. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14779. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  14780. #
  14781. # Check to make sure the PIC flag actually works.
  14782. #
  14783. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14784. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14785. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  14786. if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
  14787. echo $ECHO_N "(cached) $ECHO_C" >&6
  14788. else
  14789. lt_cv_prog_compiler_pic_works_GCJ=no
  14790. ac_outfile=conftest.$ac_objext
  14791. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14792. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14793. # Insert the option either (1) after the last *FLAGS variable, or
  14794. # (2) before a word containing "conftest.", or (3) at the end.
  14795. # Note that $ac_compile itself does not contain backslashes and begins
  14796. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14797. # The option is referenced via a variable to avoid confusing sed.
  14798. lt_compile=`echo "$ac_compile" | $SED \
  14799. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14800. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14801. -e 's:$: $lt_compiler_flag:'`
  14802. (eval echo "\"\$as_me:16557: $lt_compile\"" >&5)
  14803. (eval "$lt_compile" 2>conftest.err)
  14804. ac_status=$?
  14805. cat conftest.err >&5
  14806. echo "$as_me:16561: \$? = $ac_status" >&5
  14807. if (exit $ac_status) && test -s "$ac_outfile"; then
  14808. # The compiler can only warn and ignore the option if not recognized
  14809. # So say no if there are warnings other than the usual output.
  14810. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14811. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14812. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14813. lt_cv_prog_compiler_pic_works_GCJ=yes
  14814. fi
  14815. fi
  14816. $rm conftest*
  14817. fi
  14818. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
  14819. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
  14820. if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
  14821. case $lt_prog_compiler_pic_GCJ in
  14822. "" | " "*) ;;
  14823. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14824. esac
  14825. else
  14826. lt_prog_compiler_pic_GCJ=
  14827. lt_prog_compiler_can_build_shared_GCJ=no
  14828. fi
  14829. fi
  14830. case $host_os in
  14831. # For platforms which do not support PIC, -DPIC is meaningless:
  14832. *djgpp*)
  14833. lt_prog_compiler_pic_GCJ=
  14834. ;;
  14835. *)
  14836. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14837. ;;
  14838. esac
  14839. #
  14840. # Check to make sure the static flag actually works.
  14841. #
  14842. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14843. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14844. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  14845. if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
  14846. echo $ECHO_N "(cached) $ECHO_C" >&6
  14847. else
  14848. lt_cv_prog_compiler_static_works_GCJ=no
  14849. save_LDFLAGS="$LDFLAGS"
  14850. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14851. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14852. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14853. # The linker can only warn and ignore the option if not recognized
  14854. # So say no if there are warnings
  14855. if test -s conftest.err; then
  14856. # Append any errors to the config.log.
  14857. cat conftest.err 1>&5
  14858. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14859. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14860. if diff conftest.exp conftest.er2 >/dev/null; then
  14861. lt_cv_prog_compiler_static_works_GCJ=yes
  14862. fi
  14863. else
  14864. lt_cv_prog_compiler_static_works_GCJ=yes
  14865. fi
  14866. fi
  14867. $rm -r conftest*
  14868. LDFLAGS="$save_LDFLAGS"
  14869. fi
  14870. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
  14871. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
  14872. if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
  14873. :
  14874. else
  14875. lt_prog_compiler_static_GCJ=
  14876. fi
  14877. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14878. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  14879. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14880. echo $ECHO_N "(cached) $ECHO_C" >&6
  14881. else
  14882. lt_cv_prog_compiler_c_o_GCJ=no
  14883. $rm -r conftest 2>/dev/null
  14884. mkdir conftest
  14885. cd conftest
  14886. mkdir out
  14887. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14888. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14889. # Insert the option either (1) after the last *FLAGS variable, or
  14890. # (2) before a word containing "conftest.", or (3) at the end.
  14891. # Note that $ac_compile itself does not contain backslashes and begins
  14892. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14893. lt_compile=`echo "$ac_compile" | $SED \
  14894. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14895. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14896. -e 's:$: $lt_compiler_flag:'`
  14897. (eval echo "\"\$as_me:16661: $lt_compile\"" >&5)
  14898. (eval "$lt_compile" 2>out/conftest.err)
  14899. ac_status=$?
  14900. cat out/conftest.err >&5
  14901. echo "$as_me:16665: \$? = $ac_status" >&5
  14902. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14903. then
  14904. # The compiler can only warn and ignore the option if not recognized
  14905. # So say no if there are warnings
  14906. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14907. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14908. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14909. lt_cv_prog_compiler_c_o_GCJ=yes
  14910. fi
  14911. fi
  14912. chmod u+w . 2>&5
  14913. $rm conftest*
  14914. # SGI C++ compiler will create directory out/ii_files/ for
  14915. # template instantiation
  14916. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14917. $rm out/* && rmdir out
  14918. cd ..
  14919. rmdir conftest
  14920. $rm conftest*
  14921. fi
  14922. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14923. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  14924. hard_links="nottested"
  14925. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14926. # do not overwrite the value of need_locks provided by the user
  14927. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14928. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  14929. hard_links=yes
  14930. $rm conftest*
  14931. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14932. touch conftest.a
  14933. ln conftest.a conftest.b 2>&5 || hard_links=no
  14934. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14935. { echo "$as_me:$LINENO: result: $hard_links" >&5
  14936. echo "${ECHO_T}$hard_links" >&6; }
  14937. if test "$hard_links" = no; then
  14938. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14939. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14940. need_locks=warn
  14941. fi
  14942. else
  14943. need_locks=no
  14944. fi
  14945. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14946. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  14947. runpath_var=
  14948. allow_undefined_flag_GCJ=
  14949. enable_shared_with_static_runtimes_GCJ=no
  14950. archive_cmds_GCJ=
  14951. archive_expsym_cmds_GCJ=
  14952. old_archive_From_new_cmds_GCJ=
  14953. old_archive_from_expsyms_cmds_GCJ=
  14954. export_dynamic_flag_spec_GCJ=
  14955. whole_archive_flag_spec_GCJ=
  14956. thread_safe_flag_spec_GCJ=
  14957. hardcode_libdir_flag_spec_GCJ=
  14958. hardcode_libdir_flag_spec_ld_GCJ=
  14959. hardcode_libdir_separator_GCJ=
  14960. hardcode_direct_GCJ=no
  14961. hardcode_minus_L_GCJ=no
  14962. hardcode_shlibpath_var_GCJ=unsupported
  14963. link_all_deplibs_GCJ=unknown
  14964. hardcode_automatic_GCJ=no
  14965. module_cmds_GCJ=
  14966. module_expsym_cmds_GCJ=
  14967. always_export_symbols_GCJ=no
  14968. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14969. # include_expsyms should be a list of space-separated symbols to be *always*
  14970. # included in the symbol list
  14971. include_expsyms_GCJ=
  14972. # exclude_expsyms can be an extended regexp of symbols to exclude
  14973. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14974. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14975. # as well as any symbol that contains `d'.
  14976. exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14977. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14978. # platforms (ab)use it in PIC code, but their linkers get confused if
  14979. # the symbol is explicitly referenced. Since portable code cannot
  14980. # rely on this symbol name, it's probably fine to never include it in
  14981. # preloaded symbol tables.
  14982. # Exclude shared library initialization/finalization symbols.
  14983. extract_expsyms_cmds=
  14984. # Just being paranoid about ensuring that cc_basename is set.
  14985. for cc_temp in $compiler""; do
  14986. case $cc_temp in
  14987. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14988. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14989. \-*) ;;
  14990. *) break;;
  14991. esac
  14992. done
  14993. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14994. case $host_os in
  14995. cygwin* | mingw* | pw32*)
  14996. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14997. # When not using gcc, we currently assume that we are using
  14998. # Microsoft Visual C++.
  14999. if test "$GCC" != yes; then
  15000. with_gnu_ld=no
  15001. fi
  15002. ;;
  15003. interix*)
  15004. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15005. with_gnu_ld=yes
  15006. ;;
  15007. openbsd*)
  15008. with_gnu_ld=no
  15009. ;;
  15010. esac
  15011. ld_shlibs_GCJ=yes
  15012. if test "$with_gnu_ld" = yes; then
  15013. # If archive_cmds runs LD, not CC, wlarc should be empty
  15014. wlarc='${wl}'
  15015. # Set some defaults for GNU ld with shared library support. These
  15016. # are reset later if shared libraries are not supported. Putting them
  15017. # here allows them to be overridden if necessary.
  15018. runpath_var=LD_RUN_PATH
  15019. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15020. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15021. # ancient GNU ld didn't support --whole-archive et. al.
  15022. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15023. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15024. else
  15025. whole_archive_flag_spec_GCJ=
  15026. fi
  15027. supports_anon_versioning=no
  15028. case `$LD -v 2>/dev/null` in
  15029. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15030. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15031. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15032. *\ 2.11.*) ;; # other 2.11 versions
  15033. *) supports_anon_versioning=yes ;;
  15034. esac
  15035. # See if GNU ld supports shared libraries.
  15036. case $host_os in
  15037. aix[3-9]*)
  15038. # On AIX/PPC, the GNU linker is very broken
  15039. if test "$host_cpu" != ia64; then
  15040. ld_shlibs_GCJ=no
  15041. cat <<EOF 1>&2
  15042. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15043. *** to be unable to reliably create shared libraries on AIX.
  15044. *** Therefore, libtool is disabling shared libraries support. If you
  15045. *** really care for shared libraries, you may want to modify your PATH
  15046. *** so that a non-GNU linker is found, and then restart.
  15047. EOF
  15048. fi
  15049. ;;
  15050. amigaos*)
  15051. 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)'
  15052. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15053. hardcode_minus_L_GCJ=yes
  15054. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15055. # that the semantics of dynamic libraries on AmigaOS, at least up
  15056. # to version 4, is to share data among multiple programs linked
  15057. # with the same dynamic library. Since this doesn't match the
  15058. # behavior of shared libraries on other platforms, we can't use
  15059. # them.
  15060. ld_shlibs_GCJ=no
  15061. ;;
  15062. beos*)
  15063. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15064. allow_undefined_flag_GCJ=unsupported
  15065. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15066. # support --undefined. This deserves some investigation. FIXME
  15067. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15068. else
  15069. ld_shlibs_GCJ=no
  15070. fi
  15071. ;;
  15072. cygwin* | mingw* | pw32*)
  15073. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15074. # as there is no search path for DLLs.
  15075. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15076. allow_undefined_flag_GCJ=unsupported
  15077. always_export_symbols_GCJ=no
  15078. enable_shared_with_static_runtimes_GCJ=yes
  15079. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15080. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15081. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15082. # If the export-symbols file already is a .def file (1st line
  15083. # is EXPORTS), use it as is; otherwise, prepend...
  15084. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15085. cp $export_symbols $output_objdir/$soname.def;
  15086. else
  15087. echo EXPORTS > $output_objdir/$soname.def;
  15088. cat $export_symbols >> $output_objdir/$soname.def;
  15089. fi~
  15090. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15091. else
  15092. ld_shlibs_GCJ=no
  15093. fi
  15094. ;;
  15095. interix[3-9]*)
  15096. hardcode_direct_GCJ=no
  15097. hardcode_shlibpath_var_GCJ=no
  15098. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15099. export_dynamic_flag_spec_GCJ='${wl}-E'
  15100. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15101. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15102. # default) and relocated if they conflict, which is a slow very memory
  15103. # consuming and fragmenting process. To avoid this, we pick a random,
  15104. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15105. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15106. 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'
  15107. 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'
  15108. ;;
  15109. gnu* | linux* | k*bsd*-gnu)
  15110. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15111. tmp_addflag=
  15112. case $cc_basename,$host_cpu in
  15113. pgcc*) # Portland Group C compiler
  15114. 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'
  15115. tmp_addflag=' $pic_flag'
  15116. ;;
  15117. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15118. 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'
  15119. tmp_addflag=' $pic_flag -Mnomain' ;;
  15120. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15121. tmp_addflag=' -i_dynamic' ;;
  15122. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15123. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15124. ifc* | ifort*) # Intel Fortran compiler
  15125. tmp_addflag=' -nofor_main' ;;
  15126. esac
  15127. case `$CC -V 2>&1 | sed 5q` in
  15128. *Sun\ C*) # Sun C 5.9
  15129. 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'
  15130. tmp_sharedflag='-G' ;;
  15131. *Sun\ F*) # Sun Fortran 8.3
  15132. tmp_sharedflag='-G' ;;
  15133. *)
  15134. tmp_sharedflag='-shared' ;;
  15135. esac
  15136. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15137. if test $supports_anon_versioning = yes; then
  15138. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15139. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15140. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15141. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15142. fi
  15143. link_all_deplibs_GCJ=no
  15144. else
  15145. ld_shlibs_GCJ=no
  15146. fi
  15147. ;;
  15148. netbsd* | netbsdelf*-gnu)
  15149. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15150. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15151. wlarc=
  15152. else
  15153. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15154. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15155. fi
  15156. ;;
  15157. solaris*)
  15158. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15159. ld_shlibs_GCJ=no
  15160. cat <<EOF 1>&2
  15161. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15162. *** create shared libraries on Solaris systems. Therefore, libtool
  15163. *** is disabling shared libraries support. We urge you to upgrade GNU
  15164. *** binutils to release 2.9.1 or newer. Another option is to modify
  15165. *** your PATH or compiler configuration so that the native linker is
  15166. *** used, and then restart.
  15167. EOF
  15168. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15169. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15170. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15171. else
  15172. ld_shlibs_GCJ=no
  15173. fi
  15174. ;;
  15175. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15176. case `$LD -v 2>&1` in
  15177. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15178. ld_shlibs_GCJ=no
  15179. cat <<_LT_EOF 1>&2
  15180. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15181. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15182. *** is disabling shared libraries support. We urge you to upgrade GNU
  15183. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15184. *** your PATH or compiler configuration so that the native linker is
  15185. *** used, and then restart.
  15186. _LT_EOF
  15187. ;;
  15188. *)
  15189. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15190. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15191. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15192. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15193. else
  15194. ld_shlibs_GCJ=no
  15195. fi
  15196. ;;
  15197. esac
  15198. ;;
  15199. sunos4*)
  15200. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15201. wlarc=
  15202. hardcode_direct_GCJ=yes
  15203. hardcode_shlibpath_var_GCJ=no
  15204. ;;
  15205. *)
  15206. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15207. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15208. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15209. else
  15210. ld_shlibs_GCJ=no
  15211. fi
  15212. ;;
  15213. esac
  15214. if test "$ld_shlibs_GCJ" = no; then
  15215. runpath_var=
  15216. hardcode_libdir_flag_spec_GCJ=
  15217. export_dynamic_flag_spec_GCJ=
  15218. whole_archive_flag_spec_GCJ=
  15219. fi
  15220. else
  15221. # PORTME fill in a description of your system's linker (not GNU ld)
  15222. case $host_os in
  15223. aix3*)
  15224. allow_undefined_flag_GCJ=unsupported
  15225. always_export_symbols_GCJ=yes
  15226. 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'
  15227. # Note: this linker hardcodes the directories in LIBPATH if there
  15228. # are no directories specified by -L.
  15229. hardcode_minus_L_GCJ=yes
  15230. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15231. # Neither direct hardcoding nor static linking is supported with a
  15232. # broken collect2.
  15233. hardcode_direct_GCJ=unsupported
  15234. fi
  15235. ;;
  15236. aix[4-9]*)
  15237. if test "$host_cpu" = ia64; then
  15238. # On IA64, the linker does run time linking by default, so we don't
  15239. # have to do anything special.
  15240. aix_use_runtimelinking=no
  15241. exp_sym_flag='-Bexport'
  15242. no_entry_flag=""
  15243. else
  15244. # If we're using GNU nm, then we don't want the "-C" option.
  15245. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15246. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15247. 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'
  15248. else
  15249. 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'
  15250. fi
  15251. aix_use_runtimelinking=no
  15252. # Test if we are trying to use run time linking or normal
  15253. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15254. # need to do runtime linking.
  15255. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  15256. for ld_flag in $LDFLAGS; do
  15257. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15258. aix_use_runtimelinking=yes
  15259. break
  15260. fi
  15261. done
  15262. ;;
  15263. esac
  15264. exp_sym_flag='-bexport'
  15265. no_entry_flag='-bnoentry'
  15266. fi
  15267. # When large executables or shared objects are built, AIX ld can
  15268. # have problems creating the table of contents. If linking a library
  15269. # or program results in "error TOC overflow" add -mminimal-toc to
  15270. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15271. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15272. archive_cmds_GCJ=''
  15273. hardcode_direct_GCJ=yes
  15274. hardcode_libdir_separator_GCJ=':'
  15275. link_all_deplibs_GCJ=yes
  15276. if test "$GCC" = yes; then
  15277. case $host_os in aix4.[012]|aix4.[012].*)
  15278. # We only want to do this on AIX 4.2 and lower, the check
  15279. # below for broken collect2 doesn't work under 4.3+
  15280. collect2name=`${CC} -print-prog-name=collect2`
  15281. if test -f "$collect2name" && \
  15282. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15283. then
  15284. # We have reworked collect2
  15285. :
  15286. else
  15287. # We have old collect2
  15288. hardcode_direct_GCJ=unsupported
  15289. # It fails to find uninstalled libraries when the uninstalled
  15290. # path is not listed in the libpath. Setting hardcode_minus_L
  15291. # to unsupported forces relinking
  15292. hardcode_minus_L_GCJ=yes
  15293. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15294. hardcode_libdir_separator_GCJ=
  15295. fi
  15296. ;;
  15297. esac
  15298. shared_flag='-shared'
  15299. if test "$aix_use_runtimelinking" = yes; then
  15300. shared_flag="$shared_flag "'${wl}-G'
  15301. fi
  15302. else
  15303. # not using gcc
  15304. if test "$host_cpu" = ia64; then
  15305. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15306. # chokes on -Wl,-G. The following line is correct:
  15307. shared_flag='-G'
  15308. else
  15309. if test "$aix_use_runtimelinking" = yes; then
  15310. shared_flag='${wl}-G'
  15311. else
  15312. shared_flag='${wl}-bM:SRE'
  15313. fi
  15314. fi
  15315. fi
  15316. # It seems that -bexpall does not export symbols beginning with
  15317. # underscore (_), so it is better to generate a list of symbols to export.
  15318. always_export_symbols_GCJ=yes
  15319. if test "$aix_use_runtimelinking" = yes; then
  15320. # Warning - without using the other runtime loading flags (-brtl),
  15321. # -berok will link without error, but may produce a broken library.
  15322. allow_undefined_flag_GCJ='-berok'
  15323. # Determine the default libpath from the value encoded in an empty executable.
  15324. cat >conftest.$ac_ext <<_ACEOF
  15325. /* confdefs.h. */
  15326. _ACEOF
  15327. cat confdefs.h >>conftest.$ac_ext
  15328. cat >>conftest.$ac_ext <<_ACEOF
  15329. /* end confdefs.h. */
  15330. int
  15331. main ()
  15332. {
  15333. ;
  15334. return 0;
  15335. }
  15336. _ACEOF
  15337. rm -f conftest.$ac_objext conftest$ac_exeext
  15338. if { (ac_try="$ac_link"
  15339. case "(($ac_try" in
  15340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15341. *) ac_try_echo=$ac_try;;
  15342. esac
  15343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15344. (eval "$ac_link") 2>conftest.er1
  15345. ac_status=$?
  15346. grep -v '^ *+' conftest.er1 >conftest.err
  15347. rm -f conftest.er1
  15348. cat conftest.err >&5
  15349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15350. (exit $ac_status); } && {
  15351. test -z "$ac_c_werror_flag" ||
  15352. test ! -s conftest.err
  15353. } && test -s conftest$ac_exeext &&
  15354. $as_test_x conftest$ac_exeext; then
  15355. lt_aix_libpath_sed='
  15356. /Import File Strings/,/^$/ {
  15357. /^0/ {
  15358. s/^0 *\(.*\)$/\1/
  15359. p
  15360. }
  15361. }'
  15362. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15363. # Check for a 64-bit object if we didn't find anything.
  15364. if test -z "$aix_libpath"; then
  15365. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15366. fi
  15367. else
  15368. echo "$as_me: failed program was:" >&5
  15369. sed 's/^/| /' conftest.$ac_ext >&5
  15370. fi
  15371. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15372. conftest$ac_exeext conftest.$ac_ext
  15373. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15374. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15375. 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"
  15376. else
  15377. if test "$host_cpu" = ia64; then
  15378. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15379. allow_undefined_flag_GCJ="-z nodefs"
  15380. 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"
  15381. else
  15382. # Determine the default libpath from the value encoded in an empty executable.
  15383. cat >conftest.$ac_ext <<_ACEOF
  15384. /* confdefs.h. */
  15385. _ACEOF
  15386. cat confdefs.h >>conftest.$ac_ext
  15387. cat >>conftest.$ac_ext <<_ACEOF
  15388. /* end confdefs.h. */
  15389. int
  15390. main ()
  15391. {
  15392. ;
  15393. return 0;
  15394. }
  15395. _ACEOF
  15396. rm -f conftest.$ac_objext conftest$ac_exeext
  15397. if { (ac_try="$ac_link"
  15398. case "(($ac_try" in
  15399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15400. *) ac_try_echo=$ac_try;;
  15401. esac
  15402. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15403. (eval "$ac_link") 2>conftest.er1
  15404. ac_status=$?
  15405. grep -v '^ *+' conftest.er1 >conftest.err
  15406. rm -f conftest.er1
  15407. cat conftest.err >&5
  15408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15409. (exit $ac_status); } && {
  15410. test -z "$ac_c_werror_flag" ||
  15411. test ! -s conftest.err
  15412. } && test -s conftest$ac_exeext &&
  15413. $as_test_x conftest$ac_exeext; then
  15414. lt_aix_libpath_sed='
  15415. /Import File Strings/,/^$/ {
  15416. /^0/ {
  15417. s/^0 *\(.*\)$/\1/
  15418. p
  15419. }
  15420. }'
  15421. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15422. # Check for a 64-bit object if we didn't find anything.
  15423. if test -z "$aix_libpath"; then
  15424. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15425. fi
  15426. else
  15427. echo "$as_me: failed program was:" >&5
  15428. sed 's/^/| /' conftest.$ac_ext >&5
  15429. fi
  15430. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15431. conftest$ac_exeext conftest.$ac_ext
  15432. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15433. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15434. # Warning - without using the other run time loading flags,
  15435. # -berok will link without error, but may produce a broken library.
  15436. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15437. allow_undefined_flag_GCJ=' ${wl}-berok'
  15438. # Exported symbols can be pulled into shared objects from archives
  15439. whole_archive_flag_spec_GCJ='$convenience'
  15440. archive_cmds_need_lc_GCJ=yes
  15441. # This is similar to how AIX traditionally builds its shared libraries.
  15442. 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'
  15443. fi
  15444. fi
  15445. ;;
  15446. amigaos*)
  15447. 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)'
  15448. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15449. hardcode_minus_L_GCJ=yes
  15450. # see comment about different semantics on the GNU ld section
  15451. ld_shlibs_GCJ=no
  15452. ;;
  15453. bsdi[45]*)
  15454. export_dynamic_flag_spec_GCJ=-rdynamic
  15455. ;;
  15456. cygwin* | mingw* | pw32*)
  15457. # When not using gcc, we currently assume that we are using
  15458. # Microsoft Visual C++.
  15459. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15460. # no search path for DLLs.
  15461. hardcode_libdir_flag_spec_GCJ=' '
  15462. allow_undefined_flag_GCJ=unsupported
  15463. # Tell ltmain to make .lib files, not .a files.
  15464. libext=lib
  15465. # Tell ltmain to make .dll files, not .so files.
  15466. shrext_cmds=".dll"
  15467. # FIXME: Setting linknames here is a bad hack.
  15468. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15469. # The linker will automatically build a .lib file if we build a DLL.
  15470. old_archive_From_new_cmds_GCJ='true'
  15471. # FIXME: Should let the user specify the lib program.
  15472. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  15473. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15474. enable_shared_with_static_runtimes_GCJ=yes
  15475. ;;
  15476. darwin* | rhapsody*)
  15477. case $host_os in
  15478. rhapsody* | darwin1.[012])
  15479. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15480. ;;
  15481. *) # Darwin 1.3 on
  15482. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15483. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15484. else
  15485. case ${MACOSX_DEPLOYMENT_TARGET} in
  15486. 10.[012])
  15487. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15488. ;;
  15489. 10.*)
  15490. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15491. ;;
  15492. esac
  15493. fi
  15494. ;;
  15495. esac
  15496. archive_cmds_need_lc_GCJ=no
  15497. hardcode_direct_GCJ=no
  15498. hardcode_automatic_GCJ=yes
  15499. hardcode_shlibpath_var_GCJ=unsupported
  15500. whole_archive_flag_spec_GCJ=''
  15501. link_all_deplibs_GCJ=yes
  15502. if test "$GCC" = yes ; then
  15503. output_verbose_link_cmd='echo'
  15504. archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  15505. module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  15506. archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  15507. module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  15508. else
  15509. case $cc_basename in
  15510. xlc*)
  15511. output_verbose_link_cmd='echo'
  15512. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  15513. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15514. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15515. 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}'
  15516. 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}'
  15517. ;;
  15518. *)
  15519. ld_shlibs_GCJ=no
  15520. ;;
  15521. esac
  15522. fi
  15523. ;;
  15524. dgux*)
  15525. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15526. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15527. hardcode_shlibpath_var_GCJ=no
  15528. ;;
  15529. freebsd1*)
  15530. ld_shlibs_GCJ=no
  15531. ;;
  15532. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15533. # support. Future versions do this automatically, but an explicit c++rt0.o
  15534. # does not break anything, and helps significantly (at the cost of a little
  15535. # extra space).
  15536. freebsd2.2*)
  15537. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15538. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15539. hardcode_direct_GCJ=yes
  15540. hardcode_shlibpath_var_GCJ=no
  15541. ;;
  15542. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15543. freebsd2*)
  15544. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15545. hardcode_direct_GCJ=yes
  15546. hardcode_minus_L_GCJ=yes
  15547. hardcode_shlibpath_var_GCJ=no
  15548. ;;
  15549. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15550. freebsd* | dragonfly*)
  15551. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15552. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15553. hardcode_direct_GCJ=yes
  15554. hardcode_shlibpath_var_GCJ=no
  15555. ;;
  15556. hpux9*)
  15557. if test "$GCC" = yes; then
  15558. 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'
  15559. else
  15560. 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'
  15561. fi
  15562. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15563. hardcode_libdir_separator_GCJ=:
  15564. hardcode_direct_GCJ=yes
  15565. # hardcode_minus_L: Not really in the search PATH,
  15566. # but as the default location of the library.
  15567. hardcode_minus_L_GCJ=yes
  15568. export_dynamic_flag_spec_GCJ='${wl}-E'
  15569. ;;
  15570. hpux10*)
  15571. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15572. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15573. else
  15574. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15575. fi
  15576. if test "$with_gnu_ld" = no; then
  15577. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15578. hardcode_libdir_separator_GCJ=:
  15579. hardcode_direct_GCJ=yes
  15580. export_dynamic_flag_spec_GCJ='${wl}-E'
  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. fi
  15585. ;;
  15586. hpux11*)
  15587. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15588. case $host_cpu in
  15589. hppa*64*)
  15590. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15591. ;;
  15592. ia64*)
  15593. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15594. ;;
  15595. *)
  15596. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15597. ;;
  15598. esac
  15599. else
  15600. case $host_cpu in
  15601. hppa*64*)
  15602. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15603. ;;
  15604. ia64*)
  15605. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15606. ;;
  15607. *)
  15608. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15609. ;;
  15610. esac
  15611. fi
  15612. if test "$with_gnu_ld" = no; then
  15613. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15614. hardcode_libdir_separator_GCJ=:
  15615. case $host_cpu in
  15616. hppa*64*|ia64*)
  15617. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15618. hardcode_direct_GCJ=no
  15619. hardcode_shlibpath_var_GCJ=no
  15620. ;;
  15621. *)
  15622. hardcode_direct_GCJ=yes
  15623. export_dynamic_flag_spec_GCJ='${wl}-E'
  15624. # hardcode_minus_L: Not really in the search PATH,
  15625. # but as the default location of the library.
  15626. hardcode_minus_L_GCJ=yes
  15627. ;;
  15628. esac
  15629. fi
  15630. ;;
  15631. irix5* | irix6* | nonstopux*)
  15632. if test "$GCC" = yes; then
  15633. 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'
  15634. else
  15635. 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'
  15636. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15637. fi
  15638. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15639. hardcode_libdir_separator_GCJ=:
  15640. link_all_deplibs_GCJ=yes
  15641. ;;
  15642. netbsd* | netbsdelf*-gnu)
  15643. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15644. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15645. else
  15646. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15647. fi
  15648. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15649. hardcode_direct_GCJ=yes
  15650. hardcode_shlibpath_var_GCJ=no
  15651. ;;
  15652. newsos6)
  15653. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15654. hardcode_direct_GCJ=yes
  15655. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15656. hardcode_libdir_separator_GCJ=:
  15657. hardcode_shlibpath_var_GCJ=no
  15658. ;;
  15659. openbsd*)
  15660. if test -f /usr/libexec/ld.so; then
  15661. hardcode_direct_GCJ=yes
  15662. hardcode_shlibpath_var_GCJ=no
  15663. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15664. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15665. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15666. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15667. export_dynamic_flag_spec_GCJ='${wl}-E'
  15668. else
  15669. case $host_os in
  15670. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15671. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15672. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15673. ;;
  15674. *)
  15675. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15676. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15677. ;;
  15678. esac
  15679. fi
  15680. else
  15681. ld_shlibs_GCJ=no
  15682. fi
  15683. ;;
  15684. os2*)
  15685. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15686. hardcode_minus_L_GCJ=yes
  15687. allow_undefined_flag_GCJ=unsupported
  15688. 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'
  15689. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15690. ;;
  15691. osf3*)
  15692. if test "$GCC" = yes; then
  15693. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15694. 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'
  15695. else
  15696. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15697. 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'
  15698. fi
  15699. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15700. hardcode_libdir_separator_GCJ=:
  15701. ;;
  15702. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15703. if test "$GCC" = yes; then
  15704. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15705. 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'
  15706. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15707. else
  15708. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15709. 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'
  15710. 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~
  15711. $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'
  15712. # Both c and cxx compiler support -rpath directly
  15713. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15714. fi
  15715. hardcode_libdir_separator_GCJ=:
  15716. ;;
  15717. solaris*)
  15718. no_undefined_flag_GCJ=' -z text'
  15719. if test "$GCC" = yes; then
  15720. wlarc='${wl}'
  15721. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15722. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15723. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15724. else
  15725. wlarc=''
  15726. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15727. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15728. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15729. fi
  15730. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15731. hardcode_shlibpath_var_GCJ=no
  15732. case $host_os in
  15733. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15734. *)
  15735. # The compiler driver will combine and reorder linker options,
  15736. # but understands `-z linker_flag'. GCC discards it without `$wl',
  15737. # but is careful enough not to reorder.
  15738. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15739. if test "$GCC" = yes; then
  15740. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  15741. else
  15742. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  15743. fi
  15744. ;;
  15745. esac
  15746. link_all_deplibs_GCJ=yes
  15747. ;;
  15748. sunos4*)
  15749. if test "x$host_vendor" = xsequent; then
  15750. # Use $CC to link under sequent, because it throws in some extra .o
  15751. # files that make .init and .fini sections work.
  15752. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15753. else
  15754. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15755. fi
  15756. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15757. hardcode_direct_GCJ=yes
  15758. hardcode_minus_L_GCJ=yes
  15759. hardcode_shlibpath_var_GCJ=no
  15760. ;;
  15761. sysv4)
  15762. case $host_vendor in
  15763. sni)
  15764. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15765. hardcode_direct_GCJ=yes # is this really true???
  15766. ;;
  15767. siemens)
  15768. ## LD is ld it makes a PLAMLIB
  15769. ## CC just makes a GrossModule.
  15770. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15771. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15772. hardcode_direct_GCJ=no
  15773. ;;
  15774. motorola)
  15775. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15776. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15777. ;;
  15778. esac
  15779. runpath_var='LD_RUN_PATH'
  15780. hardcode_shlibpath_var_GCJ=no
  15781. ;;
  15782. sysv4.3*)
  15783. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15784. hardcode_shlibpath_var_GCJ=no
  15785. export_dynamic_flag_spec_GCJ='-Bexport'
  15786. ;;
  15787. sysv4*MP*)
  15788. if test -d /usr/nec; then
  15789. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15790. hardcode_shlibpath_var_GCJ=no
  15791. runpath_var=LD_RUN_PATH
  15792. hardcode_runpath_var=yes
  15793. ld_shlibs_GCJ=yes
  15794. fi
  15795. ;;
  15796. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  15797. no_undefined_flag_GCJ='${wl}-z,text'
  15798. archive_cmds_need_lc_GCJ=no
  15799. hardcode_shlibpath_var_GCJ=no
  15800. runpath_var='LD_RUN_PATH'
  15801. if test "$GCC" = yes; then
  15802. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15803. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15804. else
  15805. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15806. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15807. fi
  15808. ;;
  15809. sysv5* | sco3.2v5* | sco5v6*)
  15810. # Note: We can NOT use -z defs as we might desire, because we do not
  15811. # link with -lc, and that would cause any symbols used from libc to
  15812. # always be unresolved, which means just about no library would
  15813. # ever link correctly. If we're not using GNU ld we use -z text
  15814. # though, which does catch some bad symbols but isn't as heavy-handed
  15815. # as -z defs.
  15816. no_undefined_flag_GCJ='${wl}-z,text'
  15817. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15818. archive_cmds_need_lc_GCJ=no
  15819. hardcode_shlibpath_var_GCJ=no
  15820. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15821. hardcode_libdir_separator_GCJ=':'
  15822. link_all_deplibs_GCJ=yes
  15823. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15824. runpath_var='LD_RUN_PATH'
  15825. if test "$GCC" = yes; then
  15826. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15827. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15828. else
  15829. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15830. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15831. fi
  15832. ;;
  15833. uts4*)
  15834. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15835. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15836. hardcode_shlibpath_var_GCJ=no
  15837. ;;
  15838. *)
  15839. ld_shlibs_GCJ=no
  15840. ;;
  15841. esac
  15842. fi
  15843. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15844. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  15845. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15846. #
  15847. # Do we need to explicitly link libc?
  15848. #
  15849. case "x$archive_cmds_need_lc_GCJ" in
  15850. x|xyes)
  15851. # Assume -lc should be added
  15852. archive_cmds_need_lc_GCJ=yes
  15853. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15854. case $archive_cmds_GCJ in
  15855. *'~'*)
  15856. # FIXME: we may have to deal with multi-command sequences.
  15857. ;;
  15858. '$CC '*)
  15859. # Test whether the compiler implicitly links with -lc since on some
  15860. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15861. # to ld, don't add -lc before -lgcc.
  15862. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15863. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  15864. $rm conftest*
  15865. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15866. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15867. (eval $ac_compile) 2>&5
  15868. ac_status=$?
  15869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15870. (exit $ac_status); } 2>conftest.err; then
  15871. soname=conftest
  15872. lib=conftest
  15873. libobjs=conftest.$ac_objext
  15874. deplibs=
  15875. wl=$lt_prog_compiler_wl_GCJ
  15876. pic_flag=$lt_prog_compiler_pic_GCJ
  15877. compiler_flags=-v
  15878. linker_flags=-v
  15879. verstring=
  15880. output_objdir=.
  15881. libname=conftest
  15882. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15883. allow_undefined_flag_GCJ=
  15884. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15885. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15886. ac_status=$?
  15887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15888. (exit $ac_status); }
  15889. then
  15890. archive_cmds_need_lc_GCJ=no
  15891. else
  15892. archive_cmds_need_lc_GCJ=yes
  15893. fi
  15894. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15895. else
  15896. cat conftest.err 1>&5
  15897. fi
  15898. $rm conftest*
  15899. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15900. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  15901. ;;
  15902. esac
  15903. fi
  15904. ;;
  15905. esac
  15906. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15907. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  15908. library_names_spec=
  15909. libname_spec='lib$name'
  15910. soname_spec=
  15911. shrext_cmds=".so"
  15912. postinstall_cmds=
  15913. postuninstall_cmds=
  15914. finish_cmds=
  15915. finish_eval=
  15916. shlibpath_var=
  15917. shlibpath_overrides_runpath=unknown
  15918. version_type=none
  15919. dynamic_linker="$host_os ld.so"
  15920. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15921. need_lib_prefix=unknown
  15922. hardcode_into_libs=no
  15923. # when you set need_version to no, make sure it does not cause -set_version
  15924. # flags to be left without arguments
  15925. need_version=unknown
  15926. case $host_os in
  15927. aix3*)
  15928. version_type=linux
  15929. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15930. shlibpath_var=LIBPATH
  15931. # AIX 3 has no versioning support, so we append a major version to the name.
  15932. soname_spec='${libname}${release}${shared_ext}$major'
  15933. ;;
  15934. aix[4-9]*)
  15935. version_type=linux
  15936. need_lib_prefix=no
  15937. need_version=no
  15938. hardcode_into_libs=yes
  15939. if test "$host_cpu" = ia64; then
  15940. # AIX 5 supports IA64
  15941. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15942. shlibpath_var=LD_LIBRARY_PATH
  15943. else
  15944. # With GCC up to 2.95.x, collect2 would create an import file
  15945. # for dependence libraries. The import file would start with
  15946. # the line `#! .'. This would cause the generated library to
  15947. # depend on `.', always an invalid library. This was fixed in
  15948. # development snapshots of GCC prior to 3.0.
  15949. case $host_os in
  15950. aix4 | aix4.[01] | aix4.[01].*)
  15951. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15952. echo ' yes '
  15953. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15954. :
  15955. else
  15956. can_build_shared=no
  15957. fi
  15958. ;;
  15959. esac
  15960. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15961. # soname into executable. Probably we can add versioning support to
  15962. # collect2, so additional links can be useful in future.
  15963. if test "$aix_use_runtimelinking" = yes; then
  15964. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15965. # instead of lib<name>.a to let people know that these are not
  15966. # typical AIX shared libraries.
  15967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15968. else
  15969. # We preserve .a as extension for shared libraries through AIX4.2
  15970. # and later when we are not doing run time linking.
  15971. library_names_spec='${libname}${release}.a $libname.a'
  15972. soname_spec='${libname}${release}${shared_ext}$major'
  15973. fi
  15974. shlibpath_var=LIBPATH
  15975. fi
  15976. ;;
  15977. amigaos*)
  15978. library_names_spec='$libname.ixlibrary $libname.a'
  15979. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15980. 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'
  15981. ;;
  15982. beos*)
  15983. library_names_spec='${libname}${shared_ext}'
  15984. dynamic_linker="$host_os ld.so"
  15985. shlibpath_var=LIBRARY_PATH
  15986. ;;
  15987. bsdi[45]*)
  15988. version_type=linux
  15989. need_version=no
  15990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15991. soname_spec='${libname}${release}${shared_ext}$major'
  15992. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15993. shlibpath_var=LD_LIBRARY_PATH
  15994. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15995. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15996. # the default ld.so.conf also contains /usr/contrib/lib and
  15997. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15998. # libtool to hard-code these into programs
  15999. ;;
  16000. cygwin* | mingw* | pw32*)
  16001. version_type=windows
  16002. shrext_cmds=".dll"
  16003. need_version=no
  16004. need_lib_prefix=no
  16005. case $GCC,$host_os in
  16006. yes,cygwin* | yes,mingw* | yes,pw32*)
  16007. library_names_spec='$libname.dll.a'
  16008. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16009. postinstall_cmds='base_file=`basename \${file}`~
  16010. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16011. dldir=$destdir/`dirname \$dlpath`~
  16012. test -d \$dldir || mkdir -p \$dldir~
  16013. $install_prog $dir/$dlname \$dldir/$dlname~
  16014. chmod a+x \$dldir/$dlname'
  16015. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16016. dlpath=$dir/\$dldll~
  16017. $rm \$dlpath'
  16018. shlibpath_overrides_runpath=yes
  16019. case $host_os in
  16020. cygwin*)
  16021. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16022. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16023. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16024. ;;
  16025. mingw*)
  16026. # MinGW DLLs use traditional 'lib' prefix
  16027. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16028. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16029. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16030. # It is most probably a Windows format PATH printed by
  16031. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16032. # path with ; separators, and with drive letters. We can handle the
  16033. # drive letters (cygwin fileutils understands them), so leave them,
  16034. # especially as we might pass files found there to a mingw objdump,
  16035. # which wouldn't understand a cygwinified path. Ahh.
  16036. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16037. else
  16038. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16039. fi
  16040. ;;
  16041. pw32*)
  16042. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16043. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16044. ;;
  16045. esac
  16046. ;;
  16047. *)
  16048. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16049. ;;
  16050. esac
  16051. dynamic_linker='Win32 ld.exe'
  16052. # FIXME: first we should search . and the directory the executable is in
  16053. shlibpath_var=PATH
  16054. ;;
  16055. darwin* | rhapsody*)
  16056. dynamic_linker="$host_os dyld"
  16057. version_type=darwin
  16058. need_lib_prefix=no
  16059. need_version=no
  16060. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16061. soname_spec='${libname}${release}${major}$shared_ext'
  16062. shlibpath_overrides_runpath=yes
  16063. shlibpath_var=DYLD_LIBRARY_PATH
  16064. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16065. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16066. ;;
  16067. dgux*)
  16068. version_type=linux
  16069. need_lib_prefix=no
  16070. need_version=no
  16071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16072. soname_spec='${libname}${release}${shared_ext}$major'
  16073. shlibpath_var=LD_LIBRARY_PATH
  16074. ;;
  16075. freebsd1*)
  16076. dynamic_linker=no
  16077. ;;
  16078. freebsd* | dragonfly*)
  16079. # DragonFly does not have aout. When/if they implement a new
  16080. # versioning mechanism, adjust this.
  16081. if test -x /usr/bin/objformat; then
  16082. objformat=`/usr/bin/objformat`
  16083. else
  16084. case $host_os in
  16085. freebsd[123]*) objformat=aout ;;
  16086. *) objformat=elf ;;
  16087. esac
  16088. fi
  16089. version_type=freebsd-$objformat
  16090. case $version_type in
  16091. freebsd-elf*)
  16092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16093. need_version=no
  16094. need_lib_prefix=no
  16095. ;;
  16096. freebsd-*)
  16097. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16098. need_version=yes
  16099. ;;
  16100. esac
  16101. shlibpath_var=LD_LIBRARY_PATH
  16102. case $host_os in
  16103. freebsd2*)
  16104. shlibpath_overrides_runpath=yes
  16105. ;;
  16106. freebsd3.[01]* | freebsdelf3.[01]*)
  16107. shlibpath_overrides_runpath=yes
  16108. hardcode_into_libs=yes
  16109. ;;
  16110. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16111. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16112. shlibpath_overrides_runpath=no
  16113. hardcode_into_libs=yes
  16114. ;;
  16115. *) # from 4.6 on, and DragonFly
  16116. shlibpath_overrides_runpath=yes
  16117. hardcode_into_libs=yes
  16118. ;;
  16119. esac
  16120. ;;
  16121. gnu*)
  16122. version_type=linux
  16123. need_lib_prefix=no
  16124. need_version=no
  16125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16126. soname_spec='${libname}${release}${shared_ext}$major'
  16127. shlibpath_var=LD_LIBRARY_PATH
  16128. hardcode_into_libs=yes
  16129. ;;
  16130. hpux9* | hpux10* | hpux11*)
  16131. # Give a soname corresponding to the major version so that dld.sl refuses to
  16132. # link against other versions.
  16133. version_type=sunos
  16134. need_lib_prefix=no
  16135. need_version=no
  16136. case $host_cpu in
  16137. ia64*)
  16138. shrext_cmds='.so'
  16139. hardcode_into_libs=yes
  16140. dynamic_linker="$host_os dld.so"
  16141. shlibpath_var=LD_LIBRARY_PATH
  16142. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16144. soname_spec='${libname}${release}${shared_ext}$major'
  16145. if test "X$HPUX_IA64_MODE" = X32; then
  16146. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16147. else
  16148. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16149. fi
  16150. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16151. ;;
  16152. hppa*64*)
  16153. shrext_cmds='.sl'
  16154. hardcode_into_libs=yes
  16155. dynamic_linker="$host_os dld.sl"
  16156. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16157. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16159. soname_spec='${libname}${release}${shared_ext}$major'
  16160. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16161. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16162. ;;
  16163. *)
  16164. shrext_cmds='.sl'
  16165. dynamic_linker="$host_os dld.sl"
  16166. shlibpath_var=SHLIB_PATH
  16167. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16169. soname_spec='${libname}${release}${shared_ext}$major'
  16170. ;;
  16171. esac
  16172. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16173. postinstall_cmds='chmod 555 $lib'
  16174. ;;
  16175. interix[3-9]*)
  16176. version_type=linux
  16177. need_lib_prefix=no
  16178. need_version=no
  16179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16180. soname_spec='${libname}${release}${shared_ext}$major'
  16181. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16182. shlibpath_var=LD_LIBRARY_PATH
  16183. shlibpath_overrides_runpath=no
  16184. hardcode_into_libs=yes
  16185. ;;
  16186. irix5* | irix6* | nonstopux*)
  16187. case $host_os in
  16188. nonstopux*) version_type=nonstopux ;;
  16189. *)
  16190. if test "$lt_cv_prog_gnu_ld" = yes; then
  16191. version_type=linux
  16192. else
  16193. version_type=irix
  16194. fi ;;
  16195. esac
  16196. need_lib_prefix=no
  16197. need_version=no
  16198. soname_spec='${libname}${release}${shared_ext}$major'
  16199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16200. case $host_os in
  16201. irix5* | nonstopux*)
  16202. libsuff= shlibsuff=
  16203. ;;
  16204. *)
  16205. case $LD in # libtool.m4 will add one of these switches to LD
  16206. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16207. libsuff= shlibsuff= libmagic=32-bit;;
  16208. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16209. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16210. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16211. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16212. *) libsuff= shlibsuff= libmagic=never-match;;
  16213. esac
  16214. ;;
  16215. esac
  16216. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16217. shlibpath_overrides_runpath=no
  16218. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16219. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16220. hardcode_into_libs=yes
  16221. ;;
  16222. # No shared lib support for Linux oldld, aout, or coff.
  16223. linux*oldld* | linux*aout* | linux*coff*)
  16224. dynamic_linker=no
  16225. ;;
  16226. # This must be Linux ELF.
  16227. linux* | k*bsd*-gnu)
  16228. version_type=linux
  16229. need_lib_prefix=no
  16230. need_version=no
  16231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16232. soname_spec='${libname}${release}${shared_ext}$major'
  16233. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16234. shlibpath_var=LD_LIBRARY_PATH
  16235. shlibpath_overrides_runpath=no
  16236. # This implies no fast_install, which is unacceptable.
  16237. # Some rework will be needed to allow for fast_install
  16238. # before this can be enabled.
  16239. hardcode_into_libs=yes
  16240. # Append ld.so.conf contents to the search path
  16241. if test -f /etc/ld.so.conf; then
  16242. 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' ' '`
  16243. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16244. fi
  16245. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16246. # powerpc, because MkLinux only supported shared libraries with the
  16247. # GNU dynamic linker. Since this was broken with cross compilers,
  16248. # most powerpc-linux boxes support dynamic linking these days and
  16249. # people can always --disable-shared, the test was removed, and we
  16250. # assume the GNU/Linux dynamic linker is in use.
  16251. dynamic_linker='GNU/Linux ld.so'
  16252. ;;
  16253. netbsdelf*-gnu)
  16254. version_type=linux
  16255. need_lib_prefix=no
  16256. need_version=no
  16257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16258. soname_spec='${libname}${release}${shared_ext}$major'
  16259. shlibpath_var=LD_LIBRARY_PATH
  16260. shlibpath_overrides_runpath=no
  16261. hardcode_into_libs=yes
  16262. dynamic_linker='NetBSD ld.elf_so'
  16263. ;;
  16264. netbsd*)
  16265. version_type=sunos
  16266. need_lib_prefix=no
  16267. need_version=no
  16268. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16270. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16271. dynamic_linker='NetBSD (a.out) ld.so'
  16272. else
  16273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16274. soname_spec='${libname}${release}${shared_ext}$major'
  16275. dynamic_linker='NetBSD ld.elf_so'
  16276. fi
  16277. shlibpath_var=LD_LIBRARY_PATH
  16278. shlibpath_overrides_runpath=yes
  16279. hardcode_into_libs=yes
  16280. ;;
  16281. newsos6)
  16282. version_type=linux
  16283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16284. shlibpath_var=LD_LIBRARY_PATH
  16285. shlibpath_overrides_runpath=yes
  16286. ;;
  16287. nto-qnx*)
  16288. version_type=linux
  16289. need_lib_prefix=no
  16290. need_version=no
  16291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16292. soname_spec='${libname}${release}${shared_ext}$major'
  16293. shlibpath_var=LD_LIBRARY_PATH
  16294. shlibpath_overrides_runpath=yes
  16295. ;;
  16296. openbsd*)
  16297. version_type=sunos
  16298. sys_lib_dlsearch_path_spec="/usr/lib"
  16299. need_lib_prefix=no
  16300. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16301. case $host_os in
  16302. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16303. *) need_version=no ;;
  16304. esac
  16305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16306. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16307. shlibpath_var=LD_LIBRARY_PATH
  16308. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16309. case $host_os in
  16310. openbsd2.[89] | openbsd2.[89].*)
  16311. shlibpath_overrides_runpath=no
  16312. ;;
  16313. *)
  16314. shlibpath_overrides_runpath=yes
  16315. ;;
  16316. esac
  16317. else
  16318. shlibpath_overrides_runpath=yes
  16319. fi
  16320. ;;
  16321. os2*)
  16322. libname_spec='$name'
  16323. shrext_cmds=".dll"
  16324. need_lib_prefix=no
  16325. library_names_spec='$libname${shared_ext} $libname.a'
  16326. dynamic_linker='OS/2 ld.exe'
  16327. shlibpath_var=LIBPATH
  16328. ;;
  16329. osf3* | osf4* | osf5*)
  16330. version_type=osf
  16331. need_lib_prefix=no
  16332. need_version=no
  16333. soname_spec='${libname}${release}${shared_ext}$major'
  16334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16335. shlibpath_var=LD_LIBRARY_PATH
  16336. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16337. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16338. ;;
  16339. rdos*)
  16340. dynamic_linker=no
  16341. ;;
  16342. solaris*)
  16343. version_type=linux
  16344. need_lib_prefix=no
  16345. need_version=no
  16346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16347. soname_spec='${libname}${release}${shared_ext}$major'
  16348. shlibpath_var=LD_LIBRARY_PATH
  16349. shlibpath_overrides_runpath=yes
  16350. hardcode_into_libs=yes
  16351. # ldd complains unless libraries are executable
  16352. postinstall_cmds='chmod +x $lib'
  16353. ;;
  16354. sunos4*)
  16355. version_type=sunos
  16356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16357. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16358. shlibpath_var=LD_LIBRARY_PATH
  16359. shlibpath_overrides_runpath=yes
  16360. if test "$with_gnu_ld" = yes; then
  16361. need_lib_prefix=no
  16362. fi
  16363. need_version=yes
  16364. ;;
  16365. sysv4 | sysv4.3*)
  16366. version_type=linux
  16367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16368. soname_spec='${libname}${release}${shared_ext}$major'
  16369. shlibpath_var=LD_LIBRARY_PATH
  16370. case $host_vendor in
  16371. sni)
  16372. shlibpath_overrides_runpath=no
  16373. need_lib_prefix=no
  16374. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16375. runpath_var=LD_RUN_PATH
  16376. ;;
  16377. siemens)
  16378. need_lib_prefix=no
  16379. ;;
  16380. motorola)
  16381. need_lib_prefix=no
  16382. need_version=no
  16383. shlibpath_overrides_runpath=no
  16384. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16385. ;;
  16386. esac
  16387. ;;
  16388. sysv4*MP*)
  16389. if test -d /usr/nec ;then
  16390. version_type=linux
  16391. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16392. soname_spec='$libname${shared_ext}.$major'
  16393. shlibpath_var=LD_LIBRARY_PATH
  16394. fi
  16395. ;;
  16396. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16397. version_type=freebsd-elf
  16398. need_lib_prefix=no
  16399. need_version=no
  16400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16401. soname_spec='${libname}${release}${shared_ext}$major'
  16402. shlibpath_var=LD_LIBRARY_PATH
  16403. hardcode_into_libs=yes
  16404. if test "$with_gnu_ld" = yes; then
  16405. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16406. shlibpath_overrides_runpath=no
  16407. else
  16408. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16409. shlibpath_overrides_runpath=yes
  16410. case $host_os in
  16411. sco3.2v5*)
  16412. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16413. ;;
  16414. esac
  16415. fi
  16416. sys_lib_dlsearch_path_spec='/usr/lib'
  16417. ;;
  16418. uts4*)
  16419. version_type=linux
  16420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16421. soname_spec='${libname}${release}${shared_ext}$major'
  16422. shlibpath_var=LD_LIBRARY_PATH
  16423. ;;
  16424. *)
  16425. dynamic_linker=no
  16426. ;;
  16427. esac
  16428. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16429. echo "${ECHO_T}$dynamic_linker" >&6; }
  16430. test "$dynamic_linker" = no && can_build_shared=no
  16431. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  16432. echo $ECHO_N "(cached) $ECHO_C" >&6
  16433. else
  16434. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  16435. fi
  16436. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  16437. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  16438. echo $ECHO_N "(cached) $ECHO_C" >&6
  16439. else
  16440. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  16441. fi
  16442. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  16443. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16444. if test "$GCC" = yes; then
  16445. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16446. fi
  16447. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16448. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16449. hardcode_action_GCJ=
  16450. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16451. test -n "$runpath_var_GCJ" || \
  16452. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16453. # We can hardcode non-existant directories.
  16454. if test "$hardcode_direct_GCJ" != no &&
  16455. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16456. # have to relink, otherwise we might link with an installed library
  16457. # when we should be linking with a yet-to-be-installed one
  16458. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16459. test "$hardcode_minus_L_GCJ" != no; then
  16460. # Linking always hardcodes the temporary library directory.
  16461. hardcode_action_GCJ=relink
  16462. else
  16463. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16464. hardcode_action_GCJ=immediate
  16465. fi
  16466. else
  16467. # We cannot hardcode anything, or else we can only hardcode existing
  16468. # directories.
  16469. hardcode_action_GCJ=unsupported
  16470. fi
  16471. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16472. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16473. if test "$hardcode_action_GCJ" = relink; then
  16474. # Fast installation is not supported
  16475. enable_fast_install=no
  16476. elif test "$shlibpath_overrides_runpath" = yes ||
  16477. test "$enable_shared" = no; then
  16478. # Fast installation is not necessary
  16479. enable_fast_install=needless
  16480. fi
  16481. # The else clause should only fire when bootstrapping the
  16482. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16483. # with your package, and you will get complaints that there are
  16484. # no rules to generate ltmain.sh.
  16485. if test -f "$ltmain"; then
  16486. # See if we are running on zsh, and set the options which allow our commands through
  16487. # without removal of \ escapes.
  16488. if test -n "${ZSH_VERSION+set}" ; then
  16489. setopt NO_GLOB_SUBST
  16490. fi
  16491. # Now quote all the things that may contain metacharacters while being
  16492. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16493. # variables and quote the copies for generation of the libtool script.
  16494. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16495. SED SHELL STRIP \
  16496. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16497. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16498. deplibs_check_method reload_flag reload_cmds need_locks \
  16499. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16500. lt_cv_sys_global_symbol_to_c_name_address \
  16501. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16502. old_postinstall_cmds old_postuninstall_cmds \
  16503. compiler_GCJ \
  16504. CC_GCJ \
  16505. LD_GCJ \
  16506. lt_prog_compiler_wl_GCJ \
  16507. lt_prog_compiler_pic_GCJ \
  16508. lt_prog_compiler_static_GCJ \
  16509. lt_prog_compiler_no_builtin_flag_GCJ \
  16510. export_dynamic_flag_spec_GCJ \
  16511. thread_safe_flag_spec_GCJ \
  16512. whole_archive_flag_spec_GCJ \
  16513. enable_shared_with_static_runtimes_GCJ \
  16514. old_archive_cmds_GCJ \
  16515. old_archive_from_new_cmds_GCJ \
  16516. predep_objects_GCJ \
  16517. postdep_objects_GCJ \
  16518. predeps_GCJ \
  16519. postdeps_GCJ \
  16520. compiler_lib_search_path_GCJ \
  16521. compiler_lib_search_dirs_GCJ \
  16522. archive_cmds_GCJ \
  16523. archive_expsym_cmds_GCJ \
  16524. postinstall_cmds_GCJ \
  16525. postuninstall_cmds_GCJ \
  16526. old_archive_from_expsyms_cmds_GCJ \
  16527. allow_undefined_flag_GCJ \
  16528. no_undefined_flag_GCJ \
  16529. export_symbols_cmds_GCJ \
  16530. hardcode_libdir_flag_spec_GCJ \
  16531. hardcode_libdir_flag_spec_ld_GCJ \
  16532. hardcode_libdir_separator_GCJ \
  16533. hardcode_automatic_GCJ \
  16534. module_cmds_GCJ \
  16535. module_expsym_cmds_GCJ \
  16536. lt_cv_prog_compiler_c_o_GCJ \
  16537. fix_srcfile_path_GCJ \
  16538. exclude_expsyms_GCJ \
  16539. include_expsyms_GCJ; do
  16540. case $var in
  16541. old_archive_cmds_GCJ | \
  16542. old_archive_from_new_cmds_GCJ | \
  16543. archive_cmds_GCJ | \
  16544. archive_expsym_cmds_GCJ | \
  16545. module_cmds_GCJ | \
  16546. module_expsym_cmds_GCJ | \
  16547. old_archive_from_expsyms_cmds_GCJ | \
  16548. export_symbols_cmds_GCJ | \
  16549. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16550. postinstall_cmds | postuninstall_cmds | \
  16551. old_postinstall_cmds | old_postuninstall_cmds | \
  16552. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16553. # Double-quote double-evaled strings.
  16554. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16555. ;;
  16556. *)
  16557. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16558. ;;
  16559. esac
  16560. done
  16561. case $lt_echo in
  16562. *'\$0 --fallback-echo"')
  16563. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16564. ;;
  16565. esac
  16566. cfgfile="$ofile"
  16567. cat <<__EOF__ >> "$cfgfile"
  16568. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16569. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16570. # Shell to use when invoking shell scripts.
  16571. SHELL=$lt_SHELL
  16572. # Whether or not to build shared libraries.
  16573. build_libtool_libs=$enable_shared
  16574. # Whether or not to build static libraries.
  16575. build_old_libs=$enable_static
  16576. # Whether or not to add -lc for building shared libraries.
  16577. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16578. # Whether or not to disallow shared libs when runtime libs are static
  16579. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16580. # Whether or not to optimize for fast installation.
  16581. fast_install=$enable_fast_install
  16582. # The host system.
  16583. host_alias=$host_alias
  16584. host=$host
  16585. host_os=$host_os
  16586. # The build system.
  16587. build_alias=$build_alias
  16588. build=$build
  16589. build_os=$build_os
  16590. # An echo program that does not interpret backslashes.
  16591. echo=$lt_echo
  16592. # The archiver.
  16593. AR=$lt_AR
  16594. AR_FLAGS=$lt_AR_FLAGS
  16595. # A C compiler.
  16596. LTCC=$lt_LTCC
  16597. # LTCC compiler flags.
  16598. LTCFLAGS=$lt_LTCFLAGS
  16599. # A language-specific compiler.
  16600. CC=$lt_compiler_GCJ
  16601. # Is the compiler the GNU C compiler?
  16602. with_gcc=$GCC_GCJ
  16603. # An ERE matcher.
  16604. EGREP=$lt_EGREP
  16605. # The linker used to build libraries.
  16606. LD=$lt_LD_GCJ
  16607. # Whether we need hard or soft links.
  16608. LN_S=$lt_LN_S
  16609. # A BSD-compatible nm program.
  16610. NM=$lt_NM
  16611. # A symbol stripping program
  16612. STRIP=$lt_STRIP
  16613. # Used to examine libraries when file_magic_cmd begins "file"
  16614. MAGIC_CMD=$MAGIC_CMD
  16615. # Used on cygwin: DLL creation program.
  16616. DLLTOOL="$DLLTOOL"
  16617. # Used on cygwin: object dumper.
  16618. OBJDUMP="$OBJDUMP"
  16619. # Used on cygwin: assembler.
  16620. AS="$AS"
  16621. # The name of the directory that contains temporary libtool files.
  16622. objdir=$objdir
  16623. # How to create reloadable object files.
  16624. reload_flag=$lt_reload_flag
  16625. reload_cmds=$lt_reload_cmds
  16626. # How to pass a linker flag through the compiler.
  16627. wl=$lt_lt_prog_compiler_wl_GCJ
  16628. # Object file suffix (normally "o").
  16629. objext="$ac_objext"
  16630. # Old archive suffix (normally "a").
  16631. libext="$libext"
  16632. # Shared library suffix (normally ".so").
  16633. shrext_cmds='$shrext_cmds'
  16634. # Executable file suffix (normally "").
  16635. exeext="$exeext"
  16636. # Additional compiler flags for building library objects.
  16637. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16638. pic_mode=$pic_mode
  16639. # What is the maximum length of a command?
  16640. max_cmd_len=$lt_cv_sys_max_cmd_len
  16641. # Does compiler simultaneously support -c and -o options?
  16642. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16643. # Must we lock files when doing compilation?
  16644. need_locks=$lt_need_locks
  16645. # Do we need the lib prefix for modules?
  16646. need_lib_prefix=$need_lib_prefix
  16647. # Do we need a version for libraries?
  16648. need_version=$need_version
  16649. # Whether dlopen is supported.
  16650. dlopen_support=$enable_dlopen
  16651. # Whether dlopen of programs is supported.
  16652. dlopen_self=$enable_dlopen_self
  16653. # Whether dlopen of statically linked programs is supported.
  16654. dlopen_self_static=$enable_dlopen_self_static
  16655. # Compiler flag to prevent dynamic linking.
  16656. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16657. # Compiler flag to turn off builtin functions.
  16658. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16659. # Compiler flag to allow reflexive dlopens.
  16660. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16661. # Compiler flag to generate shared objects directly from archives.
  16662. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16663. # Compiler flag to generate thread-safe objects.
  16664. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16665. # Library versioning type.
  16666. version_type=$version_type
  16667. # Format of library name prefix.
  16668. libname_spec=$lt_libname_spec
  16669. # List of archive names. First name is the real one, the rest are links.
  16670. # The last name is the one that the linker finds with -lNAME.
  16671. library_names_spec=$lt_library_names_spec
  16672. # The coded name of the library, if different from the real name.
  16673. soname_spec=$lt_soname_spec
  16674. # Commands used to build and install an old-style archive.
  16675. RANLIB=$lt_RANLIB
  16676. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16677. old_postinstall_cmds=$lt_old_postinstall_cmds
  16678. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16679. # Create an old-style archive from a shared archive.
  16680. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16681. # Create a temporary old-style archive to link instead of a shared archive.
  16682. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16683. # Commands used to build and install a shared archive.
  16684. archive_cmds=$lt_archive_cmds_GCJ
  16685. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16686. postinstall_cmds=$lt_postinstall_cmds
  16687. postuninstall_cmds=$lt_postuninstall_cmds
  16688. # Commands used to build a loadable module (assumed same as above if empty)
  16689. module_cmds=$lt_module_cmds_GCJ
  16690. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16691. # Commands to strip libraries.
  16692. old_striplib=$lt_old_striplib
  16693. striplib=$lt_striplib
  16694. # Dependencies to place before the objects being linked to create a
  16695. # shared library.
  16696. predep_objects=$lt_predep_objects_GCJ
  16697. # Dependencies to place after the objects being linked to create a
  16698. # shared library.
  16699. postdep_objects=$lt_postdep_objects_GCJ
  16700. # Dependencies to place before the objects being linked to create a
  16701. # shared library.
  16702. predeps=$lt_predeps_GCJ
  16703. # Dependencies to place after the objects being linked to create a
  16704. # shared library.
  16705. postdeps=$lt_postdeps_GCJ
  16706. # The directories searched by this compiler when creating a shared
  16707. # library
  16708. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
  16709. # The library search path used internally by the compiler when linking
  16710. # a shared library.
  16711. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16712. # Method to check whether dependent libraries are shared objects.
  16713. deplibs_check_method=$lt_deplibs_check_method
  16714. # Command to use when deplibs_check_method == file_magic.
  16715. file_magic_cmd=$lt_file_magic_cmd
  16716. # Flag that allows shared libraries with undefined symbols to be built.
  16717. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16718. # Flag that forces no undefined symbols.
  16719. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16720. # Commands used to finish a libtool library installation in a directory.
  16721. finish_cmds=$lt_finish_cmds
  16722. # Same as above, but a single script fragment to be evaled but not shown.
  16723. finish_eval=$lt_finish_eval
  16724. # Take the output of nm and produce a listing of raw symbols and C names.
  16725. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16726. # Transform the output of nm in a proper C declaration
  16727. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16728. # Transform the output of nm in a C name address pair
  16729. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16730. # This is the shared library runtime path variable.
  16731. runpath_var=$runpath_var
  16732. # This is the shared library path variable.
  16733. shlibpath_var=$shlibpath_var
  16734. # Is shlibpath searched before the hard-coded library search path?
  16735. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16736. # How to hardcode a shared library path into an executable.
  16737. hardcode_action=$hardcode_action_GCJ
  16738. # Whether we should hardcode library paths into libraries.
  16739. hardcode_into_libs=$hardcode_into_libs
  16740. # Flag to hardcode \$libdir into a binary during linking.
  16741. # This must work even if \$libdir does not exist.
  16742. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16743. # If ld is used when linking, flag to hardcode \$libdir into
  16744. # a binary during linking. This must work even if \$libdir does
  16745. # not exist.
  16746. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16747. # Whether we need a single -rpath flag with a separated argument.
  16748. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16749. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16750. # resulting binary.
  16751. hardcode_direct=$hardcode_direct_GCJ
  16752. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16753. # resulting binary.
  16754. hardcode_minus_L=$hardcode_minus_L_GCJ
  16755. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16756. # the resulting binary.
  16757. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16758. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16759. # and all subsequent libraries and executables linked against it.
  16760. hardcode_automatic=$hardcode_automatic_GCJ
  16761. # Variables whose values should be saved in libtool wrapper scripts and
  16762. # restored at relink time.
  16763. variables_saved_for_relink="$variables_saved_for_relink"
  16764. # Whether libtool must link a program against all its dependency libraries.
  16765. link_all_deplibs=$link_all_deplibs_GCJ
  16766. # Compile-time system search path for libraries
  16767. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16768. # Run-time system search path for libraries
  16769. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16770. # Fix the shell variable \$srcfile for the compiler.
  16771. fix_srcfile_path=$lt_fix_srcfile_path
  16772. # Set to yes if exported symbols are required.
  16773. always_export_symbols=$always_export_symbols_GCJ
  16774. # The commands to list exported symbols.
  16775. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16776. # The commands to extract the exported symbol list from a shared archive.
  16777. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16778. # Symbols that should not be listed in the preloaded symbols.
  16779. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16780. # Symbols that must always be exported.
  16781. include_expsyms=$lt_include_expsyms_GCJ
  16782. # ### END LIBTOOL TAG CONFIG: $tagname
  16783. __EOF__
  16784. else
  16785. # If there is no Makefile yet, we rely on a make rule to execute
  16786. # `config.status --recheck' to rerun these tests and create the
  16787. # libtool script then.
  16788. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16789. if test -f "$ltmain_in"; then
  16790. test -f Makefile && make "$ltmain"
  16791. fi
  16792. fi
  16793. ac_ext=c
  16794. ac_cpp='$CPP $CPPFLAGS'
  16795. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16796. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16797. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16798. CC="$lt_save_CC"
  16799. else
  16800. tagname=""
  16801. fi
  16802. ;;
  16803. RC)
  16804. # Source file extension for RC test sources.
  16805. ac_ext=rc
  16806. # Object file extension for compiled RC test sources.
  16807. objext=o
  16808. objext_RC=$objext
  16809. # Code to be used in simple compile tests
  16810. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  16811. # Code to be used in simple link tests
  16812. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16813. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16814. # If no C compiler was specified, use CC.
  16815. LTCC=${LTCC-"$CC"}
  16816. # If no C compiler flags were specified, use CFLAGS.
  16817. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16818. # Allow CC to be a program name with arguments.
  16819. compiler=$CC
  16820. # save warnings/boilerplate of simple test code
  16821. ac_outfile=conftest.$ac_objext
  16822. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  16823. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16824. _lt_compiler_boilerplate=`cat conftest.err`
  16825. $rm conftest*
  16826. ac_outfile=conftest.$ac_objext
  16827. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  16828. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16829. _lt_linker_boilerplate=`cat conftest.err`
  16830. $rm -r conftest*
  16831. # Allow CC to be a program name with arguments.
  16832. lt_save_CC="$CC"
  16833. CC=${RC-"windres"}
  16834. compiler=$CC
  16835. compiler_RC=$CC
  16836. for cc_temp in $compiler""; do
  16837. case $cc_temp in
  16838. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16839. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16840. \-*) ;;
  16841. *) break;;
  16842. esac
  16843. done
  16844. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16845. lt_cv_prog_compiler_c_o_RC=yes
  16846. # The else clause should only fire when bootstrapping the
  16847. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16848. # with your package, and you will get complaints that there are
  16849. # no rules to generate ltmain.sh.
  16850. if test -f "$ltmain"; then
  16851. # See if we are running on zsh, and set the options which allow our commands through
  16852. # without removal of \ escapes.
  16853. if test -n "${ZSH_VERSION+set}" ; then
  16854. setopt NO_GLOB_SUBST
  16855. fi
  16856. # Now quote all the things that may contain metacharacters while being
  16857. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16858. # variables and quote the copies for generation of the libtool script.
  16859. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16860. SED SHELL STRIP \
  16861. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16862. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16863. deplibs_check_method reload_flag reload_cmds need_locks \
  16864. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16865. lt_cv_sys_global_symbol_to_c_name_address \
  16866. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16867. old_postinstall_cmds old_postuninstall_cmds \
  16868. compiler_RC \
  16869. CC_RC \
  16870. LD_RC \
  16871. lt_prog_compiler_wl_RC \
  16872. lt_prog_compiler_pic_RC \
  16873. lt_prog_compiler_static_RC \
  16874. lt_prog_compiler_no_builtin_flag_RC \
  16875. export_dynamic_flag_spec_RC \
  16876. thread_safe_flag_spec_RC \
  16877. whole_archive_flag_spec_RC \
  16878. enable_shared_with_static_runtimes_RC \
  16879. old_archive_cmds_RC \
  16880. old_archive_from_new_cmds_RC \
  16881. predep_objects_RC \
  16882. postdep_objects_RC \
  16883. predeps_RC \
  16884. postdeps_RC \
  16885. compiler_lib_search_path_RC \
  16886. compiler_lib_search_dirs_RC \
  16887. archive_cmds_RC \
  16888. archive_expsym_cmds_RC \
  16889. postinstall_cmds_RC \
  16890. postuninstall_cmds_RC \
  16891. old_archive_from_expsyms_cmds_RC \
  16892. allow_undefined_flag_RC \
  16893. no_undefined_flag_RC \
  16894. export_symbols_cmds_RC \
  16895. hardcode_libdir_flag_spec_RC \
  16896. hardcode_libdir_flag_spec_ld_RC \
  16897. hardcode_libdir_separator_RC \
  16898. hardcode_automatic_RC \
  16899. module_cmds_RC \
  16900. module_expsym_cmds_RC \
  16901. lt_cv_prog_compiler_c_o_RC \
  16902. fix_srcfile_path_RC \
  16903. exclude_expsyms_RC \
  16904. include_expsyms_RC; do
  16905. case $var in
  16906. old_archive_cmds_RC | \
  16907. old_archive_from_new_cmds_RC | \
  16908. archive_cmds_RC | \
  16909. archive_expsym_cmds_RC | \
  16910. module_cmds_RC | \
  16911. module_expsym_cmds_RC | \
  16912. old_archive_from_expsyms_cmds_RC | \
  16913. export_symbols_cmds_RC | \
  16914. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16915. postinstall_cmds | postuninstall_cmds | \
  16916. old_postinstall_cmds | old_postuninstall_cmds | \
  16917. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16918. # Double-quote double-evaled strings.
  16919. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16920. ;;
  16921. *)
  16922. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16923. ;;
  16924. esac
  16925. done
  16926. case $lt_echo in
  16927. *'\$0 --fallback-echo"')
  16928. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16929. ;;
  16930. esac
  16931. cfgfile="$ofile"
  16932. cat <<__EOF__ >> "$cfgfile"
  16933. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16934. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16935. # Shell to use when invoking shell scripts.
  16936. SHELL=$lt_SHELL
  16937. # Whether or not to build shared libraries.
  16938. build_libtool_libs=$enable_shared
  16939. # Whether or not to build static libraries.
  16940. build_old_libs=$enable_static
  16941. # Whether or not to add -lc for building shared libraries.
  16942. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16943. # Whether or not to disallow shared libs when runtime libs are static
  16944. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16945. # Whether or not to optimize for fast installation.
  16946. fast_install=$enable_fast_install
  16947. # The host system.
  16948. host_alias=$host_alias
  16949. host=$host
  16950. host_os=$host_os
  16951. # The build system.
  16952. build_alias=$build_alias
  16953. build=$build
  16954. build_os=$build_os
  16955. # An echo program that does not interpret backslashes.
  16956. echo=$lt_echo
  16957. # The archiver.
  16958. AR=$lt_AR
  16959. AR_FLAGS=$lt_AR_FLAGS
  16960. # A C compiler.
  16961. LTCC=$lt_LTCC
  16962. # LTCC compiler flags.
  16963. LTCFLAGS=$lt_LTCFLAGS
  16964. # A language-specific compiler.
  16965. CC=$lt_compiler_RC
  16966. # Is the compiler the GNU C compiler?
  16967. with_gcc=$GCC_RC
  16968. # An ERE matcher.
  16969. EGREP=$lt_EGREP
  16970. # The linker used to build libraries.
  16971. LD=$lt_LD_RC
  16972. # Whether we need hard or soft links.
  16973. LN_S=$lt_LN_S
  16974. # A BSD-compatible nm program.
  16975. NM=$lt_NM
  16976. # A symbol stripping program
  16977. STRIP=$lt_STRIP
  16978. # Used to examine libraries when file_magic_cmd begins "file"
  16979. MAGIC_CMD=$MAGIC_CMD
  16980. # Used on cygwin: DLL creation program.
  16981. DLLTOOL="$DLLTOOL"
  16982. # Used on cygwin: object dumper.
  16983. OBJDUMP="$OBJDUMP"
  16984. # Used on cygwin: assembler.
  16985. AS="$AS"
  16986. # The name of the directory that contains temporary libtool files.
  16987. objdir=$objdir
  16988. # How to create reloadable object files.
  16989. reload_flag=$lt_reload_flag
  16990. reload_cmds=$lt_reload_cmds
  16991. # How to pass a linker flag through the compiler.
  16992. wl=$lt_lt_prog_compiler_wl_RC
  16993. # Object file suffix (normally "o").
  16994. objext="$ac_objext"
  16995. # Old archive suffix (normally "a").
  16996. libext="$libext"
  16997. # Shared library suffix (normally ".so").
  16998. shrext_cmds='$shrext_cmds'
  16999. # Executable file suffix (normally "").
  17000. exeext="$exeext"
  17001. # Additional compiler flags for building library objects.
  17002. pic_flag=$lt_lt_prog_compiler_pic_RC
  17003. pic_mode=$pic_mode
  17004. # What is the maximum length of a command?
  17005. max_cmd_len=$lt_cv_sys_max_cmd_len
  17006. # Does compiler simultaneously support -c and -o options?
  17007. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17008. # Must we lock files when doing compilation?
  17009. need_locks=$lt_need_locks
  17010. # Do we need the lib prefix for modules?
  17011. need_lib_prefix=$need_lib_prefix
  17012. # Do we need a version for libraries?
  17013. need_version=$need_version
  17014. # Whether dlopen is supported.
  17015. dlopen_support=$enable_dlopen
  17016. # Whether dlopen of programs is supported.
  17017. dlopen_self=$enable_dlopen_self
  17018. # Whether dlopen of statically linked programs is supported.
  17019. dlopen_self_static=$enable_dlopen_self_static
  17020. # Compiler flag to prevent dynamic linking.
  17021. link_static_flag=$lt_lt_prog_compiler_static_RC
  17022. # Compiler flag to turn off builtin functions.
  17023. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17024. # Compiler flag to allow reflexive dlopens.
  17025. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17026. # Compiler flag to generate shared objects directly from archives.
  17027. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17028. # Compiler flag to generate thread-safe objects.
  17029. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17030. # Library versioning type.
  17031. version_type=$version_type
  17032. # Format of library name prefix.
  17033. libname_spec=$lt_libname_spec
  17034. # List of archive names. First name is the real one, the rest are links.
  17035. # The last name is the one that the linker finds with -lNAME.
  17036. library_names_spec=$lt_library_names_spec
  17037. # The coded name of the library, if different from the real name.
  17038. soname_spec=$lt_soname_spec
  17039. # Commands used to build and install an old-style archive.
  17040. RANLIB=$lt_RANLIB
  17041. old_archive_cmds=$lt_old_archive_cmds_RC
  17042. old_postinstall_cmds=$lt_old_postinstall_cmds
  17043. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17044. # Create an old-style archive from a shared archive.
  17045. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17046. # Create a temporary old-style archive to link instead of a shared archive.
  17047. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17048. # Commands used to build and install a shared archive.
  17049. archive_cmds=$lt_archive_cmds_RC
  17050. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17051. postinstall_cmds=$lt_postinstall_cmds
  17052. postuninstall_cmds=$lt_postuninstall_cmds
  17053. # Commands used to build a loadable module (assumed same as above if empty)
  17054. module_cmds=$lt_module_cmds_RC
  17055. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17056. # Commands to strip libraries.
  17057. old_striplib=$lt_old_striplib
  17058. striplib=$lt_striplib
  17059. # Dependencies to place before the objects being linked to create a
  17060. # shared library.
  17061. predep_objects=$lt_predep_objects_RC
  17062. # Dependencies to place after the objects being linked to create a
  17063. # shared library.
  17064. postdep_objects=$lt_postdep_objects_RC
  17065. # Dependencies to place before the objects being linked to create a
  17066. # shared library.
  17067. predeps=$lt_predeps_RC
  17068. # Dependencies to place after the objects being linked to create a
  17069. # shared library.
  17070. postdeps=$lt_postdeps_RC
  17071. # The directories searched by this compiler when creating a shared
  17072. # library
  17073. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  17074. # The library search path used internally by the compiler when linking
  17075. # a shared library.
  17076. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17077. # Method to check whether dependent libraries are shared objects.
  17078. deplibs_check_method=$lt_deplibs_check_method
  17079. # Command to use when deplibs_check_method == file_magic.
  17080. file_magic_cmd=$lt_file_magic_cmd
  17081. # Flag that allows shared libraries with undefined symbols to be built.
  17082. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17083. # Flag that forces no undefined symbols.
  17084. no_undefined_flag=$lt_no_undefined_flag_RC
  17085. # Commands used to finish a libtool library installation in a directory.
  17086. finish_cmds=$lt_finish_cmds
  17087. # Same as above, but a single script fragment to be evaled but not shown.
  17088. finish_eval=$lt_finish_eval
  17089. # Take the output of nm and produce a listing of raw symbols and C names.
  17090. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17091. # Transform the output of nm in a proper C declaration
  17092. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17093. # Transform the output of nm in a C name address pair
  17094. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17095. # This is the shared library runtime path variable.
  17096. runpath_var=$runpath_var
  17097. # This is the shared library path variable.
  17098. shlibpath_var=$shlibpath_var
  17099. # Is shlibpath searched before the hard-coded library search path?
  17100. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17101. # How to hardcode a shared library path into an executable.
  17102. hardcode_action=$hardcode_action_RC
  17103. # Whether we should hardcode library paths into libraries.
  17104. hardcode_into_libs=$hardcode_into_libs
  17105. # Flag to hardcode \$libdir into a binary during linking.
  17106. # This must work even if \$libdir does not exist.
  17107. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17108. # If ld is used when linking, flag to hardcode \$libdir into
  17109. # a binary during linking. This must work even if \$libdir does
  17110. # not exist.
  17111. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17112. # Whether we need a single -rpath flag with a separated argument.
  17113. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17114. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17115. # resulting binary.
  17116. hardcode_direct=$hardcode_direct_RC
  17117. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17118. # resulting binary.
  17119. hardcode_minus_L=$hardcode_minus_L_RC
  17120. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17121. # the resulting binary.
  17122. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17123. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17124. # and all subsequent libraries and executables linked against it.
  17125. hardcode_automatic=$hardcode_automatic_RC
  17126. # Variables whose values should be saved in libtool wrapper scripts and
  17127. # restored at relink time.
  17128. variables_saved_for_relink="$variables_saved_for_relink"
  17129. # Whether libtool must link a program against all its dependency libraries.
  17130. link_all_deplibs=$link_all_deplibs_RC
  17131. # Compile-time system search path for libraries
  17132. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17133. # Run-time system search path for libraries
  17134. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17135. # Fix the shell variable \$srcfile for the compiler.
  17136. fix_srcfile_path=$lt_fix_srcfile_path
  17137. # Set to yes if exported symbols are required.
  17138. always_export_symbols=$always_export_symbols_RC
  17139. # The commands to list exported symbols.
  17140. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17141. # The commands to extract the exported symbol list from a shared archive.
  17142. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17143. # Symbols that should not be listed in the preloaded symbols.
  17144. exclude_expsyms=$lt_exclude_expsyms_RC
  17145. # Symbols that must always be exported.
  17146. include_expsyms=$lt_include_expsyms_RC
  17147. # ### END LIBTOOL TAG CONFIG: $tagname
  17148. __EOF__
  17149. else
  17150. # If there is no Makefile yet, we rely on a make rule to execute
  17151. # `config.status --recheck' to rerun these tests and create the
  17152. # libtool script then.
  17153. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17154. if test -f "$ltmain_in"; then
  17155. test -f Makefile && make "$ltmain"
  17156. fi
  17157. fi
  17158. ac_ext=c
  17159. ac_cpp='$CPP $CPPFLAGS'
  17160. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17161. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17162. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17163. CC="$lt_save_CC"
  17164. ;;
  17165. *)
  17166. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17167. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17168. { (exit 1); exit 1; }; }
  17169. ;;
  17170. esac
  17171. # Append the new tag name to the list of available tags.
  17172. if test -n "$tagname" ; then
  17173. available_tags="$available_tags $tagname"
  17174. fi
  17175. fi
  17176. done
  17177. IFS="$lt_save_ifs"
  17178. # Now substitute the updated list of available tags.
  17179. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17180. mv "${ofile}T" "$ofile"
  17181. chmod +x "$ofile"
  17182. else
  17183. rm -f "${ofile}T"
  17184. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17185. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17186. { (exit 1); exit 1; }; }
  17187. fi
  17188. fi
  17189. # This can be used to rebuild libtool when needed
  17190. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17191. # Always use our own libtool.
  17192. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17193. # Prevent multiple expansion
  17194. ac_config_headers="$ac_config_headers config.h"
  17195. am__api_version='1.10'
  17196. # Find a good install program. We prefer a C program (faster),
  17197. # so one script is as good as another. But avoid the broken or
  17198. # incompatible versions:
  17199. # SysV /etc/install, /usr/sbin/install
  17200. # SunOS /usr/etc/install
  17201. # IRIX /sbin/install
  17202. # AIX /bin/install
  17203. # AmigaOS /C/install, which installs bootblocks on floppy discs
  17204. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  17205. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  17206. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  17207. # OS/2's system install, which has a completely different semantic
  17208. # ./install, which can be erroneously created by make from ./install.sh.
  17209. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  17210. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  17211. if test -z "$INSTALL"; then
  17212. if test "${ac_cv_path_install+set}" = set; then
  17213. echo $ECHO_N "(cached) $ECHO_C" >&6
  17214. else
  17215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17216. for as_dir in $PATH
  17217. do
  17218. IFS=$as_save_IFS
  17219. test -z "$as_dir" && as_dir=.
  17220. # Account for people who put trailing slashes in PATH elements.
  17221. case $as_dir/ in
  17222. ./ | .// | /cC/* | \
  17223. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  17224. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  17225. /usr/ucb/* ) ;;
  17226. *)
  17227. # OSF1 and SCO ODT 3.0 have their own names for install.
  17228. # Don't use installbsd from OSF since it installs stuff as root
  17229. # by default.
  17230. for ac_prog in ginstall scoinst install; do
  17231. for ac_exec_ext in '' $ac_executable_extensions; do
  17232. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  17233. if test $ac_prog = install &&
  17234. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17235. # AIX install. It has an incompatible calling convention.
  17236. :
  17237. elif test $ac_prog = install &&
  17238. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  17239. # program-specific install script used by HP pwplus--don't use.
  17240. :
  17241. else
  17242. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  17243. break 3
  17244. fi
  17245. fi
  17246. done
  17247. done
  17248. ;;
  17249. esac
  17250. done
  17251. IFS=$as_save_IFS
  17252. fi
  17253. if test "${ac_cv_path_install+set}" = set; then
  17254. INSTALL=$ac_cv_path_install
  17255. else
  17256. # As a last resort, use the slow shell script. Don't cache a
  17257. # value for INSTALL within a source directory, because that will
  17258. # break other packages using the cache if that directory is
  17259. # removed, or if the value is a relative name.
  17260. INSTALL=$ac_install_sh
  17261. fi
  17262. fi
  17263. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  17264. echo "${ECHO_T}$INSTALL" >&6; }
  17265. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  17266. # It thinks the first close brace ends the variable substitution.
  17267. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  17268. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  17269. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  17270. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  17271. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  17272. # Just in case
  17273. sleep 1
  17274. echo timestamp > conftest.file
  17275. # Do `set' in a subshell so we don't clobber the current shell's
  17276. # arguments. Must try -L first in case configure is actually a
  17277. # symlink; some systems play weird games with the mod time of symlinks
  17278. # (eg FreeBSD returns the mod time of the symlink's containing
  17279. # directory).
  17280. if (
  17281. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  17282. if test "$*" = "X"; then
  17283. # -L didn't work.
  17284. set X `ls -t $srcdir/configure conftest.file`
  17285. fi
  17286. rm -f conftest.file
  17287. if test "$*" != "X $srcdir/configure conftest.file" \
  17288. && test "$*" != "X conftest.file $srcdir/configure"; then
  17289. # If neither matched, then we have a broken ls. This can happen
  17290. # if, for instance, CONFIG_SHELL is bash and it inherits a
  17291. # broken ls alias from the environment. This has actually
  17292. # happened. Such a system could not be considered "sane".
  17293. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  17294. alias in your environment" >&5
  17295. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  17296. alias in your environment" >&2;}
  17297. { (exit 1); exit 1; }; }
  17298. fi
  17299. test "$2" = conftest.file
  17300. )
  17301. then
  17302. # Ok.
  17303. :
  17304. else
  17305. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  17306. Check your system clock" >&5
  17307. echo "$as_me: error: newly created file is older than distributed files!
  17308. Check your system clock" >&2;}
  17309. { (exit 1); exit 1; }; }
  17310. fi
  17311. { echo "$as_me:$LINENO: result: yes" >&5
  17312. echo "${ECHO_T}yes" >&6; }
  17313. test "$program_prefix" != NONE &&
  17314. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  17315. # Use a double $ so make ignores it.
  17316. test "$program_suffix" != NONE &&
  17317. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  17318. # Double any \ or $. echo might interpret backslashes.
  17319. # By default was `s,x,x', remove it if useless.
  17320. cat <<\_ACEOF >conftest.sed
  17321. s/[\\$]/&&/g;s/;s,x,x,$//
  17322. _ACEOF
  17323. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  17324. rm -f conftest.sed
  17325. # expand $ac_aux_dir to an absolute path
  17326. am_aux_dir=`cd $ac_aux_dir && pwd`
  17327. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  17328. # Use eval to expand $SHELL
  17329. if eval "$MISSING --run true"; then
  17330. am_missing_run="$MISSING --run "
  17331. else
  17332. am_missing_run=
  17333. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  17334. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  17335. fi
  17336. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  17337. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  17338. if test -z "$MKDIR_P"; then
  17339. if test "${ac_cv_path_mkdir+set}" = set; then
  17340. echo $ECHO_N "(cached) $ECHO_C" >&6
  17341. else
  17342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17343. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  17344. do
  17345. IFS=$as_save_IFS
  17346. test -z "$as_dir" && as_dir=.
  17347. for ac_prog in mkdir gmkdir; do
  17348. for ac_exec_ext in '' $ac_executable_extensions; do
  17349. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  17350. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  17351. 'mkdir (GNU coreutils) '* | \
  17352. 'mkdir (coreutils) '* | \
  17353. 'mkdir (fileutils) '4.1*)
  17354. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  17355. break 3;;
  17356. esac
  17357. done
  17358. done
  17359. done
  17360. IFS=$as_save_IFS
  17361. fi
  17362. if test "${ac_cv_path_mkdir+set}" = set; then
  17363. MKDIR_P="$ac_cv_path_mkdir -p"
  17364. else
  17365. # As a last resort, use the slow shell script. Don't cache a
  17366. # value for MKDIR_P within a source directory, because that will
  17367. # break other packages using the cache if that directory is
  17368. # removed, or if the value is a relative name.
  17369. test -d ./--version && rmdir ./--version
  17370. MKDIR_P="$ac_install_sh -d"
  17371. fi
  17372. fi
  17373. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  17374. echo "${ECHO_T}$MKDIR_P" >&6; }
  17375. mkdir_p="$MKDIR_P"
  17376. case $mkdir_p in
  17377. [\\/$]* | ?:[\\/]*) ;;
  17378. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  17379. esac
  17380. for ac_prog in gawk mawk nawk awk
  17381. do
  17382. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17383. set dummy $ac_prog; ac_word=$2
  17384. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17385. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17386. if test "${ac_cv_prog_AWK+set}" = set; then
  17387. echo $ECHO_N "(cached) $ECHO_C" >&6
  17388. else
  17389. if test -n "$AWK"; then
  17390. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  17391. else
  17392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17393. for as_dir in $PATH
  17394. do
  17395. IFS=$as_save_IFS
  17396. test -z "$as_dir" && as_dir=.
  17397. for ac_exec_ext in '' $ac_executable_extensions; do
  17398. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17399. ac_cv_prog_AWK="$ac_prog"
  17400. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17401. break 2
  17402. fi
  17403. done
  17404. done
  17405. IFS=$as_save_IFS
  17406. fi
  17407. fi
  17408. AWK=$ac_cv_prog_AWK
  17409. if test -n "$AWK"; then
  17410. { echo "$as_me:$LINENO: result: $AWK" >&5
  17411. echo "${ECHO_T}$AWK" >&6; }
  17412. else
  17413. { echo "$as_me:$LINENO: result: no" >&5
  17414. echo "${ECHO_T}no" >&6; }
  17415. fi
  17416. test -n "$AWK" && break
  17417. done
  17418. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17419. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  17420. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  17421. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  17422. echo $ECHO_N "(cached) $ECHO_C" >&6
  17423. else
  17424. cat >conftest.make <<\_ACEOF
  17425. SHELL = /bin/sh
  17426. all:
  17427. @echo '@@@%%%=$(MAKE)=@@@%%%'
  17428. _ACEOF
  17429. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  17430. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  17431. *@@@%%%=?*=@@@%%%*)
  17432. eval ac_cv_prog_make_${ac_make}_set=yes;;
  17433. *)
  17434. eval ac_cv_prog_make_${ac_make}_set=no;;
  17435. esac
  17436. rm -f conftest.make
  17437. fi
  17438. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  17439. { echo "$as_me:$LINENO: result: yes" >&5
  17440. echo "${ECHO_T}yes" >&6; }
  17441. SET_MAKE=
  17442. else
  17443. { echo "$as_me:$LINENO: result: no" >&5
  17444. echo "${ECHO_T}no" >&6; }
  17445. SET_MAKE="MAKE=${MAKE-make}"
  17446. fi
  17447. rm -rf .tst 2>/dev/null
  17448. mkdir .tst 2>/dev/null
  17449. if test -d .tst; then
  17450. am__leading_dot=.
  17451. else
  17452. am__leading_dot=_
  17453. fi
  17454. rmdir .tst 2>/dev/null
  17455. DEPDIR="${am__leading_dot}deps"
  17456. ac_config_commands="$ac_config_commands depfiles"
  17457. am_make=${MAKE-make}
  17458. cat > confinc << 'END'
  17459. am__doit:
  17460. @echo done
  17461. .PHONY: am__doit
  17462. END
  17463. # If we don't find an include directive, just comment out the code.
  17464. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  17465. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  17466. am__include="#"
  17467. am__quote=
  17468. _am_result=none
  17469. # First try GNU make style include.
  17470. echo "include confinc" > confmf
  17471. # We grep out `Entering directory' and `Leaving directory'
  17472. # messages which can occur if `w' ends up in MAKEFLAGS.
  17473. # In particular we don't look at `^make:' because GNU make might
  17474. # be invoked under some other name (usually "gmake"), in which
  17475. # case it prints its new name instead of `make'.
  17476. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  17477. am__include=include
  17478. am__quote=
  17479. _am_result=GNU
  17480. fi
  17481. # Now try BSD make style include.
  17482. if test "$am__include" = "#"; then
  17483. echo '.include "confinc"' > confmf
  17484. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  17485. am__include=.include
  17486. am__quote="\""
  17487. _am_result=BSD
  17488. fi
  17489. fi
  17490. { echo "$as_me:$LINENO: result: $_am_result" >&5
  17491. echo "${ECHO_T}$_am_result" >&6; }
  17492. rm -f confinc confmf
  17493. # Check whether --enable-dependency-tracking was given.
  17494. if test "${enable_dependency_tracking+set}" = set; then
  17495. enableval=$enable_dependency_tracking;
  17496. fi
  17497. if test "x$enable_dependency_tracking" != xno; then
  17498. am_depcomp="$ac_aux_dir/depcomp"
  17499. AMDEPBACKSLASH='\'
  17500. fi
  17501. if test "x$enable_dependency_tracking" != xno; then
  17502. AMDEP_TRUE=
  17503. AMDEP_FALSE='#'
  17504. else
  17505. AMDEP_TRUE='#'
  17506. AMDEP_FALSE=
  17507. fi
  17508. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  17509. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  17510. # is not polluted with repeated "-I."
  17511. am__isrc=' -I$(srcdir)'
  17512. # test to see if srcdir already configured
  17513. if test -f $srcdir/config.status; then
  17514. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  17515. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  17516. { (exit 1); exit 1; }; }
  17517. fi
  17518. fi
  17519. # test whether we have cygpath
  17520. if test -z "$CYGPATH_W"; then
  17521. if (cygpath --version) >/dev/null 2>/dev/null; then
  17522. CYGPATH_W='cygpath -w'
  17523. else
  17524. CYGPATH_W=echo
  17525. fi
  17526. fi
  17527. # Define the identity of the package.
  17528. PACKAGE='clish'
  17529. VERSION='0.7.4alpha'
  17530. cat >>confdefs.h <<_ACEOF
  17531. #define PACKAGE "$PACKAGE"
  17532. _ACEOF
  17533. cat >>confdefs.h <<_ACEOF
  17534. #define VERSION "$VERSION"
  17535. _ACEOF
  17536. # Some tools Automake needs.
  17537. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  17538. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  17539. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  17540. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  17541. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  17542. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  17543. # Installed binaries are usually stripped using `strip' when the user
  17544. # run `make install-strip'. However `strip' might not be the right
  17545. # tool to use in cross-compilation environments, therefore Automake
  17546. # will honor the `STRIP' environment variable to overrule this program.
  17547. if test "$cross_compiling" != no; then
  17548. if test -n "$ac_tool_prefix"; then
  17549. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17550. set dummy ${ac_tool_prefix}strip; ac_word=$2
  17551. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17552. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17553. if test "${ac_cv_prog_STRIP+set}" = set; then
  17554. echo $ECHO_N "(cached) $ECHO_C" >&6
  17555. else
  17556. if test -n "$STRIP"; then
  17557. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17558. else
  17559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17560. for as_dir in $PATH
  17561. do
  17562. IFS=$as_save_IFS
  17563. test -z "$as_dir" && as_dir=.
  17564. for ac_exec_ext in '' $ac_executable_extensions; do
  17565. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17566. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17567. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17568. break 2
  17569. fi
  17570. done
  17571. done
  17572. IFS=$as_save_IFS
  17573. fi
  17574. fi
  17575. STRIP=$ac_cv_prog_STRIP
  17576. if test -n "$STRIP"; then
  17577. { echo "$as_me:$LINENO: result: $STRIP" >&5
  17578. echo "${ECHO_T}$STRIP" >&6; }
  17579. else
  17580. { echo "$as_me:$LINENO: result: no" >&5
  17581. echo "${ECHO_T}no" >&6; }
  17582. fi
  17583. fi
  17584. if test -z "$ac_cv_prog_STRIP"; then
  17585. ac_ct_STRIP=$STRIP
  17586. # Extract the first word of "strip", so it can be a program name with args.
  17587. set dummy strip; ac_word=$2
  17588. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17589. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17590. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  17591. echo $ECHO_N "(cached) $ECHO_C" >&6
  17592. else
  17593. if test -n "$ac_ct_STRIP"; then
  17594. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17595. else
  17596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17597. for as_dir in $PATH
  17598. do
  17599. IFS=$as_save_IFS
  17600. test -z "$as_dir" && as_dir=.
  17601. for ac_exec_ext in '' $ac_executable_extensions; do
  17602. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17603. ac_cv_prog_ac_ct_STRIP="strip"
  17604. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17605. break 2
  17606. fi
  17607. done
  17608. done
  17609. IFS=$as_save_IFS
  17610. fi
  17611. fi
  17612. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17613. if test -n "$ac_ct_STRIP"; then
  17614. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  17615. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  17616. else
  17617. { echo "$as_me:$LINENO: result: no" >&5
  17618. echo "${ECHO_T}no" >&6; }
  17619. fi
  17620. if test "x$ac_ct_STRIP" = x; then
  17621. STRIP=":"
  17622. else
  17623. case $cross_compiling:$ac_tool_warned in
  17624. yes:)
  17625. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17626. whose name does not start with the host triplet. If you think this
  17627. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17628. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17629. whose name does not start with the host triplet. If you think this
  17630. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17631. ac_tool_warned=yes ;;
  17632. esac
  17633. STRIP=$ac_ct_STRIP
  17634. fi
  17635. else
  17636. STRIP="$ac_cv_prog_STRIP"
  17637. fi
  17638. fi
  17639. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  17640. # We need awk for the "check" target. The system "awk" is bad on
  17641. # some platforms.
  17642. # Always define AMTAR for backward compatibility.
  17643. AMTAR=${AMTAR-"${am_missing_run}tar"}
  17644. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  17645. depcc="$CC" am_compiler_list=
  17646. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17647. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  17648. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  17649. echo $ECHO_N "(cached) $ECHO_C" >&6
  17650. else
  17651. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17652. # We make a subdir and do the tests there. Otherwise we can end up
  17653. # making bogus files that we don't know about and never remove. For
  17654. # instance it was reported that on HP-UX the gcc test will end up
  17655. # making a dummy file named `D' -- because `-MD' means `put the output
  17656. # in D'.
  17657. mkdir conftest.dir
  17658. # Copy depcomp to subdir because otherwise we won't find it if we're
  17659. # using a relative directory.
  17660. cp "$am_depcomp" conftest.dir
  17661. cd conftest.dir
  17662. # We will build objects and dependencies in a subdirectory because
  17663. # it helps to detect inapplicable dependency modes. For instance
  17664. # both Tru64's cc and ICC support -MD to output dependencies as a
  17665. # side effect of compilation, but ICC will put the dependencies in
  17666. # the current directory while Tru64 will put them in the object
  17667. # directory.
  17668. mkdir sub
  17669. am_cv_CC_dependencies_compiler_type=none
  17670. if test "$am_compiler_list" = ""; then
  17671. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17672. fi
  17673. for depmode in $am_compiler_list; do
  17674. # Setup a source with many dependencies, because some compilers
  17675. # like to wrap large dependency lists on column 80 (with \), and
  17676. # we should not choose a depcomp mode which is confused by this.
  17677. #
  17678. # We need to recreate these files for each test, as the compiler may
  17679. # overwrite some of them when testing with obscure command lines.
  17680. # This happens at least with the AIX C compiler.
  17681. : > sub/conftest.c
  17682. for i in 1 2 3 4 5 6; do
  17683. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  17684. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  17685. # Solaris 8's {/usr,}/bin/sh.
  17686. touch sub/conftst$i.h
  17687. done
  17688. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17689. case $depmode in
  17690. nosideeffect)
  17691. # after this tag, mechanisms are not by side-effect, so they'll
  17692. # only be used when explicitly requested
  17693. if test "x$enable_dependency_tracking" = xyes; then
  17694. continue
  17695. else
  17696. break
  17697. fi
  17698. ;;
  17699. none) break ;;
  17700. esac
  17701. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17702. # mode. It turns out that the SunPro C++ compiler does not properly
  17703. # handle `-M -o', and we need to detect this.
  17704. if depmode=$depmode \
  17705. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17706. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17707. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17708. >/dev/null 2>conftest.err &&
  17709. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  17710. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17711. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17712. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17713. # icc doesn't choke on unknown options, it will just issue warnings
  17714. # or remarks (even with -Werror). So we grep stderr for any message
  17715. # that says an option was ignored or not supported.
  17716. # When given -MP, icc 7.0 and 7.1 complain thusly:
  17717. # icc: Command line warning: ignoring option '-M'; no argument required
  17718. # The diagnosis changed in icc 8.0:
  17719. # icc: Command line remark: option '-MP' not supported
  17720. if (grep 'ignoring option' conftest.err ||
  17721. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  17722. am_cv_CC_dependencies_compiler_type=$depmode
  17723. break
  17724. fi
  17725. fi
  17726. done
  17727. cd ..
  17728. rm -rf conftest.dir
  17729. else
  17730. am_cv_CC_dependencies_compiler_type=none
  17731. fi
  17732. fi
  17733. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  17734. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  17735. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  17736. if
  17737. test "x$enable_dependency_tracking" != xno \
  17738. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  17739. am__fastdepCC_TRUE=
  17740. am__fastdepCC_FALSE='#'
  17741. else
  17742. am__fastdepCC_TRUE='#'
  17743. am__fastdepCC_FALSE=
  17744. fi
  17745. depcc="$CXX" am_compiler_list=
  17746. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17747. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  17748. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  17749. echo $ECHO_N "(cached) $ECHO_C" >&6
  17750. else
  17751. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17752. # We make a subdir and do the tests there. Otherwise we can end up
  17753. # making bogus files that we don't know about and never remove. For
  17754. # instance it was reported that on HP-UX the gcc test will end up
  17755. # making a dummy file named `D' -- because `-MD' means `put the output
  17756. # in D'.
  17757. mkdir conftest.dir
  17758. # Copy depcomp to subdir because otherwise we won't find it if we're
  17759. # using a relative directory.
  17760. cp "$am_depcomp" conftest.dir
  17761. cd conftest.dir
  17762. # We will build objects and dependencies in a subdirectory because
  17763. # it helps to detect inapplicable dependency modes. For instance
  17764. # both Tru64's cc and ICC support -MD to output dependencies as a
  17765. # side effect of compilation, but ICC will put the dependencies in
  17766. # the current directory while Tru64 will put them in the object
  17767. # directory.
  17768. mkdir sub
  17769. am_cv_CXX_dependencies_compiler_type=none
  17770. if test "$am_compiler_list" = ""; then
  17771. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17772. fi
  17773. for depmode in $am_compiler_list; do
  17774. # Setup a source with many dependencies, because some compilers
  17775. # like to wrap large dependency lists on column 80 (with \), and
  17776. # we should not choose a depcomp mode which is confused by this.
  17777. #
  17778. # We need to recreate these files for each test, as the compiler may
  17779. # overwrite some of them when testing with obscure command lines.
  17780. # This happens at least with the AIX C compiler.
  17781. : > sub/conftest.c
  17782. for i in 1 2 3 4 5 6; do
  17783. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  17784. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  17785. # Solaris 8's {/usr,}/bin/sh.
  17786. touch sub/conftst$i.h
  17787. done
  17788. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17789. case $depmode in
  17790. nosideeffect)
  17791. # after this tag, mechanisms are not by side-effect, so they'll
  17792. # only be used when explicitly requested
  17793. if test "x$enable_dependency_tracking" = xyes; then
  17794. continue
  17795. else
  17796. break
  17797. fi
  17798. ;;
  17799. none) break ;;
  17800. esac
  17801. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17802. # mode. It turns out that the SunPro C++ compiler does not properly
  17803. # handle `-M -o', and we need to detect this.
  17804. if depmode=$depmode \
  17805. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17806. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17807. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17808. >/dev/null 2>conftest.err &&
  17809. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  17810. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17811. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17812. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17813. # icc doesn't choke on unknown options, it will just issue warnings
  17814. # or remarks (even with -Werror). So we grep stderr for any message
  17815. # that says an option was ignored or not supported.
  17816. # When given -MP, icc 7.0 and 7.1 complain thusly:
  17817. # icc: Command line warning: ignoring option '-M'; no argument required
  17818. # The diagnosis changed in icc 8.0:
  17819. # icc: Command line remark: option '-MP' not supported
  17820. if (grep 'ignoring option' conftest.err ||
  17821. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  17822. am_cv_CXX_dependencies_compiler_type=$depmode
  17823. break
  17824. fi
  17825. fi
  17826. done
  17827. cd ..
  17828. rm -rf conftest.dir
  17829. else
  17830. am_cv_CXX_dependencies_compiler_type=none
  17831. fi
  17832. fi
  17833. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  17834. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  17835. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  17836. if
  17837. test "x$enable_dependency_tracking" != xno \
  17838. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  17839. am__fastdepCXX_TRUE=
  17840. am__fastdepCXX_FALSE='#'
  17841. else
  17842. am__fastdepCXX_TRUE='#'
  17843. am__fastdepCXX_FALSE=
  17844. fi
  17845. if test "x$CC" != xcc; then
  17846. { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  17847. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  17848. else
  17849. { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  17850. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  17851. fi
  17852. set dummy $CC; ac_cc=`echo $2 |
  17853. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  17854. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  17855. echo $ECHO_N "(cached) $ECHO_C" >&6
  17856. else
  17857. cat >conftest.$ac_ext <<_ACEOF
  17858. /* confdefs.h. */
  17859. _ACEOF
  17860. cat confdefs.h >>conftest.$ac_ext
  17861. cat >>conftest.$ac_ext <<_ACEOF
  17862. /* end confdefs.h. */
  17863. int
  17864. main ()
  17865. {
  17866. ;
  17867. return 0;
  17868. }
  17869. _ACEOF
  17870. # Make sure it works both with $CC and with simple cc.
  17871. # We do the test twice because some compilers refuse to overwrite an
  17872. # existing .o file with -o, though they will create one.
  17873. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  17874. rm -f conftest2.*
  17875. if { (case "(($ac_try" in
  17876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17877. *) ac_try_echo=$ac_try;;
  17878. esac
  17879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17880. (eval "$ac_try") 2>&5
  17881. ac_status=$?
  17882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17883. (exit $ac_status); } &&
  17884. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  17885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17886. *) ac_try_echo=$ac_try;;
  17887. esac
  17888. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17889. (eval "$ac_try") 2>&5
  17890. ac_status=$?
  17891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17892. (exit $ac_status); };
  17893. then
  17894. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  17895. if test "x$CC" != xcc; then
  17896. # Test first that cc exists at all.
  17897. if { ac_try='cc -c conftest.$ac_ext >&5'
  17898. { (case "(($ac_try" in
  17899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17900. *) ac_try_echo=$ac_try;;
  17901. esac
  17902. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17903. (eval "$ac_try") 2>&5
  17904. ac_status=$?
  17905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17906. (exit $ac_status); }; }; then
  17907. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  17908. rm -f conftest2.*
  17909. if { (case "(($ac_try" in
  17910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17911. *) ac_try_echo=$ac_try;;
  17912. esac
  17913. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17914. (eval "$ac_try") 2>&5
  17915. ac_status=$?
  17916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17917. (exit $ac_status); } &&
  17918. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  17919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17920. *) ac_try_echo=$ac_try;;
  17921. esac
  17922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17923. (eval "$ac_try") 2>&5
  17924. ac_status=$?
  17925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17926. (exit $ac_status); };
  17927. then
  17928. # cc works too.
  17929. :
  17930. else
  17931. # cc exists but doesn't like -o.
  17932. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  17933. fi
  17934. fi
  17935. fi
  17936. else
  17937. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  17938. fi
  17939. rm -f core conftest*
  17940. fi
  17941. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  17942. { echo "$as_me:$LINENO: result: yes" >&5
  17943. echo "${ECHO_T}yes" >&6; }
  17944. else
  17945. { echo "$as_me:$LINENO: result: no" >&5
  17946. echo "${ECHO_T}no" >&6; }
  17947. cat >>confdefs.h <<\_ACEOF
  17948. #define NO_MINUS_C_MINUS_O 1
  17949. _ACEOF
  17950. fi
  17951. # FIXME: we rely on the cache variable name because
  17952. # there is no other way.
  17953. set dummy $CC
  17954. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  17955. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  17956. # Losing compiler, so override with the script.
  17957. # FIXME: It is wrong to rewrite CC.
  17958. # But if we don't then we get into trouble of one sort or another.
  17959. # A longer-term fix would be to have automake use am__CC in this case,
  17960. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  17961. CC="$am_aux_dir/compile $CC"
  17962. fi
  17963. # needed to handle 64-bit architecture
  17964. { echo "$as_me:$LINENO: checking for int" >&5
  17965. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  17966. if test "${ac_cv_type_int+set}" = set; then
  17967. echo $ECHO_N "(cached) $ECHO_C" >&6
  17968. else
  17969. cat >conftest.$ac_ext <<_ACEOF
  17970. /* confdefs.h. */
  17971. _ACEOF
  17972. cat confdefs.h >>conftest.$ac_ext
  17973. cat >>conftest.$ac_ext <<_ACEOF
  17974. /* end confdefs.h. */
  17975. $ac_includes_default
  17976. typedef int ac__type_new_;
  17977. int
  17978. main ()
  17979. {
  17980. if ((ac__type_new_ *) 0)
  17981. return 0;
  17982. if (sizeof (ac__type_new_))
  17983. return 0;
  17984. ;
  17985. return 0;
  17986. }
  17987. _ACEOF
  17988. rm -f conftest.$ac_objext
  17989. if { (ac_try="$ac_compile"
  17990. case "(($ac_try" in
  17991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17992. *) ac_try_echo=$ac_try;;
  17993. esac
  17994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17995. (eval "$ac_compile") 2>conftest.er1
  17996. ac_status=$?
  17997. grep -v '^ *+' conftest.er1 >conftest.err
  17998. rm -f conftest.er1
  17999. cat conftest.err >&5
  18000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18001. (exit $ac_status); } && {
  18002. test -z "$ac_c_werror_flag" ||
  18003. test ! -s conftest.err
  18004. } && test -s conftest.$ac_objext; then
  18005. ac_cv_type_int=yes
  18006. else
  18007. echo "$as_me: failed program was:" >&5
  18008. sed 's/^/| /' conftest.$ac_ext >&5
  18009. ac_cv_type_int=no
  18010. fi
  18011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18012. fi
  18013. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  18014. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  18015. # The cast to long int works around a bug in the HP C Compiler
  18016. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18017. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18018. # This bug is HP SR number 8606223364.
  18019. { echo "$as_me:$LINENO: checking size of int" >&5
  18020. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  18021. if test "${ac_cv_sizeof_int+set}" = set; then
  18022. echo $ECHO_N "(cached) $ECHO_C" >&6
  18023. else
  18024. if test "$cross_compiling" = yes; then
  18025. # Depending upon the size, compute the lo and hi bounds.
  18026. cat >conftest.$ac_ext <<_ACEOF
  18027. /* confdefs.h. */
  18028. _ACEOF
  18029. cat confdefs.h >>conftest.$ac_ext
  18030. cat >>conftest.$ac_ext <<_ACEOF
  18031. /* end confdefs.h. */
  18032. $ac_includes_default
  18033. typedef int ac__type_sizeof_;
  18034. int
  18035. main ()
  18036. {
  18037. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  18038. test_array [0] = 0
  18039. ;
  18040. return 0;
  18041. }
  18042. _ACEOF
  18043. rm -f conftest.$ac_objext
  18044. if { (ac_try="$ac_compile"
  18045. case "(($ac_try" in
  18046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18047. *) ac_try_echo=$ac_try;;
  18048. esac
  18049. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18050. (eval "$ac_compile") 2>conftest.er1
  18051. ac_status=$?
  18052. grep -v '^ *+' conftest.er1 >conftest.err
  18053. rm -f conftest.er1
  18054. cat conftest.err >&5
  18055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18056. (exit $ac_status); } && {
  18057. test -z "$ac_c_werror_flag" ||
  18058. test ! -s conftest.err
  18059. } && test -s conftest.$ac_objext; then
  18060. ac_lo=0 ac_mid=0
  18061. while :; do
  18062. cat >conftest.$ac_ext <<_ACEOF
  18063. /* confdefs.h. */
  18064. _ACEOF
  18065. cat confdefs.h >>conftest.$ac_ext
  18066. cat >>conftest.$ac_ext <<_ACEOF
  18067. /* end confdefs.h. */
  18068. $ac_includes_default
  18069. typedef int ac__type_sizeof_;
  18070. int
  18071. main ()
  18072. {
  18073. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  18074. test_array [0] = 0
  18075. ;
  18076. return 0;
  18077. }
  18078. _ACEOF
  18079. rm -f conftest.$ac_objext
  18080. if { (ac_try="$ac_compile"
  18081. case "(($ac_try" in
  18082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18083. *) ac_try_echo=$ac_try;;
  18084. esac
  18085. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18086. (eval "$ac_compile") 2>conftest.er1
  18087. ac_status=$?
  18088. grep -v '^ *+' conftest.er1 >conftest.err
  18089. rm -f conftest.er1
  18090. cat conftest.err >&5
  18091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18092. (exit $ac_status); } && {
  18093. test -z "$ac_c_werror_flag" ||
  18094. test ! -s conftest.err
  18095. } && test -s conftest.$ac_objext; then
  18096. ac_hi=$ac_mid; break
  18097. else
  18098. echo "$as_me: failed program was:" >&5
  18099. sed 's/^/| /' conftest.$ac_ext >&5
  18100. ac_lo=`expr $ac_mid + 1`
  18101. if test $ac_lo -le $ac_mid; then
  18102. ac_lo= ac_hi=
  18103. break
  18104. fi
  18105. ac_mid=`expr 2 '*' $ac_mid + 1`
  18106. fi
  18107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18108. done
  18109. else
  18110. echo "$as_me: failed program was:" >&5
  18111. sed 's/^/| /' conftest.$ac_ext >&5
  18112. cat >conftest.$ac_ext <<_ACEOF
  18113. /* confdefs.h. */
  18114. _ACEOF
  18115. cat confdefs.h >>conftest.$ac_ext
  18116. cat >>conftest.$ac_ext <<_ACEOF
  18117. /* end confdefs.h. */
  18118. $ac_includes_default
  18119. typedef int ac__type_sizeof_;
  18120. int
  18121. main ()
  18122. {
  18123. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  18124. test_array [0] = 0
  18125. ;
  18126. return 0;
  18127. }
  18128. _ACEOF
  18129. rm -f conftest.$ac_objext
  18130. if { (ac_try="$ac_compile"
  18131. case "(($ac_try" in
  18132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18133. *) ac_try_echo=$ac_try;;
  18134. esac
  18135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18136. (eval "$ac_compile") 2>conftest.er1
  18137. ac_status=$?
  18138. grep -v '^ *+' conftest.er1 >conftest.err
  18139. rm -f conftest.er1
  18140. cat conftest.err >&5
  18141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18142. (exit $ac_status); } && {
  18143. test -z "$ac_c_werror_flag" ||
  18144. test ! -s conftest.err
  18145. } && test -s conftest.$ac_objext; then
  18146. ac_hi=-1 ac_mid=-1
  18147. while :; do
  18148. cat >conftest.$ac_ext <<_ACEOF
  18149. /* confdefs.h. */
  18150. _ACEOF
  18151. cat confdefs.h >>conftest.$ac_ext
  18152. cat >>conftest.$ac_ext <<_ACEOF
  18153. /* end confdefs.h. */
  18154. $ac_includes_default
  18155. typedef int ac__type_sizeof_;
  18156. int
  18157. main ()
  18158. {
  18159. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  18160. test_array [0] = 0
  18161. ;
  18162. return 0;
  18163. }
  18164. _ACEOF
  18165. rm -f conftest.$ac_objext
  18166. if { (ac_try="$ac_compile"
  18167. case "(($ac_try" in
  18168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18169. *) ac_try_echo=$ac_try;;
  18170. esac
  18171. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18172. (eval "$ac_compile") 2>conftest.er1
  18173. ac_status=$?
  18174. grep -v '^ *+' conftest.er1 >conftest.err
  18175. rm -f conftest.er1
  18176. cat conftest.err >&5
  18177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18178. (exit $ac_status); } && {
  18179. test -z "$ac_c_werror_flag" ||
  18180. test ! -s conftest.err
  18181. } && test -s conftest.$ac_objext; then
  18182. ac_lo=$ac_mid; break
  18183. else
  18184. echo "$as_me: failed program was:" >&5
  18185. sed 's/^/| /' conftest.$ac_ext >&5
  18186. ac_hi=`expr '(' $ac_mid ')' - 1`
  18187. if test $ac_mid -le $ac_hi; then
  18188. ac_lo= ac_hi=
  18189. break
  18190. fi
  18191. ac_mid=`expr 2 '*' $ac_mid`
  18192. fi
  18193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18194. done
  18195. else
  18196. echo "$as_me: failed program was:" >&5
  18197. sed 's/^/| /' conftest.$ac_ext >&5
  18198. ac_lo= ac_hi=
  18199. fi
  18200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18201. fi
  18202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18203. # Binary search between lo and hi bounds.
  18204. while test "x$ac_lo" != "x$ac_hi"; do
  18205. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  18206. cat >conftest.$ac_ext <<_ACEOF
  18207. /* confdefs.h. */
  18208. _ACEOF
  18209. cat confdefs.h >>conftest.$ac_ext
  18210. cat >>conftest.$ac_ext <<_ACEOF
  18211. /* end confdefs.h. */
  18212. $ac_includes_default
  18213. typedef int ac__type_sizeof_;
  18214. int
  18215. main ()
  18216. {
  18217. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  18218. test_array [0] = 0
  18219. ;
  18220. return 0;
  18221. }
  18222. _ACEOF
  18223. rm -f conftest.$ac_objext
  18224. if { (ac_try="$ac_compile"
  18225. case "(($ac_try" in
  18226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18227. *) ac_try_echo=$ac_try;;
  18228. esac
  18229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18230. (eval "$ac_compile") 2>conftest.er1
  18231. ac_status=$?
  18232. grep -v '^ *+' conftest.er1 >conftest.err
  18233. rm -f conftest.er1
  18234. cat conftest.err >&5
  18235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18236. (exit $ac_status); } && {
  18237. test -z "$ac_c_werror_flag" ||
  18238. test ! -s conftest.err
  18239. } && test -s conftest.$ac_objext; then
  18240. ac_hi=$ac_mid
  18241. else
  18242. echo "$as_me: failed program was:" >&5
  18243. sed 's/^/| /' conftest.$ac_ext >&5
  18244. ac_lo=`expr '(' $ac_mid ')' + 1`
  18245. fi
  18246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18247. done
  18248. case $ac_lo in
  18249. ?*) ac_cv_sizeof_int=$ac_lo;;
  18250. '') if test "$ac_cv_type_int" = yes; then
  18251. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  18252. See \`config.log' for more details." >&5
  18253. echo "$as_me: error: cannot compute sizeof (int)
  18254. See \`config.log' for more details." >&2;}
  18255. { (exit 77); exit 77; }; }
  18256. else
  18257. ac_cv_sizeof_int=0
  18258. fi ;;
  18259. esac
  18260. else
  18261. cat >conftest.$ac_ext <<_ACEOF
  18262. /* confdefs.h. */
  18263. _ACEOF
  18264. cat confdefs.h >>conftest.$ac_ext
  18265. cat >>conftest.$ac_ext <<_ACEOF
  18266. /* end confdefs.h. */
  18267. $ac_includes_default
  18268. typedef int ac__type_sizeof_;
  18269. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  18270. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  18271. #include <stdio.h>
  18272. #include <stdlib.h>
  18273. int
  18274. main ()
  18275. {
  18276. FILE *f = fopen ("conftest.val", "w");
  18277. if (! f)
  18278. return 1;
  18279. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  18280. {
  18281. long int i = longval ();
  18282. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  18283. return 1;
  18284. fprintf (f, "%ld\n", i);
  18285. }
  18286. else
  18287. {
  18288. unsigned long int i = ulongval ();
  18289. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  18290. return 1;
  18291. fprintf (f, "%lu\n", i);
  18292. }
  18293. return ferror (f) || fclose (f) != 0;
  18294. ;
  18295. return 0;
  18296. }
  18297. _ACEOF
  18298. rm -f conftest$ac_exeext
  18299. if { (ac_try="$ac_link"
  18300. case "(($ac_try" in
  18301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18302. *) ac_try_echo=$ac_try;;
  18303. esac
  18304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18305. (eval "$ac_link") 2>&5
  18306. ac_status=$?
  18307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18308. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18309. { (case "(($ac_try" in
  18310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18311. *) ac_try_echo=$ac_try;;
  18312. esac
  18313. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18314. (eval "$ac_try") 2>&5
  18315. ac_status=$?
  18316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18317. (exit $ac_status); }; }; then
  18318. ac_cv_sizeof_int=`cat conftest.val`
  18319. else
  18320. echo "$as_me: program exited with status $ac_status" >&5
  18321. echo "$as_me: failed program was:" >&5
  18322. sed 's/^/| /' conftest.$ac_ext >&5
  18323. ( exit $ac_status )
  18324. if test "$ac_cv_type_int" = yes; then
  18325. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  18326. See \`config.log' for more details." >&5
  18327. echo "$as_me: error: cannot compute sizeof (int)
  18328. See \`config.log' for more details." >&2;}
  18329. { (exit 77); exit 77; }; }
  18330. else
  18331. ac_cv_sizeof_int=0
  18332. fi
  18333. fi
  18334. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18335. fi
  18336. rm -f conftest.val
  18337. fi
  18338. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  18339. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  18340. cat >>confdefs.h <<_ACEOF
  18341. #define SIZEOF_INT $ac_cv_sizeof_int
  18342. _ACEOF
  18343. { echo "$as_me:$LINENO: checking for long" >&5
  18344. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  18345. if test "${ac_cv_type_long+set}" = set; then
  18346. echo $ECHO_N "(cached) $ECHO_C" >&6
  18347. else
  18348. cat >conftest.$ac_ext <<_ACEOF
  18349. /* confdefs.h. */
  18350. _ACEOF
  18351. cat confdefs.h >>conftest.$ac_ext
  18352. cat >>conftest.$ac_ext <<_ACEOF
  18353. /* end confdefs.h. */
  18354. $ac_includes_default
  18355. typedef long ac__type_new_;
  18356. int
  18357. main ()
  18358. {
  18359. if ((ac__type_new_ *) 0)
  18360. return 0;
  18361. if (sizeof (ac__type_new_))
  18362. return 0;
  18363. ;
  18364. return 0;
  18365. }
  18366. _ACEOF
  18367. rm -f conftest.$ac_objext
  18368. if { (ac_try="$ac_compile"
  18369. case "(($ac_try" in
  18370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18371. *) ac_try_echo=$ac_try;;
  18372. esac
  18373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18374. (eval "$ac_compile") 2>conftest.er1
  18375. ac_status=$?
  18376. grep -v '^ *+' conftest.er1 >conftest.err
  18377. rm -f conftest.er1
  18378. cat conftest.err >&5
  18379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18380. (exit $ac_status); } && {
  18381. test -z "$ac_c_werror_flag" ||
  18382. test ! -s conftest.err
  18383. } && test -s conftest.$ac_objext; then
  18384. ac_cv_type_long=yes
  18385. else
  18386. echo "$as_me: failed program was:" >&5
  18387. sed 's/^/| /' conftest.$ac_ext >&5
  18388. ac_cv_type_long=no
  18389. fi
  18390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18391. fi
  18392. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  18393. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  18394. # The cast to long int works around a bug in the HP C Compiler
  18395. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18396. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18397. # This bug is HP SR number 8606223364.
  18398. { echo "$as_me:$LINENO: checking size of long" >&5
  18399. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  18400. if test "${ac_cv_sizeof_long+set}" = set; then
  18401. echo $ECHO_N "(cached) $ECHO_C" >&6
  18402. else
  18403. if test "$cross_compiling" = yes; then
  18404. # Depending upon the size, compute the lo and hi bounds.
  18405. cat >conftest.$ac_ext <<_ACEOF
  18406. /* confdefs.h. */
  18407. _ACEOF
  18408. cat confdefs.h >>conftest.$ac_ext
  18409. cat >>conftest.$ac_ext <<_ACEOF
  18410. /* end confdefs.h. */
  18411. $ac_includes_default
  18412. typedef long ac__type_sizeof_;
  18413. int
  18414. main ()
  18415. {
  18416. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  18417. test_array [0] = 0
  18418. ;
  18419. return 0;
  18420. }
  18421. _ACEOF
  18422. rm -f conftest.$ac_objext
  18423. if { (ac_try="$ac_compile"
  18424. case "(($ac_try" in
  18425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18426. *) ac_try_echo=$ac_try;;
  18427. esac
  18428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18429. (eval "$ac_compile") 2>conftest.er1
  18430. ac_status=$?
  18431. grep -v '^ *+' conftest.er1 >conftest.err
  18432. rm -f conftest.er1
  18433. cat conftest.err >&5
  18434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18435. (exit $ac_status); } && {
  18436. test -z "$ac_c_werror_flag" ||
  18437. test ! -s conftest.err
  18438. } && test -s conftest.$ac_objext; then
  18439. ac_lo=0 ac_mid=0
  18440. while :; do
  18441. cat >conftest.$ac_ext <<_ACEOF
  18442. /* confdefs.h. */
  18443. _ACEOF
  18444. cat confdefs.h >>conftest.$ac_ext
  18445. cat >>conftest.$ac_ext <<_ACEOF
  18446. /* end confdefs.h. */
  18447. $ac_includes_default
  18448. typedef long ac__type_sizeof_;
  18449. int
  18450. main ()
  18451. {
  18452. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  18453. test_array [0] = 0
  18454. ;
  18455. return 0;
  18456. }
  18457. _ACEOF
  18458. rm -f conftest.$ac_objext
  18459. if { (ac_try="$ac_compile"
  18460. case "(($ac_try" in
  18461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18462. *) ac_try_echo=$ac_try;;
  18463. esac
  18464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18465. (eval "$ac_compile") 2>conftest.er1
  18466. ac_status=$?
  18467. grep -v '^ *+' conftest.er1 >conftest.err
  18468. rm -f conftest.er1
  18469. cat conftest.err >&5
  18470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18471. (exit $ac_status); } && {
  18472. test -z "$ac_c_werror_flag" ||
  18473. test ! -s conftest.err
  18474. } && test -s conftest.$ac_objext; then
  18475. ac_hi=$ac_mid; break
  18476. else
  18477. echo "$as_me: failed program was:" >&5
  18478. sed 's/^/| /' conftest.$ac_ext >&5
  18479. ac_lo=`expr $ac_mid + 1`
  18480. if test $ac_lo -le $ac_mid; then
  18481. ac_lo= ac_hi=
  18482. break
  18483. fi
  18484. ac_mid=`expr 2 '*' $ac_mid + 1`
  18485. fi
  18486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18487. done
  18488. else
  18489. echo "$as_me: failed program was:" >&5
  18490. sed 's/^/| /' conftest.$ac_ext >&5
  18491. cat >conftest.$ac_ext <<_ACEOF
  18492. /* confdefs.h. */
  18493. _ACEOF
  18494. cat confdefs.h >>conftest.$ac_ext
  18495. cat >>conftest.$ac_ext <<_ACEOF
  18496. /* end confdefs.h. */
  18497. $ac_includes_default
  18498. typedef long ac__type_sizeof_;
  18499. int
  18500. main ()
  18501. {
  18502. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  18503. test_array [0] = 0
  18504. ;
  18505. return 0;
  18506. }
  18507. _ACEOF
  18508. rm -f conftest.$ac_objext
  18509. if { (ac_try="$ac_compile"
  18510. case "(($ac_try" in
  18511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18512. *) ac_try_echo=$ac_try;;
  18513. esac
  18514. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18515. (eval "$ac_compile") 2>conftest.er1
  18516. ac_status=$?
  18517. grep -v '^ *+' conftest.er1 >conftest.err
  18518. rm -f conftest.er1
  18519. cat conftest.err >&5
  18520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18521. (exit $ac_status); } && {
  18522. test -z "$ac_c_werror_flag" ||
  18523. test ! -s conftest.err
  18524. } && test -s conftest.$ac_objext; then
  18525. ac_hi=-1 ac_mid=-1
  18526. while :; do
  18527. cat >conftest.$ac_ext <<_ACEOF
  18528. /* confdefs.h. */
  18529. _ACEOF
  18530. cat confdefs.h >>conftest.$ac_ext
  18531. cat >>conftest.$ac_ext <<_ACEOF
  18532. /* end confdefs.h. */
  18533. $ac_includes_default
  18534. typedef long ac__type_sizeof_;
  18535. int
  18536. main ()
  18537. {
  18538. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  18539. test_array [0] = 0
  18540. ;
  18541. return 0;
  18542. }
  18543. _ACEOF
  18544. rm -f conftest.$ac_objext
  18545. if { (ac_try="$ac_compile"
  18546. case "(($ac_try" in
  18547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18548. *) ac_try_echo=$ac_try;;
  18549. esac
  18550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18551. (eval "$ac_compile") 2>conftest.er1
  18552. ac_status=$?
  18553. grep -v '^ *+' conftest.er1 >conftest.err
  18554. rm -f conftest.er1
  18555. cat conftest.err >&5
  18556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18557. (exit $ac_status); } && {
  18558. test -z "$ac_c_werror_flag" ||
  18559. test ! -s conftest.err
  18560. } && test -s conftest.$ac_objext; then
  18561. ac_lo=$ac_mid; break
  18562. else
  18563. echo "$as_me: failed program was:" >&5
  18564. sed 's/^/| /' conftest.$ac_ext >&5
  18565. ac_hi=`expr '(' $ac_mid ')' - 1`
  18566. if test $ac_mid -le $ac_hi; then
  18567. ac_lo= ac_hi=
  18568. break
  18569. fi
  18570. ac_mid=`expr 2 '*' $ac_mid`
  18571. fi
  18572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18573. done
  18574. else
  18575. echo "$as_me: failed program was:" >&5
  18576. sed 's/^/| /' conftest.$ac_ext >&5
  18577. ac_lo= ac_hi=
  18578. fi
  18579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18580. fi
  18581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18582. # Binary search between lo and hi bounds.
  18583. while test "x$ac_lo" != "x$ac_hi"; do
  18584. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  18585. cat >conftest.$ac_ext <<_ACEOF
  18586. /* confdefs.h. */
  18587. _ACEOF
  18588. cat confdefs.h >>conftest.$ac_ext
  18589. cat >>conftest.$ac_ext <<_ACEOF
  18590. /* end confdefs.h. */
  18591. $ac_includes_default
  18592. typedef long ac__type_sizeof_;
  18593. int
  18594. main ()
  18595. {
  18596. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  18597. test_array [0] = 0
  18598. ;
  18599. return 0;
  18600. }
  18601. _ACEOF
  18602. rm -f conftest.$ac_objext
  18603. if { (ac_try="$ac_compile"
  18604. case "(($ac_try" in
  18605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18606. *) ac_try_echo=$ac_try;;
  18607. esac
  18608. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18609. (eval "$ac_compile") 2>conftest.er1
  18610. ac_status=$?
  18611. grep -v '^ *+' conftest.er1 >conftest.err
  18612. rm -f conftest.er1
  18613. cat conftest.err >&5
  18614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18615. (exit $ac_status); } && {
  18616. test -z "$ac_c_werror_flag" ||
  18617. test ! -s conftest.err
  18618. } && test -s conftest.$ac_objext; then
  18619. ac_hi=$ac_mid
  18620. else
  18621. echo "$as_me: failed program was:" >&5
  18622. sed 's/^/| /' conftest.$ac_ext >&5
  18623. ac_lo=`expr '(' $ac_mid ')' + 1`
  18624. fi
  18625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18626. done
  18627. case $ac_lo in
  18628. ?*) ac_cv_sizeof_long=$ac_lo;;
  18629. '') if test "$ac_cv_type_long" = yes; then
  18630. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  18631. See \`config.log' for more details." >&5
  18632. echo "$as_me: error: cannot compute sizeof (long)
  18633. See \`config.log' for more details." >&2;}
  18634. { (exit 77); exit 77; }; }
  18635. else
  18636. ac_cv_sizeof_long=0
  18637. fi ;;
  18638. esac
  18639. else
  18640. cat >conftest.$ac_ext <<_ACEOF
  18641. /* confdefs.h. */
  18642. _ACEOF
  18643. cat confdefs.h >>conftest.$ac_ext
  18644. cat >>conftest.$ac_ext <<_ACEOF
  18645. /* end confdefs.h. */
  18646. $ac_includes_default
  18647. typedef long ac__type_sizeof_;
  18648. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  18649. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  18650. #include <stdio.h>
  18651. #include <stdlib.h>
  18652. int
  18653. main ()
  18654. {
  18655. FILE *f = fopen ("conftest.val", "w");
  18656. if (! f)
  18657. return 1;
  18658. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  18659. {
  18660. long int i = longval ();
  18661. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  18662. return 1;
  18663. fprintf (f, "%ld\n", i);
  18664. }
  18665. else
  18666. {
  18667. unsigned long int i = ulongval ();
  18668. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  18669. return 1;
  18670. fprintf (f, "%lu\n", i);
  18671. }
  18672. return ferror (f) || fclose (f) != 0;
  18673. ;
  18674. return 0;
  18675. }
  18676. _ACEOF
  18677. rm -f conftest$ac_exeext
  18678. if { (ac_try="$ac_link"
  18679. case "(($ac_try" in
  18680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18681. *) ac_try_echo=$ac_try;;
  18682. esac
  18683. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18684. (eval "$ac_link") 2>&5
  18685. ac_status=$?
  18686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18687. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18688. { (case "(($ac_try" in
  18689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18690. *) ac_try_echo=$ac_try;;
  18691. esac
  18692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18693. (eval "$ac_try") 2>&5
  18694. ac_status=$?
  18695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18696. (exit $ac_status); }; }; then
  18697. ac_cv_sizeof_long=`cat conftest.val`
  18698. else
  18699. echo "$as_me: program exited with status $ac_status" >&5
  18700. echo "$as_me: failed program was:" >&5
  18701. sed 's/^/| /' conftest.$ac_ext >&5
  18702. ( exit $ac_status )
  18703. if test "$ac_cv_type_long" = yes; then
  18704. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  18705. See \`config.log' for more details." >&5
  18706. echo "$as_me: error: cannot compute sizeof (long)
  18707. See \`config.log' for more details." >&2;}
  18708. { (exit 77); exit 77; }; }
  18709. else
  18710. ac_cv_sizeof_long=0
  18711. fi
  18712. fi
  18713. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18714. fi
  18715. rm -f conftest.val
  18716. fi
  18717. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  18718. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  18719. cat >>confdefs.h <<_ACEOF
  18720. #define SIZEOF_LONG $ac_cv_sizeof_long
  18721. _ACEOF
  18722. { echo "$as_me:$LINENO: checking for size_t" >&5
  18723. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  18724. if test "${ac_cv_type_size_t+set}" = set; then
  18725. echo $ECHO_N "(cached) $ECHO_C" >&6
  18726. else
  18727. cat >conftest.$ac_ext <<_ACEOF
  18728. /* confdefs.h. */
  18729. _ACEOF
  18730. cat confdefs.h >>conftest.$ac_ext
  18731. cat >>conftest.$ac_ext <<_ACEOF
  18732. /* end confdefs.h. */
  18733. $ac_includes_default
  18734. typedef size_t ac__type_new_;
  18735. int
  18736. main ()
  18737. {
  18738. if ((ac__type_new_ *) 0)
  18739. return 0;
  18740. if (sizeof (ac__type_new_))
  18741. return 0;
  18742. ;
  18743. return 0;
  18744. }
  18745. _ACEOF
  18746. rm -f conftest.$ac_objext
  18747. if { (ac_try="$ac_compile"
  18748. case "(($ac_try" in
  18749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18750. *) ac_try_echo=$ac_try;;
  18751. esac
  18752. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18753. (eval "$ac_compile") 2>conftest.er1
  18754. ac_status=$?
  18755. grep -v '^ *+' conftest.er1 >conftest.err
  18756. rm -f conftest.er1
  18757. cat conftest.err >&5
  18758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18759. (exit $ac_status); } && {
  18760. test -z "$ac_c_werror_flag" ||
  18761. test ! -s conftest.err
  18762. } && test -s conftest.$ac_objext; then
  18763. ac_cv_type_size_t=yes
  18764. else
  18765. echo "$as_me: failed program was:" >&5
  18766. sed 's/^/| /' conftest.$ac_ext >&5
  18767. ac_cv_type_size_t=no
  18768. fi
  18769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18770. fi
  18771. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  18772. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  18773. # The cast to long int works around a bug in the HP C Compiler
  18774. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18775. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18776. # This bug is HP SR number 8606223364.
  18777. { echo "$as_me:$LINENO: checking size of size_t" >&5
  18778. echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
  18779. if test "${ac_cv_sizeof_size_t+set}" = set; then
  18780. echo $ECHO_N "(cached) $ECHO_C" >&6
  18781. else
  18782. if test "$cross_compiling" = yes; then
  18783. # Depending upon the size, compute the lo and hi bounds.
  18784. cat >conftest.$ac_ext <<_ACEOF
  18785. /* confdefs.h. */
  18786. _ACEOF
  18787. cat confdefs.h >>conftest.$ac_ext
  18788. cat >>conftest.$ac_ext <<_ACEOF
  18789. /* end confdefs.h. */
  18790. $ac_includes_default
  18791. typedef size_t ac__type_sizeof_;
  18792. int
  18793. main ()
  18794. {
  18795. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  18796. test_array [0] = 0
  18797. ;
  18798. return 0;
  18799. }
  18800. _ACEOF
  18801. rm -f conftest.$ac_objext
  18802. if { (ac_try="$ac_compile"
  18803. case "(($ac_try" in
  18804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18805. *) ac_try_echo=$ac_try;;
  18806. esac
  18807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18808. (eval "$ac_compile") 2>conftest.er1
  18809. ac_status=$?
  18810. grep -v '^ *+' conftest.er1 >conftest.err
  18811. rm -f conftest.er1
  18812. cat conftest.err >&5
  18813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18814. (exit $ac_status); } && {
  18815. test -z "$ac_c_werror_flag" ||
  18816. test ! -s conftest.err
  18817. } && test -s conftest.$ac_objext; then
  18818. ac_lo=0 ac_mid=0
  18819. while :; do
  18820. cat >conftest.$ac_ext <<_ACEOF
  18821. /* confdefs.h. */
  18822. _ACEOF
  18823. cat confdefs.h >>conftest.$ac_ext
  18824. cat >>conftest.$ac_ext <<_ACEOF
  18825. /* end confdefs.h. */
  18826. $ac_includes_default
  18827. typedef size_t ac__type_sizeof_;
  18828. int
  18829. main ()
  18830. {
  18831. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  18832. test_array [0] = 0
  18833. ;
  18834. return 0;
  18835. }
  18836. _ACEOF
  18837. rm -f conftest.$ac_objext
  18838. if { (ac_try="$ac_compile"
  18839. case "(($ac_try" in
  18840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18841. *) ac_try_echo=$ac_try;;
  18842. esac
  18843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18844. (eval "$ac_compile") 2>conftest.er1
  18845. ac_status=$?
  18846. grep -v '^ *+' conftest.er1 >conftest.err
  18847. rm -f conftest.er1
  18848. cat conftest.err >&5
  18849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18850. (exit $ac_status); } && {
  18851. test -z "$ac_c_werror_flag" ||
  18852. test ! -s conftest.err
  18853. } && test -s conftest.$ac_objext; then
  18854. ac_hi=$ac_mid; break
  18855. else
  18856. echo "$as_me: failed program was:" >&5
  18857. sed 's/^/| /' conftest.$ac_ext >&5
  18858. ac_lo=`expr $ac_mid + 1`
  18859. if test $ac_lo -le $ac_mid; then
  18860. ac_lo= ac_hi=
  18861. break
  18862. fi
  18863. ac_mid=`expr 2 '*' $ac_mid + 1`
  18864. fi
  18865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18866. done
  18867. else
  18868. echo "$as_me: failed program was:" >&5
  18869. sed 's/^/| /' conftest.$ac_ext >&5
  18870. cat >conftest.$ac_ext <<_ACEOF
  18871. /* confdefs.h. */
  18872. _ACEOF
  18873. cat confdefs.h >>conftest.$ac_ext
  18874. cat >>conftest.$ac_ext <<_ACEOF
  18875. /* end confdefs.h. */
  18876. $ac_includes_default
  18877. typedef size_t ac__type_sizeof_;
  18878. int
  18879. main ()
  18880. {
  18881. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  18882. test_array [0] = 0
  18883. ;
  18884. return 0;
  18885. }
  18886. _ACEOF
  18887. rm -f conftest.$ac_objext
  18888. if { (ac_try="$ac_compile"
  18889. case "(($ac_try" in
  18890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18891. *) ac_try_echo=$ac_try;;
  18892. esac
  18893. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18894. (eval "$ac_compile") 2>conftest.er1
  18895. ac_status=$?
  18896. grep -v '^ *+' conftest.er1 >conftest.err
  18897. rm -f conftest.er1
  18898. cat conftest.err >&5
  18899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18900. (exit $ac_status); } && {
  18901. test -z "$ac_c_werror_flag" ||
  18902. test ! -s conftest.err
  18903. } && test -s conftest.$ac_objext; then
  18904. ac_hi=-1 ac_mid=-1
  18905. while :; do
  18906. cat >conftest.$ac_ext <<_ACEOF
  18907. /* confdefs.h. */
  18908. _ACEOF
  18909. cat confdefs.h >>conftest.$ac_ext
  18910. cat >>conftest.$ac_ext <<_ACEOF
  18911. /* end confdefs.h. */
  18912. $ac_includes_default
  18913. typedef size_t ac__type_sizeof_;
  18914. int
  18915. main ()
  18916. {
  18917. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  18918. test_array [0] = 0
  18919. ;
  18920. return 0;
  18921. }
  18922. _ACEOF
  18923. rm -f conftest.$ac_objext
  18924. if { (ac_try="$ac_compile"
  18925. case "(($ac_try" in
  18926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18927. *) ac_try_echo=$ac_try;;
  18928. esac
  18929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18930. (eval "$ac_compile") 2>conftest.er1
  18931. ac_status=$?
  18932. grep -v '^ *+' conftest.er1 >conftest.err
  18933. rm -f conftest.er1
  18934. cat conftest.err >&5
  18935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18936. (exit $ac_status); } && {
  18937. test -z "$ac_c_werror_flag" ||
  18938. test ! -s conftest.err
  18939. } && test -s conftest.$ac_objext; then
  18940. ac_lo=$ac_mid; break
  18941. else
  18942. echo "$as_me: failed program was:" >&5
  18943. sed 's/^/| /' conftest.$ac_ext >&5
  18944. ac_hi=`expr '(' $ac_mid ')' - 1`
  18945. if test $ac_mid -le $ac_hi; then
  18946. ac_lo= ac_hi=
  18947. break
  18948. fi
  18949. ac_mid=`expr 2 '*' $ac_mid`
  18950. fi
  18951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18952. done
  18953. else
  18954. echo "$as_me: failed program was:" >&5
  18955. sed 's/^/| /' conftest.$ac_ext >&5
  18956. ac_lo= ac_hi=
  18957. fi
  18958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18959. fi
  18960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18961. # Binary search between lo and hi bounds.
  18962. while test "x$ac_lo" != "x$ac_hi"; do
  18963. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  18964. cat >conftest.$ac_ext <<_ACEOF
  18965. /* confdefs.h. */
  18966. _ACEOF
  18967. cat confdefs.h >>conftest.$ac_ext
  18968. cat >>conftest.$ac_ext <<_ACEOF
  18969. /* end confdefs.h. */
  18970. $ac_includes_default
  18971. typedef size_t ac__type_sizeof_;
  18972. int
  18973. main ()
  18974. {
  18975. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  18976. test_array [0] = 0
  18977. ;
  18978. return 0;
  18979. }
  18980. _ACEOF
  18981. rm -f conftest.$ac_objext
  18982. if { (ac_try="$ac_compile"
  18983. case "(($ac_try" in
  18984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18985. *) ac_try_echo=$ac_try;;
  18986. esac
  18987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18988. (eval "$ac_compile") 2>conftest.er1
  18989. ac_status=$?
  18990. grep -v '^ *+' conftest.er1 >conftest.err
  18991. rm -f conftest.er1
  18992. cat conftest.err >&5
  18993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18994. (exit $ac_status); } && {
  18995. test -z "$ac_c_werror_flag" ||
  18996. test ! -s conftest.err
  18997. } && test -s conftest.$ac_objext; then
  18998. ac_hi=$ac_mid
  18999. else
  19000. echo "$as_me: failed program was:" >&5
  19001. sed 's/^/| /' conftest.$ac_ext >&5
  19002. ac_lo=`expr '(' $ac_mid ')' + 1`
  19003. fi
  19004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19005. done
  19006. case $ac_lo in
  19007. ?*) ac_cv_sizeof_size_t=$ac_lo;;
  19008. '') if test "$ac_cv_type_size_t" = yes; then
  19009. { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  19010. See \`config.log' for more details." >&5
  19011. echo "$as_me: error: cannot compute sizeof (size_t)
  19012. See \`config.log' for more details." >&2;}
  19013. { (exit 77); exit 77; }; }
  19014. else
  19015. ac_cv_sizeof_size_t=0
  19016. fi ;;
  19017. esac
  19018. else
  19019. cat >conftest.$ac_ext <<_ACEOF
  19020. /* confdefs.h. */
  19021. _ACEOF
  19022. cat confdefs.h >>conftest.$ac_ext
  19023. cat >>conftest.$ac_ext <<_ACEOF
  19024. /* end confdefs.h. */
  19025. $ac_includes_default
  19026. typedef size_t ac__type_sizeof_;
  19027. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  19028. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  19029. #include <stdio.h>
  19030. #include <stdlib.h>
  19031. int
  19032. main ()
  19033. {
  19034. FILE *f = fopen ("conftest.val", "w");
  19035. if (! f)
  19036. return 1;
  19037. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  19038. {
  19039. long int i = longval ();
  19040. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  19041. return 1;
  19042. fprintf (f, "%ld\n", i);
  19043. }
  19044. else
  19045. {
  19046. unsigned long int i = ulongval ();
  19047. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  19048. return 1;
  19049. fprintf (f, "%lu\n", i);
  19050. }
  19051. return ferror (f) || fclose (f) != 0;
  19052. ;
  19053. return 0;
  19054. }
  19055. _ACEOF
  19056. rm -f conftest$ac_exeext
  19057. if { (ac_try="$ac_link"
  19058. case "(($ac_try" in
  19059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19060. *) ac_try_echo=$ac_try;;
  19061. esac
  19062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19063. (eval "$ac_link") 2>&5
  19064. ac_status=$?
  19065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19066. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19067. { (case "(($ac_try" in
  19068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19069. *) ac_try_echo=$ac_try;;
  19070. esac
  19071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19072. (eval "$ac_try") 2>&5
  19073. ac_status=$?
  19074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19075. (exit $ac_status); }; }; then
  19076. ac_cv_sizeof_size_t=`cat conftest.val`
  19077. else
  19078. echo "$as_me: program exited with status $ac_status" >&5
  19079. echo "$as_me: failed program was:" >&5
  19080. sed 's/^/| /' conftest.$ac_ext >&5
  19081. ( exit $ac_status )
  19082. if test "$ac_cv_type_size_t" = yes; then
  19083. { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
  19084. See \`config.log' for more details." >&5
  19085. echo "$as_me: error: cannot compute sizeof (size_t)
  19086. See \`config.log' for more details." >&2;}
  19087. { (exit 77); exit 77; }; }
  19088. else
  19089. ac_cv_sizeof_size_t=0
  19090. fi
  19091. fi
  19092. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19093. fi
  19094. rm -f conftest.val
  19095. fi
  19096. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
  19097. echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
  19098. cat >>confdefs.h <<_ACEOF
  19099. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  19100. _ACEOF
  19101. #------------------------------------------------------------------------
  19102. # Handle the --prefix=... option
  19103. #------------------------------------------------------------------------
  19104. if test "${prefix}" = "NONE"; then
  19105. prefix=/usr/local
  19106. fi
  19107. if test "${exec_prefix}" = "NONE"; then
  19108. exec_prefix=$prefix
  19109. fi
  19110. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  19111. eval libdir="$libdir"
  19112. ################################
  19113. # Deal with debugging options
  19114. ################################
  19115. # Check whether --enable-debug was given.
  19116. if test "${enable_debug+set}" = set; then
  19117. enableval=$enable_debug;
  19118. else
  19119. enable_debug=no
  19120. fi
  19121. if test x$enable_debug = xyes; then
  19122. DEBUG_TRUE=
  19123. DEBUG_FALSE='#'
  19124. else
  19125. DEBUG_TRUE='#'
  19126. DEBUG_FALSE=
  19127. fi
  19128. ################################
  19129. # Check for the LUB library
  19130. ################################
  19131. LUB_LIBS="-llub"
  19132. LUB_CFLAGS=""
  19133. if test x$LUB_LIBS = x; then
  19134. { { echo "$as_me:$LINENO: error: Cannot find the \"Little Useful Bits\" library" >&5
  19135. echo "$as_me: error: Cannot find the \"Little Useful Bits\" library" >&2;}
  19136. { (exit 1); exit 1; }; }
  19137. fi
  19138. ################################
  19139. # Check for the CLICONF library
  19140. ################################
  19141. CLICONF_LIBS="-lcliconf"
  19142. CLICONF_CFLAGS=""
  19143. if test x$CLICONF_LIBS = x; then
  19144. { { echo "$as_me:$LINENO: error: Cannot find the \"CLI config\" library" >&5
  19145. echo "$as_me: error: Cannot find the \"CLI config\" library" >&2;}
  19146. { (exit 1); exit 1; }; }
  19147. fi
  19148. ################################
  19149. # Check for the TINYRL library
  19150. ################################
  19151. TINYRL_LIBS="-ltinyrl"
  19152. TINYRL_CFLAGS=""
  19153. if test x$TINYRL_LIBS = x; then
  19154. { { echo "$as_me:$LINENO: error: Cannot find the \"Tiny Readline\" library" >&5
  19155. echo "$as_me: error: Cannot find the \"Tiny Readline\" library" >&2;}
  19156. { (exit 1); exit 1; }; }
  19157. fi
  19158. ################################
  19159. # Check for the TINYXML library
  19160. ################################
  19161. TINYXML_LIBS="-ltinyxml"
  19162. TINYXML_CXXFLAGS="-std=gnu++98"
  19163. if test x$TINYXML_LIBS = x; then
  19164. { { echo "$as_me:$LINENO: error: Cannot find the \"Tiny XML\" library" >&5
  19165. echo "$as_me: error: Cannot find the \"Tiny XML\" library" >&2;}
  19166. { (exit 1); exit 1; }; }
  19167. fi
  19168. ################################
  19169. # Check for the PTHREAD library
  19170. ################################
  19171. # Check whether --with-pthread was given.
  19172. if test "${with_pthread+set}" = set; then
  19173. withval=$with_pthread;
  19174. fi
  19175. for ac_header in pthread.h
  19176. do
  19177. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19178. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19179. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19180. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19181. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19182. echo $ECHO_N "(cached) $ECHO_C" >&6
  19183. fi
  19184. ac_res=`eval echo '${'$as_ac_Header'}'`
  19185. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19186. echo "${ECHO_T}$ac_res" >&6; }
  19187. else
  19188. # Is the header compilable?
  19189. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19190. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19191. cat >conftest.$ac_ext <<_ACEOF
  19192. /* confdefs.h. */
  19193. _ACEOF
  19194. cat confdefs.h >>conftest.$ac_ext
  19195. cat >>conftest.$ac_ext <<_ACEOF
  19196. /* end confdefs.h. */
  19197. $ac_includes_default
  19198. #include <$ac_header>
  19199. _ACEOF
  19200. rm -f conftest.$ac_objext
  19201. if { (ac_try="$ac_compile"
  19202. case "(($ac_try" in
  19203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19204. *) ac_try_echo=$ac_try;;
  19205. esac
  19206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19207. (eval "$ac_compile") 2>conftest.er1
  19208. ac_status=$?
  19209. grep -v '^ *+' conftest.er1 >conftest.err
  19210. rm -f conftest.er1
  19211. cat conftest.err >&5
  19212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19213. (exit $ac_status); } && {
  19214. test -z "$ac_c_werror_flag" ||
  19215. test ! -s conftest.err
  19216. } && test -s conftest.$ac_objext; then
  19217. ac_header_compiler=yes
  19218. else
  19219. echo "$as_me: failed program was:" >&5
  19220. sed 's/^/| /' conftest.$ac_ext >&5
  19221. ac_header_compiler=no
  19222. fi
  19223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19224. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19225. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19226. # Is the header present?
  19227. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19228. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19229. cat >conftest.$ac_ext <<_ACEOF
  19230. /* confdefs.h. */
  19231. _ACEOF
  19232. cat confdefs.h >>conftest.$ac_ext
  19233. cat >>conftest.$ac_ext <<_ACEOF
  19234. /* end confdefs.h. */
  19235. #include <$ac_header>
  19236. _ACEOF
  19237. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19238. case "(($ac_try" in
  19239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19240. *) ac_try_echo=$ac_try;;
  19241. esac
  19242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19243. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19244. ac_status=$?
  19245. grep -v '^ *+' conftest.er1 >conftest.err
  19246. rm -f conftest.er1
  19247. cat conftest.err >&5
  19248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19249. (exit $ac_status); } >/dev/null && {
  19250. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19251. test ! -s conftest.err
  19252. }; then
  19253. ac_header_preproc=yes
  19254. else
  19255. echo "$as_me: failed program was:" >&5
  19256. sed 's/^/| /' conftest.$ac_ext >&5
  19257. ac_header_preproc=no
  19258. fi
  19259. rm -f conftest.err conftest.$ac_ext
  19260. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19261. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19262. # So? What about this header?
  19263. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19264. yes:no: )
  19265. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19266. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19267. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19268. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19269. ac_header_preproc=yes
  19270. ;;
  19271. no:yes:* )
  19272. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19273. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19274. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19275. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19276. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19277. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19278. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19279. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19280. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19281. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19282. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19283. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19284. ( cat <<\_ASBOX
  19285. ## ---------------------------------------------------------- ##
  19286. ## Report this to gmckerrell at users dot sourceforge dot net ##
  19287. ## ---------------------------------------------------------- ##
  19288. _ASBOX
  19289. ) | sed "s/^/$as_me: WARNING: /" >&2
  19290. ;;
  19291. esac
  19292. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19293. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19294. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19295. echo $ECHO_N "(cached) $ECHO_C" >&6
  19296. else
  19297. eval "$as_ac_Header=\$ac_header_preproc"
  19298. fi
  19299. ac_res=`eval echo '${'$as_ac_Header'}'`
  19300. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19301. echo "${ECHO_T}$ac_res" >&6; }
  19302. fi
  19303. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19304. cat >>confdefs.h <<_ACEOF
  19305. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19306. _ACEOF
  19307. { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  19308. echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
  19309. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  19310. echo $ECHO_N "(cached) $ECHO_C" >&6
  19311. else
  19312. ac_check_lib_save_LIBS=$LIBS
  19313. LIBS="-lpthread $LIBS"
  19314. cat >conftest.$ac_ext <<_ACEOF
  19315. /* confdefs.h. */
  19316. _ACEOF
  19317. cat confdefs.h >>conftest.$ac_ext
  19318. cat >>conftest.$ac_ext <<_ACEOF
  19319. /* end confdefs.h. */
  19320. /* Override any GCC internal prototype to avoid an error.
  19321. Use char because int might match the return type of a GCC
  19322. builtin and then its argument prototype would still apply. */
  19323. #ifdef __cplusplus
  19324. extern "C"
  19325. #endif
  19326. char pthread_create ();
  19327. int
  19328. main ()
  19329. {
  19330. return pthread_create ();
  19331. ;
  19332. return 0;
  19333. }
  19334. _ACEOF
  19335. rm -f conftest.$ac_objext conftest$ac_exeext
  19336. if { (ac_try="$ac_link"
  19337. case "(($ac_try" in
  19338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19339. *) ac_try_echo=$ac_try;;
  19340. esac
  19341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19342. (eval "$ac_link") 2>conftest.er1
  19343. ac_status=$?
  19344. grep -v '^ *+' conftest.er1 >conftest.err
  19345. rm -f conftest.er1
  19346. cat conftest.err >&5
  19347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19348. (exit $ac_status); } && {
  19349. test -z "$ac_c_werror_flag" ||
  19350. test ! -s conftest.err
  19351. } && test -s conftest$ac_exeext &&
  19352. $as_test_x conftest$ac_exeext; then
  19353. ac_cv_lib_pthread_pthread_create=yes
  19354. else
  19355. echo "$as_me: failed program was:" >&5
  19356. sed 's/^/| /' conftest.$ac_ext >&5
  19357. ac_cv_lib_pthread_pthread_create=no
  19358. fi
  19359. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19360. conftest$ac_exeext conftest.$ac_ext
  19361. LIBS=$ac_check_lib_save_LIBS
  19362. fi
  19363. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  19364. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
  19365. if test $ac_cv_lib_pthread_pthread_create = yes; then
  19366. cat >>confdefs.h <<\_ACEOF
  19367. #define HAVE_LIBPTHREAD
  19368. _ACEOF
  19369. if test x$with_pthread = x; then
  19370. PTHREAD_LIBS="-lpthread"
  19371. else
  19372. PTHREAD_CFLAGS="-I$with_pthread/include"
  19373. PTHREAD_LIBS="-L$with_pthread/lib -lpthread"
  19374. fi
  19375. fi
  19376. fi
  19377. done
  19378. if test x$PTHREAD_LIBS = x; then
  19379. { { echo "$as_me:$LINENO: error: Cannot find the POSIX threads library" >&5
  19380. echo "$as_me: error: Cannot find the POSIX threads library" >&2;}
  19381. { (exit 1); exit 1; }; }
  19382. fi
  19383. ################################
  19384. # Check for the RT library
  19385. ################################
  19386. # Check whether --with-rt was given.
  19387. if test "${with_rt+set}" = set; then
  19388. withval=$with_rt;
  19389. fi
  19390. { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
  19391. echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
  19392. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
  19393. echo $ECHO_N "(cached) $ECHO_C" >&6
  19394. else
  19395. ac_check_lib_save_LIBS=$LIBS
  19396. LIBS="-lrt $LIBS"
  19397. cat >conftest.$ac_ext <<_ACEOF
  19398. /* confdefs.h. */
  19399. _ACEOF
  19400. cat confdefs.h >>conftest.$ac_ext
  19401. cat >>conftest.$ac_ext <<_ACEOF
  19402. /* end confdefs.h. */
  19403. /* Override any GCC internal prototype to avoid an error.
  19404. Use char because int might match the return type of a GCC
  19405. builtin and then its argument prototype would still apply. */
  19406. #ifdef __cplusplus
  19407. extern "C"
  19408. #endif
  19409. char clock_gettime ();
  19410. int
  19411. main ()
  19412. {
  19413. return clock_gettime ();
  19414. ;
  19415. return 0;
  19416. }
  19417. _ACEOF
  19418. rm -f conftest.$ac_objext conftest$ac_exeext
  19419. if { (ac_try="$ac_link"
  19420. case "(($ac_try" in
  19421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19422. *) ac_try_echo=$ac_try;;
  19423. esac
  19424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19425. (eval "$ac_link") 2>conftest.er1
  19426. ac_status=$?
  19427. grep -v '^ *+' conftest.er1 >conftest.err
  19428. rm -f conftest.er1
  19429. cat conftest.err >&5
  19430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19431. (exit $ac_status); } && {
  19432. test -z "$ac_c_werror_flag" ||
  19433. test ! -s conftest.err
  19434. } && test -s conftest$ac_exeext &&
  19435. $as_test_x conftest$ac_exeext; then
  19436. ac_cv_lib_rt_clock_gettime=yes
  19437. else
  19438. echo "$as_me: failed program was:" >&5
  19439. sed 's/^/| /' conftest.$ac_ext >&5
  19440. ac_cv_lib_rt_clock_gettime=no
  19441. fi
  19442. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19443. conftest$ac_exeext conftest.$ac_ext
  19444. LIBS=$ac_check_lib_save_LIBS
  19445. fi
  19446. { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
  19447. echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
  19448. if test $ac_cv_lib_rt_clock_gettime = yes; then
  19449. cat >>confdefs.h <<\_ACEOF
  19450. #define HAVE_LIBRT
  19451. _ACEOF
  19452. if test x$with_rt = x; then
  19453. RT_LIBS="-lrt"
  19454. else
  19455. RT_CFLAGS="-I$with_rt/include"
  19456. RT_LIBS="-L$with_rt/lib -lrt"
  19457. fi
  19458. fi
  19459. ################################
  19460. # Check for the TCL library
  19461. ################################
  19462. TCL_CONFIG=${libdir}/tclConfig.sh
  19463. # Check whether --with-tcl was given.
  19464. if test "${with_tcl+set}" = set; then
  19465. withval=$with_tcl;
  19466. fi
  19467. if test -e $TCL_CONFIG; then
  19468. . ${TCL_CONFIG}; # get TCL_VERSION
  19469. for ac_header in tcl.h
  19470. do
  19471. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19472. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19473. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19474. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19475. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19476. echo $ECHO_N "(cached) $ECHO_C" >&6
  19477. fi
  19478. ac_res=`eval echo '${'$as_ac_Header'}'`
  19479. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19480. echo "${ECHO_T}$ac_res" >&6; }
  19481. else
  19482. # Is the header compilable?
  19483. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19484. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19485. cat >conftest.$ac_ext <<_ACEOF
  19486. /* confdefs.h. */
  19487. _ACEOF
  19488. cat confdefs.h >>conftest.$ac_ext
  19489. cat >>conftest.$ac_ext <<_ACEOF
  19490. /* end confdefs.h. */
  19491. $ac_includes_default
  19492. #include <$ac_header>
  19493. _ACEOF
  19494. rm -f conftest.$ac_objext
  19495. if { (ac_try="$ac_compile"
  19496. case "(($ac_try" in
  19497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19498. *) ac_try_echo=$ac_try;;
  19499. esac
  19500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19501. (eval "$ac_compile") 2>conftest.er1
  19502. ac_status=$?
  19503. grep -v '^ *+' conftest.er1 >conftest.err
  19504. rm -f conftest.er1
  19505. cat conftest.err >&5
  19506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19507. (exit $ac_status); } && {
  19508. test -z "$ac_c_werror_flag" ||
  19509. test ! -s conftest.err
  19510. } && test -s conftest.$ac_objext; then
  19511. ac_header_compiler=yes
  19512. else
  19513. echo "$as_me: failed program was:" >&5
  19514. sed 's/^/| /' conftest.$ac_ext >&5
  19515. ac_header_compiler=no
  19516. fi
  19517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19518. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19519. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19520. # Is the header present?
  19521. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19522. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19523. cat >conftest.$ac_ext <<_ACEOF
  19524. /* confdefs.h. */
  19525. _ACEOF
  19526. cat confdefs.h >>conftest.$ac_ext
  19527. cat >>conftest.$ac_ext <<_ACEOF
  19528. /* end confdefs.h. */
  19529. #include <$ac_header>
  19530. _ACEOF
  19531. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19532. case "(($ac_try" in
  19533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19534. *) ac_try_echo=$ac_try;;
  19535. esac
  19536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19537. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19538. ac_status=$?
  19539. grep -v '^ *+' conftest.er1 >conftest.err
  19540. rm -f conftest.er1
  19541. cat conftest.err >&5
  19542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19543. (exit $ac_status); } >/dev/null && {
  19544. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19545. test ! -s conftest.err
  19546. }; then
  19547. ac_header_preproc=yes
  19548. else
  19549. echo "$as_me: failed program was:" >&5
  19550. sed 's/^/| /' conftest.$ac_ext >&5
  19551. ac_header_preproc=no
  19552. fi
  19553. rm -f conftest.err conftest.$ac_ext
  19554. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19555. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19556. # So? What about this header?
  19557. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19558. yes:no: )
  19559. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19560. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19561. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19562. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19563. ac_header_preproc=yes
  19564. ;;
  19565. no:yes:* )
  19566. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19567. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19568. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19569. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19570. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19571. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19572. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19573. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19574. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19575. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19576. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19577. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19578. ( cat <<\_ASBOX
  19579. ## ---------------------------------------------------------- ##
  19580. ## Report this to gmckerrell at users dot sourceforge dot net ##
  19581. ## ---------------------------------------------------------- ##
  19582. _ASBOX
  19583. ) | sed "s/^/$as_me: WARNING: /" >&2
  19584. ;;
  19585. esac
  19586. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19587. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19588. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19589. echo $ECHO_N "(cached) $ECHO_C" >&6
  19590. else
  19591. eval "$as_ac_Header=\$ac_header_preproc"
  19592. fi
  19593. ac_res=`eval echo '${'$as_ac_Header'}'`
  19594. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19595. echo "${ECHO_T}$ac_res" >&6; }
  19596. fi
  19597. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19598. cat >>confdefs.h <<_ACEOF
  19599. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19600. _ACEOF
  19601. { echo "$as_me:$LINENO: checking for Tcl_CreateInterp in -ltcl" >&5
  19602. echo $ECHO_N "checking for Tcl_CreateInterp in -ltcl... $ECHO_C" >&6; }
  19603. if test "${ac_cv_lib_tcl_Tcl_CreateInterp+set}" = set; then
  19604. echo $ECHO_N "(cached) $ECHO_C" >&6
  19605. else
  19606. ac_check_lib_save_LIBS=$LIBS
  19607. LIBS="-ltcl $LIBS"
  19608. cat >conftest.$ac_ext <<_ACEOF
  19609. /* confdefs.h. */
  19610. _ACEOF
  19611. cat confdefs.h >>conftest.$ac_ext
  19612. cat >>conftest.$ac_ext <<_ACEOF
  19613. /* end confdefs.h. */
  19614. /* Override any GCC internal prototype to avoid an error.
  19615. Use char because int might match the return type of a GCC
  19616. builtin and then its argument prototype would still apply. */
  19617. #ifdef __cplusplus
  19618. extern "C"
  19619. #endif
  19620. char Tcl_CreateInterp ();
  19621. int
  19622. main ()
  19623. {
  19624. return Tcl_CreateInterp ();
  19625. ;
  19626. return 0;
  19627. }
  19628. _ACEOF
  19629. rm -f conftest.$ac_objext conftest$ac_exeext
  19630. if { (ac_try="$ac_link"
  19631. case "(($ac_try" in
  19632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19633. *) ac_try_echo=$ac_try;;
  19634. esac
  19635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19636. (eval "$ac_link") 2>conftest.er1
  19637. ac_status=$?
  19638. grep -v '^ *+' conftest.er1 >conftest.err
  19639. rm -f conftest.er1
  19640. cat conftest.err >&5
  19641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19642. (exit $ac_status); } && {
  19643. test -z "$ac_c_werror_flag" ||
  19644. test ! -s conftest.err
  19645. } && test -s conftest$ac_exeext &&
  19646. $as_test_x conftest$ac_exeext; then
  19647. ac_cv_lib_tcl_Tcl_CreateInterp=yes
  19648. else
  19649. echo "$as_me: failed program was:" >&5
  19650. sed 's/^/| /' conftest.$ac_ext >&5
  19651. ac_cv_lib_tcl_Tcl_CreateInterp=no
  19652. fi
  19653. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19654. conftest$ac_exeext conftest.$ac_ext
  19655. LIBS=$ac_check_lib_save_LIBS
  19656. fi
  19657. { echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_Tcl_CreateInterp" >&5
  19658. echo "${ECHO_T}$ac_cv_lib_tcl_Tcl_CreateInterp" >&6; }
  19659. if test $ac_cv_lib_tcl_Tcl_CreateInterp = yes; then
  19660. if test x$with_tcl = x; then
  19661. TCL_LIBS="-ltcl"
  19662. else
  19663. TCL_CFLAGS="-I${TCL_DIR}/include"
  19664. TCL_LIBS="-L${TCL_DIR}/lib -ltcl"
  19665. fi
  19666. fi
  19667. fi
  19668. done
  19669. if test x$TCL_LIBS != x; then
  19670. cat >>confdefs.h <<\_ACEOF
  19671. #define HAVE_LIBTCL
  19672. _ACEOF
  19673. fi
  19674. fi
  19675. ################################
  19676. # Check for inclusion of lub_heap
  19677. ################################
  19678. # Check whether --enable-lubheap was given.
  19679. if test "${enable_lubheap+set}" = set; then
  19680. enableval=$enable_lubheap;
  19681. else
  19682. enable_lubheap=no
  19683. fi
  19684. if test x$enable_lubheap = xyes; then
  19685. LUBHEAP_TRUE=
  19686. LUBHEAP_FALSE='#'
  19687. else
  19688. LUBHEAP_TRUE='#'
  19689. LUBHEAP_FALSE=
  19690. fi
  19691. if test x$enable_lubheap = xyes; then
  19692. { echo "$as_me:$LINENO: WARNING: Replacing standard memory libraries with lubheap" >&5
  19693. echo "$as_me: WARNING: Replacing standard memory libraries with lubheap" >&2;}
  19694. LUBHEAP_LIBS="-llubheap"
  19695. LUBHEAP_CFLAGS=""
  19696. if test x$LUBHEAP_LIBS = x; then
  19697. { { echo "$as_me:$LINENO: error: Cannot find the \"Little Useful Bits Heap\" library" >&5
  19698. echo "$as_me: error: Cannot find the \"Little Useful Bits Heap\" library" >&2;}
  19699. { (exit 1); exit 1; }; }
  19700. fi
  19701. fi
  19702. ################################
  19703. # Check for linkage with GPL libraries
  19704. ################################
  19705. # Check whether --enable-gpl was given.
  19706. if test "${enable_gpl+set}" = set; then
  19707. enableval=$enable_gpl;
  19708. else
  19709. enable_gpl=yes
  19710. fi
  19711. if test x$enable_gpl = xyes; then
  19712. ################################
  19713. # Check for BFD library
  19714. ################################
  19715. { echo "$as_me:$LINENO: WARNING: Linking with GPL licence libraries" >&5
  19716. echo "$as_me: WARNING: Linking with GPL licence libraries" >&2;}
  19717. for ac_header in bfd.h
  19718. do
  19719. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19720. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19721. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19722. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19723. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19724. echo $ECHO_N "(cached) $ECHO_C" >&6
  19725. fi
  19726. ac_res=`eval echo '${'$as_ac_Header'}'`
  19727. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19728. echo "${ECHO_T}$ac_res" >&6; }
  19729. else
  19730. # Is the header compilable?
  19731. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19732. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  19733. cat >conftest.$ac_ext <<_ACEOF
  19734. /* confdefs.h. */
  19735. _ACEOF
  19736. cat confdefs.h >>conftest.$ac_ext
  19737. cat >>conftest.$ac_ext <<_ACEOF
  19738. /* end confdefs.h. */
  19739. $ac_includes_default
  19740. #include <$ac_header>
  19741. _ACEOF
  19742. rm -f conftest.$ac_objext
  19743. if { (ac_try="$ac_compile"
  19744. case "(($ac_try" in
  19745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19746. *) ac_try_echo=$ac_try;;
  19747. esac
  19748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19749. (eval "$ac_compile") 2>conftest.er1
  19750. ac_status=$?
  19751. grep -v '^ *+' conftest.er1 >conftest.err
  19752. rm -f conftest.er1
  19753. cat conftest.err >&5
  19754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19755. (exit $ac_status); } && {
  19756. test -z "$ac_c_werror_flag" ||
  19757. test ! -s conftest.err
  19758. } && test -s conftest.$ac_objext; then
  19759. ac_header_compiler=yes
  19760. else
  19761. echo "$as_me: failed program was:" >&5
  19762. sed 's/^/| /' conftest.$ac_ext >&5
  19763. ac_header_compiler=no
  19764. fi
  19765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19766. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19767. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19768. # Is the header present?
  19769. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19770. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  19771. cat >conftest.$ac_ext <<_ACEOF
  19772. /* confdefs.h. */
  19773. _ACEOF
  19774. cat confdefs.h >>conftest.$ac_ext
  19775. cat >>conftest.$ac_ext <<_ACEOF
  19776. /* end confdefs.h. */
  19777. #include <$ac_header>
  19778. _ACEOF
  19779. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19780. case "(($ac_try" in
  19781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19782. *) ac_try_echo=$ac_try;;
  19783. esac
  19784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19785. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19786. ac_status=$?
  19787. grep -v '^ *+' conftest.er1 >conftest.err
  19788. rm -f conftest.er1
  19789. cat conftest.err >&5
  19790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19791. (exit $ac_status); } >/dev/null && {
  19792. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19793. test ! -s conftest.err
  19794. }; then
  19795. ac_header_preproc=yes
  19796. else
  19797. echo "$as_me: failed program was:" >&5
  19798. sed 's/^/| /' conftest.$ac_ext >&5
  19799. ac_header_preproc=no
  19800. fi
  19801. rm -f conftest.err conftest.$ac_ext
  19802. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19803. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19804. # So? What about this header?
  19805. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19806. yes:no: )
  19807. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19808. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19809. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19810. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19811. ac_header_preproc=yes
  19812. ;;
  19813. no:yes:* )
  19814. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19815. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19816. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19817. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19818. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19819. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19820. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19821. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19822. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19823. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19824. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19825. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19826. ( cat <<\_ASBOX
  19827. ## ---------------------------------------------------------- ##
  19828. ## Report this to gmckerrell at users dot sourceforge dot net ##
  19829. ## ---------------------------------------------------------- ##
  19830. _ASBOX
  19831. ) | sed "s/^/$as_me: WARNING: /" >&2
  19832. ;;
  19833. esac
  19834. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  19835. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  19836. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19837. echo $ECHO_N "(cached) $ECHO_C" >&6
  19838. else
  19839. eval "$as_ac_Header=\$ac_header_preproc"
  19840. fi
  19841. ac_res=`eval echo '${'$as_ac_Header'}'`
  19842. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19843. echo "${ECHO_T}$ac_res" >&6; }
  19844. fi
  19845. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19846. cat >>confdefs.h <<_ACEOF
  19847. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19848. _ACEOF
  19849. { echo "$as_me:$LINENO: checking for bfd_init in -lbfd" >&5
  19850. echo $ECHO_N "checking for bfd_init in -lbfd... $ECHO_C" >&6; }
  19851. if test "${ac_cv_lib_bfd_bfd_init+set}" = set; then
  19852. echo $ECHO_N "(cached) $ECHO_C" >&6
  19853. else
  19854. ac_check_lib_save_LIBS=$LIBS
  19855. LIBS="-lbfd $LIBS"
  19856. cat >conftest.$ac_ext <<_ACEOF
  19857. /* confdefs.h. */
  19858. _ACEOF
  19859. cat confdefs.h >>conftest.$ac_ext
  19860. cat >>conftest.$ac_ext <<_ACEOF
  19861. /* end confdefs.h. */
  19862. /* Override any GCC internal prototype to avoid an error.
  19863. Use char because int might match the return type of a GCC
  19864. builtin and then its argument prototype would still apply. */
  19865. #ifdef __cplusplus
  19866. extern "C"
  19867. #endif
  19868. char bfd_init ();
  19869. int
  19870. main ()
  19871. {
  19872. return bfd_init ();
  19873. ;
  19874. return 0;
  19875. }
  19876. _ACEOF
  19877. rm -f conftest.$ac_objext conftest$ac_exeext
  19878. if { (ac_try="$ac_link"
  19879. case "(($ac_try" in
  19880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19881. *) ac_try_echo=$ac_try;;
  19882. esac
  19883. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19884. (eval "$ac_link") 2>conftest.er1
  19885. ac_status=$?
  19886. grep -v '^ *+' conftest.er1 >conftest.err
  19887. rm -f conftest.er1
  19888. cat conftest.err >&5
  19889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19890. (exit $ac_status); } && {
  19891. test -z "$ac_c_werror_flag" ||
  19892. test ! -s conftest.err
  19893. } && test -s conftest$ac_exeext &&
  19894. $as_test_x conftest$ac_exeext; then
  19895. ac_cv_lib_bfd_bfd_init=yes
  19896. else
  19897. echo "$as_me: failed program was:" >&5
  19898. sed 's/^/| /' conftest.$ac_ext >&5
  19899. ac_cv_lib_bfd_bfd_init=no
  19900. fi
  19901. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19902. conftest$ac_exeext conftest.$ac_ext
  19903. LIBS=$ac_check_lib_save_LIBS
  19904. fi
  19905. { echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_init" >&5
  19906. echo "${ECHO_T}$ac_cv_lib_bfd_bfd_init" >&6; }
  19907. if test $ac_cv_lib_bfd_bfd_init = yes; then
  19908. cat >>confdefs.h <<\_ACEOF
  19909. #define HAVE_LIBBFD
  19910. _ACEOF
  19911. BFD_LIBS="-lbfd -liberty"
  19912. { echo "$as_me:$LINENO: checking for libintl_dgettext in -lintl" >&5
  19913. echo $ECHO_N "checking for libintl_dgettext in -lintl... $ECHO_C" >&6; }
  19914. if test "${ac_cv_lib_intl_libintl_dgettext+set}" = set; then
  19915. echo $ECHO_N "(cached) $ECHO_C" >&6
  19916. else
  19917. ac_check_lib_save_LIBS=$LIBS
  19918. LIBS="-lintl $LIBS"
  19919. cat >conftest.$ac_ext <<_ACEOF
  19920. /* confdefs.h. */
  19921. _ACEOF
  19922. cat confdefs.h >>conftest.$ac_ext
  19923. cat >>conftest.$ac_ext <<_ACEOF
  19924. /* end confdefs.h. */
  19925. /* Override any GCC internal prototype to avoid an error.
  19926. Use char because int might match the return type of a GCC
  19927. builtin and then its argument prototype would still apply. */
  19928. #ifdef __cplusplus
  19929. extern "C"
  19930. #endif
  19931. char libintl_dgettext ();
  19932. int
  19933. main ()
  19934. {
  19935. return libintl_dgettext ();
  19936. ;
  19937. return 0;
  19938. }
  19939. _ACEOF
  19940. rm -f conftest.$ac_objext conftest$ac_exeext
  19941. if { (ac_try="$ac_link"
  19942. case "(($ac_try" in
  19943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19944. *) ac_try_echo=$ac_try;;
  19945. esac
  19946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19947. (eval "$ac_link") 2>conftest.er1
  19948. ac_status=$?
  19949. grep -v '^ *+' conftest.er1 >conftest.err
  19950. rm -f conftest.er1
  19951. cat conftest.err >&5
  19952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19953. (exit $ac_status); } && {
  19954. test -z "$ac_c_werror_flag" ||
  19955. test ! -s conftest.err
  19956. } && test -s conftest$ac_exeext &&
  19957. $as_test_x conftest$ac_exeext; then
  19958. ac_cv_lib_intl_libintl_dgettext=yes
  19959. else
  19960. echo "$as_me: failed program was:" >&5
  19961. sed 's/^/| /' conftest.$ac_ext >&5
  19962. ac_cv_lib_intl_libintl_dgettext=no
  19963. fi
  19964. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19965. conftest$ac_exeext conftest.$ac_ext
  19966. LIBS=$ac_check_lib_save_LIBS
  19967. fi
  19968. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_libintl_dgettext" >&5
  19969. echo "${ECHO_T}$ac_cv_lib_intl_libintl_dgettext" >&6; }
  19970. if test $ac_cv_lib_intl_libintl_dgettext = yes; then
  19971. cat >>confdefs.h <<\_ACEOF
  19972. #define HAVE_LIBINTL
  19973. _ACEOF
  19974. BFD_LIBS="$BFD_LIBS -lintl"
  19975. fi
  19976. fi
  19977. fi
  19978. done
  19979. else
  19980. { echo "$as_me:$LINENO: WARNING: Skipping BFD library checks because of GPL Licence" >&5
  19981. echo "$as_me: WARNING: Skipping BFD library checks because of GPL Licence" >&2;}
  19982. fi
  19983. ac_config_files="$ac_config_files Makefile"
  19984. cat >confcache <<\_ACEOF
  19985. # This file is a shell script that caches the results of configure
  19986. # tests run on this system so they can be shared between configure
  19987. # scripts and configure runs, see configure's option --config-cache.
  19988. # It is not useful on other systems. If it contains results you don't
  19989. # want to keep, you may remove or edit it.
  19990. #
  19991. # config.status only pays attention to the cache file if you give it
  19992. # the --recheck option to rerun configure.
  19993. #
  19994. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19995. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19996. # following values.
  19997. _ACEOF
  19998. # The following way of writing the cache mishandles newlines in values,
  19999. # but we know of no workaround that is simple, portable, and efficient.
  20000. # So, we kill variables containing newlines.
  20001. # Ultrix sh set writes to stderr and can't be redirected directly,
  20002. # and sets the high bit in the cache file unless we assign to the vars.
  20003. (
  20004. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20005. eval ac_val=\$$ac_var
  20006. case $ac_val in #(
  20007. *${as_nl}*)
  20008. case $ac_var in #(
  20009. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  20010. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  20011. esac
  20012. case $ac_var in #(
  20013. _ | IFS | as_nl) ;; #(
  20014. *) $as_unset $ac_var ;;
  20015. esac ;;
  20016. esac
  20017. done
  20018. (set) 2>&1 |
  20019. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20020. *${as_nl}ac_space=\ *)
  20021. # `set' does not quote correctly, so add quotes (double-quote
  20022. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20023. sed -n \
  20024. "s/'/'\\\\''/g;
  20025. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20026. ;; #(
  20027. *)
  20028. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20029. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20030. ;;
  20031. esac |
  20032. sort
  20033. ) |
  20034. sed '
  20035. /^ac_cv_env_/b end
  20036. t clear
  20037. :clear
  20038. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20039. t end
  20040. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20041. :end' >>confcache
  20042. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20043. if test -w "$cache_file"; then
  20044. test "x$cache_file" != "x/dev/null" &&
  20045. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  20046. echo "$as_me: updating cache $cache_file" >&6;}
  20047. cat confcache >$cache_file
  20048. else
  20049. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  20050. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20051. fi
  20052. fi
  20053. rm -f confcache
  20054. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20055. # Let make expand exec_prefix.
  20056. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20057. DEFS=-DHAVE_CONFIG_H
  20058. ac_libobjs=
  20059. ac_ltlibobjs=
  20060. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20061. # 1. Remove the extension, and $U if already installed.
  20062. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20063. ac_i=`echo "$ac_i" | sed "$ac_script"`
  20064. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20065. # will be set to the directory where LIBOBJS objects are built.
  20066. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20067. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  20068. done
  20069. LIBOBJS=$ac_libobjs
  20070. LTLIBOBJS=$ac_ltlibobjs
  20071. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20072. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20073. Usually this means the macro was only invoked conditionally." >&5
  20074. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20075. Usually this means the macro was only invoked conditionally." >&2;}
  20076. { (exit 1); exit 1; }; }
  20077. fi
  20078. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20079. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20080. Usually this means the macro was only invoked conditionally." >&5
  20081. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20082. Usually this means the macro was only invoked conditionally." >&2;}
  20083. { (exit 1); exit 1; }; }
  20084. fi
  20085. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20086. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20087. Usually this means the macro was only invoked conditionally." >&5
  20088. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20089. Usually this means the macro was only invoked conditionally." >&2;}
  20090. { (exit 1); exit 1; }; }
  20091. fi
  20092. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  20093. { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
  20094. Usually this means the macro was only invoked conditionally." >&5
  20095. echo "$as_me: error: conditional \"DEBUG\" was never defined.
  20096. Usually this means the macro was only invoked conditionally." >&2;}
  20097. { (exit 1); exit 1; }; }
  20098. fi
  20099. if test -z "${LUBHEAP_TRUE}" && test -z "${LUBHEAP_FALSE}"; then
  20100. { { echo "$as_me:$LINENO: error: conditional \"LUBHEAP\" was never defined.
  20101. Usually this means the macro was only invoked conditionally." >&5
  20102. echo "$as_me: error: conditional \"LUBHEAP\" was never defined.
  20103. Usually this means the macro was only invoked conditionally." >&2;}
  20104. { (exit 1); exit 1; }; }
  20105. fi
  20106. : ${CONFIG_STATUS=./config.status}
  20107. ac_clean_files_save=$ac_clean_files
  20108. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20109. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  20110. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20111. cat >$CONFIG_STATUS <<_ACEOF
  20112. #! $SHELL
  20113. # Generated by $as_me.
  20114. # Run this file to recreate the current configuration.
  20115. # Compiler output produced by configure, useful for debugging
  20116. # configure, is in config.log if it exists.
  20117. debug=false
  20118. ac_cs_recheck=false
  20119. ac_cs_silent=false
  20120. SHELL=\${CONFIG_SHELL-$SHELL}
  20121. _ACEOF
  20122. cat >>$CONFIG_STATUS <<\_ACEOF
  20123. ## --------------------- ##
  20124. ## M4sh Initialization. ##
  20125. ## --------------------- ##
  20126. # Be more Bourne compatible
  20127. DUALCASE=1; export DUALCASE # for MKS sh
  20128. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20129. emulate sh
  20130. NULLCMD=:
  20131. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20132. # is contrary to our usage. Disable this feature.
  20133. alias -g '${1+"$@"}'='"$@"'
  20134. setopt NO_GLOB_SUBST
  20135. else
  20136. case `(set -o) 2>/dev/null` in
  20137. *posix*) set -o posix ;;
  20138. esac
  20139. fi
  20140. # PATH needs CR
  20141. # Avoid depending upon Character Ranges.
  20142. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20143. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20144. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20145. as_cr_digits='0123456789'
  20146. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20147. # The user is always right.
  20148. if test "${PATH_SEPARATOR+set}" != set; then
  20149. echo "#! /bin/sh" >conf$$.sh
  20150. echo "exit 0" >>conf$$.sh
  20151. chmod +x conf$$.sh
  20152. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  20153. PATH_SEPARATOR=';'
  20154. else
  20155. PATH_SEPARATOR=:
  20156. fi
  20157. rm -f conf$$.sh
  20158. fi
  20159. # Support unset when possible.
  20160. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20161. as_unset=unset
  20162. else
  20163. as_unset=false
  20164. fi
  20165. # IFS
  20166. # We need space, tab and new line, in precisely that order. Quoting is
  20167. # there to prevent editors from complaining about space-tab.
  20168. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20169. # splitting by setting IFS to empty value.)
  20170. as_nl='
  20171. '
  20172. IFS=" "" $as_nl"
  20173. # Find who we are. Look in the path if we contain no directory separator.
  20174. case $0 in
  20175. *[\\/]* ) as_myself=$0 ;;
  20176. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20177. for as_dir in $PATH
  20178. do
  20179. IFS=$as_save_IFS
  20180. test -z "$as_dir" && as_dir=.
  20181. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20182. done
  20183. IFS=$as_save_IFS
  20184. ;;
  20185. esac
  20186. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20187. # in which case we are not to be found in the path.
  20188. if test "x$as_myself" = x; then
  20189. as_myself=$0
  20190. fi
  20191. if test ! -f "$as_myself"; then
  20192. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20193. { (exit 1); exit 1; }
  20194. fi
  20195. # Work around bugs in pre-3.0 UWIN ksh.
  20196. for as_var in ENV MAIL MAILPATH
  20197. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20198. done
  20199. PS1='$ '
  20200. PS2='> '
  20201. PS4='+ '
  20202. # NLS nuisances.
  20203. for as_var in \
  20204. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  20205. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  20206. LC_TELEPHONE LC_TIME
  20207. do
  20208. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  20209. eval $as_var=C; export $as_var
  20210. else
  20211. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20212. fi
  20213. done
  20214. # Required to use basename.
  20215. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20216. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20217. as_expr=expr
  20218. else
  20219. as_expr=false
  20220. fi
  20221. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20222. as_basename=basename
  20223. else
  20224. as_basename=false
  20225. fi
  20226. # Name of the executable.
  20227. as_me=`$as_basename -- "$0" ||
  20228. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20229. X"$0" : 'X\(//\)$' \| \
  20230. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20231. echo X/"$0" |
  20232. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20233. s//\1/
  20234. q
  20235. }
  20236. /^X\/\(\/\/\)$/{
  20237. s//\1/
  20238. q
  20239. }
  20240. /^X\/\(\/\).*/{
  20241. s//\1/
  20242. q
  20243. }
  20244. s/.*/./; q'`
  20245. # CDPATH.
  20246. $as_unset CDPATH
  20247. as_lineno_1=$LINENO
  20248. as_lineno_2=$LINENO
  20249. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20250. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20251. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20252. # uniformly replaced by the line number. The first 'sed' inserts a
  20253. # line-number line after each line using $LINENO; the second 'sed'
  20254. # does the real work. The second script uses 'N' to pair each
  20255. # line-number line with the line containing $LINENO, and appends
  20256. # trailing '-' during substitution so that $LINENO is not a special
  20257. # case at line end.
  20258. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20259. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20260. # E. McMahon (1931-1989) for sed's syntax. :-)
  20261. sed -n '
  20262. p
  20263. /[$]LINENO/=
  20264. ' <$as_myself |
  20265. sed '
  20266. s/[$]LINENO.*/&-/
  20267. t lineno
  20268. b
  20269. :lineno
  20270. N
  20271. :loop
  20272. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20273. t loop
  20274. s/-\n.*//
  20275. ' >$as_me.lineno &&
  20276. chmod +x "$as_me.lineno" ||
  20277. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20278. { (exit 1); exit 1; }; }
  20279. # Don't try to exec as it changes $[0], causing all sort of problems
  20280. # (the dirname of $[0] is not the place where we might find the
  20281. # original and so on. Autoconf is especially sensitive to this).
  20282. . "./$as_me.lineno"
  20283. # Exit status is that of the last command.
  20284. exit
  20285. }
  20286. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20287. as_dirname=dirname
  20288. else
  20289. as_dirname=false
  20290. fi
  20291. ECHO_C= ECHO_N= ECHO_T=
  20292. case `echo -n x` in
  20293. -n*)
  20294. case `echo 'x\c'` in
  20295. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20296. *) ECHO_C='\c';;
  20297. esac;;
  20298. *)
  20299. ECHO_N='-n';;
  20300. esac
  20301. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20302. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20303. as_expr=expr
  20304. else
  20305. as_expr=false
  20306. fi
  20307. rm -f conf$$ conf$$.exe conf$$.file
  20308. if test -d conf$$.dir; then
  20309. rm -f conf$$.dir/conf$$.file
  20310. else
  20311. rm -f conf$$.dir
  20312. mkdir conf$$.dir
  20313. fi
  20314. echo >conf$$.file
  20315. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20316. as_ln_s='ln -s'
  20317. # ... but there are two gotchas:
  20318. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20319. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20320. # In both cases, we have to default to `cp -p'.
  20321. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20322. as_ln_s='cp -p'
  20323. elif ln conf$$.file conf$$ 2>/dev/null; then
  20324. as_ln_s=ln
  20325. else
  20326. as_ln_s='cp -p'
  20327. fi
  20328. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20329. rmdir conf$$.dir 2>/dev/null
  20330. if mkdir -p . 2>/dev/null; then
  20331. as_mkdir_p=:
  20332. else
  20333. test -d ./-p && rmdir ./-p
  20334. as_mkdir_p=false
  20335. fi
  20336. if test -x / >/dev/null 2>&1; then
  20337. as_test_x='test -x'
  20338. else
  20339. if ls -dL / >/dev/null 2>&1; then
  20340. as_ls_L_option=L
  20341. else
  20342. as_ls_L_option=
  20343. fi
  20344. as_test_x='
  20345. eval sh -c '\''
  20346. if test -d "$1"; then
  20347. test -d "$1/.";
  20348. else
  20349. case $1 in
  20350. -*)set "./$1";;
  20351. esac;
  20352. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  20353. ???[sx]*):;;*)false;;esac;fi
  20354. '\'' sh
  20355. '
  20356. fi
  20357. as_executable_p=$as_test_x
  20358. # Sed expression to map a string onto a valid CPP name.
  20359. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20360. # Sed expression to map a string onto a valid variable name.
  20361. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20362. exec 6>&1
  20363. # Save the log message, to keep $[0] and so on meaningful, and to
  20364. # report actual input values of CONFIG_FILES etc. instead of their
  20365. # values after options handling.
  20366. ac_log="
  20367. This file was extended by clish $as_me 0.7.4alpha, which was
  20368. generated by GNU Autoconf 2.61. Invocation command line was
  20369. CONFIG_FILES = $CONFIG_FILES
  20370. CONFIG_HEADERS = $CONFIG_HEADERS
  20371. CONFIG_LINKS = $CONFIG_LINKS
  20372. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20373. $ $0 $@
  20374. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20375. "
  20376. _ACEOF
  20377. cat >>$CONFIG_STATUS <<_ACEOF
  20378. # Files that config.status was made for.
  20379. config_files="$ac_config_files"
  20380. config_headers="$ac_config_headers"
  20381. config_commands="$ac_config_commands"
  20382. _ACEOF
  20383. cat >>$CONFIG_STATUS <<\_ACEOF
  20384. ac_cs_usage="\
  20385. \`$as_me' instantiates files from templates according to the
  20386. current configuration.
  20387. Usage: $0 [OPTIONS] [FILE]...
  20388. -h, --help print this help, then exit
  20389. -V, --version print version number and configuration settings, then exit
  20390. -q, --quiet do not print progress messages
  20391. -d, --debug don't remove temporary files
  20392. --recheck update $as_me by reconfiguring in the same conditions
  20393. --file=FILE[:TEMPLATE]
  20394. instantiate the configuration file FILE
  20395. --header=FILE[:TEMPLATE]
  20396. instantiate the configuration header FILE
  20397. Configuration files:
  20398. $config_files
  20399. Configuration headers:
  20400. $config_headers
  20401. Configuration commands:
  20402. $config_commands
  20403. Report bugs to <bug-autoconf@gnu.org>."
  20404. _ACEOF
  20405. cat >>$CONFIG_STATUS <<_ACEOF
  20406. ac_cs_version="\\
  20407. clish config.status 0.7.4alpha
  20408. configured by $0, generated by GNU Autoconf 2.61,
  20409. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  20410. Copyright (C) 2006 Free Software Foundation, Inc.
  20411. This config.status script is free software; the Free Software Foundation
  20412. gives unlimited permission to copy, distribute and modify it."
  20413. ac_pwd='$ac_pwd'
  20414. srcdir='$srcdir'
  20415. INSTALL='$INSTALL'
  20416. MKDIR_P='$MKDIR_P'
  20417. _ACEOF
  20418. cat >>$CONFIG_STATUS <<\_ACEOF
  20419. # If no file are specified by the user, then we need to provide default
  20420. # value. By we need to know if files were specified by the user.
  20421. ac_need_defaults=:
  20422. while test $# != 0
  20423. do
  20424. case $1 in
  20425. --*=*)
  20426. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20427. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20428. ac_shift=:
  20429. ;;
  20430. *)
  20431. ac_option=$1
  20432. ac_optarg=$2
  20433. ac_shift=shift
  20434. ;;
  20435. esac
  20436. case $ac_option in
  20437. # Handling of the options.
  20438. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20439. ac_cs_recheck=: ;;
  20440. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20441. echo "$ac_cs_version"; exit ;;
  20442. --debug | --debu | --deb | --de | --d | -d )
  20443. debug=: ;;
  20444. --file | --fil | --fi | --f )
  20445. $ac_shift
  20446. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20447. ac_need_defaults=false;;
  20448. --header | --heade | --head | --hea )
  20449. $ac_shift
  20450. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20451. ac_need_defaults=false;;
  20452. --he | --h)
  20453. # Conflict between --help and --header
  20454. { echo "$as_me: error: ambiguous option: $1
  20455. Try \`$0 --help' for more information." >&2
  20456. { (exit 1); exit 1; }; };;
  20457. --help | --hel | -h )
  20458. echo "$ac_cs_usage"; exit ;;
  20459. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20460. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20461. ac_cs_silent=: ;;
  20462. # This is an error.
  20463. -*) { echo "$as_me: error: unrecognized option: $1
  20464. Try \`$0 --help' for more information." >&2
  20465. { (exit 1); exit 1; }; } ;;
  20466. *) ac_config_targets="$ac_config_targets $1"
  20467. ac_need_defaults=false ;;
  20468. esac
  20469. shift
  20470. done
  20471. ac_configure_extra_args=
  20472. if $ac_cs_silent; then
  20473. exec 6>/dev/null
  20474. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20475. fi
  20476. _ACEOF
  20477. cat >>$CONFIG_STATUS <<_ACEOF
  20478. if \$ac_cs_recheck; then
  20479. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20480. CONFIG_SHELL=$SHELL
  20481. export CONFIG_SHELL
  20482. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20483. fi
  20484. _ACEOF
  20485. cat >>$CONFIG_STATUS <<\_ACEOF
  20486. exec 5>>config.log
  20487. {
  20488. echo
  20489. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20490. ## Running $as_me. ##
  20491. _ASBOX
  20492. echo "$ac_log"
  20493. } >&5
  20494. _ACEOF
  20495. cat >>$CONFIG_STATUS <<_ACEOF
  20496. #
  20497. # INIT-COMMANDS
  20498. #
  20499. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20500. _ACEOF
  20501. cat >>$CONFIG_STATUS <<\_ACEOF
  20502. # Handling of arguments.
  20503. for ac_config_target in $ac_config_targets
  20504. do
  20505. case $ac_config_target in
  20506. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20507. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20508. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20509. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20510. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20511. { (exit 1); exit 1; }; };;
  20512. esac
  20513. done
  20514. # If the user did not use the arguments to specify the items to instantiate,
  20515. # then the envvar interface is used. Set only those that are not.
  20516. # We use the long form for the default assignment because of an extremely
  20517. # bizarre bug on SunOS 4.1.3.
  20518. if $ac_need_defaults; then
  20519. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20520. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20521. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20522. fi
  20523. # Have a temporary directory for convenience. Make it in the build tree
  20524. # simply because there is no reason against having it here, and in addition,
  20525. # creating and moving files from /tmp can sometimes cause problems.
  20526. # Hook for its removal unless debugging.
  20527. # Note that there is a small window in which the directory will not be cleaned:
  20528. # after its creation but before its name has been assigned to `$tmp'.
  20529. $debug ||
  20530. {
  20531. tmp=
  20532. trap 'exit_status=$?
  20533. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20534. ' 0
  20535. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20536. }
  20537. # Create a (secure) tmp directory for tmp files.
  20538. {
  20539. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20540. test -n "$tmp" && test -d "$tmp"
  20541. } ||
  20542. {
  20543. tmp=./conf$$-$RANDOM
  20544. (umask 077 && mkdir "$tmp")
  20545. } ||
  20546. {
  20547. echo "$me: cannot create a temporary directory in ." >&2
  20548. { (exit 1); exit 1; }
  20549. }
  20550. #
  20551. # Set up the sed scripts for CONFIG_FILES section.
  20552. #
  20553. # No need to generate the scripts if there are no CONFIG_FILES.
  20554. # This happens for instance when ./config.status config.h
  20555. if test -n "$CONFIG_FILES"; then
  20556. _ACEOF
  20557. ac_delim='%!_!# '
  20558. for ac_last_try in false false false false false :; do
  20559. cat >conf$$subs.sed <<_ACEOF
  20560. SHELL!$SHELL$ac_delim
  20561. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20562. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20563. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20564. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20565. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20566. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20567. exec_prefix!$exec_prefix$ac_delim
  20568. prefix!$prefix$ac_delim
  20569. program_transform_name!$program_transform_name$ac_delim
  20570. bindir!$bindir$ac_delim
  20571. sbindir!$sbindir$ac_delim
  20572. libexecdir!$libexecdir$ac_delim
  20573. datarootdir!$datarootdir$ac_delim
  20574. datadir!$datadir$ac_delim
  20575. sysconfdir!$sysconfdir$ac_delim
  20576. sharedstatedir!$sharedstatedir$ac_delim
  20577. localstatedir!$localstatedir$ac_delim
  20578. includedir!$includedir$ac_delim
  20579. oldincludedir!$oldincludedir$ac_delim
  20580. docdir!$docdir$ac_delim
  20581. infodir!$infodir$ac_delim
  20582. htmldir!$htmldir$ac_delim
  20583. dvidir!$dvidir$ac_delim
  20584. pdfdir!$pdfdir$ac_delim
  20585. psdir!$psdir$ac_delim
  20586. libdir!$libdir$ac_delim
  20587. localedir!$localedir$ac_delim
  20588. mandir!$mandir$ac_delim
  20589. DEFS!$DEFS$ac_delim
  20590. ECHO_C!$ECHO_C$ac_delim
  20591. ECHO_N!$ECHO_N$ac_delim
  20592. ECHO_T!$ECHO_T$ac_delim
  20593. LIBS!$LIBS$ac_delim
  20594. build_alias!$build_alias$ac_delim
  20595. host_alias!$host_alias$ac_delim
  20596. target_alias!$target_alias$ac_delim
  20597. CC!$CC$ac_delim
  20598. CFLAGS!$CFLAGS$ac_delim
  20599. LDFLAGS!$LDFLAGS$ac_delim
  20600. CPPFLAGS!$CPPFLAGS$ac_delim
  20601. ac_ct_CC!$ac_ct_CC$ac_delim
  20602. EXEEXT!$EXEEXT$ac_delim
  20603. OBJEXT!$OBJEXT$ac_delim
  20604. CXX!$CXX$ac_delim
  20605. CXXFLAGS!$CXXFLAGS$ac_delim
  20606. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20607. build!$build$ac_delim
  20608. build_cpu!$build_cpu$ac_delim
  20609. build_vendor!$build_vendor$ac_delim
  20610. build_os!$build_os$ac_delim
  20611. host!$host$ac_delim
  20612. host_cpu!$host_cpu$ac_delim
  20613. host_vendor!$host_vendor$ac_delim
  20614. host_os!$host_os$ac_delim
  20615. SED!$SED$ac_delim
  20616. GREP!$GREP$ac_delim
  20617. EGREP!$EGREP$ac_delim
  20618. LN_S!$LN_S$ac_delim
  20619. ECHO!$ECHO$ac_delim
  20620. AR!$AR$ac_delim
  20621. RANLIB!$RANLIB$ac_delim
  20622. STRIP!$STRIP$ac_delim
  20623. DSYMUTIL!$DSYMUTIL$ac_delim
  20624. NMEDIT!$NMEDIT$ac_delim
  20625. DLLTOOL!$DLLTOOL$ac_delim
  20626. AS!$AS$ac_delim
  20627. OBJDUMP!$OBJDUMP$ac_delim
  20628. CPP!$CPP$ac_delim
  20629. CXXCPP!$CXXCPP$ac_delim
  20630. F77!$F77$ac_delim
  20631. FFLAGS!$FFLAGS$ac_delim
  20632. ac_ct_F77!$ac_ct_F77$ac_delim
  20633. LIBTOOL!$LIBTOOL$ac_delim
  20634. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20635. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20636. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20637. am__isrc!$am__isrc$ac_delim
  20638. CYGPATH_W!$CYGPATH_W$ac_delim
  20639. PACKAGE!$PACKAGE$ac_delim
  20640. VERSION!$VERSION$ac_delim
  20641. ACLOCAL!$ACLOCAL$ac_delim
  20642. AUTOCONF!$AUTOCONF$ac_delim
  20643. AUTOMAKE!$AUTOMAKE$ac_delim
  20644. AUTOHEADER!$AUTOHEADER$ac_delim
  20645. MAKEINFO!$MAKEINFO$ac_delim
  20646. install_sh!$install_sh$ac_delim
  20647. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20648. mkdir_p!$mkdir_p$ac_delim
  20649. AWK!$AWK$ac_delim
  20650. SET_MAKE!$SET_MAKE$ac_delim
  20651. am__leading_dot!$am__leading_dot$ac_delim
  20652. AMTAR!$AMTAR$ac_delim
  20653. am__tar!$am__tar$ac_delim
  20654. am__untar!$am__untar$ac_delim
  20655. DEPDIR!$DEPDIR$ac_delim
  20656. am__include!$am__include$ac_delim
  20657. _ACEOF
  20658. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20659. break
  20660. elif $ac_last_try; then
  20661. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20662. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20663. { (exit 1); exit 1; }; }
  20664. else
  20665. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20666. fi
  20667. done
  20668. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20669. if test -n "$ac_eof"; then
  20670. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20671. ac_eof=`expr $ac_eof + 1`
  20672. fi
  20673. cat >>$CONFIG_STATUS <<_ACEOF
  20674. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20675. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20676. _ACEOF
  20677. sed '
  20678. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20679. s/^/s,@/; s/!/@,|#_!!_#|/
  20680. :n
  20681. t n
  20682. s/'"$ac_delim"'$/,g/; t
  20683. s/$/\\/; p
  20684. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20685. ' >>$CONFIG_STATUS <conf$$subs.sed
  20686. rm -f conf$$subs.sed
  20687. cat >>$CONFIG_STATUS <<_ACEOF
  20688. CEOF$ac_eof
  20689. _ACEOF
  20690. ac_delim='%!_!# '
  20691. for ac_last_try in false false false false false :; do
  20692. cat >conf$$subs.sed <<_ACEOF
  20693. am__quote!$am__quote$ac_delim
  20694. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20695. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20696. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20697. CCDEPMODE!$CCDEPMODE$ac_delim
  20698. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20699. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20700. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20701. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20702. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20703. DEBUG_TRUE!$DEBUG_TRUE$ac_delim
  20704. DEBUG_FALSE!$DEBUG_FALSE$ac_delim
  20705. LUB_LIBS!$LUB_LIBS$ac_delim
  20706. LUB_CFLAGS!$LUB_CFLAGS$ac_delim
  20707. CLICONF_LIBS!$CLICONF_LIBS$ac_delim
  20708. CLICONF_CFLAGS!$CLICONF_CFLAGS$ac_delim
  20709. TINYRL_LIBS!$TINYRL_LIBS$ac_delim
  20710. TINYRL_CFLAGS!$TINYRL_CFLAGS$ac_delim
  20711. TINYXML_LIBS!$TINYXML_LIBS$ac_delim
  20712. TINYXML_CXXFLAGS!$TINYXML_CXXFLAGS$ac_delim
  20713. PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
  20714. PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
  20715. RT_LIBS!$RT_LIBS$ac_delim
  20716. RT_CFLAGS!$RT_CFLAGS$ac_delim
  20717. TCL_CFLAGS!$TCL_CFLAGS$ac_delim
  20718. TCL_LIBS!$TCL_LIBS$ac_delim
  20719. TCL_VERSION!$TCL_VERSION$ac_delim
  20720. LUBHEAP_TRUE!$LUBHEAP_TRUE$ac_delim
  20721. LUBHEAP_FALSE!$LUBHEAP_FALSE$ac_delim
  20722. LUBHEAP_LIBS!$LUBHEAP_LIBS$ac_delim
  20723. LUBHEAP_CFLAGS!$LUBHEAP_CFLAGS$ac_delim
  20724. BFD_LIBS!$BFD_LIBS$ac_delim
  20725. LIBOBJS!$LIBOBJS$ac_delim
  20726. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20727. _ACEOF
  20728. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
  20729. break
  20730. elif $ac_last_try; then
  20731. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20732. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20733. { (exit 1); exit 1; }; }
  20734. else
  20735. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20736. fi
  20737. done
  20738. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20739. if test -n "$ac_eof"; then
  20740. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20741. ac_eof=`expr $ac_eof + 1`
  20742. fi
  20743. cat >>$CONFIG_STATUS <<_ACEOF
  20744. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20745. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20746. _ACEOF
  20747. sed '
  20748. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20749. s/^/s,@/; s/!/@,|#_!!_#|/
  20750. :n
  20751. t n
  20752. s/'"$ac_delim"'$/,g/; t
  20753. s/$/\\/; p
  20754. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20755. ' >>$CONFIG_STATUS <conf$$subs.sed
  20756. rm -f conf$$subs.sed
  20757. cat >>$CONFIG_STATUS <<_ACEOF
  20758. :end
  20759. s/|#_!!_#|//g
  20760. CEOF$ac_eof
  20761. _ACEOF
  20762. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20763. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20764. # trailing colons and then remove the whole line if VPATH becomes empty
  20765. # (actually we leave an empty line to preserve line numbers).
  20766. if test "x$srcdir" = x.; then
  20767. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20768. s/:*\$(srcdir):*/:/
  20769. s/:*\${srcdir}:*/:/
  20770. s/:*@srcdir@:*/:/
  20771. s/^\([^=]*=[ ]*\):*/\1/
  20772. s/:*$//
  20773. s/^[^=]*=[ ]*$//
  20774. }'
  20775. fi
  20776. cat >>$CONFIG_STATUS <<\_ACEOF
  20777. fi # test -n "$CONFIG_FILES"
  20778. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20779. do
  20780. case $ac_tag in
  20781. :[FHLC]) ac_mode=$ac_tag; continue;;
  20782. esac
  20783. case $ac_mode$ac_tag in
  20784. :[FHL]*:*);;
  20785. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20786. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20787. { (exit 1); exit 1; }; };;
  20788. :[FH]-) ac_tag=-:-;;
  20789. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20790. esac
  20791. ac_save_IFS=$IFS
  20792. IFS=:
  20793. set x $ac_tag
  20794. IFS=$ac_save_IFS
  20795. shift
  20796. ac_file=$1
  20797. shift
  20798. case $ac_mode in
  20799. :L) ac_source=$1;;
  20800. :[FH])
  20801. ac_file_inputs=
  20802. for ac_f
  20803. do
  20804. case $ac_f in
  20805. -) ac_f="$tmp/stdin";;
  20806. *) # Look for the file first in the build tree, then in the source tree
  20807. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20808. # because $ac_f cannot contain `:'.
  20809. test -f "$ac_f" ||
  20810. case $ac_f in
  20811. [\\/$]*) false;;
  20812. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20813. esac ||
  20814. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20815. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20816. { (exit 1); exit 1; }; };;
  20817. esac
  20818. ac_file_inputs="$ac_file_inputs $ac_f"
  20819. done
  20820. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20821. # use $as_me), people would be surprised to read:
  20822. # /* config.h. Generated by config.status. */
  20823. configure_input="Generated from "`IFS=:
  20824. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20825. if test x"$ac_file" != x-; then
  20826. configure_input="$ac_file. $configure_input"
  20827. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20828. echo "$as_me: creating $ac_file" >&6;}
  20829. fi
  20830. case $ac_tag in
  20831. *:-:* | *:-) cat >"$tmp/stdin";;
  20832. esac
  20833. ;;
  20834. esac
  20835. ac_dir=`$as_dirname -- "$ac_file" ||
  20836. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20837. X"$ac_file" : 'X\(//\)[^/]' \| \
  20838. X"$ac_file" : 'X\(//\)$' \| \
  20839. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20840. echo X"$ac_file" |
  20841. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20842. s//\1/
  20843. q
  20844. }
  20845. /^X\(\/\/\)[^/].*/{
  20846. s//\1/
  20847. q
  20848. }
  20849. /^X\(\/\/\)$/{
  20850. s//\1/
  20851. q
  20852. }
  20853. /^X\(\/\).*/{
  20854. s//\1/
  20855. q
  20856. }
  20857. s/.*/./; q'`
  20858. { as_dir="$ac_dir"
  20859. case $as_dir in #(
  20860. -*) as_dir=./$as_dir;;
  20861. esac
  20862. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20863. as_dirs=
  20864. while :; do
  20865. case $as_dir in #(
  20866. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20867. *) as_qdir=$as_dir;;
  20868. esac
  20869. as_dirs="'$as_qdir' $as_dirs"
  20870. as_dir=`$as_dirname -- "$as_dir" ||
  20871. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20872. X"$as_dir" : 'X\(//\)[^/]' \| \
  20873. X"$as_dir" : 'X\(//\)$' \| \
  20874. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20875. echo X"$as_dir" |
  20876. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20877. s//\1/
  20878. q
  20879. }
  20880. /^X\(\/\/\)[^/].*/{
  20881. s//\1/
  20882. q
  20883. }
  20884. /^X\(\/\/\)$/{
  20885. s//\1/
  20886. q
  20887. }
  20888. /^X\(\/\).*/{
  20889. s//\1/
  20890. q
  20891. }
  20892. s/.*/./; q'`
  20893. test -d "$as_dir" && break
  20894. done
  20895. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20896. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20897. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20898. { (exit 1); exit 1; }; }; }
  20899. ac_builddir=.
  20900. case "$ac_dir" in
  20901. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20902. *)
  20903. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20904. # A ".." for each directory in $ac_dir_suffix.
  20905. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20906. case $ac_top_builddir_sub in
  20907. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20908. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20909. esac ;;
  20910. esac
  20911. ac_abs_top_builddir=$ac_pwd
  20912. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20913. # for backward compatibility:
  20914. ac_top_builddir=$ac_top_build_prefix
  20915. case $srcdir in
  20916. .) # We are building in place.
  20917. ac_srcdir=.
  20918. ac_top_srcdir=$ac_top_builddir_sub
  20919. ac_abs_top_srcdir=$ac_pwd ;;
  20920. [\\/]* | ?:[\\/]* ) # Absolute name.
  20921. ac_srcdir=$srcdir$ac_dir_suffix;
  20922. ac_top_srcdir=$srcdir
  20923. ac_abs_top_srcdir=$srcdir ;;
  20924. *) # Relative name.
  20925. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20926. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20927. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20928. esac
  20929. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20930. case $ac_mode in
  20931. :F)
  20932. #
  20933. # CONFIG_FILE
  20934. #
  20935. case $INSTALL in
  20936. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20937. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20938. esac
  20939. ac_MKDIR_P=$MKDIR_P
  20940. case $MKDIR_P in
  20941. [\\/$]* | ?:[\\/]* ) ;;
  20942. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20943. esac
  20944. _ACEOF
  20945. cat >>$CONFIG_STATUS <<\_ACEOF
  20946. # If the template does not know about datarootdir, expand it.
  20947. # FIXME: This hack should be removed a few years after 2.60.
  20948. ac_datarootdir_hack=; ac_datarootdir_seen=
  20949. case `sed -n '/datarootdir/ {
  20950. p
  20951. q
  20952. }
  20953. /@datadir@/p
  20954. /@docdir@/p
  20955. /@infodir@/p
  20956. /@localedir@/p
  20957. /@mandir@/p
  20958. ' $ac_file_inputs` in
  20959. *datarootdir*) ac_datarootdir_seen=yes;;
  20960. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20961. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20962. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20963. _ACEOF
  20964. cat >>$CONFIG_STATUS <<_ACEOF
  20965. ac_datarootdir_hack='
  20966. s&@datadir@&$datadir&g
  20967. s&@docdir@&$docdir&g
  20968. s&@infodir@&$infodir&g
  20969. s&@localedir@&$localedir&g
  20970. s&@mandir@&$mandir&g
  20971. s&\\\${datarootdir}&$datarootdir&g' ;;
  20972. esac
  20973. _ACEOF
  20974. # Neutralize VPATH when `$srcdir' = `.'.
  20975. # Shell code in configure.ac might set extrasub.
  20976. # FIXME: do we really want to maintain this feature?
  20977. cat >>$CONFIG_STATUS <<_ACEOF
  20978. sed "$ac_vpsub
  20979. $extrasub
  20980. _ACEOF
  20981. cat >>$CONFIG_STATUS <<\_ACEOF
  20982. :t
  20983. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20984. s&@configure_input@&$configure_input&;t t
  20985. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20986. s&@srcdir@&$ac_srcdir&;t t
  20987. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20988. s&@top_srcdir@&$ac_top_srcdir&;t t
  20989. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20990. s&@builddir@&$ac_builddir&;t t
  20991. s&@abs_builddir@&$ac_abs_builddir&;t t
  20992. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20993. s&@INSTALL@&$ac_INSTALL&;t t
  20994. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20995. $ac_datarootdir_hack
  20996. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  20997. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20998. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20999. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  21000. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21001. which seems to be undefined. Please make sure it is defined." >&5
  21002. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21003. which seems to be undefined. Please make sure it is defined." >&2;}
  21004. rm -f "$tmp/stdin"
  21005. case $ac_file in
  21006. -) cat "$tmp/out"; rm -f "$tmp/out";;
  21007. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  21008. esac
  21009. ;;
  21010. :H)
  21011. #
  21012. # CONFIG_HEADER
  21013. #
  21014. _ACEOF
  21015. # Transform confdefs.h into a sed script `conftest.defines', that
  21016. # substitutes the proper values into config.h.in to produce config.h.
  21017. rm -f conftest.defines conftest.tail
  21018. # First, append a space to every undef/define line, to ease matching.
  21019. echo 's/$/ /' >conftest.defines
  21020. # Then, protect against being on the right side of a sed subst, or in
  21021. # an unquoted here document, in config.status. If some macros were
  21022. # called several times there might be several #defines for the same
  21023. # symbol, which is useless. But do not sort them, since the last
  21024. # AC_DEFINE must be honored.
  21025. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21026. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  21027. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  21028. # PARAMS is the parameter list in the macro definition--in most cases, it's
  21029. # just an empty string.
  21030. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  21031. ac_dB='\\)[ (].*,\\1define\\2'
  21032. ac_dC=' '
  21033. ac_dD=' ,'
  21034. uniq confdefs.h |
  21035. sed -n '
  21036. t rset
  21037. :rset
  21038. s/^[ ]*#[ ]*define[ ][ ]*//
  21039. t ok
  21040. d
  21041. :ok
  21042. s/[\\&,]/\\&/g
  21043. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  21044. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  21045. ' >>conftest.defines
  21046. # Remove the space that was appended to ease matching.
  21047. # Then replace #undef with comments. This is necessary, for
  21048. # example, in the case of _POSIX_SOURCE, which is predefined and required
  21049. # on some systems where configure will not decide to define it.
  21050. # (The regexp can be short, since the line contains either #define or #undef.)
  21051. echo 's/ $//
  21052. s,^[ #]*u.*,/* & */,' >>conftest.defines
  21053. # Break up conftest.defines:
  21054. ac_max_sed_lines=50
  21055. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  21056. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  21057. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  21058. # et cetera.
  21059. ac_in='$ac_file_inputs'
  21060. ac_out='"$tmp/out1"'
  21061. ac_nxt='"$tmp/out2"'
  21062. while :
  21063. do
  21064. # Write a here document:
  21065. cat >>$CONFIG_STATUS <<_ACEOF
  21066. # First, check the format of the line:
  21067. cat >"\$tmp/defines.sed" <<\\CEOF
  21068. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  21069. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  21070. b
  21071. :def
  21072. _ACEOF
  21073. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  21074. echo 'CEOF
  21075. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  21076. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  21077. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  21078. grep . conftest.tail >/dev/null || break
  21079. rm -f conftest.defines
  21080. mv conftest.tail conftest.defines
  21081. done
  21082. rm -f conftest.defines conftest.tail
  21083. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  21084. cat >>$CONFIG_STATUS <<\_ACEOF
  21085. if test x"$ac_file" != x-; then
  21086. echo "/* $configure_input */" >"$tmp/config.h"
  21087. cat "$ac_result" >>"$tmp/config.h"
  21088. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  21089. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21090. echo "$as_me: $ac_file is unchanged" >&6;}
  21091. else
  21092. rm -f $ac_file
  21093. mv "$tmp/config.h" $ac_file
  21094. fi
  21095. else
  21096. echo "/* $configure_input */"
  21097. cat "$ac_result"
  21098. fi
  21099. rm -f "$tmp/out12"
  21100. # Compute $ac_file's index in $config_headers.
  21101. _am_arg=$ac_file
  21102. _am_stamp_count=1
  21103. for _am_header in $config_headers :; do
  21104. case $_am_header in
  21105. $_am_arg | $_am_arg:* )
  21106. break ;;
  21107. * )
  21108. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21109. esac
  21110. done
  21111. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  21112. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21113. X"$_am_arg" : 'X\(//\)[^/]' \| \
  21114. X"$_am_arg" : 'X\(//\)$' \| \
  21115. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  21116. echo X"$_am_arg" |
  21117. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21118. s//\1/
  21119. q
  21120. }
  21121. /^X\(\/\/\)[^/].*/{
  21122. s//\1/
  21123. q
  21124. }
  21125. /^X\(\/\/\)$/{
  21126. s//\1/
  21127. q
  21128. }
  21129. /^X\(\/\).*/{
  21130. s//\1/
  21131. q
  21132. }
  21133. s/.*/./; q'`/stamp-h$_am_stamp_count
  21134. ;;
  21135. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21136. echo "$as_me: executing $ac_file commands" >&6;}
  21137. ;;
  21138. esac
  21139. case $ac_file$ac_mode in
  21140. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  21141. # Strip MF so we end up with the name of the file.
  21142. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21143. # Check whether this is an Automake generated Makefile or not.
  21144. # We used to match only the files named `Makefile.in', but
  21145. # some people rename them; so instead we look at the file content.
  21146. # Grep'ing the first line is not enough: some people post-process
  21147. # each Makefile.in and add a new line on top of each file to say so.
  21148. # Grep'ing the whole file is not good either: AIX grep has a line
  21149. # limit of 2048, but all sed's we know have understand at least 4000.
  21150. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  21151. dirpart=`$as_dirname -- "$mf" ||
  21152. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21153. X"$mf" : 'X\(//\)[^/]' \| \
  21154. X"$mf" : 'X\(//\)$' \| \
  21155. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21156. echo X"$mf" |
  21157. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21158. s//\1/
  21159. q
  21160. }
  21161. /^X\(\/\/\)[^/].*/{
  21162. s//\1/
  21163. q
  21164. }
  21165. /^X\(\/\/\)$/{
  21166. s//\1/
  21167. q
  21168. }
  21169. /^X\(\/\).*/{
  21170. s//\1/
  21171. q
  21172. }
  21173. s/.*/./; q'`
  21174. else
  21175. continue
  21176. fi
  21177. # Extract the definition of DEPDIR, am__include, and am__quote
  21178. # from the Makefile without running `make'.
  21179. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21180. test -z "$DEPDIR" && continue
  21181. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21182. test -z "am__include" && continue
  21183. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21184. # When using ansi2knr, U may be empty or an underscore; expand it
  21185. U=`sed -n 's/^U = //p' < "$mf"`
  21186. # Find all dependency output files, they are included files with
  21187. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21188. # simplest approach to changing $(DEPDIR) to its actual value in the
  21189. # expansion.
  21190. for file in `sed -n "
  21191. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21192. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21193. # Make sure the directory exists.
  21194. test -f "$dirpart/$file" && continue
  21195. fdir=`$as_dirname -- "$file" ||
  21196. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21197. X"$file" : 'X\(//\)[^/]' \| \
  21198. X"$file" : 'X\(//\)$' \| \
  21199. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21200. echo X"$file" |
  21201. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21202. s//\1/
  21203. q
  21204. }
  21205. /^X\(\/\/\)[^/].*/{
  21206. s//\1/
  21207. q
  21208. }
  21209. /^X\(\/\/\)$/{
  21210. s//\1/
  21211. q
  21212. }
  21213. /^X\(\/\).*/{
  21214. s//\1/
  21215. q
  21216. }
  21217. s/.*/./; q'`
  21218. { as_dir=$dirpart/$fdir
  21219. case $as_dir in #(
  21220. -*) as_dir=./$as_dir;;
  21221. esac
  21222. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21223. as_dirs=
  21224. while :; do
  21225. case $as_dir in #(
  21226. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21227. *) as_qdir=$as_dir;;
  21228. esac
  21229. as_dirs="'$as_qdir' $as_dirs"
  21230. as_dir=`$as_dirname -- "$as_dir" ||
  21231. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21232. X"$as_dir" : 'X\(//\)[^/]' \| \
  21233. X"$as_dir" : 'X\(//\)$' \| \
  21234. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21235. echo X"$as_dir" |
  21236. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21237. s//\1/
  21238. q
  21239. }
  21240. /^X\(\/\/\)[^/].*/{
  21241. s//\1/
  21242. q
  21243. }
  21244. /^X\(\/\/\)$/{
  21245. s//\1/
  21246. q
  21247. }
  21248. /^X\(\/\).*/{
  21249. s//\1/
  21250. q
  21251. }
  21252. s/.*/./; q'`
  21253. test -d "$as_dir" && break
  21254. done
  21255. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21256. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21257. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21258. { (exit 1); exit 1; }; }; }
  21259. # echo "creating $dirpart/$file"
  21260. echo '# dummy' > "$dirpart/$file"
  21261. done
  21262. done
  21263. ;;
  21264. esac
  21265. done # for ac_tag
  21266. { (exit 0); exit 0; }
  21267. _ACEOF
  21268. chmod +x $CONFIG_STATUS
  21269. ac_clean_files=$ac_clean_files_save
  21270. # configure is writing to config.log, and then calls config.status.
  21271. # config.status does its own redirection, appending to config.log.
  21272. # Unfortunately, on DOS this fails, as config.log is still kept open
  21273. # by configure, so config.status won't be able to write to it; its
  21274. # output is simply discarded. So we exec the FD to /dev/null,
  21275. # effectively closing config.log, so it can be properly (re)opened and
  21276. # appended to by config.status. When coming back to configure, we
  21277. # need to make the FD available again.
  21278. if test "$no_create" != yes; then
  21279. ac_cs_success=:
  21280. ac_config_status_args=
  21281. test "$silent" = yes &&
  21282. ac_config_status_args="$ac_config_status_args --quiet"
  21283. exec 5>/dev/null
  21284. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21285. exec 5>>config.log
  21286. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21287. # would make configure fail if this is the last instruction.
  21288. $ac_cs_success || { (exit 1); exit 1; }
  21289. fi