configure 588 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for ld 2.25.51.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  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. # Pre-4.2 versions of Zsh do 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*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1
  159. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  160. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. PATH=/empty FPATH=/empty; export PATH FPATH
  164. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  165. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='ld'
  509. PACKAGE_TARNAME='ld'
  510. PACKAGE_VERSION='2.25.51'
  511. PACKAGE_STRING='ld 2.25.51'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="ldmain.c"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. TESTBFDLIB
  555. EMULATION_LIBPATH
  556. LIB_PATH
  557. EMUL_EXTRA_OFILES
  558. EMULATION_OFILES
  559. EMUL
  560. elf_plt_unwind_list_options
  561. elf_shlib_list_options
  562. elf_list_options
  563. STRINGIFY
  564. enable_initfini_array
  565. ENABLE_PLUGINS_FALSE
  566. ENABLE_PLUGINS_TRUE
  567. NATIVE_LIB_DIRS
  568. HOSTING_SLIBS
  569. HOSTING_LIBS
  570. HOSTING_SCRT0
  571. HOSTING_CRT0
  572. HDEFINES
  573. do_compare
  574. GENINSRC_NEVER_FALSE
  575. GENINSRC_NEVER_TRUE
  576. LEXLIB
  577. LEX_OUTPUT_ROOT
  578. LEX
  579. YFLAGS
  580. YACC
  581. MSGMERGE
  582. MSGFMT
  583. MKINSTALLDIRS
  584. CATOBJEXT
  585. GENCAT
  586. INSTOBJEXT
  587. DATADIRNAME
  588. CATALOGS
  589. POSUB
  590. GMSGFMT
  591. XGETTEXT
  592. INCINTL
  593. LIBINTL_DEP
  594. LIBINTL
  595. USE_NLS
  596. NO_WERROR
  597. WARN_CFLAGS
  598. installed_linker
  599. install_as_default
  600. TARGET_SYSTEM_ROOT_DEFINE
  601. TARGET_SYSTEM_ROOT
  602. use_sysroot
  603. CXXCPP
  604. OTOOL64
  605. OTOOL
  606. LIPO
  607. NMEDIT
  608. DSYMUTIL
  609. RANLIB
  610. AR
  611. OBJDUMP
  612. LN_S
  613. NM
  614. ac_ct_DUMPBIN
  615. DUMPBIN
  616. LD
  617. FGREP
  618. SED
  619. LIBTOOL
  620. EGREP
  621. CPP
  622. GREP
  623. am__fastdepCXX_FALSE
  624. am__fastdepCXX_TRUE
  625. CXXDEPMODE
  626. ac_ct_CXX
  627. CXXFLAGS
  628. CXX
  629. MAINT
  630. MAINTAINER_MODE_FALSE
  631. MAINTAINER_MODE_TRUE
  632. am__fastdepCC_FALSE
  633. am__fastdepCC_TRUE
  634. CCDEPMODE
  635. AMDEPBACKSLASH
  636. AMDEP_FALSE
  637. AMDEP_TRUE
  638. am__quote
  639. am__include
  640. DEPDIR
  641. am__untar
  642. am__tar
  643. AMTAR
  644. am__leading_dot
  645. SET_MAKE
  646. AWK
  647. mkdir_p
  648. MKDIR_P
  649. INSTALL_STRIP_PROGRAM
  650. STRIP
  651. install_sh
  652. MAKEINFO
  653. AUTOHEADER
  654. AUTOMAKE
  655. AUTOCONF
  656. ACLOCAL
  657. VERSION
  658. PACKAGE
  659. CYGPATH_W
  660. am__isrc
  661. INSTALL_DATA
  662. INSTALL_SCRIPT
  663. INSTALL_PROGRAM
  664. OBJEXT
  665. EXEEXT
  666. ac_ct_CC
  667. CPPFLAGS
  668. LDFLAGS
  669. CFLAGS
  670. CC
  671. target_os
  672. target_vendor
  673. target_cpu
  674. target
  675. host_os
  676. host_vendor
  677. host_cpu
  678. host
  679. build_os
  680. build_vendor
  681. build_cpu
  682. build
  683. target_alias
  684. host_alias
  685. build_alias
  686. LIBS
  687. ECHO_T
  688. ECHO_N
  689. ECHO_C
  690. DEFS
  691. mandir
  692. localedir
  693. libdir
  694. psdir
  695. pdfdir
  696. dvidir
  697. htmldir
  698. infodir
  699. docdir
  700. oldincludedir
  701. includedir
  702. localstatedir
  703. sharedstatedir
  704. sysconfdir
  705. datadir
  706. datarootdir
  707. libexecdir
  708. sbindir
  709. bindir
  710. program_transform_name
  711. prefix
  712. exec_prefix
  713. PACKAGE_URL
  714. PACKAGE_BUGREPORT
  715. PACKAGE_STRING
  716. PACKAGE_VERSION
  717. PACKAGE_TARNAME
  718. PACKAGE_NAME
  719. PATH_SEPARATOR
  720. SHELL'
  721. ac_subst_files='TDIRS'
  722. ac_user_opts='
  723. enable_option_checking
  724. enable_dependency_tracking
  725. enable_maintainer_mode
  726. enable_shared
  727. enable_static
  728. with_pic
  729. enable_fast_install
  730. with_gnu_ld
  731. enable_libtool_lock
  732. enable_plugins
  733. enable_largefile
  734. with_lib_path
  735. enable_targets
  736. enable_64_bit_bfd
  737. with_sysroot
  738. enable_gold
  739. enable_got
  740. enable_compressed_debug_sections
  741. enable_werror
  742. enable_build_warnings
  743. enable_nls
  744. enable_initfini_array
  745. '
  746. ac_precious_vars='build_alias
  747. host_alias
  748. target_alias
  749. CC
  750. CFLAGS
  751. LDFLAGS
  752. LIBS
  753. CPPFLAGS
  754. CXX
  755. CXXFLAGS
  756. CCC
  757. CPP
  758. CXXCPP
  759. YACC
  760. YFLAGS'
  761. # Initialize some variables set by options.
  762. ac_init_help=
  763. ac_init_version=false
  764. ac_unrecognized_opts=
  765. ac_unrecognized_sep=
  766. # The variables have the same names as the options, with
  767. # dashes changed to underlines.
  768. cache_file=/dev/null
  769. exec_prefix=NONE
  770. no_create=
  771. no_recursion=
  772. prefix=NONE
  773. program_prefix=NONE
  774. program_suffix=NONE
  775. program_transform_name=s,x,x,
  776. silent=
  777. site=
  778. srcdir=
  779. verbose=
  780. x_includes=NONE
  781. x_libraries=NONE
  782. # Installation directory options.
  783. # These are left unexpanded so users can "make install exec_prefix=/foo"
  784. # and all the variables that are supposed to be based on exec_prefix
  785. # by default will actually change.
  786. # Use braces instead of parens because sh, perl, etc. also accept them.
  787. # (The list follows the same order as the GNU Coding Standards.)
  788. bindir='${exec_prefix}/bin'
  789. sbindir='${exec_prefix}/sbin'
  790. libexecdir='${exec_prefix}/libexec'
  791. datarootdir='${prefix}/share'
  792. datadir='${datarootdir}'
  793. sysconfdir='${prefix}/etc'
  794. sharedstatedir='${prefix}/com'
  795. localstatedir='${prefix}/var'
  796. includedir='${prefix}/include'
  797. oldincludedir='/usr/include'
  798. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  799. infodir='${datarootdir}/info'
  800. htmldir='${docdir}'
  801. dvidir='${docdir}'
  802. pdfdir='${docdir}'
  803. psdir='${docdir}'
  804. libdir='${exec_prefix}/lib'
  805. localedir='${datarootdir}/locale'
  806. mandir='${datarootdir}/man'
  807. ac_prev=
  808. ac_dashdash=
  809. for ac_option
  810. do
  811. # If the previous option needs an argument, assign it.
  812. if test -n "$ac_prev"; then
  813. eval $ac_prev=\$ac_option
  814. ac_prev=
  815. continue
  816. fi
  817. case $ac_option in
  818. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  819. *) ac_optarg=yes ;;
  820. esac
  821. # Accept the important Cygnus configure options, so we can diagnose typos.
  822. case $ac_dashdash$ac_option in
  823. --)
  824. ac_dashdash=yes ;;
  825. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  826. ac_prev=bindir ;;
  827. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  828. bindir=$ac_optarg ;;
  829. -build | --build | --buil | --bui | --bu)
  830. ac_prev=build_alias ;;
  831. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  832. build_alias=$ac_optarg ;;
  833. -cache-file | --cache-file | --cache-fil | --cache-fi \
  834. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  835. ac_prev=cache_file ;;
  836. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  837. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  838. cache_file=$ac_optarg ;;
  839. --config-cache | -C)
  840. cache_file=config.cache ;;
  841. -datadir | --datadir | --datadi | --datad)
  842. ac_prev=datadir ;;
  843. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  844. datadir=$ac_optarg ;;
  845. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  846. | --dataroo | --dataro | --datar)
  847. ac_prev=datarootdir ;;
  848. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  849. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  850. datarootdir=$ac_optarg ;;
  851. -disable-* | --disable-*)
  852. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  853. # Reject names that are not valid shell variable names.
  854. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  855. as_fn_error "invalid feature name: $ac_useropt"
  856. ac_useropt_orig=$ac_useropt
  857. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  858. case $ac_user_opts in
  859. *"
  860. "enable_$ac_useropt"
  861. "*) ;;
  862. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  863. ac_unrecognized_sep=', ';;
  864. esac
  865. eval enable_$ac_useropt=no ;;
  866. -docdir | --docdir | --docdi | --doc | --do)
  867. ac_prev=docdir ;;
  868. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  869. docdir=$ac_optarg ;;
  870. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  871. ac_prev=dvidir ;;
  872. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  873. dvidir=$ac_optarg ;;
  874. -enable-* | --enable-*)
  875. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  876. # Reject names that are not valid shell variable names.
  877. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  878. as_fn_error "invalid feature name: $ac_useropt"
  879. ac_useropt_orig=$ac_useropt
  880. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  881. case $ac_user_opts in
  882. *"
  883. "enable_$ac_useropt"
  884. "*) ;;
  885. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  886. ac_unrecognized_sep=', ';;
  887. esac
  888. eval enable_$ac_useropt=\$ac_optarg ;;
  889. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  890. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  891. | --exec | --exe | --ex)
  892. ac_prev=exec_prefix ;;
  893. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  894. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  895. | --exec=* | --exe=* | --ex=*)
  896. exec_prefix=$ac_optarg ;;
  897. -gas | --gas | --ga | --g)
  898. # Obsolete; use --with-gas.
  899. with_gas=yes ;;
  900. -help | --help | --hel | --he | -h)
  901. ac_init_help=long ;;
  902. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  903. ac_init_help=recursive ;;
  904. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  905. ac_init_help=short ;;
  906. -host | --host | --hos | --ho)
  907. ac_prev=host_alias ;;
  908. -host=* | --host=* | --hos=* | --ho=*)
  909. host_alias=$ac_optarg ;;
  910. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  911. ac_prev=htmldir ;;
  912. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  913. | --ht=*)
  914. htmldir=$ac_optarg ;;
  915. -includedir | --includedir | --includedi | --included | --include \
  916. | --includ | --inclu | --incl | --inc)
  917. ac_prev=includedir ;;
  918. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  919. | --includ=* | --inclu=* | --incl=* | --inc=*)
  920. includedir=$ac_optarg ;;
  921. -infodir | --infodir | --infodi | --infod | --info | --inf)
  922. ac_prev=infodir ;;
  923. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  924. infodir=$ac_optarg ;;
  925. -libdir | --libdir | --libdi | --libd)
  926. ac_prev=libdir ;;
  927. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  928. libdir=$ac_optarg ;;
  929. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  930. | --libexe | --libex | --libe)
  931. ac_prev=libexecdir ;;
  932. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  933. | --libexe=* | --libex=* | --libe=*)
  934. libexecdir=$ac_optarg ;;
  935. -localedir | --localedir | --localedi | --localed | --locale)
  936. ac_prev=localedir ;;
  937. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  938. localedir=$ac_optarg ;;
  939. -localstatedir | --localstatedir | --localstatedi | --localstated \
  940. | --localstate | --localstat | --localsta | --localst | --locals)
  941. ac_prev=localstatedir ;;
  942. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  943. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  944. localstatedir=$ac_optarg ;;
  945. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  946. ac_prev=mandir ;;
  947. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  948. mandir=$ac_optarg ;;
  949. -nfp | --nfp | --nf)
  950. # Obsolete; use --without-fp.
  951. with_fp=no ;;
  952. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  953. | --no-cr | --no-c | -n)
  954. no_create=yes ;;
  955. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  956. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  957. no_recursion=yes ;;
  958. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  959. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  960. | --oldin | --oldi | --old | --ol | --o)
  961. ac_prev=oldincludedir ;;
  962. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  963. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  964. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  965. oldincludedir=$ac_optarg ;;
  966. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  967. ac_prev=prefix ;;
  968. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  969. prefix=$ac_optarg ;;
  970. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  971. | --program-pre | --program-pr | --program-p)
  972. ac_prev=program_prefix ;;
  973. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  974. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  975. program_prefix=$ac_optarg ;;
  976. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  977. | --program-suf | --program-su | --program-s)
  978. ac_prev=program_suffix ;;
  979. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  980. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  981. program_suffix=$ac_optarg ;;
  982. -program-transform-name | --program-transform-name \
  983. | --program-transform-nam | --program-transform-na \
  984. | --program-transform-n | --program-transform- \
  985. | --program-transform | --program-transfor \
  986. | --program-transfo | --program-transf \
  987. | --program-trans | --program-tran \
  988. | --progr-tra | --program-tr | --program-t)
  989. ac_prev=program_transform_name ;;
  990. -program-transform-name=* | --program-transform-name=* \
  991. | --program-transform-nam=* | --program-transform-na=* \
  992. | --program-transform-n=* | --program-transform-=* \
  993. | --program-transform=* | --program-transfor=* \
  994. | --program-transfo=* | --program-transf=* \
  995. | --program-trans=* | --program-tran=* \
  996. | --progr-tra=* | --program-tr=* | --program-t=*)
  997. program_transform_name=$ac_optarg ;;
  998. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  999. ac_prev=pdfdir ;;
  1000. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1001. pdfdir=$ac_optarg ;;
  1002. -psdir | --psdir | --psdi | --psd | --ps)
  1003. ac_prev=psdir ;;
  1004. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1005. psdir=$ac_optarg ;;
  1006. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1007. | -silent | --silent | --silen | --sile | --sil)
  1008. silent=yes ;;
  1009. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1010. ac_prev=sbindir ;;
  1011. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1012. | --sbi=* | --sb=*)
  1013. sbindir=$ac_optarg ;;
  1014. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1015. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1016. | --sharedst | --shareds | --shared | --share | --shar \
  1017. | --sha | --sh)
  1018. ac_prev=sharedstatedir ;;
  1019. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1020. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1021. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1022. | --sha=* | --sh=*)
  1023. sharedstatedir=$ac_optarg ;;
  1024. -site | --site | --sit)
  1025. ac_prev=site ;;
  1026. -site=* | --site=* | --sit=*)
  1027. site=$ac_optarg ;;
  1028. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1029. ac_prev=srcdir ;;
  1030. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1031. srcdir=$ac_optarg ;;
  1032. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1033. | --syscon | --sysco | --sysc | --sys | --sy)
  1034. ac_prev=sysconfdir ;;
  1035. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1036. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1037. sysconfdir=$ac_optarg ;;
  1038. -target | --target | --targe | --targ | --tar | --ta | --t)
  1039. ac_prev=target_alias ;;
  1040. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1041. target_alias=$ac_optarg ;;
  1042. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1043. verbose=yes ;;
  1044. -version | --version | --versio | --versi | --vers | -V)
  1045. ac_init_version=: ;;
  1046. -with-* | --with-*)
  1047. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1048. # Reject names that are not valid shell variable names.
  1049. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1050. as_fn_error "invalid package name: $ac_useropt"
  1051. ac_useropt_orig=$ac_useropt
  1052. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1053. case $ac_user_opts in
  1054. *"
  1055. "with_$ac_useropt"
  1056. "*) ;;
  1057. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1058. ac_unrecognized_sep=', ';;
  1059. esac
  1060. eval with_$ac_useropt=\$ac_optarg ;;
  1061. -without-* | --without-*)
  1062. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1063. # Reject names that are not valid shell variable names.
  1064. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1065. as_fn_error "invalid package name: $ac_useropt"
  1066. ac_useropt_orig=$ac_useropt
  1067. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1068. case $ac_user_opts in
  1069. *"
  1070. "with_$ac_useropt"
  1071. "*) ;;
  1072. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1073. ac_unrecognized_sep=', ';;
  1074. esac
  1075. eval with_$ac_useropt=no ;;
  1076. --x)
  1077. # Obsolete; use --with-x.
  1078. with_x=yes ;;
  1079. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1080. | --x-incl | --x-inc | --x-in | --x-i)
  1081. ac_prev=x_includes ;;
  1082. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1083. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1084. x_includes=$ac_optarg ;;
  1085. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1086. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1087. ac_prev=x_libraries ;;
  1088. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1089. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1090. x_libraries=$ac_optarg ;;
  1091. -*) as_fn_error "unrecognized option: \`$ac_option'
  1092. Try \`$0 --help' for more information."
  1093. ;;
  1094. *=*)
  1095. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1096. # Reject names that are not valid shell variable names.
  1097. case $ac_envvar in #(
  1098. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1099. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1100. esac
  1101. eval $ac_envvar=\$ac_optarg
  1102. export $ac_envvar ;;
  1103. *)
  1104. # FIXME: should be removed in autoconf 3.0.
  1105. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1106. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1107. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1108. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1109. ;;
  1110. esac
  1111. done
  1112. if test -n "$ac_prev"; then
  1113. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1114. as_fn_error "missing argument to $ac_option"
  1115. fi
  1116. if test -n "$ac_unrecognized_opts"; then
  1117. case $enable_option_checking in
  1118. no) ;;
  1119. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1120. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1121. esac
  1122. fi
  1123. # Check all directory arguments for consistency.
  1124. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1125. datadir sysconfdir sharedstatedir localstatedir includedir \
  1126. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1127. libdir localedir mandir
  1128. do
  1129. eval ac_val=\$$ac_var
  1130. # Remove trailing slashes.
  1131. case $ac_val in
  1132. */ )
  1133. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1134. eval $ac_var=\$ac_val;;
  1135. esac
  1136. # Be sure to have absolute directory names.
  1137. case $ac_val in
  1138. [\\/$]* | ?:[\\/]* ) continue;;
  1139. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1140. esac
  1141. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1142. done
  1143. # There might be people who depend on the old broken behavior: `$host'
  1144. # used to hold the argument of --host etc.
  1145. # FIXME: To remove some day.
  1146. build=$build_alias
  1147. host=$host_alias
  1148. target=$target_alias
  1149. # FIXME: To remove some day.
  1150. if test "x$host_alias" != x; then
  1151. if test "x$build_alias" = x; then
  1152. cross_compiling=maybe
  1153. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1154. If a cross compiler is detected then cross compile mode will be used." >&2
  1155. elif test "x$build_alias" != "x$host_alias"; then
  1156. cross_compiling=yes
  1157. fi
  1158. fi
  1159. ac_tool_prefix=
  1160. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1161. test "$silent" = yes && exec 6>/dev/null
  1162. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1163. ac_ls_di=`ls -di .` &&
  1164. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1165. as_fn_error "working directory cannot be determined"
  1166. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1167. as_fn_error "pwd does not report name of working directory"
  1168. # Find the source files, if location was not specified.
  1169. if test -z "$srcdir"; then
  1170. ac_srcdir_defaulted=yes
  1171. # Try the directory containing this script, then the parent directory.
  1172. ac_confdir=`$as_dirname -- "$as_myself" ||
  1173. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1174. X"$as_myself" : 'X\(//\)[^/]' \| \
  1175. X"$as_myself" : 'X\(//\)$' \| \
  1176. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1177. $as_echo X"$as_myself" |
  1178. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1179. s//\1/
  1180. q
  1181. }
  1182. /^X\(\/\/\)[^/].*/{
  1183. s//\1/
  1184. q
  1185. }
  1186. /^X\(\/\/\)$/{
  1187. s//\1/
  1188. q
  1189. }
  1190. /^X\(\/\).*/{
  1191. s//\1/
  1192. q
  1193. }
  1194. s/.*/./; q'`
  1195. srcdir=$ac_confdir
  1196. if test ! -r "$srcdir/$ac_unique_file"; then
  1197. srcdir=..
  1198. fi
  1199. else
  1200. ac_srcdir_defaulted=no
  1201. fi
  1202. if test ! -r "$srcdir/$ac_unique_file"; then
  1203. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1204. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1205. fi
  1206. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1207. ac_abs_confdir=`(
  1208. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1209. pwd)`
  1210. # When building in place, set srcdir=.
  1211. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1212. srcdir=.
  1213. fi
  1214. # Remove unnecessary trailing slashes from srcdir.
  1215. # Double slashes in file names in object file debugging info
  1216. # mess up M-x gdb in Emacs.
  1217. case $srcdir in
  1218. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1219. esac
  1220. for ac_var in $ac_precious_vars; do
  1221. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1222. eval ac_env_${ac_var}_value=\$${ac_var}
  1223. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1224. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1225. done
  1226. #
  1227. # Report the --help message.
  1228. #
  1229. if test "$ac_init_help" = "long"; then
  1230. # Omit some internal or obsolete options to make the list less imposing.
  1231. # This message is too long to be a string in the A/UX 3.1 sh.
  1232. cat <<_ACEOF
  1233. \`configure' configures ld 2.25.51 to adapt to many kinds of systems.
  1234. Usage: $0 [OPTION]... [VAR=VALUE]...
  1235. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1236. VAR=VALUE. See below for descriptions of some of the useful variables.
  1237. Defaults for the options are specified in brackets.
  1238. Configuration:
  1239. -h, --help display this help and exit
  1240. --help=short display options specific to this package
  1241. --help=recursive display the short help of all the included packages
  1242. -V, --version display version information and exit
  1243. -q, --quiet, --silent do not print \`checking...' messages
  1244. --cache-file=FILE cache test results in FILE [disabled]
  1245. -C, --config-cache alias for \`--cache-file=config.cache'
  1246. -n, --no-create do not create output files
  1247. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1248. Installation directories:
  1249. --prefix=PREFIX install architecture-independent files in PREFIX
  1250. [$ac_default_prefix]
  1251. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1252. [PREFIX]
  1253. By default, \`make install' will install all the files in
  1254. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1255. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1256. for instance \`--prefix=\$HOME'.
  1257. For better control, use the options below.
  1258. Fine tuning of the installation directories:
  1259. --bindir=DIR user executables [EPREFIX/bin]
  1260. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1261. --libexecdir=DIR program executables [EPREFIX/libexec]
  1262. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1263. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1264. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1265. --libdir=DIR object code libraries [EPREFIX/lib]
  1266. --includedir=DIR C header files [PREFIX/include]
  1267. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1268. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1269. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1270. --infodir=DIR info documentation [DATAROOTDIR/info]
  1271. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1272. --mandir=DIR man documentation [DATAROOTDIR/man]
  1273. --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
  1274. --htmldir=DIR html documentation [DOCDIR]
  1275. --dvidir=DIR dvi documentation [DOCDIR]
  1276. --pdfdir=DIR pdf documentation [DOCDIR]
  1277. --psdir=DIR ps documentation [DOCDIR]
  1278. _ACEOF
  1279. cat <<\_ACEOF
  1280. Program names:
  1281. --program-prefix=PREFIX prepend PREFIX to installed program names
  1282. --program-suffix=SUFFIX append SUFFIX to installed program names
  1283. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1284. System types:
  1285. --build=BUILD configure for building on BUILD [guessed]
  1286. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1287. --target=TARGET configure for building compilers for TARGET [HOST]
  1288. _ACEOF
  1289. fi
  1290. if test -n "$ac_init_help"; then
  1291. case $ac_init_help in
  1292. short | recursive ) echo "Configuration of ld 2.25.51:";;
  1293. esac
  1294. cat <<\_ACEOF
  1295. Optional Features:
  1296. --disable-option-checking ignore unrecognized --enable/--with options
  1297. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1298. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1299. --disable-dependency-tracking speeds up one-time build
  1300. --enable-dependency-tracking do not reject slow dependency extractors
  1301. --enable-maintainer-mode enable make rules and dependencies not useful
  1302. (and sometimes confusing) to the casual installer
  1303. --enable-shared[=PKGS] build shared libraries [default=yes]
  1304. --enable-static[=PKGS] build static libraries [default=yes]
  1305. --enable-fast-install[=PKGS]
  1306. optimize for fast installation [default=yes]
  1307. --disable-libtool-lock avoid locking (might break parallel builds)
  1308. --enable-plugins Enable support for plugins
  1309. --disable-largefile omit support for large files
  1310. --enable-targets alternative target configurations
  1311. --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
  1312. --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  1313. --enable-got=<type> GOT handling scheme (target, single, negative,
  1314. multigot)
  1315. --enable-compressed-debug-sections={all,ld,none} compress debug sections by default
  1316. --enable-werror treat compile warnings as errors
  1317. --enable-build-warnings enable build-time compiler warnings
  1318. --disable-nls do not use Native Language Support
  1319. --enable-initfini-array use .init_array/.fini_array sections
  1320. Optional Packages:
  1321. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1322. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1323. --with-pic try to use only PIC/non-PIC objects [default=use
  1324. both]
  1325. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1326. --with-lib-path=dir1:dir2... set default LIB_PATH
  1327. --with-sysroot=DIR Search for usr/lib et al within DIR.
  1328. Some influential environment variables:
  1329. CC C compiler command
  1330. CFLAGS C compiler flags
  1331. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1332. nonstandard directory <lib dir>
  1333. LIBS libraries to pass to the linker, e.g. -l<library>
  1334. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1335. you have headers in a nonstandard directory <include dir>
  1336. CXX C++ compiler command
  1337. CXXFLAGS C++ compiler flags
  1338. CPP C preprocessor
  1339. CXXCPP C++ preprocessor
  1340. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1341. the first program found out of: `bison -y', `byacc', `yacc'.
  1342. YFLAGS The list of arguments that will be passed by default to $YACC.
  1343. This script will default YFLAGS to the empty string to avoid a
  1344. default value of `-d' given by some make applications.
  1345. Use these variables to override the choices made by `configure' or to help
  1346. it to find libraries and programs with nonstandard names/locations.
  1347. Report bugs to the package provider.
  1348. _ACEOF
  1349. ac_status=$?
  1350. fi
  1351. if test "$ac_init_help" = "recursive"; then
  1352. # If there are subdirs, report their specific --help.
  1353. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1354. test -d "$ac_dir" ||
  1355. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1356. continue
  1357. ac_builddir=.
  1358. case "$ac_dir" in
  1359. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1360. *)
  1361. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1362. # A ".." for each directory in $ac_dir_suffix.
  1363. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1364. case $ac_top_builddir_sub in
  1365. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1366. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1367. esac ;;
  1368. esac
  1369. ac_abs_top_builddir=$ac_pwd
  1370. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1371. # for backward compatibility:
  1372. ac_top_builddir=$ac_top_build_prefix
  1373. case $srcdir in
  1374. .) # We are building in place.
  1375. ac_srcdir=.
  1376. ac_top_srcdir=$ac_top_builddir_sub
  1377. ac_abs_top_srcdir=$ac_pwd ;;
  1378. [\\/]* | ?:[\\/]* ) # Absolute name.
  1379. ac_srcdir=$srcdir$ac_dir_suffix;
  1380. ac_top_srcdir=$srcdir
  1381. ac_abs_top_srcdir=$srcdir ;;
  1382. *) # Relative name.
  1383. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1384. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1385. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1386. esac
  1387. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1388. cd "$ac_dir" || { ac_status=$?; continue; }
  1389. # Check for guested configure.
  1390. if test -f "$ac_srcdir/configure.gnu"; then
  1391. echo &&
  1392. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1393. elif test -f "$ac_srcdir/configure"; then
  1394. echo &&
  1395. $SHELL "$ac_srcdir/configure" --help=recursive
  1396. else
  1397. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1398. fi || ac_status=$?
  1399. cd "$ac_pwd" || { ac_status=$?; break; }
  1400. done
  1401. fi
  1402. test -n "$ac_init_help" && exit $ac_status
  1403. if $ac_init_version; then
  1404. cat <<\_ACEOF
  1405. ld configure 2.25.51
  1406. generated by GNU Autoconf 2.64
  1407. Copyright (C) 2009 Free Software Foundation, Inc.
  1408. This configure script is free software; the Free Software Foundation
  1409. gives unlimited permission to copy, distribute and modify it.
  1410. _ACEOF
  1411. exit
  1412. fi
  1413. ## ------------------------ ##
  1414. ## Autoconf initialization. ##
  1415. ## ------------------------ ##
  1416. # ac_fn_c_try_compile LINENO
  1417. # --------------------------
  1418. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1419. ac_fn_c_try_compile ()
  1420. {
  1421. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1422. rm -f conftest.$ac_objext
  1423. if { { ac_try="$ac_compile"
  1424. case "(($ac_try" in
  1425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1426. *) ac_try_echo=$ac_try;;
  1427. esac
  1428. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1429. $as_echo "$ac_try_echo"; } >&5
  1430. (eval "$ac_compile") 2>conftest.err
  1431. ac_status=$?
  1432. if test -s conftest.err; then
  1433. grep -v '^ *+' conftest.err >conftest.er1
  1434. cat conftest.er1 >&5
  1435. mv -f conftest.er1 conftest.err
  1436. fi
  1437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1438. test $ac_status = 0; } && {
  1439. test -z "$ac_c_werror_flag" ||
  1440. test ! -s conftest.err
  1441. } && test -s conftest.$ac_objext; then :
  1442. ac_retval=0
  1443. else
  1444. $as_echo "$as_me: failed program was:" >&5
  1445. sed 's/^/| /' conftest.$ac_ext >&5
  1446. ac_retval=1
  1447. fi
  1448. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1449. return $ac_retval
  1450. } # ac_fn_c_try_compile
  1451. # ac_fn_c_try_link LINENO
  1452. # -----------------------
  1453. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1454. ac_fn_c_try_link ()
  1455. {
  1456. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1457. rm -f conftest.$ac_objext conftest$ac_exeext
  1458. if { { ac_try="$ac_link"
  1459. case "(($ac_try" in
  1460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1461. *) ac_try_echo=$ac_try;;
  1462. esac
  1463. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1464. $as_echo "$ac_try_echo"; } >&5
  1465. (eval "$ac_link") 2>conftest.err
  1466. ac_status=$?
  1467. if test -s conftest.err; then
  1468. grep -v '^ *+' conftest.err >conftest.er1
  1469. cat conftest.er1 >&5
  1470. mv -f conftest.er1 conftest.err
  1471. fi
  1472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1473. test $ac_status = 0; } && {
  1474. test -z "$ac_c_werror_flag" ||
  1475. test ! -s conftest.err
  1476. } && test -s conftest$ac_exeext && {
  1477. test "$cross_compiling" = yes ||
  1478. $as_test_x conftest$ac_exeext
  1479. }; then :
  1480. ac_retval=0
  1481. else
  1482. $as_echo "$as_me: failed program was:" >&5
  1483. sed 's/^/| /' conftest.$ac_ext >&5
  1484. ac_retval=1
  1485. fi
  1486. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1487. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1488. # interfere with the next link command; also delete a directory that is
  1489. # left behind by Apple's compiler. We do this before executing the actions.
  1490. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1491. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1492. return $ac_retval
  1493. } # ac_fn_c_try_link
  1494. # ac_fn_cxx_try_compile LINENO
  1495. # ----------------------------
  1496. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1497. ac_fn_cxx_try_compile ()
  1498. {
  1499. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1500. rm -f conftest.$ac_objext
  1501. if { { ac_try="$ac_compile"
  1502. case "(($ac_try" in
  1503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1504. *) ac_try_echo=$ac_try;;
  1505. esac
  1506. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1507. $as_echo "$ac_try_echo"; } >&5
  1508. (eval "$ac_compile") 2>conftest.err
  1509. ac_status=$?
  1510. if test -s conftest.err; then
  1511. grep -v '^ *+' conftest.err >conftest.er1
  1512. cat conftest.er1 >&5
  1513. mv -f conftest.er1 conftest.err
  1514. fi
  1515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1516. test $ac_status = 0; } && {
  1517. test -z "$ac_cxx_werror_flag" ||
  1518. test ! -s conftest.err
  1519. } && test -s conftest.$ac_objext; then :
  1520. ac_retval=0
  1521. else
  1522. $as_echo "$as_me: failed program was:" >&5
  1523. sed 's/^/| /' conftest.$ac_ext >&5
  1524. ac_retval=1
  1525. fi
  1526. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1527. return $ac_retval
  1528. } # ac_fn_cxx_try_compile
  1529. # ac_fn_c_try_cpp LINENO
  1530. # ----------------------
  1531. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1532. ac_fn_c_try_cpp ()
  1533. {
  1534. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1535. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1536. case "(($ac_try" in
  1537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1538. *) ac_try_echo=$ac_try;;
  1539. esac
  1540. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1541. $as_echo "$ac_try_echo"; } >&5
  1542. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1543. ac_status=$?
  1544. if test -s conftest.err; then
  1545. grep -v '^ *+' conftest.err >conftest.er1
  1546. cat conftest.er1 >&5
  1547. mv -f conftest.er1 conftest.err
  1548. fi
  1549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1550. test $ac_status = 0; } >/dev/null && {
  1551. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1552. test ! -s conftest.err
  1553. }; then :
  1554. ac_retval=0
  1555. else
  1556. $as_echo "$as_me: failed program was:" >&5
  1557. sed 's/^/| /' conftest.$ac_ext >&5
  1558. ac_retval=1
  1559. fi
  1560. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1561. return $ac_retval
  1562. } # ac_fn_c_try_cpp
  1563. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1564. # -------------------------------------------------------
  1565. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1566. # the include files in INCLUDES and setting the cache variable VAR
  1567. # accordingly.
  1568. ac_fn_c_check_header_mongrel ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1573. $as_echo_n "checking for $2... " >&6; }
  1574. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1575. $as_echo_n "(cached) " >&6
  1576. fi
  1577. eval ac_res=\$$3
  1578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1579. $as_echo "$ac_res" >&6; }
  1580. else
  1581. # Is the header compilable?
  1582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1583. $as_echo_n "checking $2 usability... " >&6; }
  1584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1585. /* end confdefs.h. */
  1586. $4
  1587. #include <$2>
  1588. _ACEOF
  1589. if ac_fn_c_try_compile "$LINENO"; then :
  1590. ac_header_compiler=yes
  1591. else
  1592. ac_header_compiler=no
  1593. fi
  1594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1596. $as_echo "$ac_header_compiler" >&6; }
  1597. # Is the header present?
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1599. $as_echo_n "checking $2 presence... " >&6; }
  1600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1601. /* end confdefs.h. */
  1602. #include <$2>
  1603. _ACEOF
  1604. if ac_fn_c_try_cpp "$LINENO"; then :
  1605. ac_header_preproc=yes
  1606. else
  1607. ac_header_preproc=no
  1608. fi
  1609. rm -f conftest.err conftest.$ac_ext
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1611. $as_echo "$ac_header_preproc" >&6; }
  1612. # So? What about this header?
  1613. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1614. yes:no: )
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1616. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1618. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1619. ;;
  1620. no:yes:* )
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1622. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1624. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1626. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1628. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1630. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1631. ;;
  1632. esac
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1634. $as_echo_n "checking for $2... " >&6; }
  1635. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1636. $as_echo_n "(cached) " >&6
  1637. else
  1638. eval "$3=\$ac_header_compiler"
  1639. fi
  1640. eval ac_res=\$$3
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1642. $as_echo "$ac_res" >&6; }
  1643. fi
  1644. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1645. } # ac_fn_c_check_header_mongrel
  1646. # ac_fn_c_try_run LINENO
  1647. # ----------------------
  1648. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1649. # that executables *can* be run.
  1650. ac_fn_c_try_run ()
  1651. {
  1652. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1653. if { { ac_try="$ac_link"
  1654. case "(($ac_try" in
  1655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1656. *) ac_try_echo=$ac_try;;
  1657. esac
  1658. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1659. $as_echo "$ac_try_echo"; } >&5
  1660. (eval "$ac_link") 2>&5
  1661. ac_status=$?
  1662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1663. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1664. { { case "(($ac_try" in
  1665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1666. *) ac_try_echo=$ac_try;;
  1667. esac
  1668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1669. $as_echo "$ac_try_echo"; } >&5
  1670. (eval "$ac_try") 2>&5
  1671. ac_status=$?
  1672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1673. test $ac_status = 0; }; }; then :
  1674. ac_retval=0
  1675. else
  1676. $as_echo "$as_me: program exited with status $ac_status" >&5
  1677. $as_echo "$as_me: failed program was:" >&5
  1678. sed 's/^/| /' conftest.$ac_ext >&5
  1679. ac_retval=$ac_status
  1680. fi
  1681. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1682. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1683. return $ac_retval
  1684. } # ac_fn_c_try_run
  1685. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1686. # -------------------------------------------------------
  1687. # Tests whether HEADER exists and can be compiled using the include files in
  1688. # INCLUDES, setting the cache variable VAR accordingly.
  1689. ac_fn_c_check_header_compile ()
  1690. {
  1691. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1693. $as_echo_n "checking for $2... " >&6; }
  1694. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1695. $as_echo_n "(cached) " >&6
  1696. else
  1697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1698. /* end confdefs.h. */
  1699. $4
  1700. #include <$2>
  1701. _ACEOF
  1702. if ac_fn_c_try_compile "$LINENO"; then :
  1703. eval "$3=yes"
  1704. else
  1705. eval "$3=no"
  1706. fi
  1707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1708. fi
  1709. eval ac_res=\$$3
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1711. $as_echo "$ac_res" >&6; }
  1712. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1713. } # ac_fn_c_check_header_compile
  1714. # ac_fn_c_check_func LINENO FUNC VAR
  1715. # ----------------------------------
  1716. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1717. ac_fn_c_check_func ()
  1718. {
  1719. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1721. $as_echo_n "checking for $2... " >&6; }
  1722. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1723. $as_echo_n "(cached) " >&6
  1724. else
  1725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1726. /* end confdefs.h. */
  1727. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1728. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1729. #define $2 innocuous_$2
  1730. /* System header to define __stub macros and hopefully few prototypes,
  1731. which can conflict with char $2 (); below.
  1732. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1733. <limits.h> exists even on freestanding compilers. */
  1734. #ifdef __STDC__
  1735. # include <limits.h>
  1736. #else
  1737. # include <assert.h>
  1738. #endif
  1739. #undef $2
  1740. /* Override any GCC internal prototype to avoid an error.
  1741. Use char because int might match the return type of a GCC
  1742. builtin and then its argument prototype would still apply. */
  1743. #ifdef __cplusplus
  1744. extern "C"
  1745. #endif
  1746. char $2 ();
  1747. /* The GNU C library defines this for functions which it implements
  1748. to always fail with ENOSYS. Some functions are actually named
  1749. something starting with __ and the normal name is an alias. */
  1750. #if defined __stub_$2 || defined __stub___$2
  1751. choke me
  1752. #endif
  1753. int
  1754. main ()
  1755. {
  1756. return $2 ();
  1757. ;
  1758. return 0;
  1759. }
  1760. _ACEOF
  1761. if ac_fn_c_try_link "$LINENO"; then :
  1762. eval "$3=yes"
  1763. else
  1764. eval "$3=no"
  1765. fi
  1766. rm -f core conftest.err conftest.$ac_objext \
  1767. conftest$ac_exeext conftest.$ac_ext
  1768. fi
  1769. eval ac_res=\$$3
  1770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1771. $as_echo "$ac_res" >&6; }
  1772. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1773. } # ac_fn_c_check_func
  1774. # ac_fn_cxx_try_cpp LINENO
  1775. # ------------------------
  1776. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1777. ac_fn_cxx_try_cpp ()
  1778. {
  1779. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1780. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1781. case "(($ac_try" in
  1782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1783. *) ac_try_echo=$ac_try;;
  1784. esac
  1785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1786. $as_echo "$ac_try_echo"; } >&5
  1787. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1788. ac_status=$?
  1789. if test -s conftest.err; then
  1790. grep -v '^ *+' conftest.err >conftest.er1
  1791. cat conftest.er1 >&5
  1792. mv -f conftest.er1 conftest.err
  1793. fi
  1794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1795. test $ac_status = 0; } >/dev/null && {
  1796. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1797. test ! -s conftest.err
  1798. }; then :
  1799. ac_retval=0
  1800. else
  1801. $as_echo "$as_me: failed program was:" >&5
  1802. sed 's/^/| /' conftest.$ac_ext >&5
  1803. ac_retval=1
  1804. fi
  1805. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1806. return $ac_retval
  1807. } # ac_fn_cxx_try_cpp
  1808. # ac_fn_cxx_try_link LINENO
  1809. # -------------------------
  1810. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1811. ac_fn_cxx_try_link ()
  1812. {
  1813. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1814. rm -f conftest.$ac_objext conftest$ac_exeext
  1815. if { { ac_try="$ac_link"
  1816. case "(($ac_try" in
  1817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1818. *) ac_try_echo=$ac_try;;
  1819. esac
  1820. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1821. $as_echo "$ac_try_echo"; } >&5
  1822. (eval "$ac_link") 2>conftest.err
  1823. ac_status=$?
  1824. if test -s conftest.err; then
  1825. grep -v '^ *+' conftest.err >conftest.er1
  1826. cat conftest.er1 >&5
  1827. mv -f conftest.er1 conftest.err
  1828. fi
  1829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1830. test $ac_status = 0; } && {
  1831. test -z "$ac_cxx_werror_flag" ||
  1832. test ! -s conftest.err
  1833. } && test -s conftest$ac_exeext && {
  1834. test "$cross_compiling" = yes ||
  1835. $as_test_x conftest$ac_exeext
  1836. }; then :
  1837. ac_retval=0
  1838. else
  1839. $as_echo "$as_me: failed program was:" >&5
  1840. sed 's/^/| /' conftest.$ac_ext >&5
  1841. ac_retval=1
  1842. fi
  1843. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1844. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1845. # interfere with the next link command; also delete a directory that is
  1846. # left behind by Apple's compiler. We do this before executing the actions.
  1847. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1848. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1849. return $ac_retval
  1850. } # ac_fn_cxx_try_link
  1851. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1852. # ------------------------------------
  1853. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1854. ac_fn_c_check_decl ()
  1855. {
  1856. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1857. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1858. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1860. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1861. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1862. $as_echo_n "(cached) " >&6
  1863. else
  1864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1865. /* end confdefs.h. */
  1866. $4
  1867. int
  1868. main ()
  1869. {
  1870. #ifndef $as_decl_name
  1871. #ifdef __cplusplus
  1872. (void) $as_decl_use;
  1873. #else
  1874. (void) $as_decl_name;
  1875. #endif
  1876. #endif
  1877. ;
  1878. return 0;
  1879. }
  1880. _ACEOF
  1881. if ac_fn_c_try_compile "$LINENO"; then :
  1882. eval "$3=yes"
  1883. else
  1884. eval "$3=no"
  1885. fi
  1886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1887. fi
  1888. eval ac_res=\$$3
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1890. $as_echo "$ac_res" >&6; }
  1891. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1892. } # ac_fn_c_check_decl
  1893. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1894. # --------------------------------------------
  1895. # Tries to find the compile-time value of EXPR in a program that includes
  1896. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1897. # computed
  1898. ac_fn_c_compute_int ()
  1899. {
  1900. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1901. if test "$cross_compiling" = yes; then
  1902. # Depending upon the size, compute the lo and hi bounds.
  1903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1904. /* end confdefs.h. */
  1905. $4
  1906. int
  1907. main ()
  1908. {
  1909. static int test_array [1 - 2 * !(($2) >= 0)];
  1910. test_array [0] = 0
  1911. ;
  1912. return 0;
  1913. }
  1914. _ACEOF
  1915. if ac_fn_c_try_compile "$LINENO"; then :
  1916. ac_lo=0 ac_mid=0
  1917. while :; do
  1918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1919. /* end confdefs.h. */
  1920. $4
  1921. int
  1922. main ()
  1923. {
  1924. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1925. test_array [0] = 0
  1926. ;
  1927. return 0;
  1928. }
  1929. _ACEOF
  1930. if ac_fn_c_try_compile "$LINENO"; then :
  1931. ac_hi=$ac_mid; break
  1932. else
  1933. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1934. if test $ac_lo -le $ac_mid; then
  1935. ac_lo= ac_hi=
  1936. break
  1937. fi
  1938. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1939. fi
  1940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1941. done
  1942. else
  1943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1944. /* end confdefs.h. */
  1945. $4
  1946. int
  1947. main ()
  1948. {
  1949. static int test_array [1 - 2 * !(($2) < 0)];
  1950. test_array [0] = 0
  1951. ;
  1952. return 0;
  1953. }
  1954. _ACEOF
  1955. if ac_fn_c_try_compile "$LINENO"; then :
  1956. ac_hi=-1 ac_mid=-1
  1957. while :; do
  1958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1959. /* end confdefs.h. */
  1960. $4
  1961. int
  1962. main ()
  1963. {
  1964. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1965. test_array [0] = 0
  1966. ;
  1967. return 0;
  1968. }
  1969. _ACEOF
  1970. if ac_fn_c_try_compile "$LINENO"; then :
  1971. ac_lo=$ac_mid; break
  1972. else
  1973. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1974. if test $ac_mid -le $ac_hi; then
  1975. ac_lo= ac_hi=
  1976. break
  1977. fi
  1978. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1979. fi
  1980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1981. done
  1982. else
  1983. ac_lo= ac_hi=
  1984. fi
  1985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1986. fi
  1987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1988. # Binary search between lo and hi bounds.
  1989. while test "x$ac_lo" != "x$ac_hi"; do
  1990. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1992. /* end confdefs.h. */
  1993. $4
  1994. int
  1995. main ()
  1996. {
  1997. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1998. test_array [0] = 0
  1999. ;
  2000. return 0;
  2001. }
  2002. _ACEOF
  2003. if ac_fn_c_try_compile "$LINENO"; then :
  2004. ac_hi=$ac_mid
  2005. else
  2006. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2007. fi
  2008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2009. done
  2010. case $ac_lo in #((
  2011. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2012. '') ac_retval=1 ;;
  2013. esac
  2014. else
  2015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2016. /* end confdefs.h. */
  2017. $4
  2018. static long int longval () { return $2; }
  2019. static unsigned long int ulongval () { return $2; }
  2020. #include <stdio.h>
  2021. #include <stdlib.h>
  2022. int
  2023. main ()
  2024. {
  2025. FILE *f = fopen ("conftest.val", "w");
  2026. if (! f)
  2027. return 1;
  2028. if (($2) < 0)
  2029. {
  2030. long int i = longval ();
  2031. if (i != ($2))
  2032. return 1;
  2033. fprintf (f, "%ld", i);
  2034. }
  2035. else
  2036. {
  2037. unsigned long int i = ulongval ();
  2038. if (i != ($2))
  2039. return 1;
  2040. fprintf (f, "%lu", i);
  2041. }
  2042. /* Do not output a trailing newline, as this causes \r\n confusion
  2043. on some platforms. */
  2044. return ferror (f) || fclose (f) != 0;
  2045. ;
  2046. return 0;
  2047. }
  2048. _ACEOF
  2049. if ac_fn_c_try_run "$LINENO"; then :
  2050. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2051. else
  2052. ac_retval=1
  2053. fi
  2054. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2055. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2056. rm -f conftest.val
  2057. fi
  2058. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2059. return $ac_retval
  2060. } # ac_fn_c_compute_int
  2061. cat >config.log <<_ACEOF
  2062. This file contains any messages produced by compilers while
  2063. running configure, to aid debugging if configure makes a mistake.
  2064. It was created by ld $as_me 2.25.51, which was
  2065. generated by GNU Autoconf 2.64. Invocation command line was
  2066. $ $0 $@
  2067. _ACEOF
  2068. exec 5>>config.log
  2069. {
  2070. cat <<_ASUNAME
  2071. ## --------- ##
  2072. ## Platform. ##
  2073. ## --------- ##
  2074. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2075. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2076. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2077. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2078. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2079. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2080. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2081. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2082. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2083. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2084. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2085. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2086. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2087. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2088. _ASUNAME
  2089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2090. for as_dir in $PATH
  2091. do
  2092. IFS=$as_save_IFS
  2093. test -z "$as_dir" && as_dir=.
  2094. $as_echo "PATH: $as_dir"
  2095. done
  2096. IFS=$as_save_IFS
  2097. } >&5
  2098. cat >&5 <<_ACEOF
  2099. ## ----------- ##
  2100. ## Core tests. ##
  2101. ## ----------- ##
  2102. _ACEOF
  2103. # Keep a trace of the command line.
  2104. # Strip out --no-create and --no-recursion so they do not pile up.
  2105. # Strip out --silent because we don't want to record it for future runs.
  2106. # Also quote any args containing shell meta-characters.
  2107. # Make two passes to allow for proper duplicate-argument suppression.
  2108. ac_configure_args=
  2109. ac_configure_args0=
  2110. ac_configure_args1=
  2111. ac_must_keep_next=false
  2112. for ac_pass in 1 2
  2113. do
  2114. for ac_arg
  2115. do
  2116. case $ac_arg in
  2117. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2118. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2119. | -silent | --silent | --silen | --sile | --sil)
  2120. continue ;;
  2121. *\'*)
  2122. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2123. esac
  2124. case $ac_pass in
  2125. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2126. 2)
  2127. as_fn_append ac_configure_args1 " '$ac_arg'"
  2128. if test $ac_must_keep_next = true; then
  2129. ac_must_keep_next=false # Got value, back to normal.
  2130. else
  2131. case $ac_arg in
  2132. *=* | --config-cache | -C | -disable-* | --disable-* \
  2133. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2134. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2135. | -with-* | --with-* | -without-* | --without-* | --x)
  2136. case "$ac_configure_args0 " in
  2137. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2138. esac
  2139. ;;
  2140. -* ) ac_must_keep_next=true ;;
  2141. esac
  2142. fi
  2143. as_fn_append ac_configure_args " '$ac_arg'"
  2144. ;;
  2145. esac
  2146. done
  2147. done
  2148. { ac_configure_args0=; unset ac_configure_args0;}
  2149. { ac_configure_args1=; unset ac_configure_args1;}
  2150. # When interrupted or exit'd, cleanup temporary files, and complete
  2151. # config.log. We remove comments because anyway the quotes in there
  2152. # would cause problems or look ugly.
  2153. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2154. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2155. trap 'exit_status=$?
  2156. # Save into config.log some information that might help in debugging.
  2157. {
  2158. echo
  2159. cat <<\_ASBOX
  2160. ## ---------------- ##
  2161. ## Cache variables. ##
  2162. ## ---------------- ##
  2163. _ASBOX
  2164. echo
  2165. # The following way of writing the cache mishandles newlines in values,
  2166. (
  2167. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2168. eval ac_val=\$$ac_var
  2169. case $ac_val in #(
  2170. *${as_nl}*)
  2171. case $ac_var in #(
  2172. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2173. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2174. esac
  2175. case $ac_var in #(
  2176. _ | IFS | as_nl) ;; #(
  2177. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2178. *) { eval $ac_var=; unset $ac_var;} ;;
  2179. esac ;;
  2180. esac
  2181. done
  2182. (set) 2>&1 |
  2183. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2184. *${as_nl}ac_space=\ *)
  2185. sed -n \
  2186. "s/'\''/'\''\\\\'\'''\''/g;
  2187. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2188. ;; #(
  2189. *)
  2190. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2191. ;;
  2192. esac |
  2193. sort
  2194. )
  2195. echo
  2196. cat <<\_ASBOX
  2197. ## ----------------- ##
  2198. ## Output variables. ##
  2199. ## ----------------- ##
  2200. _ASBOX
  2201. echo
  2202. for ac_var in $ac_subst_vars
  2203. do
  2204. eval ac_val=\$$ac_var
  2205. case $ac_val in
  2206. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2207. esac
  2208. $as_echo "$ac_var='\''$ac_val'\''"
  2209. done | sort
  2210. echo
  2211. if test -n "$ac_subst_files"; then
  2212. cat <<\_ASBOX
  2213. ## ------------------- ##
  2214. ## File substitutions. ##
  2215. ## ------------------- ##
  2216. _ASBOX
  2217. echo
  2218. for ac_var in $ac_subst_files
  2219. do
  2220. eval ac_val=\$$ac_var
  2221. case $ac_val in
  2222. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2223. esac
  2224. $as_echo "$ac_var='\''$ac_val'\''"
  2225. done | sort
  2226. echo
  2227. fi
  2228. if test -s confdefs.h; then
  2229. cat <<\_ASBOX
  2230. ## ----------- ##
  2231. ## confdefs.h. ##
  2232. ## ----------- ##
  2233. _ASBOX
  2234. echo
  2235. cat confdefs.h
  2236. echo
  2237. fi
  2238. test "$ac_signal" != 0 &&
  2239. $as_echo "$as_me: caught signal $ac_signal"
  2240. $as_echo "$as_me: exit $exit_status"
  2241. } >&5
  2242. rm -f core *.core core.conftest.* &&
  2243. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2244. exit $exit_status
  2245. ' 0
  2246. for ac_signal in 1 2 13 15; do
  2247. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2248. done
  2249. ac_signal=0
  2250. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2251. rm -f -r conftest* confdefs.h
  2252. $as_echo "/* confdefs.h */" > confdefs.h
  2253. # Predefined preprocessor variables.
  2254. cat >>confdefs.h <<_ACEOF
  2255. #define PACKAGE_NAME "$PACKAGE_NAME"
  2256. _ACEOF
  2257. cat >>confdefs.h <<_ACEOF
  2258. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2259. _ACEOF
  2260. cat >>confdefs.h <<_ACEOF
  2261. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2262. _ACEOF
  2263. cat >>confdefs.h <<_ACEOF
  2264. #define PACKAGE_STRING "$PACKAGE_STRING"
  2265. _ACEOF
  2266. cat >>confdefs.h <<_ACEOF
  2267. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2268. _ACEOF
  2269. cat >>confdefs.h <<_ACEOF
  2270. #define PACKAGE_URL "$PACKAGE_URL"
  2271. _ACEOF
  2272. # Let the site file select an alternate cache file if it wants to.
  2273. # Prefer an explicitly selected file to automatically selected ones.
  2274. ac_site_file1=NONE
  2275. ac_site_file2=NONE
  2276. if test -n "$CONFIG_SITE"; then
  2277. ac_site_file1=$CONFIG_SITE
  2278. elif test "x$prefix" != xNONE; then
  2279. ac_site_file1=$prefix/share/config.site
  2280. ac_site_file2=$prefix/etc/config.site
  2281. else
  2282. ac_site_file1=$ac_default_prefix/share/config.site
  2283. ac_site_file2=$ac_default_prefix/etc/config.site
  2284. fi
  2285. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2286. do
  2287. test "x$ac_site_file" = xNONE && continue
  2288. if test -r "$ac_site_file"; then
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2290. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2291. sed 's/^/| /' "$ac_site_file" >&5
  2292. . "$ac_site_file"
  2293. fi
  2294. done
  2295. if test -r "$cache_file"; then
  2296. # Some versions of bash will fail to source /dev/null (special
  2297. # files actually), so we avoid doing that.
  2298. if test -f "$cache_file"; then
  2299. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2300. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2301. case $cache_file in
  2302. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2303. *) . "./$cache_file";;
  2304. esac
  2305. fi
  2306. else
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2308. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2309. >$cache_file
  2310. fi
  2311. # Check that the precious variables saved in the cache have kept the same
  2312. # value.
  2313. ac_cache_corrupted=false
  2314. for ac_var in $ac_precious_vars; do
  2315. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2316. eval ac_new_set=\$ac_env_${ac_var}_set
  2317. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2318. eval ac_new_val=\$ac_env_${ac_var}_value
  2319. case $ac_old_set,$ac_new_set in
  2320. set,)
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2322. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2323. ac_cache_corrupted=: ;;
  2324. ,set)
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2326. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2327. ac_cache_corrupted=: ;;
  2328. ,);;
  2329. *)
  2330. if test "x$ac_old_val" != "x$ac_new_val"; then
  2331. # differences in whitespace do not lead to failure.
  2332. ac_old_val_w=`echo x $ac_old_val`
  2333. ac_new_val_w=`echo x $ac_new_val`
  2334. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2336. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2337. ac_cache_corrupted=:
  2338. else
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2340. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2341. eval $ac_var=\$ac_old_val
  2342. fi
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2344. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2346. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2347. fi;;
  2348. esac
  2349. # Pass precious variables to config.status.
  2350. if test "$ac_new_set" = set; then
  2351. case $ac_new_val in
  2352. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2353. *) ac_arg=$ac_var=$ac_new_val ;;
  2354. esac
  2355. case " $ac_configure_args " in
  2356. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2357. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2358. esac
  2359. fi
  2360. done
  2361. if $ac_cache_corrupted; then
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2363. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2365. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2366. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2367. fi
  2368. ## -------------------- ##
  2369. ## Main body of script. ##
  2370. ## -------------------- ##
  2371. ac_ext=c
  2372. ac_cpp='$CPP $CPPFLAGS'
  2373. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2374. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2375. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2376. ac_aux_dir=
  2377. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2378. for ac_t in install-sh install.sh shtool; do
  2379. if test -f "$ac_dir/$ac_t"; then
  2380. ac_aux_dir=$ac_dir
  2381. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2382. break 2
  2383. fi
  2384. done
  2385. done
  2386. if test -z "$ac_aux_dir"; then
  2387. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2388. fi
  2389. # These three variables are undocumented and unsupported,
  2390. # and are intended to be withdrawn in a future Autoconf release.
  2391. # They can cause serious problems if a builder's source tree is in a directory
  2392. # whose full name contains unusual characters.
  2393. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2394. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2395. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2396. # Make sure we can run config.sub.
  2397. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2398. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2400. $as_echo_n "checking build system type... " >&6; }
  2401. if test "${ac_cv_build+set}" = set; then :
  2402. $as_echo_n "(cached) " >&6
  2403. else
  2404. ac_build_alias=$build_alias
  2405. test "x$ac_build_alias" = x &&
  2406. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2407. test "x$ac_build_alias" = x &&
  2408. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2409. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2410. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2411. fi
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2413. $as_echo "$ac_cv_build" >&6; }
  2414. case $ac_cv_build in
  2415. *-*-*) ;;
  2416. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2417. esac
  2418. build=$ac_cv_build
  2419. ac_save_IFS=$IFS; IFS='-'
  2420. set x $ac_cv_build
  2421. shift
  2422. build_cpu=$1
  2423. build_vendor=$2
  2424. shift; shift
  2425. # Remember, the first character of IFS is used to create $*,
  2426. # except with old shells:
  2427. build_os=$*
  2428. IFS=$ac_save_IFS
  2429. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2431. $as_echo_n "checking host system type... " >&6; }
  2432. if test "${ac_cv_host+set}" = set; then :
  2433. $as_echo_n "(cached) " >&6
  2434. else
  2435. if test "x$host_alias" = x; then
  2436. ac_cv_host=$ac_cv_build
  2437. else
  2438. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2439. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2440. fi
  2441. fi
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2443. $as_echo "$ac_cv_host" >&6; }
  2444. case $ac_cv_host in
  2445. *-*-*) ;;
  2446. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2447. esac
  2448. host=$ac_cv_host
  2449. ac_save_IFS=$IFS; IFS='-'
  2450. set x $ac_cv_host
  2451. shift
  2452. host_cpu=$1
  2453. host_vendor=$2
  2454. shift; shift
  2455. # Remember, the first character of IFS is used to create $*,
  2456. # except with old shells:
  2457. host_os=$*
  2458. IFS=$ac_save_IFS
  2459. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2461. $as_echo_n "checking target system type... " >&6; }
  2462. if test "${ac_cv_target+set}" = set; then :
  2463. $as_echo_n "(cached) " >&6
  2464. else
  2465. if test "x$target_alias" = x; then
  2466. ac_cv_target=$ac_cv_host
  2467. else
  2468. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2469. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2470. fi
  2471. fi
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2473. $as_echo "$ac_cv_target" >&6; }
  2474. case $ac_cv_target in
  2475. *-*-*) ;;
  2476. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2477. esac
  2478. target=$ac_cv_target
  2479. ac_save_IFS=$IFS; IFS='-'
  2480. set x $ac_cv_target
  2481. shift
  2482. target_cpu=$1
  2483. target_vendor=$2
  2484. shift; shift
  2485. # Remember, the first character of IFS is used to create $*,
  2486. # except with old shells:
  2487. target_os=$*
  2488. IFS=$ac_save_IFS
  2489. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2490. # The aliases save the names the user supplied, while $host etc.
  2491. # will get canonicalized.
  2492. test -n "$target_alias" &&
  2493. test "$program_prefix$program_suffix$program_transform_name" = \
  2494. NONENONEs,x,x, &&
  2495. program_prefix=${target_alias}-
  2496. ac_ext=c
  2497. ac_cpp='$CPP $CPPFLAGS'
  2498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2501. if test -n "$ac_tool_prefix"; then
  2502. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2503. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2505. $as_echo_n "checking for $ac_word... " >&6; }
  2506. if test "${ac_cv_prog_CC+set}" = set; then :
  2507. $as_echo_n "(cached) " >&6
  2508. else
  2509. if test -n "$CC"; then
  2510. ac_cv_prog_CC="$CC" # Let the user override the test.
  2511. else
  2512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2513. for as_dir in $PATH
  2514. do
  2515. IFS=$as_save_IFS
  2516. test -z "$as_dir" && as_dir=.
  2517. for ac_exec_ext in '' $ac_executable_extensions; do
  2518. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2519. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2521. break 2
  2522. fi
  2523. done
  2524. done
  2525. IFS=$as_save_IFS
  2526. fi
  2527. fi
  2528. CC=$ac_cv_prog_CC
  2529. if test -n "$CC"; then
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2531. $as_echo "$CC" >&6; }
  2532. else
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2534. $as_echo "no" >&6; }
  2535. fi
  2536. fi
  2537. if test -z "$ac_cv_prog_CC"; then
  2538. ac_ct_CC=$CC
  2539. # Extract the first word of "gcc", so it can be a program name with args.
  2540. set dummy gcc; ac_word=$2
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2542. $as_echo_n "checking for $ac_word... " >&6; }
  2543. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2544. $as_echo_n "(cached) " >&6
  2545. else
  2546. if test -n "$ac_ct_CC"; then
  2547. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2548. else
  2549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2550. for as_dir in $PATH
  2551. do
  2552. IFS=$as_save_IFS
  2553. test -z "$as_dir" && as_dir=.
  2554. for ac_exec_ext in '' $ac_executable_extensions; do
  2555. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2556. ac_cv_prog_ac_ct_CC="gcc"
  2557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2558. break 2
  2559. fi
  2560. done
  2561. done
  2562. IFS=$as_save_IFS
  2563. fi
  2564. fi
  2565. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2566. if test -n "$ac_ct_CC"; then
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2568. $as_echo "$ac_ct_CC" >&6; }
  2569. else
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2571. $as_echo "no" >&6; }
  2572. fi
  2573. if test "x$ac_ct_CC" = x; then
  2574. CC=""
  2575. else
  2576. case $cross_compiling:$ac_tool_warned in
  2577. yes:)
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2579. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2580. ac_tool_warned=yes ;;
  2581. esac
  2582. CC=$ac_ct_CC
  2583. fi
  2584. else
  2585. CC="$ac_cv_prog_CC"
  2586. fi
  2587. if test -z "$CC"; then
  2588. if test -n "$ac_tool_prefix"; then
  2589. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2590. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2592. $as_echo_n "checking for $ac_word... " >&6; }
  2593. if test "${ac_cv_prog_CC+set}" = set; then :
  2594. $as_echo_n "(cached) " >&6
  2595. else
  2596. if test -n "$CC"; then
  2597. ac_cv_prog_CC="$CC" # Let the user override the test.
  2598. else
  2599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2600. for as_dir in $PATH
  2601. do
  2602. IFS=$as_save_IFS
  2603. test -z "$as_dir" && as_dir=.
  2604. for ac_exec_ext in '' $ac_executable_extensions; do
  2605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2606. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2608. break 2
  2609. fi
  2610. done
  2611. done
  2612. IFS=$as_save_IFS
  2613. fi
  2614. fi
  2615. CC=$ac_cv_prog_CC
  2616. if test -n "$CC"; then
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2618. $as_echo "$CC" >&6; }
  2619. else
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2621. $as_echo "no" >&6; }
  2622. fi
  2623. fi
  2624. fi
  2625. if test -z "$CC"; then
  2626. # Extract the first word of "cc", so it can be a program name with args.
  2627. set dummy cc; ac_word=$2
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2629. $as_echo_n "checking for $ac_word... " >&6; }
  2630. if test "${ac_cv_prog_CC+set}" = set; then :
  2631. $as_echo_n "(cached) " >&6
  2632. else
  2633. if test -n "$CC"; then
  2634. ac_cv_prog_CC="$CC" # Let the user override the test.
  2635. else
  2636. ac_prog_rejected=no
  2637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2638. for as_dir in $PATH
  2639. do
  2640. IFS=$as_save_IFS
  2641. test -z "$as_dir" && as_dir=.
  2642. for ac_exec_ext in '' $ac_executable_extensions; do
  2643. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2644. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2645. ac_prog_rejected=yes
  2646. continue
  2647. fi
  2648. ac_cv_prog_CC="cc"
  2649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2650. break 2
  2651. fi
  2652. done
  2653. done
  2654. IFS=$as_save_IFS
  2655. if test $ac_prog_rejected = yes; then
  2656. # We found a bogon in the path, so make sure we never use it.
  2657. set dummy $ac_cv_prog_CC
  2658. shift
  2659. if test $# != 0; then
  2660. # We chose a different compiler from the bogus one.
  2661. # However, it has the same basename, so the bogon will be chosen
  2662. # first if we set CC to just the basename; use the full file name.
  2663. shift
  2664. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2665. fi
  2666. fi
  2667. fi
  2668. fi
  2669. CC=$ac_cv_prog_CC
  2670. if test -n "$CC"; then
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2672. $as_echo "$CC" >&6; }
  2673. else
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2675. $as_echo "no" >&6; }
  2676. fi
  2677. fi
  2678. if test -z "$CC"; then
  2679. if test -n "$ac_tool_prefix"; then
  2680. for ac_prog in cl.exe
  2681. do
  2682. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2683. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2685. $as_echo_n "checking for $ac_word... " >&6; }
  2686. if test "${ac_cv_prog_CC+set}" = set; then :
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. if test -n "$CC"; then
  2690. ac_cv_prog_CC="$CC" # Let the user override the test.
  2691. else
  2692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2693. for as_dir in $PATH
  2694. do
  2695. IFS=$as_save_IFS
  2696. test -z "$as_dir" && as_dir=.
  2697. for ac_exec_ext in '' $ac_executable_extensions; do
  2698. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2699. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2701. break 2
  2702. fi
  2703. done
  2704. done
  2705. IFS=$as_save_IFS
  2706. fi
  2707. fi
  2708. CC=$ac_cv_prog_CC
  2709. if test -n "$CC"; then
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2711. $as_echo "$CC" >&6; }
  2712. else
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2714. $as_echo "no" >&6; }
  2715. fi
  2716. test -n "$CC" && break
  2717. done
  2718. fi
  2719. if test -z "$CC"; then
  2720. ac_ct_CC=$CC
  2721. for ac_prog in cl.exe
  2722. do
  2723. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2724. set dummy $ac_prog; ac_word=$2
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2726. $as_echo_n "checking for $ac_word... " >&6; }
  2727. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2728. $as_echo_n "(cached) " >&6
  2729. else
  2730. if test -n "$ac_ct_CC"; then
  2731. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2732. else
  2733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2734. for as_dir in $PATH
  2735. do
  2736. IFS=$as_save_IFS
  2737. test -z "$as_dir" && as_dir=.
  2738. for ac_exec_ext in '' $ac_executable_extensions; do
  2739. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2740. ac_cv_prog_ac_ct_CC="$ac_prog"
  2741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2742. break 2
  2743. fi
  2744. done
  2745. done
  2746. IFS=$as_save_IFS
  2747. fi
  2748. fi
  2749. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2750. if test -n "$ac_ct_CC"; then
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2752. $as_echo "$ac_ct_CC" >&6; }
  2753. else
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2755. $as_echo "no" >&6; }
  2756. fi
  2757. test -n "$ac_ct_CC" && break
  2758. done
  2759. if test "x$ac_ct_CC" = x; then
  2760. CC=""
  2761. else
  2762. case $cross_compiling:$ac_tool_warned in
  2763. yes:)
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2765. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2766. ac_tool_warned=yes ;;
  2767. esac
  2768. CC=$ac_ct_CC
  2769. fi
  2770. fi
  2771. fi
  2772. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2773. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2774. as_fn_error "no acceptable C compiler found in \$PATH
  2775. See \`config.log' for more details." "$LINENO" 5; }
  2776. # Provide some information about the compiler.
  2777. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2778. set X $ac_compile
  2779. ac_compiler=$2
  2780. for ac_option in --version -v -V -qversion; do
  2781. { { ac_try="$ac_compiler $ac_option >&5"
  2782. case "(($ac_try" in
  2783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2784. *) ac_try_echo=$ac_try;;
  2785. esac
  2786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2787. $as_echo "$ac_try_echo"; } >&5
  2788. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2789. ac_status=$?
  2790. if test -s conftest.err; then
  2791. sed '10a\
  2792. ... rest of stderr output deleted ...
  2793. 10q' conftest.err >conftest.er1
  2794. cat conftest.er1 >&5
  2795. rm -f conftest.er1 conftest.err
  2796. fi
  2797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2798. test $ac_status = 0; }
  2799. done
  2800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2801. /* end confdefs.h. */
  2802. int
  2803. main ()
  2804. {
  2805. ;
  2806. return 0;
  2807. }
  2808. _ACEOF
  2809. ac_clean_files_save=$ac_clean_files
  2810. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2811. # Try to create an executable without -o first, disregard a.out.
  2812. # It will help us diagnose broken compilers, and finding out an intuition
  2813. # of exeext.
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2815. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2816. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2817. # The possible output files:
  2818. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2819. ac_rmfiles=
  2820. for ac_file in $ac_files
  2821. do
  2822. case $ac_file in
  2823. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2824. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2825. esac
  2826. done
  2827. rm -f $ac_rmfiles
  2828. if { { ac_try="$ac_link_default"
  2829. case "(($ac_try" in
  2830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2831. *) ac_try_echo=$ac_try;;
  2832. esac
  2833. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2834. $as_echo "$ac_try_echo"; } >&5
  2835. (eval "$ac_link_default") 2>&5
  2836. ac_status=$?
  2837. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2838. test $ac_status = 0; }; then :
  2839. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2840. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2841. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2842. # so that the user can short-circuit this test for compilers unknown to
  2843. # Autoconf.
  2844. for ac_file in $ac_files ''
  2845. do
  2846. test -f "$ac_file" || continue
  2847. case $ac_file in
  2848. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2849. ;;
  2850. [ab].out )
  2851. # We found the default executable, but exeext='' is most
  2852. # certainly right.
  2853. break;;
  2854. *.* )
  2855. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2856. then :; else
  2857. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2858. fi
  2859. # We set ac_cv_exeext here because the later test for it is not
  2860. # safe: cross compilers may not add the suffix if given an `-o'
  2861. # argument, so we may need to know it at that point already.
  2862. # Even if this section looks crufty: it has the advantage of
  2863. # actually working.
  2864. break;;
  2865. * )
  2866. break;;
  2867. esac
  2868. done
  2869. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2870. else
  2871. ac_file=''
  2872. fi
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2874. $as_echo "$ac_file" >&6; }
  2875. if test -z "$ac_file"; then :
  2876. $as_echo "$as_me: failed program was:" >&5
  2877. sed 's/^/| /' conftest.$ac_ext >&5
  2878. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2879. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2880. { as_fn_set_status 77
  2881. as_fn_error "C compiler cannot create executables
  2882. See \`config.log' for more details." "$LINENO" 5; }; }
  2883. fi
  2884. ac_exeext=$ac_cv_exeext
  2885. # Check that the compiler produces executables we can run. If not, either
  2886. # the compiler is broken, or we cross compile.
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2888. $as_echo_n "checking whether the C compiler works... " >&6; }
  2889. # If not cross compiling, check that we can run a simple program.
  2890. if test "$cross_compiling" != yes; then
  2891. if { ac_try='./$ac_file'
  2892. { { case "(($ac_try" in
  2893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2894. *) ac_try_echo=$ac_try;;
  2895. esac
  2896. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2897. $as_echo "$ac_try_echo"; } >&5
  2898. (eval "$ac_try") 2>&5
  2899. ac_status=$?
  2900. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2901. test $ac_status = 0; }; }; then
  2902. cross_compiling=no
  2903. else
  2904. if test "$cross_compiling" = maybe; then
  2905. cross_compiling=yes
  2906. else
  2907. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2908. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2909. as_fn_error "cannot run C compiled programs.
  2910. If you meant to cross compile, use \`--host'.
  2911. See \`config.log' for more details." "$LINENO" 5; }
  2912. fi
  2913. fi
  2914. fi
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2916. $as_echo "yes" >&6; }
  2917. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2918. ac_clean_files=$ac_clean_files_save
  2919. # Check that the compiler produces executables we can run. If not, either
  2920. # the compiler is broken, or we cross compile.
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2922. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2924. $as_echo "$cross_compiling" >&6; }
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2926. $as_echo_n "checking for suffix of executables... " >&6; }
  2927. if { { ac_try="$ac_link"
  2928. case "(($ac_try" in
  2929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2930. *) ac_try_echo=$ac_try;;
  2931. esac
  2932. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2933. $as_echo "$ac_try_echo"; } >&5
  2934. (eval "$ac_link") 2>&5
  2935. ac_status=$?
  2936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2937. test $ac_status = 0; }; then :
  2938. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2939. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2940. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2941. # `rm'.
  2942. for ac_file in conftest.exe conftest conftest.*; do
  2943. test -f "$ac_file" || continue
  2944. case $ac_file in
  2945. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2946. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2947. break;;
  2948. * ) break;;
  2949. esac
  2950. done
  2951. else
  2952. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2953. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2954. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2955. See \`config.log' for more details." "$LINENO" 5; }
  2956. fi
  2957. rm -f conftest$ac_cv_exeext
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2959. $as_echo "$ac_cv_exeext" >&6; }
  2960. rm -f conftest.$ac_ext
  2961. EXEEXT=$ac_cv_exeext
  2962. ac_exeext=$EXEEXT
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2964. $as_echo_n "checking for suffix of object files... " >&6; }
  2965. if test "${ac_cv_objext+set}" = set; then :
  2966. $as_echo_n "(cached) " >&6
  2967. else
  2968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2969. /* end confdefs.h. */
  2970. int
  2971. main ()
  2972. {
  2973. ;
  2974. return 0;
  2975. }
  2976. _ACEOF
  2977. rm -f conftest.o conftest.obj
  2978. if { { ac_try="$ac_compile"
  2979. case "(($ac_try" in
  2980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2981. *) ac_try_echo=$ac_try;;
  2982. esac
  2983. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2984. $as_echo "$ac_try_echo"; } >&5
  2985. (eval "$ac_compile") 2>&5
  2986. ac_status=$?
  2987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2988. test $ac_status = 0; }; then :
  2989. for ac_file in conftest.o conftest.obj conftest.*; do
  2990. test -f "$ac_file" || continue;
  2991. case $ac_file in
  2992. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2993. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2994. break;;
  2995. esac
  2996. done
  2997. else
  2998. $as_echo "$as_me: failed program was:" >&5
  2999. sed 's/^/| /' conftest.$ac_ext >&5
  3000. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3001. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3002. as_fn_error "cannot compute suffix of object files: cannot compile
  3003. See \`config.log' for more details." "$LINENO" 5; }
  3004. fi
  3005. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3006. fi
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3008. $as_echo "$ac_cv_objext" >&6; }
  3009. OBJEXT=$ac_cv_objext
  3010. ac_objext=$OBJEXT
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3012. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3013. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3014. $as_echo_n "(cached) " >&6
  3015. else
  3016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3017. /* end confdefs.h. */
  3018. int
  3019. main ()
  3020. {
  3021. #ifndef __GNUC__
  3022. choke me
  3023. #endif
  3024. ;
  3025. return 0;
  3026. }
  3027. _ACEOF
  3028. if ac_fn_c_try_compile "$LINENO"; then :
  3029. ac_compiler_gnu=yes
  3030. else
  3031. ac_compiler_gnu=no
  3032. fi
  3033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3034. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3035. fi
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3037. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3038. if test $ac_compiler_gnu = yes; then
  3039. GCC=yes
  3040. else
  3041. GCC=
  3042. fi
  3043. ac_test_CFLAGS=${CFLAGS+set}
  3044. ac_save_CFLAGS=$CFLAGS
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3046. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3047. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3048. $as_echo_n "(cached) " >&6
  3049. else
  3050. ac_save_c_werror_flag=$ac_c_werror_flag
  3051. ac_c_werror_flag=yes
  3052. ac_cv_prog_cc_g=no
  3053. CFLAGS="-g"
  3054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3055. /* end confdefs.h. */
  3056. int
  3057. main ()
  3058. {
  3059. ;
  3060. return 0;
  3061. }
  3062. _ACEOF
  3063. if ac_fn_c_try_compile "$LINENO"; then :
  3064. ac_cv_prog_cc_g=yes
  3065. else
  3066. CFLAGS=""
  3067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3068. /* end confdefs.h. */
  3069. int
  3070. main ()
  3071. {
  3072. ;
  3073. return 0;
  3074. }
  3075. _ACEOF
  3076. if ac_fn_c_try_compile "$LINENO"; then :
  3077. else
  3078. ac_c_werror_flag=$ac_save_c_werror_flag
  3079. CFLAGS="-g"
  3080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3081. /* end confdefs.h. */
  3082. int
  3083. main ()
  3084. {
  3085. ;
  3086. return 0;
  3087. }
  3088. _ACEOF
  3089. if ac_fn_c_try_compile "$LINENO"; then :
  3090. ac_cv_prog_cc_g=yes
  3091. fi
  3092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3093. fi
  3094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3095. fi
  3096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3097. ac_c_werror_flag=$ac_save_c_werror_flag
  3098. fi
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3100. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3101. if test "$ac_test_CFLAGS" = set; then
  3102. CFLAGS=$ac_save_CFLAGS
  3103. elif test $ac_cv_prog_cc_g = yes; then
  3104. if test "$GCC" = yes; then
  3105. CFLAGS="-g -O2"
  3106. else
  3107. CFLAGS="-g"
  3108. fi
  3109. else
  3110. if test "$GCC" = yes; then
  3111. CFLAGS="-O2"
  3112. else
  3113. CFLAGS=
  3114. fi
  3115. fi
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3117. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3118. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3119. $as_echo_n "(cached) " >&6
  3120. else
  3121. ac_cv_prog_cc_c89=no
  3122. ac_save_CC=$CC
  3123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3124. /* end confdefs.h. */
  3125. #include <stdarg.h>
  3126. #include <stdio.h>
  3127. #include <sys/types.h>
  3128. #include <sys/stat.h>
  3129. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3130. struct buf { int x; };
  3131. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3132. static char *e (p, i)
  3133. char **p;
  3134. int i;
  3135. {
  3136. return p[i];
  3137. }
  3138. static char *f (char * (*g) (char **, int), char **p, ...)
  3139. {
  3140. char *s;
  3141. va_list v;
  3142. va_start (v,p);
  3143. s = g (p, va_arg (v,int));
  3144. va_end (v);
  3145. return s;
  3146. }
  3147. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3148. function prototypes and stuff, but not '\xHH' hex character constants.
  3149. These don't provoke an error unfortunately, instead are silently treated
  3150. as 'x'. The following induces an error, until -std is added to get
  3151. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3152. array size at least. It's necessary to write '\x00'==0 to get something
  3153. that's true only with -std. */
  3154. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3155. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3156. inside strings and character constants. */
  3157. #define FOO(x) 'x'
  3158. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3159. int test (int i, double x);
  3160. struct s1 {int (*f) (int a);};
  3161. struct s2 {int (*f) (double a);};
  3162. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3163. int argc;
  3164. char **argv;
  3165. int
  3166. main ()
  3167. {
  3168. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3169. ;
  3170. return 0;
  3171. }
  3172. _ACEOF
  3173. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3174. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3175. do
  3176. CC="$ac_save_CC $ac_arg"
  3177. if ac_fn_c_try_compile "$LINENO"; then :
  3178. ac_cv_prog_cc_c89=$ac_arg
  3179. fi
  3180. rm -f core conftest.err conftest.$ac_objext
  3181. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3182. done
  3183. rm -f conftest.$ac_ext
  3184. CC=$ac_save_CC
  3185. fi
  3186. # AC_CACHE_VAL
  3187. case "x$ac_cv_prog_cc_c89" in
  3188. x)
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3190. $as_echo "none needed" >&6; } ;;
  3191. xno)
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3193. $as_echo "unsupported" >&6; } ;;
  3194. *)
  3195. CC="$CC $ac_cv_prog_cc_c89"
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3197. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3198. esac
  3199. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3200. fi
  3201. ac_ext=c
  3202. ac_cpp='$CPP $CPPFLAGS'
  3203. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3204. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3205. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  3207. $as_echo_n "checking for library containing strerror... " >&6; }
  3208. if test "${ac_cv_search_strerror+set}" = set; then :
  3209. $as_echo_n "(cached) " >&6
  3210. else
  3211. ac_func_search_save_LIBS=$LIBS
  3212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3213. /* end confdefs.h. */
  3214. /* Override any GCC internal prototype to avoid an error.
  3215. Use char because int might match the return type of a GCC
  3216. builtin and then its argument prototype would still apply. */
  3217. #ifdef __cplusplus
  3218. extern "C"
  3219. #endif
  3220. char strerror ();
  3221. int
  3222. main ()
  3223. {
  3224. return strerror ();
  3225. ;
  3226. return 0;
  3227. }
  3228. _ACEOF
  3229. for ac_lib in '' cposix; do
  3230. if test -z "$ac_lib"; then
  3231. ac_res="none required"
  3232. else
  3233. ac_res=-l$ac_lib
  3234. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3235. fi
  3236. if ac_fn_c_try_link "$LINENO"; then :
  3237. ac_cv_search_strerror=$ac_res
  3238. fi
  3239. rm -f core conftest.err conftest.$ac_objext \
  3240. conftest$ac_exeext
  3241. if test "${ac_cv_search_strerror+set}" = set; then :
  3242. break
  3243. fi
  3244. done
  3245. if test "${ac_cv_search_strerror+set}" = set; then :
  3246. else
  3247. ac_cv_search_strerror=no
  3248. fi
  3249. rm conftest.$ac_ext
  3250. LIBS=$ac_func_search_save_LIBS
  3251. fi
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  3253. $as_echo "$ac_cv_search_strerror" >&6; }
  3254. ac_res=$ac_cv_search_strerror
  3255. if test "$ac_res" != no; then :
  3256. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3257. fi
  3258. am__api_version='1.11'
  3259. # Find a good install program. We prefer a C program (faster),
  3260. # so one script is as good as another. But avoid the broken or
  3261. # incompatible versions:
  3262. # SysV /etc/install, /usr/sbin/install
  3263. # SunOS /usr/etc/install
  3264. # IRIX /sbin/install
  3265. # AIX /bin/install
  3266. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3267. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3268. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3269. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3270. # OS/2's system install, which has a completely different semantic
  3271. # ./install, which can be erroneously created by make from ./install.sh.
  3272. # Reject install programs that cannot install multiple files.
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3274. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3275. if test -z "$INSTALL"; then
  3276. if test "${ac_cv_path_install+set}" = set; then :
  3277. $as_echo_n "(cached) " >&6
  3278. else
  3279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3280. for as_dir in $PATH
  3281. do
  3282. IFS=$as_save_IFS
  3283. test -z "$as_dir" && as_dir=.
  3284. # Account for people who put trailing slashes in PATH elements.
  3285. case $as_dir/ in #((
  3286. ./ | .// | /[cC]/* | \
  3287. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3288. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3289. /usr/ucb/* ) ;;
  3290. *)
  3291. # OSF1 and SCO ODT 3.0 have their own names for install.
  3292. # Don't use installbsd from OSF since it installs stuff as root
  3293. # by default.
  3294. for ac_prog in ginstall scoinst install; do
  3295. for ac_exec_ext in '' $ac_executable_extensions; do
  3296. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3297. if test $ac_prog = install &&
  3298. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3299. # AIX install. It has an incompatible calling convention.
  3300. :
  3301. elif test $ac_prog = install &&
  3302. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3303. # program-specific install script used by HP pwplus--don't use.
  3304. :
  3305. else
  3306. rm -rf conftest.one conftest.two conftest.dir
  3307. echo one > conftest.one
  3308. echo two > conftest.two
  3309. mkdir conftest.dir
  3310. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3311. test -s conftest.one && test -s conftest.two &&
  3312. test -s conftest.dir/conftest.one &&
  3313. test -s conftest.dir/conftest.two
  3314. then
  3315. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3316. break 3
  3317. fi
  3318. fi
  3319. fi
  3320. done
  3321. done
  3322. ;;
  3323. esac
  3324. done
  3325. IFS=$as_save_IFS
  3326. rm -rf conftest.one conftest.two conftest.dir
  3327. fi
  3328. if test "${ac_cv_path_install+set}" = set; then
  3329. INSTALL=$ac_cv_path_install
  3330. else
  3331. # As a last resort, use the slow shell script. Don't cache a
  3332. # value for INSTALL within a source directory, because that will
  3333. # break other packages using the cache if that directory is
  3334. # removed, or if the value is a relative name.
  3335. INSTALL=$ac_install_sh
  3336. fi
  3337. fi
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3339. $as_echo "$INSTALL" >&6; }
  3340. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3341. # It thinks the first close brace ends the variable substitution.
  3342. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3343. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3344. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3346. $as_echo_n "checking whether build environment is sane... " >&6; }
  3347. # Just in case
  3348. sleep 1
  3349. echo timestamp > conftest.file
  3350. # Reject unsafe characters in $srcdir or the absolute working directory
  3351. # name. Accept space and tab only in the latter.
  3352. am_lf='
  3353. '
  3354. case `pwd` in
  3355. *[\\\"\#\$\&\'\`$am_lf]*)
  3356. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  3357. esac
  3358. case $srcdir in
  3359. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3360. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3361. esac
  3362. # Do `set' in a subshell so we don't clobber the current shell's
  3363. # arguments. Must try -L first in case configure is actually a
  3364. # symlink; some systems play weird games with the mod time of symlinks
  3365. # (eg FreeBSD returns the mod time of the symlink's containing
  3366. # directory).
  3367. if (
  3368. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3369. if test "$*" = "X"; then
  3370. # -L didn't work.
  3371. set X `ls -t "$srcdir/configure" conftest.file`
  3372. fi
  3373. rm -f conftest.file
  3374. if test "$*" != "X $srcdir/configure conftest.file" \
  3375. && test "$*" != "X conftest.file $srcdir/configure"; then
  3376. # If neither matched, then we have a broken ls. This can happen
  3377. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3378. # broken ls alias from the environment. This has actually
  3379. # happened. Such a system could not be considered "sane".
  3380. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  3381. alias in your environment" "$LINENO" 5
  3382. fi
  3383. test "$2" = conftest.file
  3384. )
  3385. then
  3386. # Ok.
  3387. :
  3388. else
  3389. as_fn_error "newly created file is older than distributed files!
  3390. Check your system clock" "$LINENO" 5
  3391. fi
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3393. $as_echo "yes" >&6; }
  3394. test "$program_prefix" != NONE &&
  3395. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3396. # Use a double $ so make ignores it.
  3397. test "$program_suffix" != NONE &&
  3398. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3399. # Double any \ or $.
  3400. # By default was `s,x,x', remove it if useless.
  3401. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3402. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3403. # expand $ac_aux_dir to an absolute path
  3404. am_aux_dir=`cd $ac_aux_dir && pwd`
  3405. if test x"${MISSING+set}" != xset; then
  3406. case $am_aux_dir in
  3407. *\ * | *\ *)
  3408. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3409. *)
  3410. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3411. esac
  3412. fi
  3413. # Use eval to expand $SHELL
  3414. if eval "$MISSING --run true"; then
  3415. am_missing_run="$MISSING --run "
  3416. else
  3417. am_missing_run=
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3419. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3420. fi
  3421. if test x"${install_sh}" != xset; then
  3422. case $am_aux_dir in
  3423. *\ * | *\ *)
  3424. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3425. *)
  3426. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3427. esac
  3428. fi
  3429. # Installed binaries are usually stripped using `strip' when the user
  3430. # run `make install-strip'. However `strip' might not be the right
  3431. # tool to use in cross-compilation environments, therefore Automake
  3432. # will honor the `STRIP' environment variable to overrule this program.
  3433. if test "$cross_compiling" != no; then
  3434. if test -n "$ac_tool_prefix"; then
  3435. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3436. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3438. $as_echo_n "checking for $ac_word... " >&6; }
  3439. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3440. $as_echo_n "(cached) " >&6
  3441. else
  3442. if test -n "$STRIP"; then
  3443. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3444. else
  3445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3446. for as_dir in $PATH
  3447. do
  3448. IFS=$as_save_IFS
  3449. test -z "$as_dir" && as_dir=.
  3450. for ac_exec_ext in '' $ac_executable_extensions; do
  3451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3452. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3454. break 2
  3455. fi
  3456. done
  3457. done
  3458. IFS=$as_save_IFS
  3459. fi
  3460. fi
  3461. STRIP=$ac_cv_prog_STRIP
  3462. if test -n "$STRIP"; then
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3464. $as_echo "$STRIP" >&6; }
  3465. else
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3467. $as_echo "no" >&6; }
  3468. fi
  3469. fi
  3470. if test -z "$ac_cv_prog_STRIP"; then
  3471. ac_ct_STRIP=$STRIP
  3472. # Extract the first word of "strip", so it can be a program name with args.
  3473. set dummy strip; ac_word=$2
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3475. $as_echo_n "checking for $ac_word... " >&6; }
  3476. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3477. $as_echo_n "(cached) " >&6
  3478. else
  3479. if test -n "$ac_ct_STRIP"; then
  3480. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3481. else
  3482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3483. for as_dir in $PATH
  3484. do
  3485. IFS=$as_save_IFS
  3486. test -z "$as_dir" && as_dir=.
  3487. for ac_exec_ext in '' $ac_executable_extensions; do
  3488. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3489. ac_cv_prog_ac_ct_STRIP="strip"
  3490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3491. break 2
  3492. fi
  3493. done
  3494. done
  3495. IFS=$as_save_IFS
  3496. fi
  3497. fi
  3498. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3499. if test -n "$ac_ct_STRIP"; then
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3501. $as_echo "$ac_ct_STRIP" >&6; }
  3502. else
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3504. $as_echo "no" >&6; }
  3505. fi
  3506. if test "x$ac_ct_STRIP" = x; then
  3507. STRIP=":"
  3508. else
  3509. case $cross_compiling:$ac_tool_warned in
  3510. yes:)
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3512. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3513. ac_tool_warned=yes ;;
  3514. esac
  3515. STRIP=$ac_ct_STRIP
  3516. fi
  3517. else
  3518. STRIP="$ac_cv_prog_STRIP"
  3519. fi
  3520. fi
  3521. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3523. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3524. if test -z "$MKDIR_P"; then
  3525. if test "${ac_cv_path_mkdir+set}" = set; then :
  3526. $as_echo_n "(cached) " >&6
  3527. else
  3528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3529. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3530. do
  3531. IFS=$as_save_IFS
  3532. test -z "$as_dir" && as_dir=.
  3533. for ac_prog in mkdir gmkdir; do
  3534. for ac_exec_ext in '' $ac_executable_extensions; do
  3535. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3536. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3537. 'mkdir (GNU coreutils) '* | \
  3538. 'mkdir (coreutils) '* | \
  3539. 'mkdir (fileutils) '4.1*)
  3540. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3541. break 3;;
  3542. esac
  3543. done
  3544. done
  3545. done
  3546. IFS=$as_save_IFS
  3547. fi
  3548. if test "${ac_cv_path_mkdir+set}" = set; then
  3549. MKDIR_P="$ac_cv_path_mkdir -p"
  3550. else
  3551. # As a last resort, use the slow shell script. Don't cache a
  3552. # value for MKDIR_P within a source directory, because that will
  3553. # break other packages using the cache if that directory is
  3554. # removed, or if the value is a relative name.
  3555. test -d ./--version && rmdir ./--version
  3556. MKDIR_P="$ac_install_sh -d"
  3557. fi
  3558. fi
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3560. $as_echo "$MKDIR_P" >&6; }
  3561. mkdir_p="$MKDIR_P"
  3562. case $mkdir_p in
  3563. [\\/$]* | ?:[\\/]*) ;;
  3564. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3565. esac
  3566. for ac_prog in gawk mawk nawk awk
  3567. do
  3568. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3569. set dummy $ac_prog; ac_word=$2
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3571. $as_echo_n "checking for $ac_word... " >&6; }
  3572. if test "${ac_cv_prog_AWK+set}" = set; then :
  3573. $as_echo_n "(cached) " >&6
  3574. else
  3575. if test -n "$AWK"; then
  3576. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3577. else
  3578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3579. for as_dir in $PATH
  3580. do
  3581. IFS=$as_save_IFS
  3582. test -z "$as_dir" && as_dir=.
  3583. for ac_exec_ext in '' $ac_executable_extensions; do
  3584. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3585. ac_cv_prog_AWK="$ac_prog"
  3586. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3587. break 2
  3588. fi
  3589. done
  3590. done
  3591. IFS=$as_save_IFS
  3592. fi
  3593. fi
  3594. AWK=$ac_cv_prog_AWK
  3595. if test -n "$AWK"; then
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3597. $as_echo "$AWK" >&6; }
  3598. else
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3600. $as_echo "no" >&6; }
  3601. fi
  3602. test -n "$AWK" && break
  3603. done
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3605. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3606. set x ${MAKE-make}
  3607. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3608. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3609. $as_echo_n "(cached) " >&6
  3610. else
  3611. cat >conftest.make <<\_ACEOF
  3612. SHELL = /bin/sh
  3613. all:
  3614. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3615. _ACEOF
  3616. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3617. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3618. *@@@%%%=?*=@@@%%%*)
  3619. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3620. *)
  3621. eval ac_cv_prog_make_${ac_make}_set=no;;
  3622. esac
  3623. rm -f conftest.make
  3624. fi
  3625. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3627. $as_echo "yes" >&6; }
  3628. SET_MAKE=
  3629. else
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3631. $as_echo "no" >&6; }
  3632. SET_MAKE="MAKE=${MAKE-make}"
  3633. fi
  3634. rm -rf .tst 2>/dev/null
  3635. mkdir .tst 2>/dev/null
  3636. if test -d .tst; then
  3637. am__leading_dot=.
  3638. else
  3639. am__leading_dot=_
  3640. fi
  3641. rmdir .tst 2>/dev/null
  3642. DEPDIR="${am__leading_dot}deps"
  3643. ac_config_commands="$ac_config_commands depfiles"
  3644. am_make=${MAKE-make}
  3645. cat > confinc << 'END'
  3646. am__doit:
  3647. @echo this is the am__doit target
  3648. .PHONY: am__doit
  3649. END
  3650. # If we don't find an include directive, just comment out the code.
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3652. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3653. am__include="#"
  3654. am__quote=
  3655. _am_result=none
  3656. # First try GNU make style include.
  3657. echo "include confinc" > confmf
  3658. # Ignore all kinds of additional output from `make'.
  3659. case `$am_make -s -f confmf 2> /dev/null` in #(
  3660. *the\ am__doit\ target*)
  3661. am__include=include
  3662. am__quote=
  3663. _am_result=GNU
  3664. ;;
  3665. esac
  3666. # Now try BSD make style include.
  3667. if test "$am__include" = "#"; then
  3668. echo '.include "confinc"' > confmf
  3669. case `$am_make -s -f confmf 2> /dev/null` in #(
  3670. *the\ am__doit\ target*)
  3671. am__include=.include
  3672. am__quote="\""
  3673. _am_result=BSD
  3674. ;;
  3675. esac
  3676. fi
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3678. $as_echo "$_am_result" >&6; }
  3679. rm -f confinc confmf
  3680. # Check whether --enable-dependency-tracking was given.
  3681. if test "${enable_dependency_tracking+set}" = set; then :
  3682. enableval=$enable_dependency_tracking;
  3683. fi
  3684. if test "x$enable_dependency_tracking" != xno; then
  3685. am_depcomp="$ac_aux_dir/depcomp"
  3686. AMDEPBACKSLASH='\'
  3687. fi
  3688. if test "x$enable_dependency_tracking" != xno; then
  3689. AMDEP_TRUE=
  3690. AMDEP_FALSE='#'
  3691. else
  3692. AMDEP_TRUE='#'
  3693. AMDEP_FALSE=
  3694. fi
  3695. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3696. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3697. # is not polluted with repeated "-I."
  3698. am__isrc=' -I$(srcdir)'
  3699. # test to see if srcdir already configured
  3700. if test -f $srcdir/config.status; then
  3701. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3702. fi
  3703. fi
  3704. # test whether we have cygpath
  3705. if test -z "$CYGPATH_W"; then
  3706. if (cygpath --version) >/dev/null 2>/dev/null; then
  3707. CYGPATH_W='cygpath -w'
  3708. else
  3709. CYGPATH_W=echo
  3710. fi
  3711. fi
  3712. # Define the identity of the package.
  3713. PACKAGE='ld'
  3714. VERSION='2.25.51'
  3715. cat >>confdefs.h <<_ACEOF
  3716. #define PACKAGE "$PACKAGE"
  3717. _ACEOF
  3718. cat >>confdefs.h <<_ACEOF
  3719. #define VERSION "$VERSION"
  3720. _ACEOF
  3721. # Some tools Automake needs.
  3722. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3723. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3724. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3725. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3726. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3727. # We need awk for the "check" target. The system "awk" is bad on
  3728. # some platforms.
  3729. # Always define AMTAR for backward compatibility.
  3730. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3731. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3732. depcc="$CC" am_compiler_list=
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3734. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3735. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3736. $as_echo_n "(cached) " >&6
  3737. else
  3738. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3739. # We make a subdir and do the tests there. Otherwise we can end up
  3740. # making bogus files that we don't know about and never remove. For
  3741. # instance it was reported that on HP-UX the gcc test will end up
  3742. # making a dummy file named `D' -- because `-MD' means `put the output
  3743. # in D'.
  3744. mkdir conftest.dir
  3745. # Copy depcomp to subdir because otherwise we won't find it if we're
  3746. # using a relative directory.
  3747. cp "$am_depcomp" conftest.dir
  3748. cd conftest.dir
  3749. # We will build objects and dependencies in a subdirectory because
  3750. # it helps to detect inapplicable dependency modes. For instance
  3751. # both Tru64's cc and ICC support -MD to output dependencies as a
  3752. # side effect of compilation, but ICC will put the dependencies in
  3753. # the current directory while Tru64 will put them in the object
  3754. # directory.
  3755. mkdir sub
  3756. am_cv_CC_dependencies_compiler_type=none
  3757. if test "$am_compiler_list" = ""; then
  3758. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3759. fi
  3760. am__universal=false
  3761. case " $depcc " in #(
  3762. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3763. esac
  3764. for depmode in $am_compiler_list; do
  3765. # Setup a source with many dependencies, because some compilers
  3766. # like to wrap large dependency lists on column 80 (with \), and
  3767. # we should not choose a depcomp mode which is confused by this.
  3768. #
  3769. # We need to recreate these files for each test, as the compiler may
  3770. # overwrite some of them when testing with obscure command lines.
  3771. # This happens at least with the AIX C compiler.
  3772. : > sub/conftest.c
  3773. for i in 1 2 3 4 5 6; do
  3774. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3775. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3776. # Solaris 8's {/usr,}/bin/sh.
  3777. touch sub/conftst$i.h
  3778. done
  3779. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3780. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3781. # mode. It turns out that the SunPro C++ compiler does not properly
  3782. # handle `-M -o', and we need to detect this. Also, some Intel
  3783. # versions had trouble with output in subdirs
  3784. am__obj=sub/conftest.${OBJEXT-o}
  3785. am__minus_obj="-o $am__obj"
  3786. case $depmode in
  3787. gcc)
  3788. # This depmode causes a compiler race in universal mode.
  3789. test "$am__universal" = false || continue
  3790. ;;
  3791. nosideeffect)
  3792. # after this tag, mechanisms are not by side-effect, so they'll
  3793. # only be used when explicitly requested
  3794. if test "x$enable_dependency_tracking" = xyes; then
  3795. continue
  3796. else
  3797. break
  3798. fi
  3799. ;;
  3800. msvisualcpp | msvcmsys)
  3801. # This compiler won't grok `-c -o', but also, the minuso test has
  3802. # not run yet. These depmodes are late enough in the game, and
  3803. # so weak that their functioning should not be impacted.
  3804. am__obj=conftest.${OBJEXT-o}
  3805. am__minus_obj=
  3806. ;;
  3807. none) break ;;
  3808. esac
  3809. if depmode=$depmode \
  3810. source=sub/conftest.c object=$am__obj \
  3811. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3812. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3813. >/dev/null 2>conftest.err &&
  3814. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3815. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3816. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3817. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3818. # icc doesn't choke on unknown options, it will just issue warnings
  3819. # or remarks (even with -Werror). So we grep stderr for any message
  3820. # that says an option was ignored or not supported.
  3821. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3822. # icc: Command line warning: ignoring option '-M'; no argument required
  3823. # The diagnosis changed in icc 8.0:
  3824. # icc: Command line remark: option '-MP' not supported
  3825. if (grep 'ignoring option' conftest.err ||
  3826. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3827. am_cv_CC_dependencies_compiler_type=$depmode
  3828. break
  3829. fi
  3830. fi
  3831. done
  3832. cd ..
  3833. rm -rf conftest.dir
  3834. else
  3835. am_cv_CC_dependencies_compiler_type=none
  3836. fi
  3837. fi
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3839. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3840. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3841. if
  3842. test "x$enable_dependency_tracking" != xno \
  3843. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3844. am__fastdepCC_TRUE=
  3845. am__fastdepCC_FALSE='#'
  3846. else
  3847. am__fastdepCC_TRUE='#'
  3848. am__fastdepCC_FALSE=
  3849. fi
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3851. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3852. # Check whether --enable-maintainer-mode was given.
  3853. if test "${enable_maintainer_mode+set}" = set; then :
  3854. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3855. else
  3856. USE_MAINTAINER_MODE=no
  3857. fi
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3859. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3860. if test $USE_MAINTAINER_MODE = yes; then
  3861. MAINTAINER_MODE_TRUE=
  3862. MAINTAINER_MODE_FALSE='#'
  3863. else
  3864. MAINTAINER_MODE_TRUE='#'
  3865. MAINTAINER_MODE_FALSE=
  3866. fi
  3867. MAINT=$MAINTAINER_MODE_TRUE
  3868. ac_ext=c
  3869. ac_cpp='$CPP $CPPFLAGS'
  3870. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3871. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3872. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3873. if test -n "$ac_tool_prefix"; then
  3874. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3875. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3877. $as_echo_n "checking for $ac_word... " >&6; }
  3878. if test "${ac_cv_prog_CC+set}" = set; then :
  3879. $as_echo_n "(cached) " >&6
  3880. else
  3881. if test -n "$CC"; then
  3882. ac_cv_prog_CC="$CC" # Let the user override the test.
  3883. else
  3884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3885. for as_dir in $PATH
  3886. do
  3887. IFS=$as_save_IFS
  3888. test -z "$as_dir" && as_dir=.
  3889. for ac_exec_ext in '' $ac_executable_extensions; do
  3890. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3891. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3893. break 2
  3894. fi
  3895. done
  3896. done
  3897. IFS=$as_save_IFS
  3898. fi
  3899. fi
  3900. CC=$ac_cv_prog_CC
  3901. if test -n "$CC"; then
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3903. $as_echo "$CC" >&6; }
  3904. else
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3906. $as_echo "no" >&6; }
  3907. fi
  3908. fi
  3909. if test -z "$ac_cv_prog_CC"; then
  3910. ac_ct_CC=$CC
  3911. # Extract the first word of "gcc", so it can be a program name with args.
  3912. set dummy gcc; ac_word=$2
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3914. $as_echo_n "checking for $ac_word... " >&6; }
  3915. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3916. $as_echo_n "(cached) " >&6
  3917. else
  3918. if test -n "$ac_ct_CC"; then
  3919. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3920. else
  3921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3922. for as_dir in $PATH
  3923. do
  3924. IFS=$as_save_IFS
  3925. test -z "$as_dir" && as_dir=.
  3926. for ac_exec_ext in '' $ac_executable_extensions; do
  3927. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3928. ac_cv_prog_ac_ct_CC="gcc"
  3929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3930. break 2
  3931. fi
  3932. done
  3933. done
  3934. IFS=$as_save_IFS
  3935. fi
  3936. fi
  3937. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3938. if test -n "$ac_ct_CC"; then
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3940. $as_echo "$ac_ct_CC" >&6; }
  3941. else
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3943. $as_echo "no" >&6; }
  3944. fi
  3945. if test "x$ac_ct_CC" = x; then
  3946. CC=""
  3947. else
  3948. case $cross_compiling:$ac_tool_warned in
  3949. yes:)
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3952. ac_tool_warned=yes ;;
  3953. esac
  3954. CC=$ac_ct_CC
  3955. fi
  3956. else
  3957. CC="$ac_cv_prog_CC"
  3958. fi
  3959. if test -z "$CC"; then
  3960. if test -n "$ac_tool_prefix"; then
  3961. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3962. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3964. $as_echo_n "checking for $ac_word... " >&6; }
  3965. if test "${ac_cv_prog_CC+set}" = set; then :
  3966. $as_echo_n "(cached) " >&6
  3967. else
  3968. if test -n "$CC"; then
  3969. ac_cv_prog_CC="$CC" # Let the user override the test.
  3970. else
  3971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3972. for as_dir in $PATH
  3973. do
  3974. IFS=$as_save_IFS
  3975. test -z "$as_dir" && as_dir=.
  3976. for ac_exec_ext in '' $ac_executable_extensions; do
  3977. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3978. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3980. break 2
  3981. fi
  3982. done
  3983. done
  3984. IFS=$as_save_IFS
  3985. fi
  3986. fi
  3987. CC=$ac_cv_prog_CC
  3988. if test -n "$CC"; then
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3990. $as_echo "$CC" >&6; }
  3991. else
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3993. $as_echo "no" >&6; }
  3994. fi
  3995. fi
  3996. fi
  3997. if test -z "$CC"; then
  3998. # Extract the first word of "cc", so it can be a program name with args.
  3999. set dummy cc; ac_word=$2
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4001. $as_echo_n "checking for $ac_word... " >&6; }
  4002. if test "${ac_cv_prog_CC+set}" = set; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. if test -n "$CC"; then
  4006. ac_cv_prog_CC="$CC" # Let the user override the test.
  4007. else
  4008. ac_prog_rejected=no
  4009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4010. for as_dir in $PATH
  4011. do
  4012. IFS=$as_save_IFS
  4013. test -z "$as_dir" && as_dir=.
  4014. for ac_exec_ext in '' $ac_executable_extensions; do
  4015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4016. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4017. ac_prog_rejected=yes
  4018. continue
  4019. fi
  4020. ac_cv_prog_CC="cc"
  4021. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4022. break 2
  4023. fi
  4024. done
  4025. done
  4026. IFS=$as_save_IFS
  4027. if test $ac_prog_rejected = yes; then
  4028. # We found a bogon in the path, so make sure we never use it.
  4029. set dummy $ac_cv_prog_CC
  4030. shift
  4031. if test $# != 0; then
  4032. # We chose a different compiler from the bogus one.
  4033. # However, it has the same basename, so the bogon will be chosen
  4034. # first if we set CC to just the basename; use the full file name.
  4035. shift
  4036. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4037. fi
  4038. fi
  4039. fi
  4040. fi
  4041. CC=$ac_cv_prog_CC
  4042. if test -n "$CC"; then
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4044. $as_echo "$CC" >&6; }
  4045. else
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4047. $as_echo "no" >&6; }
  4048. fi
  4049. fi
  4050. if test -z "$CC"; then
  4051. if test -n "$ac_tool_prefix"; then
  4052. for ac_prog in cl.exe
  4053. do
  4054. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4055. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4057. $as_echo_n "checking for $ac_word... " >&6; }
  4058. if test "${ac_cv_prog_CC+set}" = set; then :
  4059. $as_echo_n "(cached) " >&6
  4060. else
  4061. if test -n "$CC"; then
  4062. ac_cv_prog_CC="$CC" # Let the user override the test.
  4063. else
  4064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4065. for as_dir in $PATH
  4066. do
  4067. IFS=$as_save_IFS
  4068. test -z "$as_dir" && as_dir=.
  4069. for ac_exec_ext in '' $ac_executable_extensions; do
  4070. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4071. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4073. break 2
  4074. fi
  4075. done
  4076. done
  4077. IFS=$as_save_IFS
  4078. fi
  4079. fi
  4080. CC=$ac_cv_prog_CC
  4081. if test -n "$CC"; then
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4083. $as_echo "$CC" >&6; }
  4084. else
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4086. $as_echo "no" >&6; }
  4087. fi
  4088. test -n "$CC" && break
  4089. done
  4090. fi
  4091. if test -z "$CC"; then
  4092. ac_ct_CC=$CC
  4093. for ac_prog in cl.exe
  4094. do
  4095. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4096. set dummy $ac_prog; ac_word=$2
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4098. $as_echo_n "checking for $ac_word... " >&6; }
  4099. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4100. $as_echo_n "(cached) " >&6
  4101. else
  4102. if test -n "$ac_ct_CC"; then
  4103. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4104. else
  4105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4106. for as_dir in $PATH
  4107. do
  4108. IFS=$as_save_IFS
  4109. test -z "$as_dir" && as_dir=.
  4110. for ac_exec_ext in '' $ac_executable_extensions; do
  4111. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4112. ac_cv_prog_ac_ct_CC="$ac_prog"
  4113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4114. break 2
  4115. fi
  4116. done
  4117. done
  4118. IFS=$as_save_IFS
  4119. fi
  4120. fi
  4121. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4122. if test -n "$ac_ct_CC"; then
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4124. $as_echo "$ac_ct_CC" >&6; }
  4125. else
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4127. $as_echo "no" >&6; }
  4128. fi
  4129. test -n "$ac_ct_CC" && break
  4130. done
  4131. if test "x$ac_ct_CC" = x; then
  4132. CC=""
  4133. else
  4134. case $cross_compiling:$ac_tool_warned in
  4135. yes:)
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4138. ac_tool_warned=yes ;;
  4139. esac
  4140. CC=$ac_ct_CC
  4141. fi
  4142. fi
  4143. fi
  4144. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4145. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4146. as_fn_error "no acceptable C compiler found in \$PATH
  4147. See \`config.log' for more details." "$LINENO" 5; }
  4148. # Provide some information about the compiler.
  4149. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4150. set X $ac_compile
  4151. ac_compiler=$2
  4152. for ac_option in --version -v -V -qversion; do
  4153. { { ac_try="$ac_compiler $ac_option >&5"
  4154. case "(($ac_try" in
  4155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4156. *) ac_try_echo=$ac_try;;
  4157. esac
  4158. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4159. $as_echo "$ac_try_echo"; } >&5
  4160. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4161. ac_status=$?
  4162. if test -s conftest.err; then
  4163. sed '10a\
  4164. ... rest of stderr output deleted ...
  4165. 10q' conftest.err >conftest.er1
  4166. cat conftest.er1 >&5
  4167. rm -f conftest.er1 conftest.err
  4168. fi
  4169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4170. test $ac_status = 0; }
  4171. done
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4173. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4174. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4175. $as_echo_n "(cached) " >&6
  4176. else
  4177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4178. /* end confdefs.h. */
  4179. int
  4180. main ()
  4181. {
  4182. #ifndef __GNUC__
  4183. choke me
  4184. #endif
  4185. ;
  4186. return 0;
  4187. }
  4188. _ACEOF
  4189. if ac_fn_c_try_compile "$LINENO"; then :
  4190. ac_compiler_gnu=yes
  4191. else
  4192. ac_compiler_gnu=no
  4193. fi
  4194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4195. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4196. fi
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4198. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4199. if test $ac_compiler_gnu = yes; then
  4200. GCC=yes
  4201. else
  4202. GCC=
  4203. fi
  4204. ac_test_CFLAGS=${CFLAGS+set}
  4205. ac_save_CFLAGS=$CFLAGS
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4207. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4208. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4209. $as_echo_n "(cached) " >&6
  4210. else
  4211. ac_save_c_werror_flag=$ac_c_werror_flag
  4212. ac_c_werror_flag=yes
  4213. ac_cv_prog_cc_g=no
  4214. CFLAGS="-g"
  4215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4216. /* end confdefs.h. */
  4217. int
  4218. main ()
  4219. {
  4220. ;
  4221. return 0;
  4222. }
  4223. _ACEOF
  4224. if ac_fn_c_try_compile "$LINENO"; then :
  4225. ac_cv_prog_cc_g=yes
  4226. else
  4227. CFLAGS=""
  4228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4229. /* end confdefs.h. */
  4230. int
  4231. main ()
  4232. {
  4233. ;
  4234. return 0;
  4235. }
  4236. _ACEOF
  4237. if ac_fn_c_try_compile "$LINENO"; then :
  4238. else
  4239. ac_c_werror_flag=$ac_save_c_werror_flag
  4240. CFLAGS="-g"
  4241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4242. /* end confdefs.h. */
  4243. int
  4244. main ()
  4245. {
  4246. ;
  4247. return 0;
  4248. }
  4249. _ACEOF
  4250. if ac_fn_c_try_compile "$LINENO"; then :
  4251. ac_cv_prog_cc_g=yes
  4252. fi
  4253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4254. fi
  4255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4256. fi
  4257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4258. ac_c_werror_flag=$ac_save_c_werror_flag
  4259. fi
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4261. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4262. if test "$ac_test_CFLAGS" = set; then
  4263. CFLAGS=$ac_save_CFLAGS
  4264. elif test $ac_cv_prog_cc_g = yes; then
  4265. if test "$GCC" = yes; then
  4266. CFLAGS="-g -O2"
  4267. else
  4268. CFLAGS="-g"
  4269. fi
  4270. else
  4271. if test "$GCC" = yes; then
  4272. CFLAGS="-O2"
  4273. else
  4274. CFLAGS=
  4275. fi
  4276. fi
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4278. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4279. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4280. $as_echo_n "(cached) " >&6
  4281. else
  4282. ac_cv_prog_cc_c89=no
  4283. ac_save_CC=$CC
  4284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4285. /* end confdefs.h. */
  4286. #include <stdarg.h>
  4287. #include <stdio.h>
  4288. #include <sys/types.h>
  4289. #include <sys/stat.h>
  4290. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4291. struct buf { int x; };
  4292. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4293. static char *e (p, i)
  4294. char **p;
  4295. int i;
  4296. {
  4297. return p[i];
  4298. }
  4299. static char *f (char * (*g) (char **, int), char **p, ...)
  4300. {
  4301. char *s;
  4302. va_list v;
  4303. va_start (v,p);
  4304. s = g (p, va_arg (v,int));
  4305. va_end (v);
  4306. return s;
  4307. }
  4308. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4309. function prototypes and stuff, but not '\xHH' hex character constants.
  4310. These don't provoke an error unfortunately, instead are silently treated
  4311. as 'x'. The following induces an error, until -std is added to get
  4312. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4313. array size at least. It's necessary to write '\x00'==0 to get something
  4314. that's true only with -std. */
  4315. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4316. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4317. inside strings and character constants. */
  4318. #define FOO(x) 'x'
  4319. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4320. int test (int i, double x);
  4321. struct s1 {int (*f) (int a);};
  4322. struct s2 {int (*f) (double a);};
  4323. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4324. int argc;
  4325. char **argv;
  4326. int
  4327. main ()
  4328. {
  4329. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4330. ;
  4331. return 0;
  4332. }
  4333. _ACEOF
  4334. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4335. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4336. do
  4337. CC="$ac_save_CC $ac_arg"
  4338. if ac_fn_c_try_compile "$LINENO"; then :
  4339. ac_cv_prog_cc_c89=$ac_arg
  4340. fi
  4341. rm -f core conftest.err conftest.$ac_objext
  4342. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4343. done
  4344. rm -f conftest.$ac_ext
  4345. CC=$ac_save_CC
  4346. fi
  4347. # AC_CACHE_VAL
  4348. case "x$ac_cv_prog_cc_c89" in
  4349. x)
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4351. $as_echo "none needed" >&6; } ;;
  4352. xno)
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4354. $as_echo "unsupported" >&6; } ;;
  4355. *)
  4356. CC="$CC $ac_cv_prog_cc_c89"
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4358. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4359. esac
  4360. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4361. fi
  4362. ac_ext=c
  4363. ac_cpp='$CPP $CPPFLAGS'
  4364. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4365. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4366. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4367. ac_ext=cpp
  4368. ac_cpp='$CXXCPP $CPPFLAGS'
  4369. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4370. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4371. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4372. if test -z "$CXX"; then
  4373. if test -n "$CCC"; then
  4374. CXX=$CCC
  4375. else
  4376. if test -n "$ac_tool_prefix"; then
  4377. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4378. do
  4379. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4380. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4382. $as_echo_n "checking for $ac_word... " >&6; }
  4383. if test "${ac_cv_prog_CXX+set}" = set; then :
  4384. $as_echo_n "(cached) " >&6
  4385. else
  4386. if test -n "$CXX"; then
  4387. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4388. else
  4389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4390. for as_dir in $PATH
  4391. do
  4392. IFS=$as_save_IFS
  4393. test -z "$as_dir" && as_dir=.
  4394. for ac_exec_ext in '' $ac_executable_extensions; do
  4395. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4396. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4398. break 2
  4399. fi
  4400. done
  4401. done
  4402. IFS=$as_save_IFS
  4403. fi
  4404. fi
  4405. CXX=$ac_cv_prog_CXX
  4406. if test -n "$CXX"; then
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4408. $as_echo "$CXX" >&6; }
  4409. else
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4411. $as_echo "no" >&6; }
  4412. fi
  4413. test -n "$CXX" && break
  4414. done
  4415. fi
  4416. if test -z "$CXX"; then
  4417. ac_ct_CXX=$CXX
  4418. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4419. do
  4420. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4421. set dummy $ac_prog; ac_word=$2
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4423. $as_echo_n "checking for $ac_word... " >&6; }
  4424. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  4425. $as_echo_n "(cached) " >&6
  4426. else
  4427. if test -n "$ac_ct_CXX"; then
  4428. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4429. else
  4430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4431. for as_dir in $PATH
  4432. do
  4433. IFS=$as_save_IFS
  4434. test -z "$as_dir" && as_dir=.
  4435. for ac_exec_ext in '' $ac_executable_extensions; do
  4436. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4437. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4439. break 2
  4440. fi
  4441. done
  4442. done
  4443. IFS=$as_save_IFS
  4444. fi
  4445. fi
  4446. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4447. if test -n "$ac_ct_CXX"; then
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4449. $as_echo "$ac_ct_CXX" >&6; }
  4450. else
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4452. $as_echo "no" >&6; }
  4453. fi
  4454. test -n "$ac_ct_CXX" && break
  4455. done
  4456. if test "x$ac_ct_CXX" = x; then
  4457. CXX="g++"
  4458. else
  4459. case $cross_compiling:$ac_tool_warned in
  4460. yes:)
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4462. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4463. ac_tool_warned=yes ;;
  4464. esac
  4465. CXX=$ac_ct_CXX
  4466. fi
  4467. fi
  4468. fi
  4469. fi
  4470. # Provide some information about the compiler.
  4471. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4472. set X $ac_compile
  4473. ac_compiler=$2
  4474. for ac_option in --version -v -V -qversion; do
  4475. { { ac_try="$ac_compiler $ac_option >&5"
  4476. case "(($ac_try" in
  4477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4478. *) ac_try_echo=$ac_try;;
  4479. esac
  4480. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4481. $as_echo "$ac_try_echo"; } >&5
  4482. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4483. ac_status=$?
  4484. if test -s conftest.err; then
  4485. sed '10a\
  4486. ... rest of stderr output deleted ...
  4487. 10q' conftest.err >conftest.er1
  4488. cat conftest.er1 >&5
  4489. rm -f conftest.er1 conftest.err
  4490. fi
  4491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4492. test $ac_status = 0; }
  4493. done
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4495. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4496. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  4497. $as_echo_n "(cached) " >&6
  4498. else
  4499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4500. /* end confdefs.h. */
  4501. int
  4502. main ()
  4503. {
  4504. #ifndef __GNUC__
  4505. choke me
  4506. #endif
  4507. ;
  4508. return 0;
  4509. }
  4510. _ACEOF
  4511. if ac_fn_cxx_try_compile "$LINENO"; then :
  4512. ac_compiler_gnu=yes
  4513. else
  4514. ac_compiler_gnu=no
  4515. fi
  4516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4517. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4518. fi
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4520. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4521. if test $ac_compiler_gnu = yes; then
  4522. GXX=yes
  4523. else
  4524. GXX=
  4525. fi
  4526. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4527. ac_save_CXXFLAGS=$CXXFLAGS
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4529. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4530. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  4531. $as_echo_n "(cached) " >&6
  4532. else
  4533. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4534. ac_cxx_werror_flag=yes
  4535. ac_cv_prog_cxx_g=no
  4536. CXXFLAGS="-g"
  4537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4538. /* end confdefs.h. */
  4539. int
  4540. main ()
  4541. {
  4542. ;
  4543. return 0;
  4544. }
  4545. _ACEOF
  4546. if ac_fn_cxx_try_compile "$LINENO"; then :
  4547. ac_cv_prog_cxx_g=yes
  4548. else
  4549. CXXFLAGS=""
  4550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4551. /* end confdefs.h. */
  4552. int
  4553. main ()
  4554. {
  4555. ;
  4556. return 0;
  4557. }
  4558. _ACEOF
  4559. if ac_fn_cxx_try_compile "$LINENO"; then :
  4560. else
  4561. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4562. CXXFLAGS="-g"
  4563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4564. /* end confdefs.h. */
  4565. int
  4566. main ()
  4567. {
  4568. ;
  4569. return 0;
  4570. }
  4571. _ACEOF
  4572. if ac_fn_cxx_try_compile "$LINENO"; then :
  4573. ac_cv_prog_cxx_g=yes
  4574. fi
  4575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4576. fi
  4577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4578. fi
  4579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4580. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4581. fi
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4583. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4584. if test "$ac_test_CXXFLAGS" = set; then
  4585. CXXFLAGS=$ac_save_CXXFLAGS
  4586. elif test $ac_cv_prog_cxx_g = yes; then
  4587. if test "$GXX" = yes; then
  4588. CXXFLAGS="-g -O2"
  4589. else
  4590. CXXFLAGS="-g"
  4591. fi
  4592. else
  4593. if test "$GXX" = yes; then
  4594. CXXFLAGS="-O2"
  4595. else
  4596. CXXFLAGS=
  4597. fi
  4598. fi
  4599. ac_ext=c
  4600. ac_cpp='$CPP $CPPFLAGS'
  4601. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4602. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4603. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4604. depcc="$CXX" am_compiler_list=
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4606. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4607. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  4608. $as_echo_n "(cached) " >&6
  4609. else
  4610. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4611. # We make a subdir and do the tests there. Otherwise we can end up
  4612. # making bogus files that we don't know about and never remove. For
  4613. # instance it was reported that on HP-UX the gcc test will end up
  4614. # making a dummy file named `D' -- because `-MD' means `put the output
  4615. # in D'.
  4616. mkdir conftest.dir
  4617. # Copy depcomp to subdir because otherwise we won't find it if we're
  4618. # using a relative directory.
  4619. cp "$am_depcomp" conftest.dir
  4620. cd conftest.dir
  4621. # We will build objects and dependencies in a subdirectory because
  4622. # it helps to detect inapplicable dependency modes. For instance
  4623. # both Tru64's cc and ICC support -MD to output dependencies as a
  4624. # side effect of compilation, but ICC will put the dependencies in
  4625. # the current directory while Tru64 will put them in the object
  4626. # directory.
  4627. mkdir sub
  4628. am_cv_CXX_dependencies_compiler_type=none
  4629. if test "$am_compiler_list" = ""; then
  4630. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4631. fi
  4632. am__universal=false
  4633. case " $depcc " in #(
  4634. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4635. esac
  4636. for depmode in $am_compiler_list; do
  4637. # Setup a source with many dependencies, because some compilers
  4638. # like to wrap large dependency lists on column 80 (with \), and
  4639. # we should not choose a depcomp mode which is confused by this.
  4640. #
  4641. # We need to recreate these files for each test, as the compiler may
  4642. # overwrite some of them when testing with obscure command lines.
  4643. # This happens at least with the AIX C compiler.
  4644. : > sub/conftest.c
  4645. for i in 1 2 3 4 5 6; do
  4646. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4647. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4648. # Solaris 8's {/usr,}/bin/sh.
  4649. touch sub/conftst$i.h
  4650. done
  4651. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4652. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4653. # mode. It turns out that the SunPro C++ compiler does not properly
  4654. # handle `-M -o', and we need to detect this. Also, some Intel
  4655. # versions had trouble with output in subdirs
  4656. am__obj=sub/conftest.${OBJEXT-o}
  4657. am__minus_obj="-o $am__obj"
  4658. case $depmode in
  4659. gcc)
  4660. # This depmode causes a compiler race in universal mode.
  4661. test "$am__universal" = false || continue
  4662. ;;
  4663. nosideeffect)
  4664. # after this tag, mechanisms are not by side-effect, so they'll
  4665. # only be used when explicitly requested
  4666. if test "x$enable_dependency_tracking" = xyes; then
  4667. continue
  4668. else
  4669. break
  4670. fi
  4671. ;;
  4672. msvisualcpp | msvcmsys)
  4673. # This compiler won't grok `-c -o', but also, the minuso test has
  4674. # not run yet. These depmodes are late enough in the game, and
  4675. # so weak that their functioning should not be impacted.
  4676. am__obj=conftest.${OBJEXT-o}
  4677. am__minus_obj=
  4678. ;;
  4679. none) break ;;
  4680. esac
  4681. if depmode=$depmode \
  4682. source=sub/conftest.c object=$am__obj \
  4683. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4684. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4685. >/dev/null 2>conftest.err &&
  4686. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4687. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4688. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4689. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4690. # icc doesn't choke on unknown options, it will just issue warnings
  4691. # or remarks (even with -Werror). So we grep stderr for any message
  4692. # that says an option was ignored or not supported.
  4693. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4694. # icc: Command line warning: ignoring option '-M'; no argument required
  4695. # The diagnosis changed in icc 8.0:
  4696. # icc: Command line remark: option '-MP' not supported
  4697. if (grep 'ignoring option' conftest.err ||
  4698. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4699. am_cv_CXX_dependencies_compiler_type=$depmode
  4700. break
  4701. fi
  4702. fi
  4703. done
  4704. cd ..
  4705. rm -rf conftest.dir
  4706. else
  4707. am_cv_CXX_dependencies_compiler_type=none
  4708. fi
  4709. fi
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4711. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4712. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4713. if
  4714. test "x$enable_dependency_tracking" != xno \
  4715. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4716. am__fastdepCXX_TRUE=
  4717. am__fastdepCXX_FALSE='#'
  4718. else
  4719. am__fastdepCXX_TRUE='#'
  4720. am__fastdepCXX_FALSE=
  4721. fi
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4723. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4724. if test "${ac_cv_path_GREP+set}" = set; then :
  4725. $as_echo_n "(cached) " >&6
  4726. else
  4727. if test -z "$GREP"; then
  4728. ac_path_GREP_found=false
  4729. # Loop through the user's path and test for each of PROGNAME-LIST
  4730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4731. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4732. do
  4733. IFS=$as_save_IFS
  4734. test -z "$as_dir" && as_dir=.
  4735. for ac_prog in grep ggrep; do
  4736. for ac_exec_ext in '' $ac_executable_extensions; do
  4737. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4738. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4739. # Check for GNU ac_path_GREP and select it if it is found.
  4740. # Check for GNU $ac_path_GREP
  4741. case `"$ac_path_GREP" --version 2>&1` in
  4742. *GNU*)
  4743. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4744. *)
  4745. ac_count=0
  4746. $as_echo_n 0123456789 >"conftest.in"
  4747. while :
  4748. do
  4749. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4750. mv "conftest.tmp" "conftest.in"
  4751. cp "conftest.in" "conftest.nl"
  4752. $as_echo 'GREP' >> "conftest.nl"
  4753. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4754. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4755. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4756. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4757. # Best one so far, save it but keep looking for a better one
  4758. ac_cv_path_GREP="$ac_path_GREP"
  4759. ac_path_GREP_max=$ac_count
  4760. fi
  4761. # 10*(2^10) chars as input seems more than enough
  4762. test $ac_count -gt 10 && break
  4763. done
  4764. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4765. esac
  4766. $ac_path_GREP_found && break 3
  4767. done
  4768. done
  4769. done
  4770. IFS=$as_save_IFS
  4771. if test -z "$ac_cv_path_GREP"; then
  4772. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4773. fi
  4774. else
  4775. ac_cv_path_GREP=$GREP
  4776. fi
  4777. fi
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4779. $as_echo "$ac_cv_path_GREP" >&6; }
  4780. GREP="$ac_cv_path_GREP"
  4781. ac_ext=c
  4782. ac_cpp='$CPP $CPPFLAGS'
  4783. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4784. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4785. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4787. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4788. # On Suns, sometimes $CPP names a directory.
  4789. if test -n "$CPP" && test -d "$CPP"; then
  4790. CPP=
  4791. fi
  4792. if test -z "$CPP"; then
  4793. if test "${ac_cv_prog_CPP+set}" = set; then :
  4794. $as_echo_n "(cached) " >&6
  4795. else
  4796. # Double quotes because CPP needs to be expanded
  4797. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4798. do
  4799. ac_preproc_ok=false
  4800. for ac_c_preproc_warn_flag in '' yes
  4801. do
  4802. # Use a header file that comes with gcc, so configuring glibc
  4803. # with a fresh cross-compiler works.
  4804. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4805. # <limits.h> exists even on freestanding compilers.
  4806. # On the NeXT, cc -E runs the code through the compiler's parser,
  4807. # not just through cpp. "Syntax error" is here to catch this case.
  4808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4809. /* end confdefs.h. */
  4810. #ifdef __STDC__
  4811. # include <limits.h>
  4812. #else
  4813. # include <assert.h>
  4814. #endif
  4815. Syntax error
  4816. _ACEOF
  4817. if ac_fn_c_try_cpp "$LINENO"; then :
  4818. else
  4819. # Broken: fails on valid input.
  4820. continue
  4821. fi
  4822. rm -f conftest.err conftest.$ac_ext
  4823. # OK, works on sane cases. Now check whether nonexistent headers
  4824. # can be detected and how.
  4825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4826. /* end confdefs.h. */
  4827. #include <ac_nonexistent.h>
  4828. _ACEOF
  4829. if ac_fn_c_try_cpp "$LINENO"; then :
  4830. # Broken: success on invalid input.
  4831. continue
  4832. else
  4833. # Passes both tests.
  4834. ac_preproc_ok=:
  4835. break
  4836. fi
  4837. rm -f conftest.err conftest.$ac_ext
  4838. done
  4839. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4840. rm -f conftest.err conftest.$ac_ext
  4841. if $ac_preproc_ok; then :
  4842. break
  4843. fi
  4844. done
  4845. ac_cv_prog_CPP=$CPP
  4846. fi
  4847. CPP=$ac_cv_prog_CPP
  4848. else
  4849. ac_cv_prog_CPP=$CPP
  4850. fi
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4852. $as_echo "$CPP" >&6; }
  4853. ac_preproc_ok=false
  4854. for ac_c_preproc_warn_flag in '' yes
  4855. do
  4856. # Use a header file that comes with gcc, so configuring glibc
  4857. # with a fresh cross-compiler works.
  4858. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4859. # <limits.h> exists even on freestanding compilers.
  4860. # On the NeXT, cc -E runs the code through the compiler's parser,
  4861. # not just through cpp. "Syntax error" is here to catch this case.
  4862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4863. /* end confdefs.h. */
  4864. #ifdef __STDC__
  4865. # include <limits.h>
  4866. #else
  4867. # include <assert.h>
  4868. #endif
  4869. Syntax error
  4870. _ACEOF
  4871. if ac_fn_c_try_cpp "$LINENO"; then :
  4872. else
  4873. # Broken: fails on valid input.
  4874. continue
  4875. fi
  4876. rm -f conftest.err conftest.$ac_ext
  4877. # OK, works on sane cases. Now check whether nonexistent headers
  4878. # can be detected and how.
  4879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4880. /* end confdefs.h. */
  4881. #include <ac_nonexistent.h>
  4882. _ACEOF
  4883. if ac_fn_c_try_cpp "$LINENO"; then :
  4884. # Broken: success on invalid input.
  4885. continue
  4886. else
  4887. # Passes both tests.
  4888. ac_preproc_ok=:
  4889. break
  4890. fi
  4891. rm -f conftest.err conftest.$ac_ext
  4892. done
  4893. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4894. rm -f conftest.err conftest.$ac_ext
  4895. if $ac_preproc_ok; then :
  4896. else
  4897. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4898. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4899. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4900. See \`config.log' for more details." "$LINENO" 5; }
  4901. fi
  4902. ac_ext=c
  4903. ac_cpp='$CPP $CPPFLAGS'
  4904. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4905. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4906. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4908. $as_echo_n "checking for egrep... " >&6; }
  4909. if test "${ac_cv_path_EGREP+set}" = set; then :
  4910. $as_echo_n "(cached) " >&6
  4911. else
  4912. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4913. then ac_cv_path_EGREP="$GREP -E"
  4914. else
  4915. if test -z "$EGREP"; then
  4916. ac_path_EGREP_found=false
  4917. # Loop through the user's path and test for each of PROGNAME-LIST
  4918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4919. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4920. do
  4921. IFS=$as_save_IFS
  4922. test -z "$as_dir" && as_dir=.
  4923. for ac_prog in egrep; do
  4924. for ac_exec_ext in '' $ac_executable_extensions; do
  4925. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4926. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4927. # Check for GNU ac_path_EGREP and select it if it is found.
  4928. # Check for GNU $ac_path_EGREP
  4929. case `"$ac_path_EGREP" --version 2>&1` in
  4930. *GNU*)
  4931. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4932. *)
  4933. ac_count=0
  4934. $as_echo_n 0123456789 >"conftest.in"
  4935. while :
  4936. do
  4937. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4938. mv "conftest.tmp" "conftest.in"
  4939. cp "conftest.in" "conftest.nl"
  4940. $as_echo 'EGREP' >> "conftest.nl"
  4941. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4942. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4943. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4944. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4945. # Best one so far, save it but keep looking for a better one
  4946. ac_cv_path_EGREP="$ac_path_EGREP"
  4947. ac_path_EGREP_max=$ac_count
  4948. fi
  4949. # 10*(2^10) chars as input seems more than enough
  4950. test $ac_count -gt 10 && break
  4951. done
  4952. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4953. esac
  4954. $ac_path_EGREP_found && break 3
  4955. done
  4956. done
  4957. done
  4958. IFS=$as_save_IFS
  4959. if test -z "$ac_cv_path_EGREP"; then
  4960. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4961. fi
  4962. else
  4963. ac_cv_path_EGREP=$EGREP
  4964. fi
  4965. fi
  4966. fi
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4968. $as_echo "$ac_cv_path_EGREP" >&6; }
  4969. EGREP="$ac_cv_path_EGREP"
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4971. $as_echo_n "checking for ANSI C header files... " >&6; }
  4972. if test "${ac_cv_header_stdc+set}" = set; then :
  4973. $as_echo_n "(cached) " >&6
  4974. else
  4975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4976. /* end confdefs.h. */
  4977. #include <stdlib.h>
  4978. #include <stdarg.h>
  4979. #include <string.h>
  4980. #include <float.h>
  4981. int
  4982. main ()
  4983. {
  4984. ;
  4985. return 0;
  4986. }
  4987. _ACEOF
  4988. if ac_fn_c_try_compile "$LINENO"; then :
  4989. ac_cv_header_stdc=yes
  4990. else
  4991. ac_cv_header_stdc=no
  4992. fi
  4993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4994. if test $ac_cv_header_stdc = yes; then
  4995. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4997. /* end confdefs.h. */
  4998. #include <string.h>
  4999. _ACEOF
  5000. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5001. $EGREP "memchr" >/dev/null 2>&1; then :
  5002. else
  5003. ac_cv_header_stdc=no
  5004. fi
  5005. rm -f conftest*
  5006. fi
  5007. if test $ac_cv_header_stdc = yes; then
  5008. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5010. /* end confdefs.h. */
  5011. #include <stdlib.h>
  5012. _ACEOF
  5013. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5014. $EGREP "free" >/dev/null 2>&1; then :
  5015. else
  5016. ac_cv_header_stdc=no
  5017. fi
  5018. rm -f conftest*
  5019. fi
  5020. if test $ac_cv_header_stdc = yes; then
  5021. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5022. if test "$cross_compiling" = yes; then :
  5023. :
  5024. else
  5025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5026. /* end confdefs.h. */
  5027. #include <ctype.h>
  5028. #include <stdlib.h>
  5029. #if ((' ' & 0x0FF) == 0x020)
  5030. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5031. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5032. #else
  5033. # define ISLOWER(c) \
  5034. (('a' <= (c) && (c) <= 'i') \
  5035. || ('j' <= (c) && (c) <= 'r') \
  5036. || ('s' <= (c) && (c) <= 'z'))
  5037. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5038. #endif
  5039. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5040. int
  5041. main ()
  5042. {
  5043. int i;
  5044. for (i = 0; i < 256; i++)
  5045. if (XOR (islower (i), ISLOWER (i))
  5046. || toupper (i) != TOUPPER (i))
  5047. return 2;
  5048. return 0;
  5049. }
  5050. _ACEOF
  5051. if ac_fn_c_try_run "$LINENO"; then :
  5052. else
  5053. ac_cv_header_stdc=no
  5054. fi
  5055. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5056. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5057. fi
  5058. fi
  5059. fi
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5061. $as_echo "$ac_cv_header_stdc" >&6; }
  5062. if test $ac_cv_header_stdc = yes; then
  5063. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5064. fi
  5065. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5066. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5067. inttypes.h stdint.h unistd.h
  5068. do :
  5069. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5070. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5071. "
  5072. eval as_val=\$$as_ac_Header
  5073. if test "x$as_val" = x""yes; then :
  5074. cat >>confdefs.h <<_ACEOF
  5075. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5076. _ACEOF
  5077. fi
  5078. done
  5079. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5080. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5081. MINIX=yes
  5082. else
  5083. MINIX=
  5084. fi
  5085. if test "$MINIX" = yes; then
  5086. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5087. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5088. $as_echo "#define _MINIX 1" >>confdefs.h
  5089. fi
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5091. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5092. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5093. $as_echo_n "(cached) " >&6
  5094. else
  5095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5096. /* end confdefs.h. */
  5097. # define __EXTENSIONS__ 1
  5098. $ac_includes_default
  5099. int
  5100. main ()
  5101. {
  5102. ;
  5103. return 0;
  5104. }
  5105. _ACEOF
  5106. if ac_fn_c_try_compile "$LINENO"; then :
  5107. ac_cv_safe_to_define___extensions__=yes
  5108. else
  5109. ac_cv_safe_to_define___extensions__=no
  5110. fi
  5111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5112. fi
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5114. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5115. test $ac_cv_safe_to_define___extensions__ = yes &&
  5116. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5117. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5118. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5119. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5120. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5121. case `pwd` in
  5122. *\ * | *\ *)
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5124. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5125. esac
  5126. macro_version='2.2.7a'
  5127. macro_revision='1.3134'
  5128. ltmain="$ac_aux_dir/ltmain.sh"
  5129. # Backslashify metacharacters that are still active within
  5130. # double-quoted strings.
  5131. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5132. # Same as above, but do not quote variable references.
  5133. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5134. # Sed substitution to delay expansion of an escaped shell variable in a
  5135. # double_quote_subst'ed string.
  5136. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5137. # Sed substitution to delay expansion of an escaped single quote.
  5138. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5139. # Sed substitution to avoid accidental globbing in evaled expressions
  5140. no_glob_subst='s/\*/\\\*/g'
  5141. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5142. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5143. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5145. $as_echo_n "checking how to print strings... " >&6; }
  5146. # Test print first, because it will be a builtin if present.
  5147. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5148. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5149. ECHO='print -r --'
  5150. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5151. ECHO='printf %s\n'
  5152. else
  5153. # Use this function as a fallback that always works.
  5154. func_fallback_echo ()
  5155. {
  5156. eval 'cat <<_LTECHO_EOF
  5157. $1
  5158. _LTECHO_EOF'
  5159. }
  5160. ECHO='func_fallback_echo'
  5161. fi
  5162. # func_echo_all arg...
  5163. # Invoke $ECHO with all args, space-separated.
  5164. func_echo_all ()
  5165. {
  5166. $ECHO ""
  5167. }
  5168. case "$ECHO" in
  5169. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5170. $as_echo "printf" >&6; } ;;
  5171. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5172. $as_echo "print -r" >&6; } ;;
  5173. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5174. $as_echo "cat" >&6; } ;;
  5175. esac
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5177. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5178. if test "${ac_cv_path_SED+set}" = set; then :
  5179. $as_echo_n "(cached) " >&6
  5180. else
  5181. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5182. for ac_i in 1 2 3 4 5 6 7; do
  5183. ac_script="$ac_script$as_nl$ac_script"
  5184. done
  5185. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5186. { ac_script=; unset ac_script;}
  5187. if test -z "$SED"; then
  5188. ac_path_SED_found=false
  5189. # Loop through the user's path and test for each of PROGNAME-LIST
  5190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5191. for as_dir in $PATH
  5192. do
  5193. IFS=$as_save_IFS
  5194. test -z "$as_dir" && as_dir=.
  5195. for ac_prog in sed gsed; do
  5196. for ac_exec_ext in '' $ac_executable_extensions; do
  5197. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5198. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  5199. # Check for GNU ac_path_SED and select it if it is found.
  5200. # Check for GNU $ac_path_SED
  5201. case `"$ac_path_SED" --version 2>&1` in
  5202. *GNU*)
  5203. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5204. *)
  5205. ac_count=0
  5206. $as_echo_n 0123456789 >"conftest.in"
  5207. while :
  5208. do
  5209. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5210. mv "conftest.tmp" "conftest.in"
  5211. cp "conftest.in" "conftest.nl"
  5212. $as_echo '' >> "conftest.nl"
  5213. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5214. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5215. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5216. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5217. # Best one so far, save it but keep looking for a better one
  5218. ac_cv_path_SED="$ac_path_SED"
  5219. ac_path_SED_max=$ac_count
  5220. fi
  5221. # 10*(2^10) chars as input seems more than enough
  5222. test $ac_count -gt 10 && break
  5223. done
  5224. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5225. esac
  5226. $ac_path_SED_found && break 3
  5227. done
  5228. done
  5229. done
  5230. IFS=$as_save_IFS
  5231. if test -z "$ac_cv_path_SED"; then
  5232. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5233. fi
  5234. else
  5235. ac_cv_path_SED=$SED
  5236. fi
  5237. fi
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5239. $as_echo "$ac_cv_path_SED" >&6; }
  5240. SED="$ac_cv_path_SED"
  5241. rm -f conftest.sed
  5242. test -z "$SED" && SED=sed
  5243. Xsed="$SED -e 1s/^X//"
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5245. $as_echo_n "checking for fgrep... " >&6; }
  5246. if test "${ac_cv_path_FGREP+set}" = set; then :
  5247. $as_echo_n "(cached) " >&6
  5248. else
  5249. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5250. then ac_cv_path_FGREP="$GREP -F"
  5251. else
  5252. if test -z "$FGREP"; then
  5253. ac_path_FGREP_found=false
  5254. # Loop through the user's path and test for each of PROGNAME-LIST
  5255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5256. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5257. do
  5258. IFS=$as_save_IFS
  5259. test -z "$as_dir" && as_dir=.
  5260. for ac_prog in fgrep; do
  5261. for ac_exec_ext in '' $ac_executable_extensions; do
  5262. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5263. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5264. # Check for GNU ac_path_FGREP and select it if it is found.
  5265. # Check for GNU $ac_path_FGREP
  5266. case `"$ac_path_FGREP" --version 2>&1` in
  5267. *GNU*)
  5268. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5269. *)
  5270. ac_count=0
  5271. $as_echo_n 0123456789 >"conftest.in"
  5272. while :
  5273. do
  5274. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5275. mv "conftest.tmp" "conftest.in"
  5276. cp "conftest.in" "conftest.nl"
  5277. $as_echo 'FGREP' >> "conftest.nl"
  5278. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5279. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5280. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5281. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5282. # Best one so far, save it but keep looking for a better one
  5283. ac_cv_path_FGREP="$ac_path_FGREP"
  5284. ac_path_FGREP_max=$ac_count
  5285. fi
  5286. # 10*(2^10) chars as input seems more than enough
  5287. test $ac_count -gt 10 && break
  5288. done
  5289. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5290. esac
  5291. $ac_path_FGREP_found && break 3
  5292. done
  5293. done
  5294. done
  5295. IFS=$as_save_IFS
  5296. if test -z "$ac_cv_path_FGREP"; then
  5297. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5298. fi
  5299. else
  5300. ac_cv_path_FGREP=$FGREP
  5301. fi
  5302. fi
  5303. fi
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5305. $as_echo "$ac_cv_path_FGREP" >&6; }
  5306. FGREP="$ac_cv_path_FGREP"
  5307. test -z "$GREP" && GREP=grep
  5308. # Check whether --with-gnu-ld was given.
  5309. if test "${with_gnu_ld+set}" = set; then :
  5310. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5311. else
  5312. with_gnu_ld=no
  5313. fi
  5314. ac_prog=ld
  5315. if test "$GCC" = yes; then
  5316. # Check if gcc -print-prog-name=ld gives a path.
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5318. $as_echo_n "checking for ld used by $CC... " >&6; }
  5319. case $host in
  5320. *-*-mingw*)
  5321. # gcc leaves a trailing carriage return which upsets mingw
  5322. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5323. *)
  5324. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5325. esac
  5326. case $ac_prog in
  5327. # Accept absolute paths.
  5328. [\\/]* | ?:[\\/]*)
  5329. re_direlt='/[^/][^/]*/\.\./'
  5330. # Canonicalize the pathname of ld
  5331. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5332. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5333. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5334. done
  5335. test -z "$LD" && LD="$ac_prog"
  5336. ;;
  5337. "")
  5338. # If it fails, then pretend we aren't using GCC.
  5339. ac_prog=ld
  5340. ;;
  5341. *)
  5342. # If it is relative, then search for the first ld in PATH.
  5343. with_gnu_ld=unknown
  5344. ;;
  5345. esac
  5346. elif test "$with_gnu_ld" = yes; then
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5348. $as_echo_n "checking for GNU ld... " >&6; }
  5349. else
  5350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5351. $as_echo_n "checking for non-GNU ld... " >&6; }
  5352. fi
  5353. if test "${lt_cv_path_LD+set}" = set; then :
  5354. $as_echo_n "(cached) " >&6
  5355. else
  5356. if test -z "$LD"; then
  5357. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5358. for ac_dir in $PATH; do
  5359. IFS="$lt_save_ifs"
  5360. test -z "$ac_dir" && ac_dir=.
  5361. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5362. lt_cv_path_LD="$ac_dir/$ac_prog"
  5363. # Check to see if the program is GNU ld. I'd rather use --version,
  5364. # but apparently some variants of GNU ld only accept -v.
  5365. # Break only if it was the GNU/non-GNU ld that we prefer.
  5366. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5367. *GNU* | *'with BFD'*)
  5368. test "$with_gnu_ld" != no && break
  5369. ;;
  5370. *)
  5371. test "$with_gnu_ld" != yes && break
  5372. ;;
  5373. esac
  5374. fi
  5375. done
  5376. IFS="$lt_save_ifs"
  5377. else
  5378. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5379. fi
  5380. fi
  5381. LD="$lt_cv_path_LD"
  5382. if test -n "$LD"; then
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5384. $as_echo "$LD" >&6; }
  5385. else
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5387. $as_echo "no" >&6; }
  5388. fi
  5389. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5391. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5392. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  5393. $as_echo_n "(cached) " >&6
  5394. else
  5395. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5396. case `$LD -v 2>&1 </dev/null` in
  5397. *GNU* | *'with BFD'*)
  5398. lt_cv_prog_gnu_ld=yes
  5399. ;;
  5400. *)
  5401. lt_cv_prog_gnu_ld=no
  5402. ;;
  5403. esac
  5404. fi
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5406. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5407. with_gnu_ld=$lt_cv_prog_gnu_ld
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5409. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5410. if test "${lt_cv_path_NM+set}" = set; then :
  5411. $as_echo_n "(cached) " >&6
  5412. else
  5413. if test -n "$NM"; then
  5414. # Let the user override the test.
  5415. lt_cv_path_NM="$NM"
  5416. else
  5417. lt_nm_to_check="${ac_tool_prefix}nm"
  5418. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5419. lt_nm_to_check="$lt_nm_to_check nm"
  5420. fi
  5421. for lt_tmp_nm in $lt_nm_to_check; do
  5422. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5423. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5424. IFS="$lt_save_ifs"
  5425. test -z "$ac_dir" && ac_dir=.
  5426. tmp_nm="$ac_dir/$lt_tmp_nm"
  5427. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5428. # Check to see if the nm accepts a BSD-compat flag.
  5429. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5430. # nm: unknown option "B" ignored
  5431. # Tru64's nm complains that /dev/null is an invalid object file
  5432. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5433. */dev/null* | *'Invalid file or object type'*)
  5434. lt_cv_path_NM="$tmp_nm -B"
  5435. break
  5436. ;;
  5437. *)
  5438. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5439. */dev/null*)
  5440. lt_cv_path_NM="$tmp_nm -p"
  5441. break
  5442. ;;
  5443. *)
  5444. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5445. continue # so that we can try to find one that supports BSD flags
  5446. ;;
  5447. esac
  5448. ;;
  5449. esac
  5450. fi
  5451. done
  5452. IFS="$lt_save_ifs"
  5453. done
  5454. : ${lt_cv_path_NM=no}
  5455. fi
  5456. fi
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5458. $as_echo "$lt_cv_path_NM" >&6; }
  5459. if test "$lt_cv_path_NM" != "no"; then
  5460. NM="$lt_cv_path_NM"
  5461. else
  5462. # Didn't find any BSD compatible name lister, look for dumpbin.
  5463. if test -n "$DUMPBIN"; then :
  5464. # Let the user override the test.
  5465. else
  5466. if test -n "$ac_tool_prefix"; then
  5467. for ac_prog in dumpbin "link -dump"
  5468. do
  5469. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5470. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5472. $as_echo_n "checking for $ac_word... " >&6; }
  5473. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  5474. $as_echo_n "(cached) " >&6
  5475. else
  5476. if test -n "$DUMPBIN"; then
  5477. ac_cv_prog_DUMPBIN="$DUMPBIN" # 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_DUMPBIN="$ac_tool_prefix$ac_prog"
  5487. $as_echo "$as_me:${as_lineno-$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. DUMPBIN=$ac_cv_prog_DUMPBIN
  5496. if test -n "$DUMPBIN"; then
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5498. $as_echo "$DUMPBIN" >&6; }
  5499. else
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5501. $as_echo "no" >&6; }
  5502. fi
  5503. test -n "$DUMPBIN" && break
  5504. done
  5505. fi
  5506. if test -z "$DUMPBIN"; then
  5507. ac_ct_DUMPBIN=$DUMPBIN
  5508. for ac_prog in dumpbin "link -dump"
  5509. do
  5510. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5511. set dummy $ac_prog; ac_word=$2
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5513. $as_echo_n "checking for $ac_word... " >&6; }
  5514. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5515. $as_echo_n "(cached) " >&6
  5516. else
  5517. if test -n "$ac_ct_DUMPBIN"; then
  5518. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5519. else
  5520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5521. for as_dir in $PATH
  5522. do
  5523. IFS=$as_save_IFS
  5524. test -z "$as_dir" && as_dir=.
  5525. for ac_exec_ext in '' $ac_executable_extensions; do
  5526. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5527. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5529. break 2
  5530. fi
  5531. done
  5532. done
  5533. IFS=$as_save_IFS
  5534. fi
  5535. fi
  5536. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5537. if test -n "$ac_ct_DUMPBIN"; then
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5539. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5540. else
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5542. $as_echo "no" >&6; }
  5543. fi
  5544. test -n "$ac_ct_DUMPBIN" && break
  5545. done
  5546. if test "x$ac_ct_DUMPBIN" = x; then
  5547. DUMPBIN=":"
  5548. else
  5549. case $cross_compiling:$ac_tool_warned in
  5550. yes:)
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5552. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5553. ac_tool_warned=yes ;;
  5554. esac
  5555. DUMPBIN=$ac_ct_DUMPBIN
  5556. fi
  5557. fi
  5558. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5559. *COFF*)
  5560. DUMPBIN="$DUMPBIN -symbols"
  5561. ;;
  5562. *)
  5563. DUMPBIN=:
  5564. ;;
  5565. esac
  5566. fi
  5567. if test "$DUMPBIN" != ":"; then
  5568. NM="$DUMPBIN"
  5569. fi
  5570. fi
  5571. test -z "$NM" && NM=nm
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5573. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5574. if test "${lt_cv_nm_interface+set}" = set; then :
  5575. $as_echo_n "(cached) " >&6
  5576. else
  5577. lt_cv_nm_interface="BSD nm"
  5578. echo "int some_variable = 0;" > conftest.$ac_ext
  5579. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5580. (eval "$ac_compile" 2>conftest.err)
  5581. cat conftest.err >&5
  5582. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5583. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5584. cat conftest.err >&5
  5585. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5586. cat conftest.out >&5
  5587. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5588. lt_cv_nm_interface="MS dumpbin"
  5589. fi
  5590. rm -f conftest*
  5591. fi
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5593. $as_echo "$lt_cv_nm_interface" >&6; }
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5595. $as_echo_n "checking whether ln -s works... " >&6; }
  5596. LN_S=$as_ln_s
  5597. if test "$LN_S" = "ln -s"; then
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5599. $as_echo "yes" >&6; }
  5600. else
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5602. $as_echo "no, using $LN_S" >&6; }
  5603. fi
  5604. # find the maximum length of command line arguments
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5606. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5607. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5608. $as_echo_n "(cached) " >&6
  5609. else
  5610. i=0
  5611. teststring="ABCD"
  5612. case $build_os in
  5613. msdosdjgpp*)
  5614. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5615. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5616. # during glob expansion). Even if it were fixed, the result of this
  5617. # check would be larger than it should be.
  5618. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5619. ;;
  5620. gnu*)
  5621. # Under GNU Hurd, this test is not required because there is
  5622. # no limit to the length of command line arguments.
  5623. # Libtool will interpret -1 as no limit whatsoever
  5624. lt_cv_sys_max_cmd_len=-1;
  5625. ;;
  5626. cygwin* | mingw* | cegcc*)
  5627. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5628. # about 5 minutes as the teststring grows exponentially.
  5629. # Worse, since 9x/ME are not pre-emptively multitasking,
  5630. # you end up with a "frozen" computer, even though with patience
  5631. # the test eventually succeeds (with a max line length of 256k).
  5632. # Instead, let's just punt: use the minimum linelength reported by
  5633. # all of the supported platforms: 8192 (on NT/2K/XP).
  5634. lt_cv_sys_max_cmd_len=8192;
  5635. ;;
  5636. mint*)
  5637. # On MiNT this can take a long time and run out of memory.
  5638. lt_cv_sys_max_cmd_len=8192;
  5639. ;;
  5640. amigaos*)
  5641. # On AmigaOS with pdksh, this test takes hours, literally.
  5642. # So we just punt and use a minimum line length of 8192.
  5643. lt_cv_sys_max_cmd_len=8192;
  5644. ;;
  5645. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5646. # This has been around since 386BSD, at least. Likely further.
  5647. if test -x /sbin/sysctl; then
  5648. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5649. elif test -x /usr/sbin/sysctl; then
  5650. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5651. else
  5652. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5653. fi
  5654. # And add a safety zone
  5655. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5656. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5657. ;;
  5658. interix*)
  5659. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5660. lt_cv_sys_max_cmd_len=196608
  5661. ;;
  5662. osf*)
  5663. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5664. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5665. # nice to cause kernel panics so lets avoid the loop below.
  5666. # First set a reasonable default.
  5667. lt_cv_sys_max_cmd_len=16384
  5668. #
  5669. if test -x /sbin/sysconfig; then
  5670. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5671. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5672. esac
  5673. fi
  5674. ;;
  5675. sco3.2v5*)
  5676. lt_cv_sys_max_cmd_len=102400
  5677. ;;
  5678. sysv5* | sco5v6* | sysv4.2uw2*)
  5679. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5680. if test -n "$kargmax"; then
  5681. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5682. else
  5683. lt_cv_sys_max_cmd_len=32768
  5684. fi
  5685. ;;
  5686. *)
  5687. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5688. if test -n "$lt_cv_sys_max_cmd_len"; then
  5689. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5690. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5691. else
  5692. # Make teststring a little bigger before we do anything with it.
  5693. # a 1K string should be a reasonable start.
  5694. for i in 1 2 3 4 5 6 7 8 ; do
  5695. teststring=$teststring$teststring
  5696. done
  5697. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5698. # If test is not a shell built-in, we'll probably end up computing a
  5699. # maximum length that is only half of the actual maximum length, but
  5700. # we can't tell.
  5701. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5702. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5703. test $i != 17 # 1/2 MB should be enough
  5704. do
  5705. i=`expr $i + 1`
  5706. teststring=$teststring$teststring
  5707. done
  5708. # Only check the string length outside the loop.
  5709. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5710. teststring=
  5711. # Add a significant safety factor because C++ compilers can tack on
  5712. # massive amounts of additional arguments before passing them to the
  5713. # linker. It appears as though 1/2 is a usable value.
  5714. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5715. fi
  5716. ;;
  5717. esac
  5718. fi
  5719. if test -n $lt_cv_sys_max_cmd_len ; then
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5721. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5722. else
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5724. $as_echo "none" >&6; }
  5725. fi
  5726. max_cmd_len=$lt_cv_sys_max_cmd_len
  5727. : ${CP="cp -f"}
  5728. : ${MV="mv -f"}
  5729. : ${RM="rm -f"}
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5731. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5732. # Try some XSI features
  5733. xsi_shell=no
  5734. ( _lt_dummy="a/b/c"
  5735. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5736. = c,a/b,, \
  5737. && eval 'test $(( 1 + 1 )) -eq 2 \
  5738. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5739. && xsi_shell=yes
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5741. $as_echo "$xsi_shell" >&6; }
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5743. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5744. lt_shell_append=no
  5745. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5746. >/dev/null 2>&1 \
  5747. && lt_shell_append=yes
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5749. $as_echo "$lt_shell_append" >&6; }
  5750. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5751. lt_unset=unset
  5752. else
  5753. lt_unset=false
  5754. fi
  5755. # test EBCDIC or ASCII
  5756. case `echo X|tr X '\101'` in
  5757. A) # ASCII based system
  5758. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5759. lt_SP2NL='tr \040 \012'
  5760. lt_NL2SP='tr \015\012 \040\040'
  5761. ;;
  5762. *) # EBCDIC based system
  5763. lt_SP2NL='tr \100 \n'
  5764. lt_NL2SP='tr \r\n \100\100'
  5765. ;;
  5766. esac
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5768. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5769. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5770. $as_echo_n "(cached) " >&6
  5771. else
  5772. lt_cv_ld_reload_flag='-r'
  5773. fi
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5775. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5776. reload_flag=$lt_cv_ld_reload_flag
  5777. case $reload_flag in
  5778. "" | " "*) ;;
  5779. *) reload_flag=" $reload_flag" ;;
  5780. esac
  5781. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5782. case $host_os in
  5783. darwin*)
  5784. if test "$GCC" = yes; then
  5785. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5786. else
  5787. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5788. fi
  5789. ;;
  5790. esac
  5791. if test -n "$ac_tool_prefix"; then
  5792. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5793. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5795. $as_echo_n "checking for $ac_word... " >&6; }
  5796. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5797. $as_echo_n "(cached) " >&6
  5798. else
  5799. if test -n "$OBJDUMP"; then
  5800. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5801. else
  5802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5803. for as_dir in $PATH
  5804. do
  5805. IFS=$as_save_IFS
  5806. test -z "$as_dir" && as_dir=.
  5807. for ac_exec_ext in '' $ac_executable_extensions; do
  5808. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5809. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5811. break 2
  5812. fi
  5813. done
  5814. done
  5815. IFS=$as_save_IFS
  5816. fi
  5817. fi
  5818. OBJDUMP=$ac_cv_prog_OBJDUMP
  5819. if test -n "$OBJDUMP"; then
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5821. $as_echo "$OBJDUMP" >&6; }
  5822. else
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5824. $as_echo "no" >&6; }
  5825. fi
  5826. fi
  5827. if test -z "$ac_cv_prog_OBJDUMP"; then
  5828. ac_ct_OBJDUMP=$OBJDUMP
  5829. # Extract the first word of "objdump", so it can be a program name with args.
  5830. set dummy objdump; ac_word=$2
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5832. $as_echo_n "checking for $ac_word... " >&6; }
  5833. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5834. $as_echo_n "(cached) " >&6
  5835. else
  5836. if test -n "$ac_ct_OBJDUMP"; then
  5837. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5838. else
  5839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5840. for as_dir in $PATH
  5841. do
  5842. IFS=$as_save_IFS
  5843. test -z "$as_dir" && as_dir=.
  5844. for ac_exec_ext in '' $ac_executable_extensions; do
  5845. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5846. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5848. break 2
  5849. fi
  5850. done
  5851. done
  5852. IFS=$as_save_IFS
  5853. fi
  5854. fi
  5855. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5856. if test -n "$ac_ct_OBJDUMP"; then
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5858. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5859. else
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5861. $as_echo "no" >&6; }
  5862. fi
  5863. if test "x$ac_ct_OBJDUMP" = x; then
  5864. OBJDUMP="false"
  5865. else
  5866. case $cross_compiling:$ac_tool_warned in
  5867. yes:)
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5869. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5870. ac_tool_warned=yes ;;
  5871. esac
  5872. OBJDUMP=$ac_ct_OBJDUMP
  5873. fi
  5874. else
  5875. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5876. fi
  5877. test -z "$OBJDUMP" && OBJDUMP=objdump
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5879. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5880. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5881. $as_echo_n "(cached) " >&6
  5882. else
  5883. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5884. lt_cv_file_magic_test_file=
  5885. lt_cv_deplibs_check_method='unknown'
  5886. # Need to set the preceding variable on all platforms that support
  5887. # interlibrary dependencies.
  5888. # 'none' -- dependencies not supported.
  5889. # `unknown' -- same as none, but documents that we really don't know.
  5890. # 'pass_all' -- all dependencies passed with no checks.
  5891. # 'test_compile' -- check by making test program.
  5892. # 'file_magic [[regex]]' -- check by looking for files in library path
  5893. # which responds to the $file_magic_cmd with a given extended regex.
  5894. # If you have `file' or equivalent on your system and you're not sure
  5895. # whether `pass_all' will *always* work, you probably want this one.
  5896. case $host_os in
  5897. aix[4-9]*)
  5898. lt_cv_deplibs_check_method=pass_all
  5899. ;;
  5900. beos*)
  5901. lt_cv_deplibs_check_method=pass_all
  5902. ;;
  5903. bsdi[45]*)
  5904. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5905. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5906. lt_cv_file_magic_test_file=/shlib/libc.so
  5907. ;;
  5908. cygwin*)
  5909. # func_win32_libid is a shell function defined in ltmain.sh
  5910. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5911. lt_cv_file_magic_cmd='func_win32_libid'
  5912. ;;
  5913. mingw* | pw32*)
  5914. # Base MSYS/MinGW do not provide the 'file' command needed by
  5915. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5916. # unless we find 'file', for example because we are cross-compiling.
  5917. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5918. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5919. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5920. lt_cv_file_magic_cmd='func_win32_libid'
  5921. else
  5922. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5923. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5924. fi
  5925. ;;
  5926. cegcc*)
  5927. # use the weaker test based on 'objdump'. See mingw*.
  5928. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5929. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5930. ;;
  5931. darwin* | rhapsody*)
  5932. lt_cv_deplibs_check_method=pass_all
  5933. ;;
  5934. freebsd* | dragonfly*)
  5935. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5936. case $host_cpu in
  5937. i*86 )
  5938. # Not sure whether the presence of OpenBSD here was a mistake.
  5939. # Let's accept both of them until this is cleared up.
  5940. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5941. lt_cv_file_magic_cmd=/usr/bin/file
  5942. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5943. ;;
  5944. esac
  5945. else
  5946. lt_cv_deplibs_check_method=pass_all
  5947. fi
  5948. ;;
  5949. gnu*)
  5950. lt_cv_deplibs_check_method=pass_all
  5951. ;;
  5952. haiku*)
  5953. lt_cv_deplibs_check_method=pass_all
  5954. ;;
  5955. hpux10.20* | hpux11*)
  5956. lt_cv_file_magic_cmd=/usr/bin/file
  5957. case $host_cpu in
  5958. ia64*)
  5959. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5960. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5961. ;;
  5962. hppa*64*)
  5963. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5964. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5965. ;;
  5966. *)
  5967. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5968. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5969. ;;
  5970. esac
  5971. ;;
  5972. interix[3-9]*)
  5973. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5974. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5975. ;;
  5976. irix5* | irix6* | nonstopux*)
  5977. case $LD in
  5978. *-32|*"-32 ") libmagic=32-bit;;
  5979. *-n32|*"-n32 ") libmagic=N32;;
  5980. *-64|*"-64 ") libmagic=64-bit;;
  5981. *) libmagic=never-match;;
  5982. esac
  5983. lt_cv_deplibs_check_method=pass_all
  5984. ;;
  5985. # This must be Linux ELF.
  5986. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5987. lt_cv_deplibs_check_method=pass_all
  5988. ;;
  5989. netbsd*)
  5990. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5991. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5992. else
  5993. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5994. fi
  5995. ;;
  5996. newos6*)
  5997. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5998. lt_cv_file_magic_cmd=/usr/bin/file
  5999. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6000. ;;
  6001. *nto* | *qnx*)
  6002. lt_cv_deplibs_check_method=pass_all
  6003. ;;
  6004. openbsd*)
  6005. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6006. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6007. else
  6008. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6009. fi
  6010. ;;
  6011. osf3* | osf4* | osf5*)
  6012. lt_cv_deplibs_check_method=pass_all
  6013. ;;
  6014. rdos*)
  6015. lt_cv_deplibs_check_method=pass_all
  6016. ;;
  6017. solaris*)
  6018. lt_cv_deplibs_check_method=pass_all
  6019. ;;
  6020. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6021. lt_cv_deplibs_check_method=pass_all
  6022. ;;
  6023. sysv4 | sysv4.3*)
  6024. case $host_vendor in
  6025. motorola)
  6026. 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]'
  6027. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6028. ;;
  6029. ncr)
  6030. lt_cv_deplibs_check_method=pass_all
  6031. ;;
  6032. sequent)
  6033. lt_cv_file_magic_cmd='/bin/file'
  6034. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6035. ;;
  6036. sni)
  6037. lt_cv_file_magic_cmd='/bin/file'
  6038. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6039. lt_cv_file_magic_test_file=/lib/libc.so
  6040. ;;
  6041. siemens)
  6042. lt_cv_deplibs_check_method=pass_all
  6043. ;;
  6044. pc)
  6045. lt_cv_deplibs_check_method=pass_all
  6046. ;;
  6047. esac
  6048. ;;
  6049. tpf*)
  6050. lt_cv_deplibs_check_method=pass_all
  6051. ;;
  6052. esac
  6053. fi
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6055. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6056. file_magic_cmd=$lt_cv_file_magic_cmd
  6057. deplibs_check_method=$lt_cv_deplibs_check_method
  6058. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6059. if test -n "$ac_tool_prefix"; then
  6060. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6061. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6063. $as_echo_n "checking for $ac_word... " >&6; }
  6064. if test "${ac_cv_prog_AR+set}" = set; then :
  6065. $as_echo_n "(cached) " >&6
  6066. else
  6067. if test -n "$AR"; then
  6068. ac_cv_prog_AR="$AR" # Let the user override the test.
  6069. else
  6070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6071. for as_dir in $PATH
  6072. do
  6073. IFS=$as_save_IFS
  6074. test -z "$as_dir" && as_dir=.
  6075. for ac_exec_ext in '' $ac_executable_extensions; do
  6076. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6077. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6079. break 2
  6080. fi
  6081. done
  6082. done
  6083. IFS=$as_save_IFS
  6084. fi
  6085. fi
  6086. AR=$ac_cv_prog_AR
  6087. if test -n "$AR"; then
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6089. $as_echo "$AR" >&6; }
  6090. else
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6092. $as_echo "no" >&6; }
  6093. fi
  6094. fi
  6095. if test -z "$ac_cv_prog_AR"; then
  6096. ac_ct_AR=$AR
  6097. # Extract the first word of "ar", so it can be a program name with args.
  6098. set dummy ar; ac_word=$2
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6100. $as_echo_n "checking for $ac_word... " >&6; }
  6101. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  6102. $as_echo_n "(cached) " >&6
  6103. else
  6104. if test -n "$ac_ct_AR"; then
  6105. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6106. else
  6107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6108. for as_dir in $PATH
  6109. do
  6110. IFS=$as_save_IFS
  6111. test -z "$as_dir" && as_dir=.
  6112. for ac_exec_ext in '' $ac_executable_extensions; do
  6113. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6114. ac_cv_prog_ac_ct_AR="ar"
  6115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6116. break 2
  6117. fi
  6118. done
  6119. done
  6120. IFS=$as_save_IFS
  6121. fi
  6122. fi
  6123. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6124. if test -n "$ac_ct_AR"; then
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6126. $as_echo "$ac_ct_AR" >&6; }
  6127. else
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6129. $as_echo "no" >&6; }
  6130. fi
  6131. if test "x$ac_ct_AR" = x; then
  6132. AR="false"
  6133. else
  6134. case $cross_compiling:$ac_tool_warned in
  6135. yes:)
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6138. ac_tool_warned=yes ;;
  6139. esac
  6140. AR=$ac_ct_AR
  6141. fi
  6142. else
  6143. AR="$ac_cv_prog_AR"
  6144. fi
  6145. test -z "$AR" && AR=ar
  6146. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6147. if test -n "$ac_tool_prefix"; then
  6148. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6149. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6151. $as_echo_n "checking for $ac_word... " >&6; }
  6152. if test "${ac_cv_prog_STRIP+set}" = set; then :
  6153. $as_echo_n "(cached) " >&6
  6154. else
  6155. if test -n "$STRIP"; then
  6156. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6157. else
  6158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6159. for as_dir in $PATH
  6160. do
  6161. IFS=$as_save_IFS
  6162. test -z "$as_dir" && as_dir=.
  6163. for ac_exec_ext in '' $ac_executable_extensions; do
  6164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6165. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6167. break 2
  6168. fi
  6169. done
  6170. done
  6171. IFS=$as_save_IFS
  6172. fi
  6173. fi
  6174. STRIP=$ac_cv_prog_STRIP
  6175. if test -n "$STRIP"; then
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6177. $as_echo "$STRIP" >&6; }
  6178. else
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6180. $as_echo "no" >&6; }
  6181. fi
  6182. fi
  6183. if test -z "$ac_cv_prog_STRIP"; then
  6184. ac_ct_STRIP=$STRIP
  6185. # Extract the first word of "strip", so it can be a program name with args.
  6186. set dummy strip; ac_word=$2
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6188. $as_echo_n "checking for $ac_word... " >&6; }
  6189. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  6190. $as_echo_n "(cached) " >&6
  6191. else
  6192. if test -n "$ac_ct_STRIP"; then
  6193. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6194. else
  6195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6196. for as_dir in $PATH
  6197. do
  6198. IFS=$as_save_IFS
  6199. test -z "$as_dir" && as_dir=.
  6200. for ac_exec_ext in '' $ac_executable_extensions; do
  6201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6202. ac_cv_prog_ac_ct_STRIP="strip"
  6203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6204. break 2
  6205. fi
  6206. done
  6207. done
  6208. IFS=$as_save_IFS
  6209. fi
  6210. fi
  6211. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6212. if test -n "$ac_ct_STRIP"; then
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6214. $as_echo "$ac_ct_STRIP" >&6; }
  6215. else
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6217. $as_echo "no" >&6; }
  6218. fi
  6219. if test "x$ac_ct_STRIP" = x; then
  6220. STRIP=":"
  6221. else
  6222. case $cross_compiling:$ac_tool_warned in
  6223. yes:)
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6225. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6226. ac_tool_warned=yes ;;
  6227. esac
  6228. STRIP=$ac_ct_STRIP
  6229. fi
  6230. else
  6231. STRIP="$ac_cv_prog_STRIP"
  6232. fi
  6233. test -z "$STRIP" && STRIP=:
  6234. if test -n "$ac_tool_prefix"; then
  6235. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6236. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6238. $as_echo_n "checking for $ac_word... " >&6; }
  6239. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6240. $as_echo_n "(cached) " >&6
  6241. else
  6242. if test -n "$RANLIB"; then
  6243. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6244. else
  6245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6246. for as_dir in $PATH
  6247. do
  6248. IFS=$as_save_IFS
  6249. test -z "$as_dir" && as_dir=.
  6250. for ac_exec_ext in '' $ac_executable_extensions; do
  6251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6252. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6253. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6254. break 2
  6255. fi
  6256. done
  6257. done
  6258. IFS=$as_save_IFS
  6259. fi
  6260. fi
  6261. RANLIB=$ac_cv_prog_RANLIB
  6262. if test -n "$RANLIB"; then
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6264. $as_echo "$RANLIB" >&6; }
  6265. else
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6267. $as_echo "no" >&6; }
  6268. fi
  6269. fi
  6270. if test -z "$ac_cv_prog_RANLIB"; then
  6271. ac_ct_RANLIB=$RANLIB
  6272. # Extract the first word of "ranlib", so it can be a program name with args.
  6273. set dummy ranlib; ac_word=$2
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6275. $as_echo_n "checking for $ac_word... " >&6; }
  6276. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6277. $as_echo_n "(cached) " >&6
  6278. else
  6279. if test -n "$ac_ct_RANLIB"; then
  6280. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6281. else
  6282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6283. for as_dir in $PATH
  6284. do
  6285. IFS=$as_save_IFS
  6286. test -z "$as_dir" && as_dir=.
  6287. for ac_exec_ext in '' $ac_executable_extensions; do
  6288. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6289. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6291. break 2
  6292. fi
  6293. done
  6294. done
  6295. IFS=$as_save_IFS
  6296. fi
  6297. fi
  6298. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6299. if test -n "$ac_ct_RANLIB"; then
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6301. $as_echo "$ac_ct_RANLIB" >&6; }
  6302. else
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6304. $as_echo "no" >&6; }
  6305. fi
  6306. if test "x$ac_ct_RANLIB" = x; then
  6307. RANLIB=":"
  6308. else
  6309. case $cross_compiling:$ac_tool_warned in
  6310. yes:)
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6312. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6313. ac_tool_warned=yes ;;
  6314. esac
  6315. RANLIB=$ac_ct_RANLIB
  6316. fi
  6317. else
  6318. RANLIB="$ac_cv_prog_RANLIB"
  6319. fi
  6320. test -z "$RANLIB" && RANLIB=:
  6321. # Determine commands to create old-style static archives.
  6322. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6323. old_postinstall_cmds='chmod 644 $oldlib'
  6324. old_postuninstall_cmds=
  6325. if test -n "$RANLIB"; then
  6326. case $host_os in
  6327. openbsd*)
  6328. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6329. ;;
  6330. *)
  6331. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6332. ;;
  6333. esac
  6334. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6335. fi
  6336. case $host_os in
  6337. darwin*)
  6338. lock_old_archive_extraction=yes ;;
  6339. *)
  6340. lock_old_archive_extraction=no ;;
  6341. esac
  6342. # If no C compiler was specified, use CC.
  6343. LTCC=${LTCC-"$CC"}
  6344. # If no C compiler flags were specified, use CFLAGS.
  6345. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6346. # Allow CC to be a program name with arguments.
  6347. compiler=$CC
  6348. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6350. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6351. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  6352. $as_echo_n "(cached) " >&6
  6353. else
  6354. # These are sane defaults that work on at least a few old systems.
  6355. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6356. # Character class describing NM global symbol codes.
  6357. symcode='[BCDEGRST]'
  6358. # Regexp to match symbols that can be accessed directly from C.
  6359. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6360. # Define system-specific variables.
  6361. case $host_os in
  6362. aix*)
  6363. symcode='[BCDT]'
  6364. ;;
  6365. cygwin* | mingw* | pw32* | cegcc*)
  6366. symcode='[ABCDGISTW]'
  6367. ;;
  6368. hpux*)
  6369. if test "$host_cpu" = ia64; then
  6370. symcode='[ABCDEGRST]'
  6371. fi
  6372. ;;
  6373. irix* | nonstopux*)
  6374. symcode='[BCDEGRST]'
  6375. ;;
  6376. osf*)
  6377. symcode='[BCDEGQRST]'
  6378. ;;
  6379. solaris*)
  6380. symcode='[BDRT]'
  6381. ;;
  6382. sco3.2v5*)
  6383. symcode='[DT]'
  6384. ;;
  6385. sysv4.2uw2*)
  6386. symcode='[DT]'
  6387. ;;
  6388. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6389. symcode='[ABDT]'
  6390. ;;
  6391. sysv4)
  6392. symcode='[DFNSTU]'
  6393. ;;
  6394. esac
  6395. # If we're using GNU nm, then use its standard symbol codes.
  6396. case `$NM -V 2>&1` in
  6397. *GNU* | *'with BFD'*)
  6398. symcode='[ABCDGIRSTW]' ;;
  6399. esac
  6400. # Transform an extracted symbol line into a proper C declaration.
  6401. # Some systems (esp. on ia64) link data and code symbols differently,
  6402. # so use this general approach.
  6403. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6404. # Transform an extracted symbol line into symbol name and symbol address
  6405. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6406. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6407. # Handle CRLF in mingw tool chain
  6408. opt_cr=
  6409. case $build_os in
  6410. mingw*)
  6411. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6412. ;;
  6413. esac
  6414. # Try without a prefix underscore, then with it.
  6415. for ac_symprfx in "" "_"; do
  6416. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6417. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6418. # Write the raw and C identifiers.
  6419. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6420. # Fake it for dumpbin and say T for any non-static function
  6421. # and D for any global variable.
  6422. # Also find C++ and __fastcall symbols from MSVC++,
  6423. # which start with @ or ?.
  6424. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6425. " {last_section=section; section=\$ 3};"\
  6426. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6427. " \$ 0!~/External *\|/{next};"\
  6428. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6429. " {if(hide[section]) next};"\
  6430. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6431. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6432. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6433. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6434. " ' prfx=^$ac_symprfx"
  6435. else
  6436. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6437. fi
  6438. # Check to see that the pipe works correctly.
  6439. pipe_works=no
  6440. rm -f conftest*
  6441. cat > conftest.$ac_ext <<_LT_EOF
  6442. #ifdef __cplusplus
  6443. extern "C" {
  6444. #endif
  6445. char nm_test_var;
  6446. void nm_test_func(void);
  6447. void nm_test_func(void){}
  6448. #ifdef __cplusplus
  6449. }
  6450. #endif
  6451. int main(){nm_test_var='a';nm_test_func();return(0);}
  6452. _LT_EOF
  6453. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6454. (eval $ac_compile) 2>&5
  6455. ac_status=$?
  6456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6457. test $ac_status = 0; }; then
  6458. # Now try to grab the symbols.
  6459. nlist=conftest.nm
  6460. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6461. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6462. ac_status=$?
  6463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6464. test $ac_status = 0; } && test -s "$nlist"; then
  6465. # Try sorting and uniquifying the output.
  6466. if sort "$nlist" | uniq > "$nlist"T; then
  6467. mv -f "$nlist"T "$nlist"
  6468. else
  6469. rm -f "$nlist"T
  6470. fi
  6471. # Make sure that we snagged all the symbols we need.
  6472. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6473. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6474. cat <<_LT_EOF > conftest.$ac_ext
  6475. #ifdef __cplusplus
  6476. extern "C" {
  6477. #endif
  6478. _LT_EOF
  6479. # Now generate the symbol file.
  6480. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6481. cat <<_LT_EOF >> conftest.$ac_ext
  6482. /* The mapping between symbol names and symbols. */
  6483. const struct {
  6484. const char *name;
  6485. void *address;
  6486. }
  6487. lt__PROGRAM__LTX_preloaded_symbols[] =
  6488. {
  6489. { "@PROGRAM@", (void *) 0 },
  6490. _LT_EOF
  6491. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6492. cat <<\_LT_EOF >> conftest.$ac_ext
  6493. {0, (void *) 0}
  6494. };
  6495. /* This works around a problem in FreeBSD linker */
  6496. #ifdef FREEBSD_WORKAROUND
  6497. static const void *lt_preloaded_setup() {
  6498. return lt__PROGRAM__LTX_preloaded_symbols;
  6499. }
  6500. #endif
  6501. #ifdef __cplusplus
  6502. }
  6503. #endif
  6504. _LT_EOF
  6505. # Now try linking the two files.
  6506. mv conftest.$ac_objext conftstm.$ac_objext
  6507. lt_save_LIBS="$LIBS"
  6508. lt_save_CFLAGS="$CFLAGS"
  6509. LIBS="conftstm.$ac_objext"
  6510. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6511. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6512. (eval $ac_link) 2>&5
  6513. ac_status=$?
  6514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6515. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6516. pipe_works=yes
  6517. fi
  6518. LIBS="$lt_save_LIBS"
  6519. CFLAGS="$lt_save_CFLAGS"
  6520. else
  6521. echo "cannot find nm_test_func in $nlist" >&5
  6522. fi
  6523. else
  6524. echo "cannot find nm_test_var in $nlist" >&5
  6525. fi
  6526. else
  6527. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6528. fi
  6529. else
  6530. echo "$progname: failed program was:" >&5
  6531. cat conftest.$ac_ext >&5
  6532. fi
  6533. rm -rf conftest* conftst*
  6534. # Do not use the global_symbol_pipe unless it works.
  6535. if test "$pipe_works" = yes; then
  6536. break
  6537. else
  6538. lt_cv_sys_global_symbol_pipe=
  6539. fi
  6540. done
  6541. fi
  6542. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6543. lt_cv_sys_global_symbol_to_cdecl=
  6544. fi
  6545. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6547. $as_echo "failed" >&6; }
  6548. else
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6550. $as_echo "ok" >&6; }
  6551. fi
  6552. # Check whether --enable-libtool-lock was given.
  6553. if test "${enable_libtool_lock+set}" = set; then :
  6554. enableval=$enable_libtool_lock;
  6555. fi
  6556. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6557. # Some flags need to be propagated to the compiler or linker for good
  6558. # libtool support.
  6559. case $host in
  6560. ia64-*-hpux*)
  6561. # Find out which ABI we are using.
  6562. echo 'int i;' > conftest.$ac_ext
  6563. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6564. (eval $ac_compile) 2>&5
  6565. ac_status=$?
  6566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6567. test $ac_status = 0; }; then
  6568. case `/usr/bin/file conftest.$ac_objext` in
  6569. *ELF-32*)
  6570. HPUX_IA64_MODE="32"
  6571. ;;
  6572. *ELF-64*)
  6573. HPUX_IA64_MODE="64"
  6574. ;;
  6575. esac
  6576. fi
  6577. rm -rf conftest*
  6578. ;;
  6579. *-*-irix6*)
  6580. # Find out which ABI we are using.
  6581. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6582. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6583. (eval $ac_compile) 2>&5
  6584. ac_status=$?
  6585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6586. test $ac_status = 0; }; then
  6587. if test "$lt_cv_prog_gnu_ld" = yes; then
  6588. case `/usr/bin/file conftest.$ac_objext` in
  6589. *32-bit*)
  6590. LD="${LD-ld} -melf32bsmip"
  6591. ;;
  6592. *N32*)
  6593. LD="${LD-ld} -melf32bmipn32"
  6594. ;;
  6595. *64-bit*)
  6596. LD="${LD-ld} -melf64bmip"
  6597. ;;
  6598. esac
  6599. else
  6600. case `/usr/bin/file conftest.$ac_objext` in
  6601. *32-bit*)
  6602. LD="${LD-ld} -32"
  6603. ;;
  6604. *N32*)
  6605. LD="${LD-ld} -n32"
  6606. ;;
  6607. *64-bit*)
  6608. LD="${LD-ld} -64"
  6609. ;;
  6610. esac
  6611. fi
  6612. fi
  6613. rm -rf conftest*
  6614. ;;
  6615. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6616. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6617. # Find out which ABI we are using.
  6618. echo 'int i;' > conftest.$ac_ext
  6619. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6620. (eval $ac_compile) 2>&5
  6621. ac_status=$?
  6622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6623. test $ac_status = 0; }; then
  6624. case `/usr/bin/file conftest.o` in
  6625. *32-bit*)
  6626. case $host in
  6627. x86_64-*kfreebsd*-gnu)
  6628. LD="${LD-ld} -m elf_i386_fbsd"
  6629. ;;
  6630. x86_64-*linux*)
  6631. case `/usr/bin/file conftest.o` in
  6632. *x86-64*)
  6633. LD="${LD-ld} -m elf32_x86_64"
  6634. ;;
  6635. *)
  6636. LD="${LD-ld} -m elf_i386"
  6637. ;;
  6638. esac
  6639. ;;
  6640. powerpc64le-*linux*)
  6641. LD="${LD-ld} -m elf32lppclinux"
  6642. ;;
  6643. powerpc64-*linux*)
  6644. LD="${LD-ld} -m elf32ppclinux"
  6645. ;;
  6646. s390x-*linux*)
  6647. LD="${LD-ld} -m elf_s390"
  6648. ;;
  6649. sparc64-*linux*)
  6650. LD="${LD-ld} -m elf32_sparc"
  6651. ;;
  6652. esac
  6653. ;;
  6654. *64-bit*)
  6655. case $host in
  6656. x86_64-*kfreebsd*-gnu)
  6657. LD="${LD-ld} -m elf_x86_64_fbsd"
  6658. ;;
  6659. x86_64-*linux*)
  6660. LD="${LD-ld} -m elf_x86_64"
  6661. ;;
  6662. powerpcle-*linux*)
  6663. LD="${LD-ld} -m elf64lppc"
  6664. ;;
  6665. powerpc-*linux*)
  6666. LD="${LD-ld} -m elf64ppc"
  6667. ;;
  6668. s390*-*linux*|s390*-*tpf*)
  6669. LD="${LD-ld} -m elf64_s390"
  6670. ;;
  6671. sparc*-*linux*)
  6672. LD="${LD-ld} -m elf64_sparc"
  6673. ;;
  6674. esac
  6675. ;;
  6676. esac
  6677. fi
  6678. rm -rf conftest*
  6679. ;;
  6680. *-*-sco3.2v5*)
  6681. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6682. SAVE_CFLAGS="$CFLAGS"
  6683. CFLAGS="$CFLAGS -belf"
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6685. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6686. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. ac_ext=c
  6690. ac_cpp='$CPP $CPPFLAGS'
  6691. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6692. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6693. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6695. /* end confdefs.h. */
  6696. int
  6697. main ()
  6698. {
  6699. ;
  6700. return 0;
  6701. }
  6702. _ACEOF
  6703. if ac_fn_c_try_link "$LINENO"; then :
  6704. lt_cv_cc_needs_belf=yes
  6705. else
  6706. lt_cv_cc_needs_belf=no
  6707. fi
  6708. rm -f core conftest.err conftest.$ac_objext \
  6709. conftest$ac_exeext conftest.$ac_ext
  6710. ac_ext=c
  6711. ac_cpp='$CPP $CPPFLAGS'
  6712. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6713. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6714. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6715. fi
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6717. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6718. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6719. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6720. CFLAGS="$SAVE_CFLAGS"
  6721. fi
  6722. ;;
  6723. sparc*-*solaris*)
  6724. # Find out which ABI we are using.
  6725. echo 'int i;' > conftest.$ac_ext
  6726. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6727. (eval $ac_compile) 2>&5
  6728. ac_status=$?
  6729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6730. test $ac_status = 0; }; then
  6731. case `/usr/bin/file conftest.o` in
  6732. *64-bit*)
  6733. case $lt_cv_prog_gnu_ld in
  6734. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6735. *)
  6736. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6737. LD="${LD-ld} -64"
  6738. fi
  6739. ;;
  6740. esac
  6741. ;;
  6742. esac
  6743. fi
  6744. rm -rf conftest*
  6745. ;;
  6746. esac
  6747. need_locks="$enable_libtool_lock"
  6748. case $host_os in
  6749. rhapsody* | darwin*)
  6750. if test -n "$ac_tool_prefix"; then
  6751. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6752. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6754. $as_echo_n "checking for $ac_word... " >&6; }
  6755. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6756. $as_echo_n "(cached) " >&6
  6757. else
  6758. if test -n "$DSYMUTIL"; then
  6759. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6760. else
  6761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6762. for as_dir in $PATH
  6763. do
  6764. IFS=$as_save_IFS
  6765. test -z "$as_dir" && as_dir=.
  6766. for ac_exec_ext in '' $ac_executable_extensions; do
  6767. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6768. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6770. break 2
  6771. fi
  6772. done
  6773. done
  6774. IFS=$as_save_IFS
  6775. fi
  6776. fi
  6777. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6778. if test -n "$DSYMUTIL"; then
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6780. $as_echo "$DSYMUTIL" >&6; }
  6781. else
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6783. $as_echo "no" >&6; }
  6784. fi
  6785. fi
  6786. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6787. ac_ct_DSYMUTIL=$DSYMUTIL
  6788. # Extract the first word of "dsymutil", so it can be a program name with args.
  6789. set dummy dsymutil; ac_word=$2
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6791. $as_echo_n "checking for $ac_word... " >&6; }
  6792. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6793. $as_echo_n "(cached) " >&6
  6794. else
  6795. if test -n "$ac_ct_DSYMUTIL"; then
  6796. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6797. else
  6798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6799. for as_dir in $PATH
  6800. do
  6801. IFS=$as_save_IFS
  6802. test -z "$as_dir" && as_dir=.
  6803. for ac_exec_ext in '' $ac_executable_extensions; do
  6804. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6805. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6807. break 2
  6808. fi
  6809. done
  6810. done
  6811. IFS=$as_save_IFS
  6812. fi
  6813. fi
  6814. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6815. if test -n "$ac_ct_DSYMUTIL"; then
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6817. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6818. else
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6820. $as_echo "no" >&6; }
  6821. fi
  6822. if test "x$ac_ct_DSYMUTIL" = x; then
  6823. DSYMUTIL=":"
  6824. else
  6825. case $cross_compiling:$ac_tool_warned in
  6826. yes:)
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6828. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6829. ac_tool_warned=yes ;;
  6830. esac
  6831. DSYMUTIL=$ac_ct_DSYMUTIL
  6832. fi
  6833. else
  6834. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6835. fi
  6836. if test -n "$ac_tool_prefix"; then
  6837. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6838. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6840. $as_echo_n "checking for $ac_word... " >&6; }
  6841. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6842. $as_echo_n "(cached) " >&6
  6843. else
  6844. if test -n "$NMEDIT"; then
  6845. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6846. else
  6847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6848. for as_dir in $PATH
  6849. do
  6850. IFS=$as_save_IFS
  6851. test -z "$as_dir" && as_dir=.
  6852. for ac_exec_ext in '' $ac_executable_extensions; do
  6853. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6854. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6855. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6856. break 2
  6857. fi
  6858. done
  6859. done
  6860. IFS=$as_save_IFS
  6861. fi
  6862. fi
  6863. NMEDIT=$ac_cv_prog_NMEDIT
  6864. if test -n "$NMEDIT"; then
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6866. $as_echo "$NMEDIT" >&6; }
  6867. else
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6869. $as_echo "no" >&6; }
  6870. fi
  6871. fi
  6872. if test -z "$ac_cv_prog_NMEDIT"; then
  6873. ac_ct_NMEDIT=$NMEDIT
  6874. # Extract the first word of "nmedit", so it can be a program name with args.
  6875. set dummy nmedit; ac_word=$2
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6877. $as_echo_n "checking for $ac_word... " >&6; }
  6878. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6879. $as_echo_n "(cached) " >&6
  6880. else
  6881. if test -n "$ac_ct_NMEDIT"; then
  6882. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6883. else
  6884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6885. for as_dir in $PATH
  6886. do
  6887. IFS=$as_save_IFS
  6888. test -z "$as_dir" && as_dir=.
  6889. for ac_exec_ext in '' $ac_executable_extensions; do
  6890. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6891. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6893. break 2
  6894. fi
  6895. done
  6896. done
  6897. IFS=$as_save_IFS
  6898. fi
  6899. fi
  6900. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6901. if test -n "$ac_ct_NMEDIT"; then
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6903. $as_echo "$ac_ct_NMEDIT" >&6; }
  6904. else
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6906. $as_echo "no" >&6; }
  6907. fi
  6908. if test "x$ac_ct_NMEDIT" = x; then
  6909. NMEDIT=":"
  6910. else
  6911. case $cross_compiling:$ac_tool_warned in
  6912. yes:)
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6914. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6915. ac_tool_warned=yes ;;
  6916. esac
  6917. NMEDIT=$ac_ct_NMEDIT
  6918. fi
  6919. else
  6920. NMEDIT="$ac_cv_prog_NMEDIT"
  6921. fi
  6922. if test -n "$ac_tool_prefix"; then
  6923. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6924. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6926. $as_echo_n "checking for $ac_word... " >&6; }
  6927. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6928. $as_echo_n "(cached) " >&6
  6929. else
  6930. if test -n "$LIPO"; then
  6931. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6932. else
  6933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6934. for as_dir in $PATH
  6935. do
  6936. IFS=$as_save_IFS
  6937. test -z "$as_dir" && as_dir=.
  6938. for ac_exec_ext in '' $ac_executable_extensions; do
  6939. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6940. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6942. break 2
  6943. fi
  6944. done
  6945. done
  6946. IFS=$as_save_IFS
  6947. fi
  6948. fi
  6949. LIPO=$ac_cv_prog_LIPO
  6950. if test -n "$LIPO"; then
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6952. $as_echo "$LIPO" >&6; }
  6953. else
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6955. $as_echo "no" >&6; }
  6956. fi
  6957. fi
  6958. if test -z "$ac_cv_prog_LIPO"; then
  6959. ac_ct_LIPO=$LIPO
  6960. # Extract the first word of "lipo", so it can be a program name with args.
  6961. set dummy lipo; ac_word=$2
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6963. $as_echo_n "checking for $ac_word... " >&6; }
  6964. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6965. $as_echo_n "(cached) " >&6
  6966. else
  6967. if test -n "$ac_ct_LIPO"; then
  6968. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6969. else
  6970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6971. for as_dir in $PATH
  6972. do
  6973. IFS=$as_save_IFS
  6974. test -z "$as_dir" && as_dir=.
  6975. for ac_exec_ext in '' $ac_executable_extensions; do
  6976. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6977. ac_cv_prog_ac_ct_LIPO="lipo"
  6978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6979. break 2
  6980. fi
  6981. done
  6982. done
  6983. IFS=$as_save_IFS
  6984. fi
  6985. fi
  6986. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6987. if test -n "$ac_ct_LIPO"; then
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6989. $as_echo "$ac_ct_LIPO" >&6; }
  6990. else
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6992. $as_echo "no" >&6; }
  6993. fi
  6994. if test "x$ac_ct_LIPO" = x; then
  6995. LIPO=":"
  6996. else
  6997. case $cross_compiling:$ac_tool_warned in
  6998. yes:)
  6999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7000. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7001. ac_tool_warned=yes ;;
  7002. esac
  7003. LIPO=$ac_ct_LIPO
  7004. fi
  7005. else
  7006. LIPO="$ac_cv_prog_LIPO"
  7007. fi
  7008. if test -n "$ac_tool_prefix"; then
  7009. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7010. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7012. $as_echo_n "checking for $ac_word... " >&6; }
  7013. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  7014. $as_echo_n "(cached) " >&6
  7015. else
  7016. if test -n "$OTOOL"; then
  7017. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7018. else
  7019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7020. for as_dir in $PATH
  7021. do
  7022. IFS=$as_save_IFS
  7023. test -z "$as_dir" && as_dir=.
  7024. for ac_exec_ext in '' $ac_executable_extensions; do
  7025. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7026. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7028. break 2
  7029. fi
  7030. done
  7031. done
  7032. IFS=$as_save_IFS
  7033. fi
  7034. fi
  7035. OTOOL=$ac_cv_prog_OTOOL
  7036. if test -n "$OTOOL"; then
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7038. $as_echo "$OTOOL" >&6; }
  7039. else
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7041. $as_echo "no" >&6; }
  7042. fi
  7043. fi
  7044. if test -z "$ac_cv_prog_OTOOL"; then
  7045. ac_ct_OTOOL=$OTOOL
  7046. # Extract the first word of "otool", so it can be a program name with args.
  7047. set dummy otool; ac_word=$2
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7049. $as_echo_n "checking for $ac_word... " >&6; }
  7050. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  7051. $as_echo_n "(cached) " >&6
  7052. else
  7053. if test -n "$ac_ct_OTOOL"; then
  7054. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7055. else
  7056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7057. for as_dir in $PATH
  7058. do
  7059. IFS=$as_save_IFS
  7060. test -z "$as_dir" && as_dir=.
  7061. for ac_exec_ext in '' $ac_executable_extensions; do
  7062. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7063. ac_cv_prog_ac_ct_OTOOL="otool"
  7064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7065. break 2
  7066. fi
  7067. done
  7068. done
  7069. IFS=$as_save_IFS
  7070. fi
  7071. fi
  7072. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7073. if test -n "$ac_ct_OTOOL"; then
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7075. $as_echo "$ac_ct_OTOOL" >&6; }
  7076. else
  7077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7078. $as_echo "no" >&6; }
  7079. fi
  7080. if test "x$ac_ct_OTOOL" = x; then
  7081. OTOOL=":"
  7082. else
  7083. case $cross_compiling:$ac_tool_warned in
  7084. yes:)
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7086. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7087. ac_tool_warned=yes ;;
  7088. esac
  7089. OTOOL=$ac_ct_OTOOL
  7090. fi
  7091. else
  7092. OTOOL="$ac_cv_prog_OTOOL"
  7093. fi
  7094. if test -n "$ac_tool_prefix"; then
  7095. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7096. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7098. $as_echo_n "checking for $ac_word... " >&6; }
  7099. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  7100. $as_echo_n "(cached) " >&6
  7101. else
  7102. if test -n "$OTOOL64"; then
  7103. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7104. else
  7105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7106. for as_dir in $PATH
  7107. do
  7108. IFS=$as_save_IFS
  7109. test -z "$as_dir" && as_dir=.
  7110. for ac_exec_ext in '' $ac_executable_extensions; do
  7111. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7112. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7114. break 2
  7115. fi
  7116. done
  7117. done
  7118. IFS=$as_save_IFS
  7119. fi
  7120. fi
  7121. OTOOL64=$ac_cv_prog_OTOOL64
  7122. if test -n "$OTOOL64"; then
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7124. $as_echo "$OTOOL64" >&6; }
  7125. else
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7127. $as_echo "no" >&6; }
  7128. fi
  7129. fi
  7130. if test -z "$ac_cv_prog_OTOOL64"; then
  7131. ac_ct_OTOOL64=$OTOOL64
  7132. # Extract the first word of "otool64", so it can be a program name with args.
  7133. set dummy otool64; ac_word=$2
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7135. $as_echo_n "checking for $ac_word... " >&6; }
  7136. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  7137. $as_echo_n "(cached) " >&6
  7138. else
  7139. if test -n "$ac_ct_OTOOL64"; then
  7140. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7141. else
  7142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7143. for as_dir in $PATH
  7144. do
  7145. IFS=$as_save_IFS
  7146. test -z "$as_dir" && as_dir=.
  7147. for ac_exec_ext in '' $ac_executable_extensions; do
  7148. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7149. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7151. break 2
  7152. fi
  7153. done
  7154. done
  7155. IFS=$as_save_IFS
  7156. fi
  7157. fi
  7158. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7159. if test -n "$ac_ct_OTOOL64"; then
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7161. $as_echo "$ac_ct_OTOOL64" >&6; }
  7162. else
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7164. $as_echo "no" >&6; }
  7165. fi
  7166. if test "x$ac_ct_OTOOL64" = x; then
  7167. OTOOL64=":"
  7168. else
  7169. case $cross_compiling:$ac_tool_warned in
  7170. yes:)
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7172. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7173. ac_tool_warned=yes ;;
  7174. esac
  7175. OTOOL64=$ac_ct_OTOOL64
  7176. fi
  7177. else
  7178. OTOOL64="$ac_cv_prog_OTOOL64"
  7179. fi
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7181. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7182. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  7183. $as_echo_n "(cached) " >&6
  7184. else
  7185. lt_cv_apple_cc_single_mod=no
  7186. if test -z "${LT_MULTI_MODULE}"; then
  7187. # By default we will add the -single_module flag. You can override
  7188. # by either setting the environment variable LT_MULTI_MODULE
  7189. # non-empty at configure time, or by adding -multi_module to the
  7190. # link flags.
  7191. rm -rf libconftest.dylib*
  7192. echo "int foo(void){return 1;}" > conftest.c
  7193. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7194. -dynamiclib -Wl,-single_module conftest.c" >&5
  7195. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7196. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7197. _lt_result=$?
  7198. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7199. lt_cv_apple_cc_single_mod=yes
  7200. else
  7201. cat conftest.err >&5
  7202. fi
  7203. rm -rf libconftest.dylib*
  7204. rm -f conftest.*
  7205. fi
  7206. fi
  7207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7208. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7210. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7211. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  7212. $as_echo_n "(cached) " >&6
  7213. else
  7214. lt_cv_ld_exported_symbols_list=no
  7215. save_LDFLAGS=$LDFLAGS
  7216. echo "_main" > conftest.sym
  7217. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7219. /* end confdefs.h. */
  7220. int
  7221. main ()
  7222. {
  7223. ;
  7224. return 0;
  7225. }
  7226. _ACEOF
  7227. if ac_fn_c_try_link "$LINENO"; then :
  7228. lt_cv_ld_exported_symbols_list=yes
  7229. else
  7230. lt_cv_ld_exported_symbols_list=no
  7231. fi
  7232. rm -f core conftest.err conftest.$ac_objext \
  7233. conftest$ac_exeext conftest.$ac_ext
  7234. LDFLAGS="$save_LDFLAGS"
  7235. fi
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7237. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7239. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7240. if test "${lt_cv_ld_force_load+set}" = set; then :
  7241. $as_echo_n "(cached) " >&6
  7242. else
  7243. lt_cv_ld_force_load=no
  7244. cat > conftest.c << _LT_EOF
  7245. int forced_loaded() { return 2;}
  7246. _LT_EOF
  7247. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7248. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7249. echo "$AR cru libconftest.a conftest.o" >&5
  7250. $AR cru libconftest.a conftest.o 2>&5
  7251. cat > conftest.c << _LT_EOF
  7252. int main() { return 0;}
  7253. _LT_EOF
  7254. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7255. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7256. _lt_result=$?
  7257. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7258. lt_cv_ld_force_load=yes
  7259. else
  7260. cat conftest.err >&5
  7261. fi
  7262. rm -f conftest.err libconftest.a conftest conftest.c
  7263. rm -rf conftest.dSYM
  7264. fi
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7266. $as_echo "$lt_cv_ld_force_load" >&6; }
  7267. case $host_os in
  7268. rhapsody* | darwin1.[012])
  7269. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7270. darwin1.*)
  7271. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7272. darwin*) # darwin 5.x on
  7273. # if running on 10.5 or later, the deployment target defaults
  7274. # to the OS version, if on x86, and 10.4, the deployment
  7275. # target defaults to 10.4. Don't you love it?
  7276. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7277. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7278. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7279. 10.[012][,.]*)
  7280. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7281. 10.*)
  7282. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7283. esac
  7284. ;;
  7285. esac
  7286. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7287. _lt_dar_single_mod='$single_module'
  7288. fi
  7289. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7290. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7291. else
  7292. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7293. fi
  7294. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7295. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7296. else
  7297. _lt_dsymutil=
  7298. fi
  7299. ;;
  7300. esac
  7301. for ac_header in dlfcn.h
  7302. do :
  7303. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7304. "
  7305. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7306. cat >>confdefs.h <<_ACEOF
  7307. #define HAVE_DLFCN_H 1
  7308. _ACEOF
  7309. fi
  7310. done
  7311. # Set options
  7312. enable_dlopen=no
  7313. enable_win32_dll=no
  7314. # Check whether --enable-shared was given.
  7315. if test "${enable_shared+set}" = set; then :
  7316. enableval=$enable_shared; p=${PACKAGE-default}
  7317. case $enableval in
  7318. yes) enable_shared=yes ;;
  7319. no) enable_shared=no ;;
  7320. *)
  7321. enable_shared=no
  7322. # Look at the argument we got. We use all the common list separators.
  7323. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7324. for pkg in $enableval; do
  7325. IFS="$lt_save_ifs"
  7326. if test "X$pkg" = "X$p"; then
  7327. enable_shared=yes
  7328. fi
  7329. done
  7330. IFS="$lt_save_ifs"
  7331. ;;
  7332. esac
  7333. else
  7334. enable_shared=yes
  7335. fi
  7336. # Check whether --enable-static was given.
  7337. if test "${enable_static+set}" = set; then :
  7338. enableval=$enable_static; p=${PACKAGE-default}
  7339. case $enableval in
  7340. yes) enable_static=yes ;;
  7341. no) enable_static=no ;;
  7342. *)
  7343. enable_static=no
  7344. # Look at the argument we got. We use all the common list separators.
  7345. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7346. for pkg in $enableval; do
  7347. IFS="$lt_save_ifs"
  7348. if test "X$pkg" = "X$p"; then
  7349. enable_static=yes
  7350. fi
  7351. done
  7352. IFS="$lt_save_ifs"
  7353. ;;
  7354. esac
  7355. else
  7356. enable_static=yes
  7357. fi
  7358. # Check whether --with-pic was given.
  7359. if test "${with_pic+set}" = set; then :
  7360. withval=$with_pic; pic_mode="$withval"
  7361. else
  7362. pic_mode=default
  7363. fi
  7364. test -z "$pic_mode" && pic_mode=default
  7365. # Check whether --enable-fast-install was given.
  7366. if test "${enable_fast_install+set}" = set; then :
  7367. enableval=$enable_fast_install; p=${PACKAGE-default}
  7368. case $enableval in
  7369. yes) enable_fast_install=yes ;;
  7370. no) enable_fast_install=no ;;
  7371. *)
  7372. enable_fast_install=no
  7373. # Look at the argument we got. We use all the common list separators.
  7374. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7375. for pkg in $enableval; do
  7376. IFS="$lt_save_ifs"
  7377. if test "X$pkg" = "X$p"; then
  7378. enable_fast_install=yes
  7379. fi
  7380. done
  7381. IFS="$lt_save_ifs"
  7382. ;;
  7383. esac
  7384. else
  7385. enable_fast_install=yes
  7386. fi
  7387. # This can be used to rebuild libtool when needed
  7388. LIBTOOL_DEPS="$ltmain"
  7389. # Always use our own libtool.
  7390. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7391. test -z "$LN_S" && LN_S="ln -s"
  7392. if test -n "${ZSH_VERSION+set}" ; then
  7393. setopt NO_GLOB_SUBST
  7394. fi
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7396. $as_echo_n "checking for objdir... " >&6; }
  7397. if test "${lt_cv_objdir+set}" = set; then :
  7398. $as_echo_n "(cached) " >&6
  7399. else
  7400. rm -f .libs 2>/dev/null
  7401. mkdir .libs 2>/dev/null
  7402. if test -d .libs; then
  7403. lt_cv_objdir=.libs
  7404. else
  7405. # MS-DOS does not allow filenames that begin with a dot.
  7406. lt_cv_objdir=_libs
  7407. fi
  7408. rmdir .libs 2>/dev/null
  7409. fi
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7411. $as_echo "$lt_cv_objdir" >&6; }
  7412. objdir=$lt_cv_objdir
  7413. cat >>confdefs.h <<_ACEOF
  7414. #define LT_OBJDIR "$lt_cv_objdir/"
  7415. _ACEOF
  7416. case $host_os in
  7417. aix3*)
  7418. # AIX sometimes has problems with the GCC collect2 program. For some
  7419. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7420. # vanish in a puff of smoke.
  7421. if test "X${COLLECT_NAMES+set}" != Xset; then
  7422. COLLECT_NAMES=
  7423. export COLLECT_NAMES
  7424. fi
  7425. ;;
  7426. esac
  7427. # Global variables:
  7428. ofile=libtool
  7429. can_build_shared=yes
  7430. # All known linkers require a `.a' archive for static linking (except MSVC,
  7431. # which needs '.lib').
  7432. libext=a
  7433. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7434. old_CC="$CC"
  7435. old_CFLAGS="$CFLAGS"
  7436. # Set sane defaults for various variables
  7437. test -z "$CC" && CC=cc
  7438. test -z "$LTCC" && LTCC=$CC
  7439. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7440. test -z "$LD" && LD=ld
  7441. test -z "$ac_objext" && ac_objext=o
  7442. for cc_temp in $compiler""; do
  7443. case $cc_temp in
  7444. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7445. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7446. \-*) ;;
  7447. *) break;;
  7448. esac
  7449. done
  7450. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7451. # Only perform the check for file, if the check method requires it
  7452. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7453. case $deplibs_check_method in
  7454. file_magic*)
  7455. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7457. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7458. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7459. $as_echo_n "(cached) " >&6
  7460. else
  7461. case $MAGIC_CMD in
  7462. [\\/*] | ?:[\\/]*)
  7463. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7464. ;;
  7465. *)
  7466. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7467. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7468. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7469. for ac_dir in $ac_dummy; do
  7470. IFS="$lt_save_ifs"
  7471. test -z "$ac_dir" && ac_dir=.
  7472. if test -f $ac_dir/${ac_tool_prefix}file; then
  7473. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7474. if test -n "$file_magic_test_file"; then
  7475. case $deplibs_check_method in
  7476. "file_magic "*)
  7477. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7478. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7479. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7480. $EGREP "$file_magic_regex" > /dev/null; then
  7481. :
  7482. else
  7483. cat <<_LT_EOF 1>&2
  7484. *** Warning: the command libtool uses to detect shared libraries,
  7485. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7486. *** The result is that libtool may fail to recognize shared libraries
  7487. *** as such. This will affect the creation of libtool libraries that
  7488. *** depend on shared libraries, but programs linked with such libtool
  7489. *** libraries will work regardless of this problem. Nevertheless, you
  7490. *** may want to report the problem to your system manager and/or to
  7491. *** bug-libtool@gnu.org
  7492. _LT_EOF
  7493. fi ;;
  7494. esac
  7495. fi
  7496. break
  7497. fi
  7498. done
  7499. IFS="$lt_save_ifs"
  7500. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7501. ;;
  7502. esac
  7503. fi
  7504. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7505. if test -n "$MAGIC_CMD"; then
  7506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7507. $as_echo "$MAGIC_CMD" >&6; }
  7508. else
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7510. $as_echo "no" >&6; }
  7511. fi
  7512. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7513. if test -n "$ac_tool_prefix"; then
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7515. $as_echo_n "checking for file... " >&6; }
  7516. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7517. $as_echo_n "(cached) " >&6
  7518. else
  7519. case $MAGIC_CMD in
  7520. [\\/*] | ?:[\\/]*)
  7521. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7522. ;;
  7523. *)
  7524. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7525. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7526. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7527. for ac_dir in $ac_dummy; do
  7528. IFS="$lt_save_ifs"
  7529. test -z "$ac_dir" && ac_dir=.
  7530. if test -f $ac_dir/file; then
  7531. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7532. if test -n "$file_magic_test_file"; then
  7533. case $deplibs_check_method in
  7534. "file_magic "*)
  7535. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7536. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7537. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7538. $EGREP "$file_magic_regex" > /dev/null; then
  7539. :
  7540. else
  7541. cat <<_LT_EOF 1>&2
  7542. *** Warning: the command libtool uses to detect shared libraries,
  7543. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7544. *** The result is that libtool may fail to recognize shared libraries
  7545. *** as such. This will affect the creation of libtool libraries that
  7546. *** depend on shared libraries, but programs linked with such libtool
  7547. *** libraries will work regardless of this problem. Nevertheless, you
  7548. *** may want to report the problem to your system manager and/or to
  7549. *** bug-libtool@gnu.org
  7550. _LT_EOF
  7551. fi ;;
  7552. esac
  7553. fi
  7554. break
  7555. fi
  7556. done
  7557. IFS="$lt_save_ifs"
  7558. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7559. ;;
  7560. esac
  7561. fi
  7562. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7563. if test -n "$MAGIC_CMD"; then
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7565. $as_echo "$MAGIC_CMD" >&6; }
  7566. else
  7567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7568. $as_echo "no" >&6; }
  7569. fi
  7570. else
  7571. MAGIC_CMD=:
  7572. fi
  7573. fi
  7574. fi
  7575. ;;
  7576. esac
  7577. # Use C for the default configuration in the libtool script
  7578. lt_save_CC="$CC"
  7579. ac_ext=c
  7580. ac_cpp='$CPP $CPPFLAGS'
  7581. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7582. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7583. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7584. # Source file extension for C test sources.
  7585. ac_ext=c
  7586. # Object file extension for compiled C test sources.
  7587. objext=o
  7588. objext=$objext
  7589. # Code to be used in simple compile tests
  7590. lt_simple_compile_test_code="int some_variable = 0;"
  7591. # Code to be used in simple link tests
  7592. lt_simple_link_test_code='int main(){return(0);}'
  7593. # If no C compiler was specified, use CC.
  7594. LTCC=${LTCC-"$CC"}
  7595. # If no C compiler flags were specified, use CFLAGS.
  7596. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7597. # Allow CC to be a program name with arguments.
  7598. compiler=$CC
  7599. # Save the default compiler, since it gets overwritten when the other
  7600. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7601. compiler_DEFAULT=$CC
  7602. # save warnings/boilerplate of simple test code
  7603. ac_outfile=conftest.$ac_objext
  7604. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7605. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7606. _lt_compiler_boilerplate=`cat conftest.err`
  7607. $RM conftest*
  7608. ac_outfile=conftest.$ac_objext
  7609. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7610. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7611. _lt_linker_boilerplate=`cat conftest.err`
  7612. $RM -r conftest*
  7613. ## CAVEAT EMPTOR:
  7614. ## There is no encapsulation within the following macros, do not change
  7615. ## the running order or otherwise move them around unless you know exactly
  7616. ## what you are doing...
  7617. if test -n "$compiler"; then
  7618. lt_prog_compiler_no_builtin_flag=
  7619. if test "$GCC" = yes; then
  7620. case $cc_basename in
  7621. nvcc*)
  7622. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7623. *)
  7624. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7625. esac
  7626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7627. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7628. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7629. $as_echo_n "(cached) " >&6
  7630. else
  7631. lt_cv_prog_compiler_rtti_exceptions=no
  7632. ac_outfile=conftest.$ac_objext
  7633. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7634. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7635. # Insert the option either (1) after the last *FLAGS variable, or
  7636. # (2) before a word containing "conftest.", or (3) at the end.
  7637. # Note that $ac_compile itself does not contain backslashes and begins
  7638. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7639. # The option is referenced via a variable to avoid confusing sed.
  7640. lt_compile=`echo "$ac_compile" | $SED \
  7641. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7642. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7643. -e 's:$: $lt_compiler_flag:'`
  7644. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7645. (eval "$lt_compile" 2>conftest.err)
  7646. ac_status=$?
  7647. cat conftest.err >&5
  7648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7649. if (exit $ac_status) && test -s "$ac_outfile"; then
  7650. # The compiler can only warn and ignore the option if not recognized
  7651. # So say no if there are warnings other than the usual output.
  7652. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7653. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7654. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7655. lt_cv_prog_compiler_rtti_exceptions=yes
  7656. fi
  7657. fi
  7658. $RM conftest*
  7659. fi
  7660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7661. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7662. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7663. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7664. else
  7665. :
  7666. fi
  7667. fi
  7668. lt_prog_compiler_wl=
  7669. lt_prog_compiler_pic=
  7670. lt_prog_compiler_static=
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7672. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7673. if test "$GCC" = yes; then
  7674. lt_prog_compiler_wl='-Wl,'
  7675. lt_prog_compiler_static='-static'
  7676. case $host_os in
  7677. aix*)
  7678. # All AIX code is PIC.
  7679. if test "$host_cpu" = ia64; then
  7680. # AIX 5 now supports IA64 processor
  7681. lt_prog_compiler_static='-Bstatic'
  7682. fi
  7683. lt_prog_compiler_pic='-fPIC'
  7684. ;;
  7685. amigaos*)
  7686. case $host_cpu in
  7687. powerpc)
  7688. # see comment about AmigaOS4 .so support
  7689. lt_prog_compiler_pic='-fPIC'
  7690. ;;
  7691. m68k)
  7692. # FIXME: we need at least 68020 code to build shared libraries, but
  7693. # adding the `-m68020' flag to GCC prevents building anything better,
  7694. # like `-m68040'.
  7695. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7696. ;;
  7697. esac
  7698. ;;
  7699. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7700. # PIC is the default for these OSes.
  7701. ;;
  7702. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7703. # This hack is so that the source file can tell whether it is being
  7704. # built for inclusion in a dll (and should export symbols for example).
  7705. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7706. # (--disable-auto-import) libraries
  7707. lt_prog_compiler_pic='-DDLL_EXPORT'
  7708. ;;
  7709. darwin* | rhapsody*)
  7710. # PIC is the default on this platform
  7711. # Common symbols not allowed in MH_DYLIB files
  7712. lt_prog_compiler_pic='-fno-common'
  7713. ;;
  7714. haiku*)
  7715. # PIC is the default for Haiku.
  7716. # The "-static" flag exists, but is broken.
  7717. lt_prog_compiler_static=
  7718. ;;
  7719. hpux*)
  7720. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7721. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7722. # sets the default TLS model and affects inlining.
  7723. case $host_cpu in
  7724. hppa*64*)
  7725. # +Z the default
  7726. ;;
  7727. *)
  7728. lt_prog_compiler_pic='-fPIC'
  7729. ;;
  7730. esac
  7731. ;;
  7732. interix[3-9]*)
  7733. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7734. # Instead, we relocate shared libraries at runtime.
  7735. ;;
  7736. msdosdjgpp*)
  7737. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7738. # on systems that don't support them.
  7739. lt_prog_compiler_can_build_shared=no
  7740. enable_shared=no
  7741. ;;
  7742. *nto* | *qnx*)
  7743. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7744. # it will coredump.
  7745. lt_prog_compiler_pic='-fPIC -shared'
  7746. ;;
  7747. sysv4*MP*)
  7748. if test -d /usr/nec; then
  7749. lt_prog_compiler_pic=-Kconform_pic
  7750. fi
  7751. ;;
  7752. *)
  7753. lt_prog_compiler_pic='-fPIC'
  7754. ;;
  7755. esac
  7756. case $cc_basename in
  7757. nvcc*) # Cuda Compiler Driver 2.2
  7758. lt_prog_compiler_wl='-Xlinker '
  7759. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7760. ;;
  7761. esac
  7762. else
  7763. # PORTME Check for flag to pass linker flags through the system compiler.
  7764. case $host_os in
  7765. aix*)
  7766. lt_prog_compiler_wl='-Wl,'
  7767. if test "$host_cpu" = ia64; then
  7768. # AIX 5 now supports IA64 processor
  7769. lt_prog_compiler_static='-Bstatic'
  7770. else
  7771. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7772. fi
  7773. ;;
  7774. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7775. # This hack is so that the source file can tell whether it is being
  7776. # built for inclusion in a dll (and should export symbols for example).
  7777. lt_prog_compiler_pic='-DDLL_EXPORT'
  7778. ;;
  7779. hpux9* | hpux10* | hpux11*)
  7780. lt_prog_compiler_wl='-Wl,'
  7781. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7782. # not for PA HP-UX.
  7783. case $host_cpu in
  7784. hppa*64*|ia64*)
  7785. # +Z the default
  7786. ;;
  7787. *)
  7788. lt_prog_compiler_pic='+Z'
  7789. ;;
  7790. esac
  7791. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7792. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7793. ;;
  7794. irix5* | irix6* | nonstopux*)
  7795. lt_prog_compiler_wl='-Wl,'
  7796. # PIC (with -KPIC) is the default.
  7797. lt_prog_compiler_static='-non_shared'
  7798. ;;
  7799. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7800. case $cc_basename in
  7801. # old Intel for x86_64 which still supported -KPIC.
  7802. ecc*)
  7803. lt_prog_compiler_wl='-Wl,'
  7804. lt_prog_compiler_pic='-KPIC'
  7805. lt_prog_compiler_static='-static'
  7806. ;;
  7807. # icc used to be incompatible with GCC.
  7808. # ICC 10 doesn't accept -KPIC any more.
  7809. icc* | ifort*)
  7810. lt_prog_compiler_wl='-Wl,'
  7811. lt_prog_compiler_pic='-fPIC'
  7812. lt_prog_compiler_static='-static'
  7813. ;;
  7814. # Lahey Fortran 8.1.
  7815. lf95*)
  7816. lt_prog_compiler_wl='-Wl,'
  7817. lt_prog_compiler_pic='--shared'
  7818. lt_prog_compiler_static='--static'
  7819. ;;
  7820. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7821. # Portland Group compilers (*not* the Pentium gcc compiler,
  7822. # which looks to be a dead project)
  7823. lt_prog_compiler_wl='-Wl,'
  7824. lt_prog_compiler_pic='-fpic'
  7825. lt_prog_compiler_static='-Bstatic'
  7826. ;;
  7827. ccc*)
  7828. lt_prog_compiler_wl='-Wl,'
  7829. # All Alpha code is PIC.
  7830. lt_prog_compiler_static='-non_shared'
  7831. ;;
  7832. xl* | bgxl* | bgf* | mpixl*)
  7833. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7834. lt_prog_compiler_wl='-Wl,'
  7835. lt_prog_compiler_pic='-qpic'
  7836. lt_prog_compiler_static='-qstaticlink'
  7837. ;;
  7838. *)
  7839. case `$CC -V 2>&1 | sed 5q` in
  7840. *Sun\ F* | *Sun*Fortran*)
  7841. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7842. lt_prog_compiler_pic='-KPIC'
  7843. lt_prog_compiler_static='-Bstatic'
  7844. lt_prog_compiler_wl=''
  7845. ;;
  7846. *Sun\ C*)
  7847. # Sun C 5.9
  7848. lt_prog_compiler_pic='-KPIC'
  7849. lt_prog_compiler_static='-Bstatic'
  7850. lt_prog_compiler_wl='-Wl,'
  7851. ;;
  7852. esac
  7853. ;;
  7854. esac
  7855. ;;
  7856. newsos6)
  7857. lt_prog_compiler_pic='-KPIC'
  7858. lt_prog_compiler_static='-Bstatic'
  7859. ;;
  7860. *nto* | *qnx*)
  7861. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7862. # it will coredump.
  7863. lt_prog_compiler_pic='-fPIC -shared'
  7864. ;;
  7865. osf3* | osf4* | osf5*)
  7866. lt_prog_compiler_wl='-Wl,'
  7867. # All OSF/1 code is PIC.
  7868. lt_prog_compiler_static='-non_shared'
  7869. ;;
  7870. rdos*)
  7871. lt_prog_compiler_static='-non_shared'
  7872. ;;
  7873. solaris*)
  7874. lt_prog_compiler_pic='-KPIC'
  7875. lt_prog_compiler_static='-Bstatic'
  7876. case $cc_basename in
  7877. f77* | f90* | f95*)
  7878. lt_prog_compiler_wl='-Qoption ld ';;
  7879. *)
  7880. lt_prog_compiler_wl='-Wl,';;
  7881. esac
  7882. ;;
  7883. sunos4*)
  7884. lt_prog_compiler_wl='-Qoption ld '
  7885. lt_prog_compiler_pic='-PIC'
  7886. lt_prog_compiler_static='-Bstatic'
  7887. ;;
  7888. sysv4 | sysv4.2uw2* | sysv4.3*)
  7889. lt_prog_compiler_wl='-Wl,'
  7890. lt_prog_compiler_pic='-KPIC'
  7891. lt_prog_compiler_static='-Bstatic'
  7892. ;;
  7893. sysv4*MP*)
  7894. if test -d /usr/nec ;then
  7895. lt_prog_compiler_pic='-Kconform_pic'
  7896. lt_prog_compiler_static='-Bstatic'
  7897. fi
  7898. ;;
  7899. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7900. lt_prog_compiler_wl='-Wl,'
  7901. lt_prog_compiler_pic='-KPIC'
  7902. lt_prog_compiler_static='-Bstatic'
  7903. ;;
  7904. unicos*)
  7905. lt_prog_compiler_wl='-Wl,'
  7906. lt_prog_compiler_can_build_shared=no
  7907. ;;
  7908. uts4*)
  7909. lt_prog_compiler_pic='-pic'
  7910. lt_prog_compiler_static='-Bstatic'
  7911. ;;
  7912. *)
  7913. lt_prog_compiler_can_build_shared=no
  7914. ;;
  7915. esac
  7916. fi
  7917. case $host_os in
  7918. # For platforms which do not support PIC, -DPIC is meaningless:
  7919. *djgpp*)
  7920. lt_prog_compiler_pic=
  7921. ;;
  7922. *)
  7923. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7924. ;;
  7925. esac
  7926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7927. $as_echo "$lt_prog_compiler_pic" >&6; }
  7928. #
  7929. # Check to make sure the PIC flag actually works.
  7930. #
  7931. if test -n "$lt_prog_compiler_pic"; then
  7932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7933. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7934. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7935. $as_echo_n "(cached) " >&6
  7936. else
  7937. lt_cv_prog_compiler_pic_works=no
  7938. ac_outfile=conftest.$ac_objext
  7939. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7940. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7941. # Insert the option either (1) after the last *FLAGS variable, or
  7942. # (2) before a word containing "conftest.", or (3) at the end.
  7943. # Note that $ac_compile itself does not contain backslashes and begins
  7944. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7945. # The option is referenced via a variable to avoid confusing sed.
  7946. lt_compile=`echo "$ac_compile" | $SED \
  7947. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7948. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7949. -e 's:$: $lt_compiler_flag:'`
  7950. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7951. (eval "$lt_compile" 2>conftest.err)
  7952. ac_status=$?
  7953. cat conftest.err >&5
  7954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7955. if (exit $ac_status) && test -s "$ac_outfile"; then
  7956. # The compiler can only warn and ignore the option if not recognized
  7957. # So say no if there are warnings other than the usual output.
  7958. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7959. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7960. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7961. lt_cv_prog_compiler_pic_works=yes
  7962. fi
  7963. fi
  7964. $RM conftest*
  7965. fi
  7966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7967. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7968. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7969. case $lt_prog_compiler_pic in
  7970. "" | " "*) ;;
  7971. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7972. esac
  7973. else
  7974. lt_prog_compiler_pic=
  7975. lt_prog_compiler_can_build_shared=no
  7976. fi
  7977. fi
  7978. #
  7979. # Check to make sure the static flag actually works.
  7980. #
  7981. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7983. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7984. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7985. $as_echo_n "(cached) " >&6
  7986. else
  7987. lt_cv_prog_compiler_static_works=no
  7988. save_LDFLAGS="$LDFLAGS"
  7989. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7990. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7991. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7992. # The linker can only warn and ignore the option if not recognized
  7993. # So say no if there are warnings
  7994. if test -s conftest.err; then
  7995. # Append any errors to the config.log.
  7996. cat conftest.err 1>&5
  7997. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7998. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7999. if diff conftest.exp conftest.er2 >/dev/null; then
  8000. lt_cv_prog_compiler_static_works=yes
  8001. fi
  8002. else
  8003. lt_cv_prog_compiler_static_works=yes
  8004. fi
  8005. fi
  8006. $RM -r conftest*
  8007. LDFLAGS="$save_LDFLAGS"
  8008. fi
  8009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8010. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8011. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8012. :
  8013. else
  8014. lt_prog_compiler_static=
  8015. fi
  8016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8017. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8018. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8019. $as_echo_n "(cached) " >&6
  8020. else
  8021. lt_cv_prog_compiler_c_o=no
  8022. $RM -r conftest 2>/dev/null
  8023. mkdir conftest
  8024. cd conftest
  8025. mkdir out
  8026. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8027. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8028. # Insert the option either (1) after the last *FLAGS variable, or
  8029. # (2) before a word containing "conftest.", or (3) at the end.
  8030. # Note that $ac_compile itself does not contain backslashes and begins
  8031. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8032. lt_compile=`echo "$ac_compile" | $SED \
  8033. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8034. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8035. -e 's:$: $lt_compiler_flag:'`
  8036. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8037. (eval "$lt_compile" 2>out/conftest.err)
  8038. ac_status=$?
  8039. cat out/conftest.err >&5
  8040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8041. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8042. then
  8043. # The compiler can only warn and ignore the option if not recognized
  8044. # So say no if there are warnings
  8045. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8046. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8047. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8048. lt_cv_prog_compiler_c_o=yes
  8049. fi
  8050. fi
  8051. chmod u+w . 2>&5
  8052. $RM conftest*
  8053. # SGI C++ compiler will create directory out/ii_files/ for
  8054. # template instantiation
  8055. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8056. $RM out/* && rmdir out
  8057. cd ..
  8058. $RM -r conftest
  8059. $RM conftest*
  8060. fi
  8061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8062. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8064. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8065. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8066. $as_echo_n "(cached) " >&6
  8067. else
  8068. lt_cv_prog_compiler_c_o=no
  8069. $RM -r conftest 2>/dev/null
  8070. mkdir conftest
  8071. cd conftest
  8072. mkdir out
  8073. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8074. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8075. # Insert the option either (1) after the last *FLAGS variable, or
  8076. # (2) before a word containing "conftest.", or (3) at the end.
  8077. # Note that $ac_compile itself does not contain backslashes and begins
  8078. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8079. lt_compile=`echo "$ac_compile" | $SED \
  8080. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8081. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8082. -e 's:$: $lt_compiler_flag:'`
  8083. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8084. (eval "$lt_compile" 2>out/conftest.err)
  8085. ac_status=$?
  8086. cat out/conftest.err >&5
  8087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8088. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8089. then
  8090. # The compiler can only warn and ignore the option if not recognized
  8091. # So say no if there are warnings
  8092. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8093. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8094. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8095. lt_cv_prog_compiler_c_o=yes
  8096. fi
  8097. fi
  8098. chmod u+w . 2>&5
  8099. $RM conftest*
  8100. # SGI C++ compiler will create directory out/ii_files/ for
  8101. # template instantiation
  8102. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8103. $RM out/* && rmdir out
  8104. cd ..
  8105. $RM -r conftest
  8106. $RM conftest*
  8107. fi
  8108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8109. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8110. hard_links="nottested"
  8111. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8112. # do not overwrite the value of need_locks provided by the user
  8113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8114. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8115. hard_links=yes
  8116. $RM conftest*
  8117. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8118. touch conftest.a
  8119. ln conftest.a conftest.b 2>&5 || hard_links=no
  8120. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8122. $as_echo "$hard_links" >&6; }
  8123. if test "$hard_links" = no; then
  8124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8125. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8126. need_locks=warn
  8127. fi
  8128. else
  8129. need_locks=no
  8130. fi
  8131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8132. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8133. runpath_var=
  8134. allow_undefined_flag=
  8135. always_export_symbols=no
  8136. archive_cmds=
  8137. archive_expsym_cmds=
  8138. compiler_needs_object=no
  8139. enable_shared_with_static_runtimes=no
  8140. export_dynamic_flag_spec=
  8141. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8142. hardcode_automatic=no
  8143. hardcode_direct=no
  8144. hardcode_direct_absolute=no
  8145. hardcode_libdir_flag_spec=
  8146. hardcode_libdir_flag_spec_ld=
  8147. hardcode_libdir_separator=
  8148. hardcode_minus_L=no
  8149. hardcode_shlibpath_var=unsupported
  8150. inherit_rpath=no
  8151. link_all_deplibs=unknown
  8152. module_cmds=
  8153. module_expsym_cmds=
  8154. old_archive_from_new_cmds=
  8155. old_archive_from_expsyms_cmds=
  8156. thread_safe_flag_spec=
  8157. whole_archive_flag_spec=
  8158. # include_expsyms should be a list of space-separated symbols to be *always*
  8159. # included in the symbol list
  8160. include_expsyms=
  8161. # exclude_expsyms can be an extended regexp of symbols to exclude
  8162. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8163. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8164. # as well as any symbol that contains `d'.
  8165. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8166. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8167. # platforms (ab)use it in PIC code, but their linkers get confused if
  8168. # the symbol is explicitly referenced. Since portable code cannot
  8169. # rely on this symbol name, it's probably fine to never include it in
  8170. # preloaded symbol tables.
  8171. # Exclude shared library initialization/finalization symbols.
  8172. extract_expsyms_cmds=
  8173. case $host_os in
  8174. cygwin* | mingw* | pw32* | cegcc*)
  8175. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8176. # When not using gcc, we currently assume that we are using
  8177. # Microsoft Visual C++.
  8178. if test "$GCC" != yes; then
  8179. with_gnu_ld=no
  8180. fi
  8181. ;;
  8182. interix*)
  8183. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8184. with_gnu_ld=yes
  8185. ;;
  8186. openbsd*)
  8187. with_gnu_ld=no
  8188. ;;
  8189. esac
  8190. ld_shlibs=yes
  8191. # On some targets, GNU ld is compatible enough with the native linker
  8192. # that we're better off using the native interface for both.
  8193. lt_use_gnu_ld_interface=no
  8194. if test "$with_gnu_ld" = yes; then
  8195. case $host_os in
  8196. aix*)
  8197. # The AIX port of GNU ld has always aspired to compatibility
  8198. # with the native linker. However, as the warning in the GNU ld
  8199. # block says, versions before 2.19.5* couldn't really create working
  8200. # shared libraries, regardless of the interface used.
  8201. case `$LD -v 2>&1` in
  8202. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8203. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8204. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8205. *)
  8206. lt_use_gnu_ld_interface=yes
  8207. ;;
  8208. esac
  8209. ;;
  8210. *)
  8211. lt_use_gnu_ld_interface=yes
  8212. ;;
  8213. esac
  8214. fi
  8215. if test "$lt_use_gnu_ld_interface" = yes; then
  8216. # If archive_cmds runs LD, not CC, wlarc should be empty
  8217. wlarc='${wl}'
  8218. # Set some defaults for GNU ld with shared library support. These
  8219. # are reset later if shared libraries are not supported. Putting them
  8220. # here allows them to be overridden if necessary.
  8221. runpath_var=LD_RUN_PATH
  8222. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8223. export_dynamic_flag_spec='${wl}--export-dynamic'
  8224. # ancient GNU ld didn't support --whole-archive et. al.
  8225. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8226. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8227. else
  8228. whole_archive_flag_spec=
  8229. fi
  8230. supports_anon_versioning=no
  8231. case `$LD -v 2>&1` in
  8232. *GNU\ gold*) supports_anon_versioning=yes ;;
  8233. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8234. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8235. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8236. *\ 2.11.*) ;; # other 2.11 versions
  8237. *) supports_anon_versioning=yes ;;
  8238. esac
  8239. # See if GNU ld supports shared libraries.
  8240. case $host_os in
  8241. aix[3-9]*)
  8242. # On AIX/PPC, the GNU linker is very broken
  8243. if test "$host_cpu" != ia64; then
  8244. ld_shlibs=no
  8245. cat <<_LT_EOF 1>&2
  8246. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8247. *** to be unable to reliably create shared libraries on AIX.
  8248. *** Therefore, libtool is disabling shared libraries support. If you
  8249. *** really care for shared libraries, you may want to install binutils
  8250. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8251. *** You will then need to restart the configuration process.
  8252. _LT_EOF
  8253. fi
  8254. ;;
  8255. amigaos*)
  8256. case $host_cpu in
  8257. powerpc)
  8258. # see comment about AmigaOS4 .so support
  8259. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8260. archive_expsym_cmds=''
  8261. ;;
  8262. m68k)
  8263. 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)'
  8264. hardcode_libdir_flag_spec='-L$libdir'
  8265. hardcode_minus_L=yes
  8266. ;;
  8267. esac
  8268. ;;
  8269. beos*)
  8270. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8271. allow_undefined_flag=unsupported
  8272. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8273. # support --undefined. This deserves some investigation. FIXME
  8274. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8275. else
  8276. ld_shlibs=no
  8277. fi
  8278. ;;
  8279. cygwin* | mingw* | pw32* | cegcc*)
  8280. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8281. # as there is no search path for DLLs.
  8282. hardcode_libdir_flag_spec='-L$libdir'
  8283. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8284. allow_undefined_flag=unsupported
  8285. always_export_symbols=no
  8286. enable_shared_with_static_runtimes=yes
  8287. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8288. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8289. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8290. # If the export-symbols file already is a .def file (1st line
  8291. # is EXPORTS), use it as is; otherwise, prepend...
  8292. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8293. cp $export_symbols $output_objdir/$soname.def;
  8294. else
  8295. echo EXPORTS > $output_objdir/$soname.def;
  8296. cat $export_symbols >> $output_objdir/$soname.def;
  8297. fi~
  8298. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8299. else
  8300. ld_shlibs=no
  8301. fi
  8302. ;;
  8303. haiku*)
  8304. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8305. link_all_deplibs=yes
  8306. ;;
  8307. interix[3-9]*)
  8308. hardcode_direct=no
  8309. hardcode_shlibpath_var=no
  8310. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8311. export_dynamic_flag_spec='${wl}-E'
  8312. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8313. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8314. # default) and relocated if they conflict, which is a slow very memory
  8315. # consuming and fragmenting process. To avoid this, we pick a random,
  8316. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8317. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8318. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8319. 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'
  8320. ;;
  8321. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8322. tmp_diet=no
  8323. if test "$host_os" = linux-dietlibc; then
  8324. case $cc_basename in
  8325. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8326. esac
  8327. fi
  8328. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8329. && test "$tmp_diet" = no
  8330. then
  8331. tmp_addflag=' $pic_flag'
  8332. tmp_sharedflag='-shared'
  8333. case $cc_basename,$host_cpu in
  8334. pgcc*) # Portland Group C compiler
  8335. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8336. tmp_addflag=' $pic_flag'
  8337. ;;
  8338. pgf77* | pgf90* | pgf95* | pgfortran*)
  8339. # Portland Group f77 and f90 compilers
  8340. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8341. tmp_addflag=' $pic_flag -Mnomain' ;;
  8342. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8343. tmp_addflag=' -i_dynamic' ;;
  8344. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8345. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8346. ifc* | ifort*) # Intel Fortran compiler
  8347. tmp_addflag=' -nofor_main' ;;
  8348. lf95*) # Lahey Fortran 8.1
  8349. whole_archive_flag_spec=
  8350. tmp_sharedflag='--shared' ;;
  8351. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8352. tmp_sharedflag='-qmkshrobj'
  8353. tmp_addflag= ;;
  8354. nvcc*) # Cuda Compiler Driver 2.2
  8355. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8356. compiler_needs_object=yes
  8357. ;;
  8358. esac
  8359. case `$CC -V 2>&1 | sed 5q` in
  8360. *Sun\ C*) # Sun C 5.9
  8361. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8362. compiler_needs_object=yes
  8363. tmp_sharedflag='-G' ;;
  8364. *Sun\ F*) # Sun Fortran 8.3
  8365. tmp_sharedflag='-G' ;;
  8366. esac
  8367. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8368. if test "x$supports_anon_versioning" = xyes; then
  8369. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8370. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8371. echo "local: *; };" >> $output_objdir/$libname.ver~
  8372. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8373. fi
  8374. case $cc_basename in
  8375. xlf* | bgf* | bgxlf* | mpixlf*)
  8376. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8377. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8378. hardcode_libdir_flag_spec=
  8379. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8380. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8381. if test "x$supports_anon_versioning" = xyes; then
  8382. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8383. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8384. echo "local: *; };" >> $output_objdir/$libname.ver~
  8385. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8386. fi
  8387. ;;
  8388. esac
  8389. else
  8390. ld_shlibs=no
  8391. fi
  8392. ;;
  8393. netbsd*)
  8394. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8395. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8396. wlarc=
  8397. else
  8398. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8399. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8400. fi
  8401. ;;
  8402. solaris*)
  8403. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8404. ld_shlibs=no
  8405. cat <<_LT_EOF 1>&2
  8406. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8407. *** create shared libraries on Solaris systems. Therefore, libtool
  8408. *** is disabling shared libraries support. We urge you to upgrade GNU
  8409. *** binutils to release 2.9.1 or newer. Another option is to modify
  8410. *** your PATH or compiler configuration so that the native linker is
  8411. *** used, and then restart.
  8412. _LT_EOF
  8413. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8414. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8415. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8416. else
  8417. ld_shlibs=no
  8418. fi
  8419. ;;
  8420. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8421. case `$LD -v 2>&1` in
  8422. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8423. ld_shlibs=no
  8424. cat <<_LT_EOF 1>&2
  8425. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8426. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8427. *** is disabling shared libraries support. We urge you to upgrade GNU
  8428. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8429. *** your PATH or compiler configuration so that the native linker is
  8430. *** used, and then restart.
  8431. _LT_EOF
  8432. ;;
  8433. *)
  8434. # For security reasons, it is highly recommended that you always
  8435. # use absolute paths for naming shared libraries, and exclude the
  8436. # DT_RUNPATH tag from executables and libraries. But doing so
  8437. # requires that you compile everything twice, which is a pain.
  8438. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8439. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8440. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8441. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8442. else
  8443. ld_shlibs=no
  8444. fi
  8445. ;;
  8446. esac
  8447. ;;
  8448. sunos4*)
  8449. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8450. wlarc=
  8451. hardcode_direct=yes
  8452. hardcode_shlibpath_var=no
  8453. ;;
  8454. *)
  8455. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8456. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8457. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8458. else
  8459. ld_shlibs=no
  8460. fi
  8461. ;;
  8462. esac
  8463. if test "$ld_shlibs" = no; then
  8464. runpath_var=
  8465. hardcode_libdir_flag_spec=
  8466. export_dynamic_flag_spec=
  8467. whole_archive_flag_spec=
  8468. fi
  8469. else
  8470. # PORTME fill in a description of your system's linker (not GNU ld)
  8471. case $host_os in
  8472. aix3*)
  8473. allow_undefined_flag=unsupported
  8474. always_export_symbols=yes
  8475. 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'
  8476. # Note: this linker hardcodes the directories in LIBPATH if there
  8477. # are no directories specified by -L.
  8478. hardcode_minus_L=yes
  8479. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8480. # Neither direct hardcoding nor static linking is supported with a
  8481. # broken collect2.
  8482. hardcode_direct=unsupported
  8483. fi
  8484. ;;
  8485. aix[4-9]*)
  8486. if test "$host_cpu" = ia64; then
  8487. # On IA64, the linker does run time linking by default, so we don't
  8488. # have to do anything special.
  8489. aix_use_runtimelinking=no
  8490. exp_sym_flag='-Bexport'
  8491. no_entry_flag=""
  8492. else
  8493. # If we're using GNU nm, then we don't want the "-C" option.
  8494. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8495. # Also, AIX nm treats weak defined symbols like other global
  8496. # defined symbols, whereas GNU nm marks them as "W".
  8497. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8498. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8499. else
  8500. 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'
  8501. fi
  8502. aix_use_runtimelinking=no
  8503. # Test if we are trying to use run time linking or normal
  8504. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8505. # need to do runtime linking.
  8506. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8507. for ld_flag in $LDFLAGS; do
  8508. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8509. aix_use_runtimelinking=yes
  8510. break
  8511. fi
  8512. done
  8513. ;;
  8514. esac
  8515. exp_sym_flag='-bexport'
  8516. no_entry_flag='-bnoentry'
  8517. fi
  8518. # When large executables or shared objects are built, AIX ld can
  8519. # have problems creating the table of contents. If linking a library
  8520. # or program results in "error TOC overflow" add -mminimal-toc to
  8521. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8522. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8523. archive_cmds=''
  8524. hardcode_direct=yes
  8525. hardcode_direct_absolute=yes
  8526. hardcode_libdir_separator=':'
  8527. link_all_deplibs=yes
  8528. file_list_spec='${wl}-f,'
  8529. if test "$GCC" = yes; then
  8530. case $host_os in aix4.[012]|aix4.[012].*)
  8531. # We only want to do this on AIX 4.2 and lower, the check
  8532. # below for broken collect2 doesn't work under 4.3+
  8533. collect2name=`${CC} -print-prog-name=collect2`
  8534. if test -f "$collect2name" &&
  8535. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8536. then
  8537. # We have reworked collect2
  8538. :
  8539. else
  8540. # We have old collect2
  8541. hardcode_direct=unsupported
  8542. # It fails to find uninstalled libraries when the uninstalled
  8543. # path is not listed in the libpath. Setting hardcode_minus_L
  8544. # to unsupported forces relinking
  8545. hardcode_minus_L=yes
  8546. hardcode_libdir_flag_spec='-L$libdir'
  8547. hardcode_libdir_separator=
  8548. fi
  8549. ;;
  8550. esac
  8551. shared_flag='-shared'
  8552. if test "$aix_use_runtimelinking" = yes; then
  8553. shared_flag="$shared_flag "'${wl}-G'
  8554. fi
  8555. else
  8556. # not using gcc
  8557. if test "$host_cpu" = ia64; then
  8558. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8559. # chokes on -Wl,-G. The following line is correct:
  8560. shared_flag='-G'
  8561. else
  8562. if test "$aix_use_runtimelinking" = yes; then
  8563. shared_flag='${wl}-G'
  8564. else
  8565. shared_flag='${wl}-bM:SRE'
  8566. fi
  8567. fi
  8568. fi
  8569. export_dynamic_flag_spec='${wl}-bexpall'
  8570. # It seems that -bexpall does not export symbols beginning with
  8571. # underscore (_), so it is better to generate a list of symbols to export.
  8572. always_export_symbols=yes
  8573. if test "$aix_use_runtimelinking" = yes; then
  8574. # Warning - without using the other runtime loading flags (-brtl),
  8575. # -berok will link without error, but may produce a broken library.
  8576. allow_undefined_flag='-berok'
  8577. # Determine the default libpath from the value encoded in an
  8578. # empty executable.
  8579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8580. /* end confdefs.h. */
  8581. int
  8582. main ()
  8583. {
  8584. ;
  8585. return 0;
  8586. }
  8587. _ACEOF
  8588. if ac_fn_c_try_link "$LINENO"; then :
  8589. lt_aix_libpath_sed='
  8590. /Import File Strings/,/^$/ {
  8591. /^0/ {
  8592. s/^0 *\(.*\)$/\1/
  8593. p
  8594. }
  8595. }'
  8596. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8597. # Check for a 64-bit object if we didn't find anything.
  8598. if test -z "$aix_libpath"; then
  8599. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8600. fi
  8601. fi
  8602. rm -f core conftest.err conftest.$ac_objext \
  8603. conftest$ac_exeext conftest.$ac_ext
  8604. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8605. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8606. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8607. else
  8608. if test "$host_cpu" = ia64; then
  8609. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8610. allow_undefined_flag="-z nodefs"
  8611. 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"
  8612. else
  8613. # Determine the default libpath from the value encoded in an
  8614. # empty executable.
  8615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8616. /* end confdefs.h. */
  8617. int
  8618. main ()
  8619. {
  8620. ;
  8621. return 0;
  8622. }
  8623. _ACEOF
  8624. if ac_fn_c_try_link "$LINENO"; then :
  8625. lt_aix_libpath_sed='
  8626. /Import File Strings/,/^$/ {
  8627. /^0/ {
  8628. s/^0 *\(.*\)$/\1/
  8629. p
  8630. }
  8631. }'
  8632. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8633. # Check for a 64-bit object if we didn't find anything.
  8634. if test -z "$aix_libpath"; then
  8635. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8636. fi
  8637. fi
  8638. rm -f core conftest.err conftest.$ac_objext \
  8639. conftest$ac_exeext conftest.$ac_ext
  8640. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8641. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8642. # Warning - without using the other run time loading flags,
  8643. # -berok will link without error, but may produce a broken library.
  8644. no_undefined_flag=' ${wl}-bernotok'
  8645. allow_undefined_flag=' ${wl}-berok'
  8646. if test "$with_gnu_ld" = yes; then
  8647. # We only use this code for GNU lds that support --whole-archive.
  8648. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8649. else
  8650. # Exported symbols can be pulled into shared objects from archives
  8651. whole_archive_flag_spec='$convenience'
  8652. fi
  8653. archive_cmds_need_lc=yes
  8654. # This is similar to how AIX traditionally builds its shared libraries.
  8655. 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'
  8656. fi
  8657. fi
  8658. ;;
  8659. amigaos*)
  8660. case $host_cpu in
  8661. powerpc)
  8662. # see comment about AmigaOS4 .so support
  8663. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8664. archive_expsym_cmds=''
  8665. ;;
  8666. m68k)
  8667. 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)'
  8668. hardcode_libdir_flag_spec='-L$libdir'
  8669. hardcode_minus_L=yes
  8670. ;;
  8671. esac
  8672. ;;
  8673. bsdi[45]*)
  8674. export_dynamic_flag_spec=-rdynamic
  8675. ;;
  8676. cygwin* | mingw* | pw32* | cegcc*)
  8677. # When not using gcc, we currently assume that we are using
  8678. # Microsoft Visual C++.
  8679. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8680. # no search path for DLLs.
  8681. hardcode_libdir_flag_spec=' '
  8682. allow_undefined_flag=unsupported
  8683. # Tell ltmain to make .lib files, not .a files.
  8684. libext=lib
  8685. # Tell ltmain to make .dll files, not .so files.
  8686. shrext_cmds=".dll"
  8687. # FIXME: Setting linknames here is a bad hack.
  8688. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8689. # The linker will automatically build a .lib file if we build a DLL.
  8690. old_archive_from_new_cmds='true'
  8691. # FIXME: Should let the user specify the lib program.
  8692. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8693. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8694. enable_shared_with_static_runtimes=yes
  8695. ;;
  8696. darwin* | rhapsody*)
  8697. archive_cmds_need_lc=no
  8698. hardcode_direct=no
  8699. hardcode_automatic=yes
  8700. hardcode_shlibpath_var=unsupported
  8701. if test "$lt_cv_ld_force_load" = "yes"; then
  8702. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8703. else
  8704. whole_archive_flag_spec=''
  8705. fi
  8706. link_all_deplibs=yes
  8707. allow_undefined_flag="$_lt_dar_allow_undefined"
  8708. case $cc_basename in
  8709. ifort*) _lt_dar_can_shared=yes ;;
  8710. *) _lt_dar_can_shared=$GCC ;;
  8711. esac
  8712. if test "$_lt_dar_can_shared" = "yes"; then
  8713. output_verbose_link_cmd=func_echo_all
  8714. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8715. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8716. 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}"
  8717. 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}"
  8718. else
  8719. ld_shlibs=no
  8720. fi
  8721. ;;
  8722. dgux*)
  8723. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8724. hardcode_libdir_flag_spec='-L$libdir'
  8725. hardcode_shlibpath_var=no
  8726. ;;
  8727. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8728. # support. Future versions do this automatically, but an explicit c++rt0.o
  8729. # does not break anything, and helps significantly (at the cost of a little
  8730. # extra space).
  8731. freebsd2.2*)
  8732. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8733. hardcode_libdir_flag_spec='-R$libdir'
  8734. hardcode_direct=yes
  8735. hardcode_shlibpath_var=no
  8736. ;;
  8737. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8738. freebsd2.*)
  8739. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8740. hardcode_direct=yes
  8741. hardcode_minus_L=yes
  8742. hardcode_shlibpath_var=no
  8743. ;;
  8744. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8745. freebsd* | dragonfly*)
  8746. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8747. hardcode_libdir_flag_spec='-R$libdir'
  8748. hardcode_direct=yes
  8749. hardcode_shlibpath_var=no
  8750. ;;
  8751. hpux9*)
  8752. if test "$GCC" = yes; then
  8753. 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'
  8754. else
  8755. 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'
  8756. fi
  8757. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8758. hardcode_libdir_separator=:
  8759. hardcode_direct=yes
  8760. # hardcode_minus_L: Not really in the search PATH,
  8761. # but as the default location of the library.
  8762. hardcode_minus_L=yes
  8763. export_dynamic_flag_spec='${wl}-E'
  8764. ;;
  8765. hpux10*)
  8766. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8767. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8768. else
  8769. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8770. fi
  8771. if test "$with_gnu_ld" = no; then
  8772. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8773. hardcode_libdir_flag_spec_ld='+b $libdir'
  8774. hardcode_libdir_separator=:
  8775. hardcode_direct=yes
  8776. hardcode_direct_absolute=yes
  8777. export_dynamic_flag_spec='${wl}-E'
  8778. # hardcode_minus_L: Not really in the search PATH,
  8779. # but as the default location of the library.
  8780. hardcode_minus_L=yes
  8781. fi
  8782. ;;
  8783. hpux11*)
  8784. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8785. case $host_cpu in
  8786. hppa*64*)
  8787. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8788. ;;
  8789. ia64*)
  8790. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8791. ;;
  8792. *)
  8793. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8794. ;;
  8795. esac
  8796. else
  8797. case $host_cpu in
  8798. hppa*64*)
  8799. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8800. ;;
  8801. ia64*)
  8802. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8803. ;;
  8804. *)
  8805. # Older versions of the 11.00 compiler do not understand -b yet
  8806. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8808. $as_echo_n "checking if $CC understands -b... " >&6; }
  8809. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8810. $as_echo_n "(cached) " >&6
  8811. else
  8812. lt_cv_prog_compiler__b=no
  8813. save_LDFLAGS="$LDFLAGS"
  8814. LDFLAGS="$LDFLAGS -b"
  8815. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8816. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8817. # The linker can only warn and ignore the option if not recognized
  8818. # So say no if there are warnings
  8819. if test -s conftest.err; then
  8820. # Append any errors to the config.log.
  8821. cat conftest.err 1>&5
  8822. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8823. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8824. if diff conftest.exp conftest.er2 >/dev/null; then
  8825. lt_cv_prog_compiler__b=yes
  8826. fi
  8827. else
  8828. lt_cv_prog_compiler__b=yes
  8829. fi
  8830. fi
  8831. $RM -r conftest*
  8832. LDFLAGS="$save_LDFLAGS"
  8833. fi
  8834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8835. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8836. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8837. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8838. else
  8839. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8840. fi
  8841. ;;
  8842. esac
  8843. fi
  8844. if test "$with_gnu_ld" = no; then
  8845. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8846. hardcode_libdir_separator=:
  8847. case $host_cpu in
  8848. hppa*64*|ia64*)
  8849. hardcode_direct=no
  8850. hardcode_shlibpath_var=no
  8851. ;;
  8852. *)
  8853. hardcode_direct=yes
  8854. hardcode_direct_absolute=yes
  8855. export_dynamic_flag_spec='${wl}-E'
  8856. # hardcode_minus_L: Not really in the search PATH,
  8857. # but as the default location of the library.
  8858. hardcode_minus_L=yes
  8859. ;;
  8860. esac
  8861. fi
  8862. ;;
  8863. irix5* | irix6* | nonstopux*)
  8864. if test "$GCC" = yes; then
  8865. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8866. # Try to use the -exported_symbol ld option, if it does not
  8867. # work, assume that -exports_file does not work either and
  8868. # implicitly export all symbols.
  8869. save_LDFLAGS="$LDFLAGS"
  8870. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8872. /* end confdefs.h. */
  8873. int foo(void) {}
  8874. _ACEOF
  8875. if ac_fn_c_try_link "$LINENO"; then :
  8876. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8877. fi
  8878. rm -f core conftest.err conftest.$ac_objext \
  8879. conftest$ac_exeext conftest.$ac_ext
  8880. LDFLAGS="$save_LDFLAGS"
  8881. else
  8882. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8883. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8884. fi
  8885. archive_cmds_need_lc='no'
  8886. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8887. hardcode_libdir_separator=:
  8888. inherit_rpath=yes
  8889. link_all_deplibs=yes
  8890. ;;
  8891. netbsd*)
  8892. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8893. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8894. else
  8895. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8896. fi
  8897. hardcode_libdir_flag_spec='-R$libdir'
  8898. hardcode_direct=yes
  8899. hardcode_shlibpath_var=no
  8900. ;;
  8901. newsos6)
  8902. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8903. hardcode_direct=yes
  8904. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8905. hardcode_libdir_separator=:
  8906. hardcode_shlibpath_var=no
  8907. ;;
  8908. *nto* | *qnx*)
  8909. ;;
  8910. openbsd*)
  8911. if test -f /usr/libexec/ld.so; then
  8912. hardcode_direct=yes
  8913. hardcode_shlibpath_var=no
  8914. hardcode_direct_absolute=yes
  8915. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8916. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8917. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8918. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8919. export_dynamic_flag_spec='${wl}-E'
  8920. else
  8921. case $host_os in
  8922. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8923. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8924. hardcode_libdir_flag_spec='-R$libdir'
  8925. ;;
  8926. *)
  8927. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8928. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8929. ;;
  8930. esac
  8931. fi
  8932. else
  8933. ld_shlibs=no
  8934. fi
  8935. ;;
  8936. os2*)
  8937. hardcode_libdir_flag_spec='-L$libdir'
  8938. hardcode_minus_L=yes
  8939. allow_undefined_flag=unsupported
  8940. 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'
  8941. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8942. ;;
  8943. osf3*)
  8944. if test "$GCC" = yes; then
  8945. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8946. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8947. else
  8948. allow_undefined_flag=' -expect_unresolved \*'
  8949. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8950. fi
  8951. archive_cmds_need_lc='no'
  8952. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8953. hardcode_libdir_separator=:
  8954. ;;
  8955. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8956. if test "$GCC" = yes; then
  8957. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8958. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8959. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8960. else
  8961. allow_undefined_flag=' -expect_unresolved \*'
  8962. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8963. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8964. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8965. # Both c and cxx compiler support -rpath directly
  8966. hardcode_libdir_flag_spec='-rpath $libdir'
  8967. fi
  8968. archive_cmds_need_lc='no'
  8969. hardcode_libdir_separator=:
  8970. ;;
  8971. solaris*)
  8972. no_undefined_flag=' -z defs'
  8973. if test "$GCC" = yes; then
  8974. wlarc='${wl}'
  8975. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8976. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8977. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8978. else
  8979. case `$CC -V 2>&1` in
  8980. *"Compilers 5.0"*)
  8981. wlarc=''
  8982. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8983. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8984. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8985. ;;
  8986. *)
  8987. wlarc='${wl}'
  8988. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8989. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8990. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8991. ;;
  8992. esac
  8993. fi
  8994. hardcode_libdir_flag_spec='-R$libdir'
  8995. hardcode_shlibpath_var=no
  8996. case $host_os in
  8997. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8998. *)
  8999. # The compiler driver will combine and reorder linker options,
  9000. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9001. # but is careful enough not to reorder.
  9002. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9003. if test "$GCC" = yes; then
  9004. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9005. else
  9006. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9007. fi
  9008. ;;
  9009. esac
  9010. link_all_deplibs=yes
  9011. ;;
  9012. sunos4*)
  9013. if test "x$host_vendor" = xsequent; then
  9014. # Use $CC to link under sequent, because it throws in some extra .o
  9015. # files that make .init and .fini sections work.
  9016. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9017. else
  9018. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9019. fi
  9020. hardcode_libdir_flag_spec='-L$libdir'
  9021. hardcode_direct=yes
  9022. hardcode_minus_L=yes
  9023. hardcode_shlibpath_var=no
  9024. ;;
  9025. sysv4)
  9026. case $host_vendor in
  9027. sni)
  9028. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9029. hardcode_direct=yes # is this really true???
  9030. ;;
  9031. siemens)
  9032. ## LD is ld it makes a PLAMLIB
  9033. ## CC just makes a GrossModule.
  9034. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9035. reload_cmds='$CC -r -o $output$reload_objs'
  9036. hardcode_direct=no
  9037. ;;
  9038. motorola)
  9039. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9040. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9041. ;;
  9042. esac
  9043. runpath_var='LD_RUN_PATH'
  9044. hardcode_shlibpath_var=no
  9045. ;;
  9046. sysv4.3*)
  9047. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9048. hardcode_shlibpath_var=no
  9049. export_dynamic_flag_spec='-Bexport'
  9050. ;;
  9051. sysv4*MP*)
  9052. if test -d /usr/nec; then
  9053. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9054. hardcode_shlibpath_var=no
  9055. runpath_var=LD_RUN_PATH
  9056. hardcode_runpath_var=yes
  9057. ld_shlibs=yes
  9058. fi
  9059. ;;
  9060. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9061. no_undefined_flag='${wl}-z,text'
  9062. archive_cmds_need_lc=no
  9063. hardcode_shlibpath_var=no
  9064. runpath_var='LD_RUN_PATH'
  9065. if test "$GCC" = yes; then
  9066. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9067. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9068. else
  9069. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9070. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9071. fi
  9072. ;;
  9073. sysv5* | sco3.2v5* | sco5v6*)
  9074. # Note: We can NOT use -z defs as we might desire, because we do not
  9075. # link with -lc, and that would cause any symbols used from libc to
  9076. # always be unresolved, which means just about no library would
  9077. # ever link correctly. If we're not using GNU ld we use -z text
  9078. # though, which does catch some bad symbols but isn't as heavy-handed
  9079. # as -z defs.
  9080. no_undefined_flag='${wl}-z,text'
  9081. allow_undefined_flag='${wl}-z,nodefs'
  9082. archive_cmds_need_lc=no
  9083. hardcode_shlibpath_var=no
  9084. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9085. hardcode_libdir_separator=':'
  9086. link_all_deplibs=yes
  9087. export_dynamic_flag_spec='${wl}-Bexport'
  9088. runpath_var='LD_RUN_PATH'
  9089. if test "$GCC" = yes; then
  9090. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9091. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9092. else
  9093. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9094. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9095. fi
  9096. ;;
  9097. uts4*)
  9098. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9099. hardcode_libdir_flag_spec='-L$libdir'
  9100. hardcode_shlibpath_var=no
  9101. ;;
  9102. *)
  9103. ld_shlibs=no
  9104. ;;
  9105. esac
  9106. if test x$host_vendor = xsni; then
  9107. case $host in
  9108. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9109. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9110. ;;
  9111. esac
  9112. fi
  9113. fi
  9114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9115. $as_echo "$ld_shlibs" >&6; }
  9116. test "$ld_shlibs" = no && can_build_shared=no
  9117. with_gnu_ld=$with_gnu_ld
  9118. #
  9119. # Do we need to explicitly link libc?
  9120. #
  9121. case "x$archive_cmds_need_lc" in
  9122. x|xyes)
  9123. # Assume -lc should be added
  9124. archive_cmds_need_lc=yes
  9125. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9126. case $archive_cmds in
  9127. *'~'*)
  9128. # FIXME: we may have to deal with multi-command sequences.
  9129. ;;
  9130. '$CC '*)
  9131. # Test whether the compiler implicitly links with -lc since on some
  9132. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9133. # to ld, don't add -lc before -lgcc.
  9134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9135. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9136. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  9137. $as_echo_n "(cached) " >&6
  9138. else
  9139. $RM conftest*
  9140. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9141. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9142. (eval $ac_compile) 2>&5
  9143. ac_status=$?
  9144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9145. test $ac_status = 0; } 2>conftest.err; then
  9146. soname=conftest
  9147. lib=conftest
  9148. libobjs=conftest.$ac_objext
  9149. deplibs=
  9150. wl=$lt_prog_compiler_wl
  9151. pic_flag=$lt_prog_compiler_pic
  9152. compiler_flags=-v
  9153. linker_flags=-v
  9154. verstring=
  9155. output_objdir=.
  9156. libname=conftest
  9157. lt_save_allow_undefined_flag=$allow_undefined_flag
  9158. allow_undefined_flag=
  9159. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9160. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9161. ac_status=$?
  9162. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9163. test $ac_status = 0; }
  9164. then
  9165. lt_cv_archive_cmds_need_lc=no
  9166. else
  9167. lt_cv_archive_cmds_need_lc=yes
  9168. fi
  9169. allow_undefined_flag=$lt_save_allow_undefined_flag
  9170. else
  9171. cat conftest.err 1>&5
  9172. fi
  9173. $RM conftest*
  9174. fi
  9175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9176. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9177. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9178. ;;
  9179. esac
  9180. fi
  9181. ;;
  9182. esac
  9183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9184. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9185. if test "$GCC" = yes; then
  9186. case $host_os in
  9187. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9188. *) lt_awk_arg="/^libraries:/" ;;
  9189. esac
  9190. case $host_os in
  9191. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9192. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9193. esac
  9194. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9195. case $lt_search_path_spec in
  9196. *\;*)
  9197. # if the path contains ";" then we assume it to be the separator
  9198. # otherwise default to the standard path separator (i.e. ":") - it is
  9199. # assumed that no part of a normal pathname contains ";" but that should
  9200. # okay in the real world where ";" in dirpaths is itself problematic.
  9201. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9202. ;;
  9203. *)
  9204. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9205. ;;
  9206. esac
  9207. # Ok, now we have the path, separated by spaces, we can step through it
  9208. # and add multilib dir if necessary.
  9209. lt_tmp_lt_search_path_spec=
  9210. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9211. for lt_sys_path in $lt_search_path_spec; do
  9212. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9213. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9214. else
  9215. test -d "$lt_sys_path" && \
  9216. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9217. fi
  9218. done
  9219. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9220. BEGIN {RS=" "; FS="/|\n";} {
  9221. lt_foo="";
  9222. lt_count=0;
  9223. for (lt_i = NF; lt_i > 0; lt_i--) {
  9224. if ($lt_i != "" && $lt_i != ".") {
  9225. if ($lt_i == "..") {
  9226. lt_count++;
  9227. } else {
  9228. if (lt_count == 0) {
  9229. lt_foo="/" $lt_i lt_foo;
  9230. } else {
  9231. lt_count--;
  9232. }
  9233. }
  9234. }
  9235. }
  9236. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9237. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9238. }'`
  9239. # AWK program above erroneously prepends '/' to C:/dos/paths
  9240. # for these hosts.
  9241. case $host_os in
  9242. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9243. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9244. esac
  9245. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9246. else
  9247. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9248. fi
  9249. library_names_spec=
  9250. libname_spec='lib$name'
  9251. soname_spec=
  9252. shrext_cmds=".so"
  9253. postinstall_cmds=
  9254. postuninstall_cmds=
  9255. finish_cmds=
  9256. finish_eval=
  9257. shlibpath_var=
  9258. shlibpath_overrides_runpath=unknown
  9259. version_type=none
  9260. dynamic_linker="$host_os ld.so"
  9261. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9262. need_lib_prefix=unknown
  9263. hardcode_into_libs=no
  9264. # when you set need_version to no, make sure it does not cause -set_version
  9265. # flags to be left without arguments
  9266. need_version=unknown
  9267. case $host_os in
  9268. aix3*)
  9269. version_type=linux
  9270. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9271. shlibpath_var=LIBPATH
  9272. # AIX 3 has no versioning support, so we append a major version to the name.
  9273. soname_spec='${libname}${release}${shared_ext}$major'
  9274. ;;
  9275. aix[4-9]*)
  9276. version_type=linux
  9277. need_lib_prefix=no
  9278. need_version=no
  9279. hardcode_into_libs=yes
  9280. if test "$host_cpu" = ia64; then
  9281. # AIX 5 supports IA64
  9282. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9283. shlibpath_var=LD_LIBRARY_PATH
  9284. else
  9285. # With GCC up to 2.95.x, collect2 would create an import file
  9286. # for dependence libraries. The import file would start with
  9287. # the line `#! .'. This would cause the generated library to
  9288. # depend on `.', always an invalid library. This was fixed in
  9289. # development snapshots of GCC prior to 3.0.
  9290. case $host_os in
  9291. aix4 | aix4.[01] | aix4.[01].*)
  9292. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9293. echo ' yes '
  9294. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9295. :
  9296. else
  9297. can_build_shared=no
  9298. fi
  9299. ;;
  9300. esac
  9301. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9302. # soname into executable. Probably we can add versioning support to
  9303. # collect2, so additional links can be useful in future.
  9304. if test "$aix_use_runtimelinking" = yes; then
  9305. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9306. # instead of lib<name>.a to let people know that these are not
  9307. # typical AIX shared libraries.
  9308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9309. else
  9310. # We preserve .a as extension for shared libraries through AIX4.2
  9311. # and later when we are not doing run time linking.
  9312. library_names_spec='${libname}${release}.a $libname.a'
  9313. soname_spec='${libname}${release}${shared_ext}$major'
  9314. fi
  9315. shlibpath_var=LIBPATH
  9316. fi
  9317. ;;
  9318. amigaos*)
  9319. case $host_cpu in
  9320. powerpc)
  9321. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9322. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9324. ;;
  9325. m68k)
  9326. library_names_spec='$libname.ixlibrary $libname.a'
  9327. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9328. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9329. ;;
  9330. esac
  9331. ;;
  9332. beos*)
  9333. library_names_spec='${libname}${shared_ext}'
  9334. dynamic_linker="$host_os ld.so"
  9335. shlibpath_var=LIBRARY_PATH
  9336. ;;
  9337. bsdi[45]*)
  9338. version_type=linux
  9339. need_version=no
  9340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9341. soname_spec='${libname}${release}${shared_ext}$major'
  9342. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9343. shlibpath_var=LD_LIBRARY_PATH
  9344. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9345. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9346. # the default ld.so.conf also contains /usr/contrib/lib and
  9347. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9348. # libtool to hard-code these into programs
  9349. ;;
  9350. cygwin* | mingw* | pw32* | cegcc*)
  9351. version_type=windows
  9352. shrext_cmds=".dll"
  9353. need_version=no
  9354. need_lib_prefix=no
  9355. case $GCC,$host_os in
  9356. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9357. library_names_spec='$libname.dll.a'
  9358. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9359. postinstall_cmds='base_file=`basename \${file}`~
  9360. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9361. dldir=$destdir/`dirname \$dlpath`~
  9362. test -d \$dldir || mkdir -p \$dldir~
  9363. $install_prog $dir/$dlname \$dldir/$dlname~
  9364. chmod a+x \$dldir/$dlname~
  9365. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9366. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9367. fi'
  9368. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9369. dlpath=$dir/\$dldll~
  9370. $RM \$dlpath'
  9371. shlibpath_overrides_runpath=yes
  9372. case $host_os in
  9373. cygwin*)
  9374. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9375. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9376. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9377. ;;
  9378. mingw* | cegcc*)
  9379. # MinGW DLLs use traditional 'lib' prefix
  9380. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9381. ;;
  9382. pw32*)
  9383. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9384. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9385. ;;
  9386. esac
  9387. ;;
  9388. *)
  9389. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9390. ;;
  9391. esac
  9392. dynamic_linker='Win32 ld.exe'
  9393. # FIXME: first we should search . and the directory the executable is in
  9394. shlibpath_var=PATH
  9395. ;;
  9396. darwin* | rhapsody*)
  9397. dynamic_linker="$host_os dyld"
  9398. version_type=darwin
  9399. need_lib_prefix=no
  9400. need_version=no
  9401. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9402. soname_spec='${libname}${release}${major}$shared_ext'
  9403. shlibpath_overrides_runpath=yes
  9404. shlibpath_var=DYLD_LIBRARY_PATH
  9405. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9406. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9407. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9408. ;;
  9409. dgux*)
  9410. version_type=linux
  9411. need_lib_prefix=no
  9412. need_version=no
  9413. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9414. soname_spec='${libname}${release}${shared_ext}$major'
  9415. shlibpath_var=LD_LIBRARY_PATH
  9416. ;;
  9417. freebsd* | dragonfly*)
  9418. # DragonFly does not have aout. When/if they implement a new
  9419. # versioning mechanism, adjust this.
  9420. if test -x /usr/bin/objformat; then
  9421. objformat=`/usr/bin/objformat`
  9422. else
  9423. case $host_os in
  9424. freebsd[23].*) objformat=aout ;;
  9425. *) objformat=elf ;;
  9426. esac
  9427. fi
  9428. version_type=freebsd-$objformat
  9429. case $version_type in
  9430. freebsd-elf*)
  9431. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9432. need_version=no
  9433. need_lib_prefix=no
  9434. ;;
  9435. freebsd-*)
  9436. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9437. need_version=yes
  9438. ;;
  9439. esac
  9440. shlibpath_var=LD_LIBRARY_PATH
  9441. case $host_os in
  9442. freebsd2.*)
  9443. shlibpath_overrides_runpath=yes
  9444. ;;
  9445. freebsd3.[01]* | freebsdelf3.[01]*)
  9446. shlibpath_overrides_runpath=yes
  9447. hardcode_into_libs=yes
  9448. ;;
  9449. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9450. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9451. shlibpath_overrides_runpath=no
  9452. hardcode_into_libs=yes
  9453. ;;
  9454. *) # from 4.6 on, and DragonFly
  9455. shlibpath_overrides_runpath=yes
  9456. hardcode_into_libs=yes
  9457. ;;
  9458. esac
  9459. ;;
  9460. gnu*)
  9461. version_type=linux
  9462. need_lib_prefix=no
  9463. need_version=no
  9464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9465. soname_spec='${libname}${release}${shared_ext}$major'
  9466. shlibpath_var=LD_LIBRARY_PATH
  9467. hardcode_into_libs=yes
  9468. ;;
  9469. haiku*)
  9470. version_type=linux
  9471. need_lib_prefix=no
  9472. need_version=no
  9473. dynamic_linker="$host_os runtime_loader"
  9474. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9475. soname_spec='${libname}${release}${shared_ext}$major'
  9476. shlibpath_var=LIBRARY_PATH
  9477. shlibpath_overrides_runpath=yes
  9478. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9479. hardcode_into_libs=yes
  9480. ;;
  9481. hpux9* | hpux10* | hpux11*)
  9482. # Give a soname corresponding to the major version so that dld.sl refuses to
  9483. # link against other versions.
  9484. version_type=sunos
  9485. need_lib_prefix=no
  9486. need_version=no
  9487. case $host_cpu in
  9488. ia64*)
  9489. shrext_cmds='.so'
  9490. hardcode_into_libs=yes
  9491. dynamic_linker="$host_os dld.so"
  9492. shlibpath_var=LD_LIBRARY_PATH
  9493. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9494. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9495. soname_spec='${libname}${release}${shared_ext}$major'
  9496. if test "X$HPUX_IA64_MODE" = X32; then
  9497. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9498. else
  9499. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9500. fi
  9501. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9502. ;;
  9503. hppa*64*)
  9504. shrext_cmds='.sl'
  9505. hardcode_into_libs=yes
  9506. dynamic_linker="$host_os dld.sl"
  9507. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9508. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9510. soname_spec='${libname}${release}${shared_ext}$major'
  9511. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9512. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9513. ;;
  9514. *)
  9515. shrext_cmds='.sl'
  9516. dynamic_linker="$host_os dld.sl"
  9517. shlibpath_var=SHLIB_PATH
  9518. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9520. soname_spec='${libname}${release}${shared_ext}$major'
  9521. ;;
  9522. esac
  9523. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9524. postinstall_cmds='chmod 555 $lib'
  9525. # or fails outright, so override atomically:
  9526. install_override_mode=555
  9527. ;;
  9528. interix[3-9]*)
  9529. version_type=linux
  9530. need_lib_prefix=no
  9531. need_version=no
  9532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9533. soname_spec='${libname}${release}${shared_ext}$major'
  9534. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9535. shlibpath_var=LD_LIBRARY_PATH
  9536. shlibpath_overrides_runpath=no
  9537. hardcode_into_libs=yes
  9538. ;;
  9539. irix5* | irix6* | nonstopux*)
  9540. case $host_os in
  9541. nonstopux*) version_type=nonstopux ;;
  9542. *)
  9543. if test "$lt_cv_prog_gnu_ld" = yes; then
  9544. version_type=linux
  9545. else
  9546. version_type=irix
  9547. fi ;;
  9548. esac
  9549. need_lib_prefix=no
  9550. need_version=no
  9551. soname_spec='${libname}${release}${shared_ext}$major'
  9552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9553. case $host_os in
  9554. irix5* | nonstopux*)
  9555. libsuff= shlibsuff=
  9556. ;;
  9557. *)
  9558. case $LD in # libtool.m4 will add one of these switches to LD
  9559. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9560. libsuff= shlibsuff= libmagic=32-bit;;
  9561. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9562. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9563. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9564. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9565. *) libsuff= shlibsuff= libmagic=never-match;;
  9566. esac
  9567. ;;
  9568. esac
  9569. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9570. shlibpath_overrides_runpath=no
  9571. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9572. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9573. hardcode_into_libs=yes
  9574. ;;
  9575. # No shared lib support for Linux oldld, aout, or coff.
  9576. linux*oldld* | linux*aout* | linux*coff*)
  9577. dynamic_linker=no
  9578. ;;
  9579. # This must be Linux ELF.
  9580. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9581. version_type=linux
  9582. need_lib_prefix=no
  9583. need_version=no
  9584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9585. soname_spec='${libname}${release}${shared_ext}$major'
  9586. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9587. shlibpath_var=LD_LIBRARY_PATH
  9588. shlibpath_overrides_runpath=no
  9589. # Some binutils ld are patched to set DT_RUNPATH
  9590. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9591. $as_echo_n "(cached) " >&6
  9592. else
  9593. lt_cv_shlibpath_overrides_runpath=no
  9594. save_LDFLAGS=$LDFLAGS
  9595. save_libdir=$libdir
  9596. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9597. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9599. /* end confdefs.h. */
  9600. int
  9601. main ()
  9602. {
  9603. ;
  9604. return 0;
  9605. }
  9606. _ACEOF
  9607. if ac_fn_c_try_link "$LINENO"; then :
  9608. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9609. lt_cv_shlibpath_overrides_runpath=yes
  9610. fi
  9611. fi
  9612. rm -f core conftest.err conftest.$ac_objext \
  9613. conftest$ac_exeext conftest.$ac_ext
  9614. LDFLAGS=$save_LDFLAGS
  9615. libdir=$save_libdir
  9616. fi
  9617. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9618. # This implies no fast_install, which is unacceptable.
  9619. # Some rework will be needed to allow for fast_install
  9620. # before this can be enabled.
  9621. hardcode_into_libs=yes
  9622. # Append ld.so.conf contents to the search path
  9623. if test -f /etc/ld.so.conf; then
  9624. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9625. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9626. fi
  9627. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9628. # powerpc, because MkLinux only supported shared libraries with the
  9629. # GNU dynamic linker. Since this was broken with cross compilers,
  9630. # most powerpc-linux boxes support dynamic linking these days and
  9631. # people can always --disable-shared, the test was removed, and we
  9632. # assume the GNU/Linux dynamic linker is in use.
  9633. dynamic_linker='GNU/Linux ld.so'
  9634. ;;
  9635. netbsd*)
  9636. version_type=sunos
  9637. need_lib_prefix=no
  9638. need_version=no
  9639. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9640. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9641. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9642. dynamic_linker='NetBSD (a.out) ld.so'
  9643. else
  9644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9645. soname_spec='${libname}${release}${shared_ext}$major'
  9646. dynamic_linker='NetBSD ld.elf_so'
  9647. fi
  9648. shlibpath_var=LD_LIBRARY_PATH
  9649. shlibpath_overrides_runpath=yes
  9650. hardcode_into_libs=yes
  9651. ;;
  9652. newsos6)
  9653. version_type=linux
  9654. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9655. shlibpath_var=LD_LIBRARY_PATH
  9656. shlibpath_overrides_runpath=yes
  9657. ;;
  9658. *nto* | *qnx*)
  9659. version_type=qnx
  9660. need_lib_prefix=no
  9661. need_version=no
  9662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9663. soname_spec='${libname}${release}${shared_ext}$major'
  9664. shlibpath_var=LD_LIBRARY_PATH
  9665. shlibpath_overrides_runpath=no
  9666. hardcode_into_libs=yes
  9667. dynamic_linker='ldqnx.so'
  9668. ;;
  9669. openbsd*)
  9670. version_type=sunos
  9671. sys_lib_dlsearch_path_spec="/usr/lib"
  9672. need_lib_prefix=no
  9673. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9674. case $host_os in
  9675. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9676. *) need_version=no ;;
  9677. esac
  9678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9679. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9680. shlibpath_var=LD_LIBRARY_PATH
  9681. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9682. case $host_os in
  9683. openbsd2.[89] | openbsd2.[89].*)
  9684. shlibpath_overrides_runpath=no
  9685. ;;
  9686. *)
  9687. shlibpath_overrides_runpath=yes
  9688. ;;
  9689. esac
  9690. else
  9691. shlibpath_overrides_runpath=yes
  9692. fi
  9693. ;;
  9694. os2*)
  9695. libname_spec='$name'
  9696. shrext_cmds=".dll"
  9697. need_lib_prefix=no
  9698. library_names_spec='$libname${shared_ext} $libname.a'
  9699. dynamic_linker='OS/2 ld.exe'
  9700. shlibpath_var=LIBPATH
  9701. ;;
  9702. osf3* | osf4* | osf5*)
  9703. version_type=osf
  9704. need_lib_prefix=no
  9705. need_version=no
  9706. soname_spec='${libname}${release}${shared_ext}$major'
  9707. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9708. shlibpath_var=LD_LIBRARY_PATH
  9709. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9710. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9711. ;;
  9712. rdos*)
  9713. dynamic_linker=no
  9714. ;;
  9715. solaris*)
  9716. version_type=linux
  9717. need_lib_prefix=no
  9718. need_version=no
  9719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9720. soname_spec='${libname}${release}${shared_ext}$major'
  9721. shlibpath_var=LD_LIBRARY_PATH
  9722. shlibpath_overrides_runpath=yes
  9723. hardcode_into_libs=yes
  9724. # ldd complains unless libraries are executable
  9725. postinstall_cmds='chmod +x $lib'
  9726. ;;
  9727. sunos4*)
  9728. version_type=sunos
  9729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9730. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9731. shlibpath_var=LD_LIBRARY_PATH
  9732. shlibpath_overrides_runpath=yes
  9733. if test "$with_gnu_ld" = yes; then
  9734. need_lib_prefix=no
  9735. fi
  9736. need_version=yes
  9737. ;;
  9738. sysv4 | sysv4.3*)
  9739. version_type=linux
  9740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9741. soname_spec='${libname}${release}${shared_ext}$major'
  9742. shlibpath_var=LD_LIBRARY_PATH
  9743. case $host_vendor in
  9744. sni)
  9745. shlibpath_overrides_runpath=no
  9746. need_lib_prefix=no
  9747. runpath_var=LD_RUN_PATH
  9748. ;;
  9749. siemens)
  9750. need_lib_prefix=no
  9751. ;;
  9752. motorola)
  9753. need_lib_prefix=no
  9754. need_version=no
  9755. shlibpath_overrides_runpath=no
  9756. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9757. ;;
  9758. esac
  9759. ;;
  9760. sysv4*MP*)
  9761. if test -d /usr/nec ;then
  9762. version_type=linux
  9763. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9764. soname_spec='$libname${shared_ext}.$major'
  9765. shlibpath_var=LD_LIBRARY_PATH
  9766. fi
  9767. ;;
  9768. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9769. version_type=freebsd-elf
  9770. need_lib_prefix=no
  9771. need_version=no
  9772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9773. soname_spec='${libname}${release}${shared_ext}$major'
  9774. shlibpath_var=LD_LIBRARY_PATH
  9775. shlibpath_overrides_runpath=yes
  9776. hardcode_into_libs=yes
  9777. if test "$with_gnu_ld" = yes; then
  9778. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9779. else
  9780. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9781. case $host_os in
  9782. sco3.2v5*)
  9783. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9784. ;;
  9785. esac
  9786. fi
  9787. sys_lib_dlsearch_path_spec='/usr/lib'
  9788. ;;
  9789. tpf*)
  9790. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9791. version_type=linux
  9792. need_lib_prefix=no
  9793. need_version=no
  9794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9795. shlibpath_var=LD_LIBRARY_PATH
  9796. shlibpath_overrides_runpath=no
  9797. hardcode_into_libs=yes
  9798. ;;
  9799. uts4*)
  9800. version_type=linux
  9801. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9802. soname_spec='${libname}${release}${shared_ext}$major'
  9803. shlibpath_var=LD_LIBRARY_PATH
  9804. ;;
  9805. *)
  9806. dynamic_linker=no
  9807. ;;
  9808. esac
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9810. $as_echo "$dynamic_linker" >&6; }
  9811. test "$dynamic_linker" = no && can_build_shared=no
  9812. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9813. if test "$GCC" = yes; then
  9814. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9815. fi
  9816. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9817. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9818. fi
  9819. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9820. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9821. fi
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9823. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9824. hardcode_action=
  9825. if test -n "$hardcode_libdir_flag_spec" ||
  9826. test -n "$runpath_var" ||
  9827. test "X$hardcode_automatic" = "Xyes" ; then
  9828. # We can hardcode non-existent directories.
  9829. if test "$hardcode_direct" != no &&
  9830. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9831. # have to relink, otherwise we might link with an installed library
  9832. # when we should be linking with a yet-to-be-installed one
  9833. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9834. test "$hardcode_minus_L" != no; then
  9835. # Linking always hardcodes the temporary library directory.
  9836. hardcode_action=relink
  9837. else
  9838. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9839. hardcode_action=immediate
  9840. fi
  9841. else
  9842. # We cannot hardcode anything, or else we can only hardcode existing
  9843. # directories.
  9844. hardcode_action=unsupported
  9845. fi
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9847. $as_echo "$hardcode_action" >&6; }
  9848. if test "$hardcode_action" = relink ||
  9849. test "$inherit_rpath" = yes; then
  9850. # Fast installation is not supported
  9851. enable_fast_install=no
  9852. elif test "$shlibpath_overrides_runpath" = yes ||
  9853. test "$enable_shared" = no; then
  9854. # Fast installation is not necessary
  9855. enable_fast_install=needless
  9856. fi
  9857. if test "x$enable_dlopen" != xyes; then
  9858. enable_dlopen=unknown
  9859. enable_dlopen_self=unknown
  9860. enable_dlopen_self_static=unknown
  9861. else
  9862. lt_cv_dlopen=no
  9863. lt_cv_dlopen_libs=
  9864. case $host_os in
  9865. beos*)
  9866. lt_cv_dlopen="load_add_on"
  9867. lt_cv_dlopen_libs=
  9868. lt_cv_dlopen_self=yes
  9869. ;;
  9870. mingw* | pw32* | cegcc*)
  9871. lt_cv_dlopen="LoadLibrary"
  9872. lt_cv_dlopen_libs=
  9873. ;;
  9874. cygwin*)
  9875. lt_cv_dlopen="dlopen"
  9876. lt_cv_dlopen_libs=
  9877. ;;
  9878. darwin*)
  9879. # if libdl is installed we need to link against it
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9881. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9882. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9883. $as_echo_n "(cached) " >&6
  9884. else
  9885. ac_check_lib_save_LIBS=$LIBS
  9886. LIBS="-ldl $LIBS"
  9887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9888. /* end confdefs.h. */
  9889. /* Override any GCC internal prototype to avoid an error.
  9890. Use char because int might match the return type of a GCC
  9891. builtin and then its argument prototype would still apply. */
  9892. #ifdef __cplusplus
  9893. extern "C"
  9894. #endif
  9895. char dlopen ();
  9896. int
  9897. main ()
  9898. {
  9899. return dlopen ();
  9900. ;
  9901. return 0;
  9902. }
  9903. _ACEOF
  9904. if ac_fn_c_try_link "$LINENO"; then :
  9905. ac_cv_lib_dl_dlopen=yes
  9906. else
  9907. ac_cv_lib_dl_dlopen=no
  9908. fi
  9909. rm -f core conftest.err conftest.$ac_objext \
  9910. conftest$ac_exeext conftest.$ac_ext
  9911. LIBS=$ac_check_lib_save_LIBS
  9912. fi
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9914. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9915. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9916. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9917. else
  9918. lt_cv_dlopen="dyld"
  9919. lt_cv_dlopen_libs=
  9920. lt_cv_dlopen_self=yes
  9921. fi
  9922. ;;
  9923. *)
  9924. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9925. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9926. lt_cv_dlopen="shl_load"
  9927. else
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9929. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9930. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9931. $as_echo_n "(cached) " >&6
  9932. else
  9933. ac_check_lib_save_LIBS=$LIBS
  9934. LIBS="-ldld $LIBS"
  9935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9936. /* end confdefs.h. */
  9937. /* Override any GCC internal prototype to avoid an error.
  9938. Use char because int might match the return type of a GCC
  9939. builtin and then its argument prototype would still apply. */
  9940. #ifdef __cplusplus
  9941. extern "C"
  9942. #endif
  9943. char shl_load ();
  9944. int
  9945. main ()
  9946. {
  9947. return shl_load ();
  9948. ;
  9949. return 0;
  9950. }
  9951. _ACEOF
  9952. if ac_fn_c_try_link "$LINENO"; then :
  9953. ac_cv_lib_dld_shl_load=yes
  9954. else
  9955. ac_cv_lib_dld_shl_load=no
  9956. fi
  9957. rm -f core conftest.err conftest.$ac_objext \
  9958. conftest$ac_exeext conftest.$ac_ext
  9959. LIBS=$ac_check_lib_save_LIBS
  9960. fi
  9961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9962. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9963. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9964. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9965. else
  9966. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9967. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9968. lt_cv_dlopen="dlopen"
  9969. else
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9971. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9972. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9973. $as_echo_n "(cached) " >&6
  9974. else
  9975. ac_check_lib_save_LIBS=$LIBS
  9976. LIBS="-ldl $LIBS"
  9977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9978. /* end confdefs.h. */
  9979. /* Override any GCC internal prototype to avoid an error.
  9980. Use char because int might match the return type of a GCC
  9981. builtin and then its argument prototype would still apply. */
  9982. #ifdef __cplusplus
  9983. extern "C"
  9984. #endif
  9985. char dlopen ();
  9986. int
  9987. main ()
  9988. {
  9989. return dlopen ();
  9990. ;
  9991. return 0;
  9992. }
  9993. _ACEOF
  9994. if ac_fn_c_try_link "$LINENO"; then :
  9995. ac_cv_lib_dl_dlopen=yes
  9996. else
  9997. ac_cv_lib_dl_dlopen=no
  9998. fi
  9999. rm -f core conftest.err conftest.$ac_objext \
  10000. conftest$ac_exeext conftest.$ac_ext
  10001. LIBS=$ac_check_lib_save_LIBS
  10002. fi
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10004. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10005. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10006. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10007. else
  10008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10009. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10010. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  10011. $as_echo_n "(cached) " >&6
  10012. else
  10013. ac_check_lib_save_LIBS=$LIBS
  10014. LIBS="-lsvld $LIBS"
  10015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10016. /* end confdefs.h. */
  10017. /* Override any GCC internal prototype to avoid an error.
  10018. Use char because int might match the return type of a GCC
  10019. builtin and then its argument prototype would still apply. */
  10020. #ifdef __cplusplus
  10021. extern "C"
  10022. #endif
  10023. char dlopen ();
  10024. int
  10025. main ()
  10026. {
  10027. return dlopen ();
  10028. ;
  10029. return 0;
  10030. }
  10031. _ACEOF
  10032. if ac_fn_c_try_link "$LINENO"; then :
  10033. ac_cv_lib_svld_dlopen=yes
  10034. else
  10035. ac_cv_lib_svld_dlopen=no
  10036. fi
  10037. rm -f core conftest.err conftest.$ac_objext \
  10038. conftest$ac_exeext conftest.$ac_ext
  10039. LIBS=$ac_check_lib_save_LIBS
  10040. fi
  10041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10042. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10043. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  10044. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10045. else
  10046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10047. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10048. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  10049. $as_echo_n "(cached) " >&6
  10050. else
  10051. ac_check_lib_save_LIBS=$LIBS
  10052. LIBS="-ldld $LIBS"
  10053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10054. /* end confdefs.h. */
  10055. /* Override any GCC internal prototype to avoid an error.
  10056. Use char because int might match the return type of a GCC
  10057. builtin and then its argument prototype would still apply. */
  10058. #ifdef __cplusplus
  10059. extern "C"
  10060. #endif
  10061. char dld_link ();
  10062. int
  10063. main ()
  10064. {
  10065. return dld_link ();
  10066. ;
  10067. return 0;
  10068. }
  10069. _ACEOF
  10070. if ac_fn_c_try_link "$LINENO"; then :
  10071. ac_cv_lib_dld_dld_link=yes
  10072. else
  10073. ac_cv_lib_dld_dld_link=no
  10074. fi
  10075. rm -f core conftest.err conftest.$ac_objext \
  10076. conftest$ac_exeext conftest.$ac_ext
  10077. LIBS=$ac_check_lib_save_LIBS
  10078. fi
  10079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10080. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10081. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10082. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10083. fi
  10084. fi
  10085. fi
  10086. fi
  10087. fi
  10088. fi
  10089. ;;
  10090. esac
  10091. if test "x$lt_cv_dlopen" != xno; then
  10092. enable_dlopen=yes
  10093. else
  10094. enable_dlopen=no
  10095. fi
  10096. case $lt_cv_dlopen in
  10097. dlopen)
  10098. save_CPPFLAGS="$CPPFLAGS"
  10099. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10100. save_LDFLAGS="$LDFLAGS"
  10101. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10102. save_LIBS="$LIBS"
  10103. LIBS="$lt_cv_dlopen_libs $LIBS"
  10104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10105. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10106. if test "${lt_cv_dlopen_self+set}" = set; then :
  10107. $as_echo_n "(cached) " >&6
  10108. else
  10109. if test "$cross_compiling" = yes; then :
  10110. lt_cv_dlopen_self=cross
  10111. else
  10112. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10113. lt_status=$lt_dlunknown
  10114. cat > conftest.$ac_ext <<_LT_EOF
  10115. #line 11718 "configure"
  10116. #include "confdefs.h"
  10117. #if HAVE_DLFCN_H
  10118. #include <dlfcn.h>
  10119. #endif
  10120. #include <stdio.h>
  10121. #ifdef RTLD_GLOBAL
  10122. # define LT_DLGLOBAL RTLD_GLOBAL
  10123. #else
  10124. # ifdef DL_GLOBAL
  10125. # define LT_DLGLOBAL DL_GLOBAL
  10126. # else
  10127. # define LT_DLGLOBAL 0
  10128. # endif
  10129. #endif
  10130. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10131. find out it does not work in some platform. */
  10132. #ifndef LT_DLLAZY_OR_NOW
  10133. # ifdef RTLD_LAZY
  10134. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10135. # else
  10136. # ifdef DL_LAZY
  10137. # define LT_DLLAZY_OR_NOW DL_LAZY
  10138. # else
  10139. # ifdef RTLD_NOW
  10140. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10141. # else
  10142. # ifdef DL_NOW
  10143. # define LT_DLLAZY_OR_NOW DL_NOW
  10144. # else
  10145. # define LT_DLLAZY_OR_NOW 0
  10146. # endif
  10147. # endif
  10148. # endif
  10149. # endif
  10150. #endif
  10151. /* When -fvisbility=hidden is used, assume the code has been annotated
  10152. correspondingly for the symbols needed. */
  10153. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10154. void fnord () __attribute__((visibility("default")));
  10155. #endif
  10156. void fnord () { int i=42; }
  10157. int main ()
  10158. {
  10159. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10160. int status = $lt_dlunknown;
  10161. if (self)
  10162. {
  10163. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10164. else
  10165. {
  10166. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10167. else puts (dlerror ());
  10168. }
  10169. /* dlclose (self); */
  10170. }
  10171. else
  10172. puts (dlerror ());
  10173. return status;
  10174. }
  10175. _LT_EOF
  10176. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10177. (eval $ac_link) 2>&5
  10178. ac_status=$?
  10179. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10180. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10181. (./conftest; exit; ) >&5 2>/dev/null
  10182. lt_status=$?
  10183. case x$lt_status in
  10184. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10185. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10186. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10187. esac
  10188. else :
  10189. # compilation failed
  10190. lt_cv_dlopen_self=no
  10191. fi
  10192. fi
  10193. rm -fr conftest*
  10194. fi
  10195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10196. $as_echo "$lt_cv_dlopen_self" >&6; }
  10197. if test "x$lt_cv_dlopen_self" = xyes; then
  10198. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10200. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10201. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10202. $as_echo_n "(cached) " >&6
  10203. else
  10204. if test "$cross_compiling" = yes; then :
  10205. lt_cv_dlopen_self_static=cross
  10206. else
  10207. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10208. lt_status=$lt_dlunknown
  10209. cat > conftest.$ac_ext <<_LT_EOF
  10210. #line 11824 "configure"
  10211. #include "confdefs.h"
  10212. #if HAVE_DLFCN_H
  10213. #include <dlfcn.h>
  10214. #endif
  10215. #include <stdio.h>
  10216. #ifdef RTLD_GLOBAL
  10217. # define LT_DLGLOBAL RTLD_GLOBAL
  10218. #else
  10219. # ifdef DL_GLOBAL
  10220. # define LT_DLGLOBAL DL_GLOBAL
  10221. # else
  10222. # define LT_DLGLOBAL 0
  10223. # endif
  10224. #endif
  10225. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10226. find out it does not work in some platform. */
  10227. #ifndef LT_DLLAZY_OR_NOW
  10228. # ifdef RTLD_LAZY
  10229. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10230. # else
  10231. # ifdef DL_LAZY
  10232. # define LT_DLLAZY_OR_NOW DL_LAZY
  10233. # else
  10234. # ifdef RTLD_NOW
  10235. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10236. # else
  10237. # ifdef DL_NOW
  10238. # define LT_DLLAZY_OR_NOW DL_NOW
  10239. # else
  10240. # define LT_DLLAZY_OR_NOW 0
  10241. # endif
  10242. # endif
  10243. # endif
  10244. # endif
  10245. #endif
  10246. /* When -fvisbility=hidden is used, assume the code has been annotated
  10247. correspondingly for the symbols needed. */
  10248. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10249. void fnord () __attribute__((visibility("default")));
  10250. #endif
  10251. void fnord () { int i=42; }
  10252. int main ()
  10253. {
  10254. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10255. int status = $lt_dlunknown;
  10256. if (self)
  10257. {
  10258. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10259. else
  10260. {
  10261. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10262. else puts (dlerror ());
  10263. }
  10264. /* dlclose (self); */
  10265. }
  10266. else
  10267. puts (dlerror ());
  10268. return status;
  10269. }
  10270. _LT_EOF
  10271. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10272. (eval $ac_link) 2>&5
  10273. ac_status=$?
  10274. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10275. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10276. (./conftest; exit; ) >&5 2>/dev/null
  10277. lt_status=$?
  10278. case x$lt_status in
  10279. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10280. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10281. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10282. esac
  10283. else :
  10284. # compilation failed
  10285. lt_cv_dlopen_self_static=no
  10286. fi
  10287. fi
  10288. rm -fr conftest*
  10289. fi
  10290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10291. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10292. fi
  10293. CPPFLAGS="$save_CPPFLAGS"
  10294. LDFLAGS="$save_LDFLAGS"
  10295. LIBS="$save_LIBS"
  10296. ;;
  10297. esac
  10298. case $lt_cv_dlopen_self in
  10299. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10300. *) enable_dlopen_self=unknown ;;
  10301. esac
  10302. case $lt_cv_dlopen_self_static in
  10303. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10304. *) enable_dlopen_self_static=unknown ;;
  10305. esac
  10306. fi
  10307. striplib=
  10308. old_striplib=
  10309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10310. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10311. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10312. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10313. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10315. $as_echo "yes" >&6; }
  10316. else
  10317. # FIXME - insert some real tests, host_os isn't really good enough
  10318. case $host_os in
  10319. darwin*)
  10320. if test -n "$STRIP" ; then
  10321. striplib="$STRIP -x"
  10322. old_striplib="$STRIP -S"
  10323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10324. $as_echo "yes" >&6; }
  10325. else
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10327. $as_echo "no" >&6; }
  10328. fi
  10329. ;;
  10330. *)
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10332. $as_echo "no" >&6; }
  10333. ;;
  10334. esac
  10335. fi
  10336. # Report which library types will actually be built
  10337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10338. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10340. $as_echo "$can_build_shared" >&6; }
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10342. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10343. test "$can_build_shared" = "no" && enable_shared=no
  10344. # On AIX, shared libraries and static libraries use the same namespace, and
  10345. # are all built from PIC.
  10346. case $host_os in
  10347. aix3*)
  10348. test "$enable_shared" = yes && enable_static=no
  10349. if test -n "$RANLIB"; then
  10350. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10351. postinstall_cmds='$RANLIB $lib'
  10352. fi
  10353. ;;
  10354. aix[4-9]*)
  10355. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10356. test "$enable_shared" = yes && enable_static=no
  10357. fi
  10358. ;;
  10359. esac
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10361. $as_echo "$enable_shared" >&6; }
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10363. $as_echo_n "checking whether to build static libraries... " >&6; }
  10364. # Make sure either enable_shared or enable_static is yes.
  10365. test "$enable_shared" = yes || enable_static=yes
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10367. $as_echo "$enable_static" >&6; }
  10368. fi
  10369. ac_ext=c
  10370. ac_cpp='$CPP $CPPFLAGS'
  10371. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10372. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10373. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10374. CC="$lt_save_CC"
  10375. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10376. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10377. (test "X$CXX" != "Xg++"))) ; then
  10378. ac_ext=cpp
  10379. ac_cpp='$CXXCPP $CPPFLAGS'
  10380. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10381. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10382. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10384. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10385. if test -z "$CXXCPP"; then
  10386. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  10387. $as_echo_n "(cached) " >&6
  10388. else
  10389. # Double quotes because CXXCPP needs to be expanded
  10390. for CXXCPP in "$CXX -E" "/lib/cpp"
  10391. do
  10392. ac_preproc_ok=false
  10393. for ac_cxx_preproc_warn_flag in '' yes
  10394. do
  10395. # Use a header file that comes with gcc, so configuring glibc
  10396. # with a fresh cross-compiler works.
  10397. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10398. # <limits.h> exists even on freestanding compilers.
  10399. # On the NeXT, cc -E runs the code through the compiler's parser,
  10400. # not just through cpp. "Syntax error" is here to catch this case.
  10401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10402. /* end confdefs.h. */
  10403. #ifdef __STDC__
  10404. # include <limits.h>
  10405. #else
  10406. # include <assert.h>
  10407. #endif
  10408. Syntax error
  10409. _ACEOF
  10410. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10411. else
  10412. # Broken: fails on valid input.
  10413. continue
  10414. fi
  10415. rm -f conftest.err conftest.$ac_ext
  10416. # OK, works on sane cases. Now check whether nonexistent headers
  10417. # can be detected and how.
  10418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10419. /* end confdefs.h. */
  10420. #include <ac_nonexistent.h>
  10421. _ACEOF
  10422. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10423. # Broken: success on invalid input.
  10424. continue
  10425. else
  10426. # Passes both tests.
  10427. ac_preproc_ok=:
  10428. break
  10429. fi
  10430. rm -f conftest.err conftest.$ac_ext
  10431. done
  10432. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10433. rm -f conftest.err conftest.$ac_ext
  10434. if $ac_preproc_ok; then :
  10435. break
  10436. fi
  10437. done
  10438. ac_cv_prog_CXXCPP=$CXXCPP
  10439. fi
  10440. CXXCPP=$ac_cv_prog_CXXCPP
  10441. else
  10442. ac_cv_prog_CXXCPP=$CXXCPP
  10443. fi
  10444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10445. $as_echo "$CXXCPP" >&6; }
  10446. ac_preproc_ok=false
  10447. for ac_cxx_preproc_warn_flag in '' yes
  10448. do
  10449. # Use a header file that comes with gcc, so configuring glibc
  10450. # with a fresh cross-compiler works.
  10451. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10452. # <limits.h> exists even on freestanding compilers.
  10453. # On the NeXT, cc -E runs the code through the compiler's parser,
  10454. # not just through cpp. "Syntax error" is here to catch this case.
  10455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10456. /* end confdefs.h. */
  10457. #ifdef __STDC__
  10458. # include <limits.h>
  10459. #else
  10460. # include <assert.h>
  10461. #endif
  10462. Syntax error
  10463. _ACEOF
  10464. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10465. else
  10466. # Broken: fails on valid input.
  10467. continue
  10468. fi
  10469. rm -f conftest.err conftest.$ac_ext
  10470. # OK, works on sane cases. Now check whether nonexistent headers
  10471. # can be detected and how.
  10472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10473. /* end confdefs.h. */
  10474. #include <ac_nonexistent.h>
  10475. _ACEOF
  10476. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10477. # Broken: success on invalid input.
  10478. continue
  10479. else
  10480. # Passes both tests.
  10481. ac_preproc_ok=:
  10482. break
  10483. fi
  10484. rm -f conftest.err conftest.$ac_ext
  10485. done
  10486. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10487. rm -f conftest.err conftest.$ac_ext
  10488. if $ac_preproc_ok; then :
  10489. else
  10490. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10491. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10492. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  10493. See \`config.log' for more details." "$LINENO" 5; }
  10494. fi
  10495. ac_ext=c
  10496. ac_cpp='$CPP $CPPFLAGS'
  10497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10500. else
  10501. _lt_caught_CXX_error=yes
  10502. fi
  10503. ac_ext=cpp
  10504. ac_cpp='$CXXCPP $CPPFLAGS'
  10505. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10506. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10507. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10508. archive_cmds_need_lc_CXX=no
  10509. allow_undefined_flag_CXX=
  10510. always_export_symbols_CXX=no
  10511. archive_expsym_cmds_CXX=
  10512. compiler_needs_object_CXX=no
  10513. export_dynamic_flag_spec_CXX=
  10514. hardcode_direct_CXX=no
  10515. hardcode_direct_absolute_CXX=no
  10516. hardcode_libdir_flag_spec_CXX=
  10517. hardcode_libdir_flag_spec_ld_CXX=
  10518. hardcode_libdir_separator_CXX=
  10519. hardcode_minus_L_CXX=no
  10520. hardcode_shlibpath_var_CXX=unsupported
  10521. hardcode_automatic_CXX=no
  10522. inherit_rpath_CXX=no
  10523. module_cmds_CXX=
  10524. module_expsym_cmds_CXX=
  10525. link_all_deplibs_CXX=unknown
  10526. old_archive_cmds_CXX=$old_archive_cmds
  10527. reload_flag_CXX=$reload_flag
  10528. reload_cmds_CXX=$reload_cmds
  10529. no_undefined_flag_CXX=
  10530. whole_archive_flag_spec_CXX=
  10531. enable_shared_with_static_runtimes_CXX=no
  10532. # Source file extension for C++ test sources.
  10533. ac_ext=cpp
  10534. # Object file extension for compiled C++ test sources.
  10535. objext=o
  10536. objext_CXX=$objext
  10537. # No sense in running all these tests if we already determined that
  10538. # the CXX compiler isn't working. Some variables (like enable_shared)
  10539. # are currently assumed to apply to all compilers on this platform,
  10540. # and will be corrupted by setting them based on a non-working compiler.
  10541. if test "$_lt_caught_CXX_error" != yes; then
  10542. # Code to be used in simple compile tests
  10543. lt_simple_compile_test_code="int some_variable = 0;"
  10544. # Code to be used in simple link tests
  10545. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10546. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10547. # If no C compiler was specified, use CC.
  10548. LTCC=${LTCC-"$CC"}
  10549. # If no C compiler flags were specified, use CFLAGS.
  10550. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10551. # Allow CC to be a program name with arguments.
  10552. compiler=$CC
  10553. # save warnings/boilerplate of simple test code
  10554. ac_outfile=conftest.$ac_objext
  10555. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10556. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10557. _lt_compiler_boilerplate=`cat conftest.err`
  10558. $RM conftest*
  10559. ac_outfile=conftest.$ac_objext
  10560. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10561. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10562. _lt_linker_boilerplate=`cat conftest.err`
  10563. $RM -r conftest*
  10564. # Allow CC to be a program name with arguments.
  10565. lt_save_CC=$CC
  10566. lt_save_LD=$LD
  10567. lt_save_GCC=$GCC
  10568. GCC=$GXX
  10569. lt_save_with_gnu_ld=$with_gnu_ld
  10570. lt_save_path_LD=$lt_cv_path_LD
  10571. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10572. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10573. else
  10574. $as_unset lt_cv_prog_gnu_ld
  10575. fi
  10576. if test -n "${lt_cv_path_LDCXX+set}"; then
  10577. lt_cv_path_LD=$lt_cv_path_LDCXX
  10578. else
  10579. $as_unset lt_cv_path_LD
  10580. fi
  10581. test -z "${LDCXX+set}" || LD=$LDCXX
  10582. CC=${CXX-"c++"}
  10583. compiler=$CC
  10584. compiler_CXX=$CC
  10585. for cc_temp in $compiler""; do
  10586. case $cc_temp in
  10587. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10588. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10589. \-*) ;;
  10590. *) break;;
  10591. esac
  10592. done
  10593. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10594. if test -n "$compiler"; then
  10595. # We don't want -fno-exception when compiling C++ code, so set the
  10596. # no_builtin_flag separately
  10597. if test "$GXX" = yes; then
  10598. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10599. else
  10600. lt_prog_compiler_no_builtin_flag_CXX=
  10601. fi
  10602. if test "$GXX" = yes; then
  10603. # Set up default GNU C++ configuration
  10604. # Check whether --with-gnu-ld was given.
  10605. if test "${with_gnu_ld+set}" = set; then :
  10606. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10607. else
  10608. with_gnu_ld=no
  10609. fi
  10610. ac_prog=ld
  10611. if test "$GCC" = yes; then
  10612. # Check if gcc -print-prog-name=ld gives a path.
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10614. $as_echo_n "checking for ld used by $CC... " >&6; }
  10615. case $host in
  10616. *-*-mingw*)
  10617. # gcc leaves a trailing carriage return which upsets mingw
  10618. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10619. *)
  10620. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10621. esac
  10622. case $ac_prog in
  10623. # Accept absolute paths.
  10624. [\\/]* | ?:[\\/]*)
  10625. re_direlt='/[^/][^/]*/\.\./'
  10626. # Canonicalize the pathname of ld
  10627. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10628. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10629. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10630. done
  10631. test -z "$LD" && LD="$ac_prog"
  10632. ;;
  10633. "")
  10634. # If it fails, then pretend we aren't using GCC.
  10635. ac_prog=ld
  10636. ;;
  10637. *)
  10638. # If it is relative, then search for the first ld in PATH.
  10639. with_gnu_ld=unknown
  10640. ;;
  10641. esac
  10642. elif test "$with_gnu_ld" = yes; then
  10643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10644. $as_echo_n "checking for GNU ld... " >&6; }
  10645. else
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10647. $as_echo_n "checking for non-GNU ld... " >&6; }
  10648. fi
  10649. if test "${lt_cv_path_LD+set}" = set; then :
  10650. $as_echo_n "(cached) " >&6
  10651. else
  10652. if test -z "$LD"; then
  10653. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10654. for ac_dir in $PATH; do
  10655. IFS="$lt_save_ifs"
  10656. test -z "$ac_dir" && ac_dir=.
  10657. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10658. lt_cv_path_LD="$ac_dir/$ac_prog"
  10659. # Check to see if the program is GNU ld. I'd rather use --version,
  10660. # but apparently some variants of GNU ld only accept -v.
  10661. # Break only if it was the GNU/non-GNU ld that we prefer.
  10662. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10663. *GNU* | *'with BFD'*)
  10664. test "$with_gnu_ld" != no && break
  10665. ;;
  10666. *)
  10667. test "$with_gnu_ld" != yes && break
  10668. ;;
  10669. esac
  10670. fi
  10671. done
  10672. IFS="$lt_save_ifs"
  10673. else
  10674. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10675. fi
  10676. fi
  10677. LD="$lt_cv_path_LD"
  10678. if test -n "$LD"; then
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10680. $as_echo "$LD" >&6; }
  10681. else
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10683. $as_echo "no" >&6; }
  10684. fi
  10685. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10687. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10688. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10689. $as_echo_n "(cached) " >&6
  10690. else
  10691. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10692. case `$LD -v 2>&1 </dev/null` in
  10693. *GNU* | *'with BFD'*)
  10694. lt_cv_prog_gnu_ld=yes
  10695. ;;
  10696. *)
  10697. lt_cv_prog_gnu_ld=no
  10698. ;;
  10699. esac
  10700. fi
  10701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10702. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10703. with_gnu_ld=$lt_cv_prog_gnu_ld
  10704. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10705. # archiving commands below assume that GNU ld is being used.
  10706. if test "$with_gnu_ld" = yes; then
  10707. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10708. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10709. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10710. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10711. # If archive_cmds runs LD, not CC, wlarc should be empty
  10712. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10713. # investigate it a little bit more. (MM)
  10714. wlarc='${wl}'
  10715. # ancient GNU ld didn't support --whole-archive et. al.
  10716. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10717. $GREP 'no-whole-archive' > /dev/null; then
  10718. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10719. else
  10720. whole_archive_flag_spec_CXX=
  10721. fi
  10722. else
  10723. with_gnu_ld=no
  10724. wlarc=
  10725. # A generic and very simple default shared library creation
  10726. # command for GNU C++ for the case where it uses the native
  10727. # linker, instead of GNU ld. If possible, this setting should
  10728. # overridden to take advantage of the native linker features on
  10729. # the platform it is being used on.
  10730. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10731. fi
  10732. # Commands to make compiler produce verbose output that lists
  10733. # what "hidden" libraries, object files and flags are used when
  10734. # linking a shared library.
  10735. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10736. else
  10737. GXX=no
  10738. with_gnu_ld=no
  10739. wlarc=
  10740. fi
  10741. # PORTME: fill in a description of your system's C++ link characteristics
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10743. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10744. ld_shlibs_CXX=yes
  10745. case $host_os in
  10746. aix3*)
  10747. # FIXME: insert proper C++ library support
  10748. ld_shlibs_CXX=no
  10749. ;;
  10750. aix[4-9]*)
  10751. if test "$host_cpu" = ia64; then
  10752. # On IA64, the linker does run time linking by default, so we don't
  10753. # have to do anything special.
  10754. aix_use_runtimelinking=no
  10755. exp_sym_flag='-Bexport'
  10756. no_entry_flag=""
  10757. else
  10758. aix_use_runtimelinking=no
  10759. # Test if we are trying to use run time linking or normal
  10760. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10761. # need to do runtime linking.
  10762. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10763. for ld_flag in $LDFLAGS; do
  10764. case $ld_flag in
  10765. *-brtl*)
  10766. aix_use_runtimelinking=yes
  10767. break
  10768. ;;
  10769. esac
  10770. done
  10771. ;;
  10772. esac
  10773. exp_sym_flag='-bexport'
  10774. no_entry_flag='-bnoentry'
  10775. fi
  10776. # When large executables or shared objects are built, AIX ld can
  10777. # have problems creating the table of contents. If linking a library
  10778. # or program results in "error TOC overflow" add -mminimal-toc to
  10779. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10780. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10781. archive_cmds_CXX=''
  10782. hardcode_direct_CXX=yes
  10783. hardcode_direct_absolute_CXX=yes
  10784. hardcode_libdir_separator_CXX=':'
  10785. link_all_deplibs_CXX=yes
  10786. file_list_spec_CXX='${wl}-f,'
  10787. if test "$GXX" = yes; then
  10788. case $host_os in aix4.[012]|aix4.[012].*)
  10789. # We only want to do this on AIX 4.2 and lower, the check
  10790. # below for broken collect2 doesn't work under 4.3+
  10791. collect2name=`${CC} -print-prog-name=collect2`
  10792. if test -f "$collect2name" &&
  10793. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10794. then
  10795. # We have reworked collect2
  10796. :
  10797. else
  10798. # We have old collect2
  10799. hardcode_direct_CXX=unsupported
  10800. # It fails to find uninstalled libraries when the uninstalled
  10801. # path is not listed in the libpath. Setting hardcode_minus_L
  10802. # to unsupported forces relinking
  10803. hardcode_minus_L_CXX=yes
  10804. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10805. hardcode_libdir_separator_CXX=
  10806. fi
  10807. esac
  10808. shared_flag='-shared'
  10809. if test "$aix_use_runtimelinking" = yes; then
  10810. shared_flag="$shared_flag "'${wl}-G'
  10811. fi
  10812. else
  10813. # not using gcc
  10814. if test "$host_cpu" = ia64; then
  10815. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10816. # chokes on -Wl,-G. The following line is correct:
  10817. shared_flag='-G'
  10818. else
  10819. if test "$aix_use_runtimelinking" = yes; then
  10820. shared_flag='${wl}-G'
  10821. else
  10822. shared_flag='${wl}-bM:SRE'
  10823. fi
  10824. fi
  10825. fi
  10826. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10827. # It seems that -bexpall does not export symbols beginning with
  10828. # underscore (_), so it is better to generate a list of symbols to
  10829. # export.
  10830. always_export_symbols_CXX=yes
  10831. if test "$aix_use_runtimelinking" = yes; then
  10832. # Warning - without using the other runtime loading flags (-brtl),
  10833. # -berok will link without error, but may produce a broken library.
  10834. allow_undefined_flag_CXX='-berok'
  10835. # Determine the default libpath from the value encoded in an empty
  10836. # executable.
  10837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10838. /* end confdefs.h. */
  10839. int
  10840. main ()
  10841. {
  10842. ;
  10843. return 0;
  10844. }
  10845. _ACEOF
  10846. if ac_fn_cxx_try_link "$LINENO"; then :
  10847. lt_aix_libpath_sed='
  10848. /Import File Strings/,/^$/ {
  10849. /^0/ {
  10850. s/^0 *\(.*\)$/\1/
  10851. p
  10852. }
  10853. }'
  10854. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10855. # Check for a 64-bit object if we didn't find anything.
  10856. if test -z "$aix_libpath"; then
  10857. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10858. fi
  10859. fi
  10860. rm -f core conftest.err conftest.$ac_objext \
  10861. conftest$ac_exeext conftest.$ac_ext
  10862. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10863. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10864. 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10865. else
  10866. if test "$host_cpu" = ia64; then
  10867. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10868. allow_undefined_flag_CXX="-z nodefs"
  10869. 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"
  10870. else
  10871. # Determine the default libpath from the value encoded in an
  10872. # empty executable.
  10873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10874. /* end confdefs.h. */
  10875. int
  10876. main ()
  10877. {
  10878. ;
  10879. return 0;
  10880. }
  10881. _ACEOF
  10882. if ac_fn_cxx_try_link "$LINENO"; then :
  10883. lt_aix_libpath_sed='
  10884. /Import File Strings/,/^$/ {
  10885. /^0/ {
  10886. s/^0 *\(.*\)$/\1/
  10887. p
  10888. }
  10889. }'
  10890. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10891. # Check for a 64-bit object if we didn't find anything.
  10892. if test -z "$aix_libpath"; then
  10893. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10894. fi
  10895. fi
  10896. rm -f core conftest.err conftest.$ac_objext \
  10897. conftest$ac_exeext conftest.$ac_ext
  10898. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10899. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10900. # Warning - without using the other run time loading flags,
  10901. # -berok will link without error, but may produce a broken library.
  10902. no_undefined_flag_CXX=' ${wl}-bernotok'
  10903. allow_undefined_flag_CXX=' ${wl}-berok'
  10904. if test "$with_gnu_ld" = yes; then
  10905. # We only use this code for GNU lds that support --whole-archive.
  10906. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10907. else
  10908. # Exported symbols can be pulled into shared objects from archives
  10909. whole_archive_flag_spec_CXX='$convenience'
  10910. fi
  10911. archive_cmds_need_lc_CXX=yes
  10912. # This is similar to how AIX traditionally builds its shared
  10913. # libraries.
  10914. 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'
  10915. fi
  10916. fi
  10917. ;;
  10918. beos*)
  10919. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10920. allow_undefined_flag_CXX=unsupported
  10921. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10922. # support --undefined. This deserves some investigation. FIXME
  10923. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10924. else
  10925. ld_shlibs_CXX=no
  10926. fi
  10927. ;;
  10928. chorus*)
  10929. case $cc_basename in
  10930. *)
  10931. # FIXME: insert proper C++ library support
  10932. ld_shlibs_CXX=no
  10933. ;;
  10934. esac
  10935. ;;
  10936. cygwin* | mingw* | pw32* | cegcc*)
  10937. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10938. # as there is no search path for DLLs.
  10939. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10940. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10941. allow_undefined_flag_CXX=unsupported
  10942. always_export_symbols_CXX=no
  10943. enable_shared_with_static_runtimes_CXX=yes
  10944. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10945. 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'
  10946. # If the export-symbols file already is a .def file (1st line
  10947. # is EXPORTS), use it as is; otherwise, prepend...
  10948. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10949. cp $export_symbols $output_objdir/$soname.def;
  10950. else
  10951. echo EXPORTS > $output_objdir/$soname.def;
  10952. cat $export_symbols >> $output_objdir/$soname.def;
  10953. fi~
  10954. $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'
  10955. else
  10956. ld_shlibs_CXX=no
  10957. fi
  10958. ;;
  10959. darwin* | rhapsody*)
  10960. archive_cmds_need_lc_CXX=no
  10961. hardcode_direct_CXX=no
  10962. hardcode_automatic_CXX=yes
  10963. hardcode_shlibpath_var_CXX=unsupported
  10964. if test "$lt_cv_ld_force_load" = "yes"; then
  10965. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10966. else
  10967. whole_archive_flag_spec_CXX=''
  10968. fi
  10969. link_all_deplibs_CXX=yes
  10970. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10971. case $cc_basename in
  10972. ifort*) _lt_dar_can_shared=yes ;;
  10973. *) _lt_dar_can_shared=$GCC ;;
  10974. esac
  10975. if test "$_lt_dar_can_shared" = "yes"; then
  10976. output_verbose_link_cmd=func_echo_all
  10977. 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}"
  10978. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10979. 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}"
  10980. 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}"
  10981. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10982. 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}"
  10983. 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}"
  10984. fi
  10985. else
  10986. ld_shlibs_CXX=no
  10987. fi
  10988. ;;
  10989. dgux*)
  10990. case $cc_basename in
  10991. ec++*)
  10992. # FIXME: insert proper C++ library support
  10993. ld_shlibs_CXX=no
  10994. ;;
  10995. ghcx*)
  10996. # Green Hills C++ Compiler
  10997. # FIXME: insert proper C++ library support
  10998. ld_shlibs_CXX=no
  10999. ;;
  11000. *)
  11001. # FIXME: insert proper C++ library support
  11002. ld_shlibs_CXX=no
  11003. ;;
  11004. esac
  11005. ;;
  11006. freebsd2.*)
  11007. # C++ shared libraries reported to be fairly broken before
  11008. # switch to ELF
  11009. ld_shlibs_CXX=no
  11010. ;;
  11011. freebsd-elf*)
  11012. archive_cmds_need_lc_CXX=no
  11013. ;;
  11014. freebsd* | dragonfly*)
  11015. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11016. # conventions
  11017. ld_shlibs_CXX=yes
  11018. ;;
  11019. gnu*)
  11020. ;;
  11021. haiku*)
  11022. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11023. link_all_deplibs_CXX=yes
  11024. ;;
  11025. hpux9*)
  11026. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11027. hardcode_libdir_separator_CXX=:
  11028. export_dynamic_flag_spec_CXX='${wl}-E'
  11029. hardcode_direct_CXX=yes
  11030. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11031. # but as the default
  11032. # location of the library.
  11033. case $cc_basename in
  11034. CC*)
  11035. # FIXME: insert proper C++ library support
  11036. ld_shlibs_CXX=no
  11037. ;;
  11038. aCC*)
  11039. 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'
  11040. # Commands to make compiler produce verbose output that lists
  11041. # what "hidden" libraries, object files and flags are used when
  11042. # linking a shared library.
  11043. #
  11044. # There doesn't appear to be a way to prevent this compiler from
  11045. # explicitly linking system object files so we need to strip them
  11046. # from the output so that they don't get included in the library
  11047. # dependencies.
  11048. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11049. ;;
  11050. *)
  11051. if test "$GXX" = yes; then
  11052. 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'
  11053. else
  11054. # FIXME: insert proper C++ library support
  11055. ld_shlibs_CXX=no
  11056. fi
  11057. ;;
  11058. esac
  11059. ;;
  11060. hpux10*|hpux11*)
  11061. if test $with_gnu_ld = no; then
  11062. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11063. hardcode_libdir_separator_CXX=:
  11064. case $host_cpu in
  11065. hppa*64*|ia64*)
  11066. ;;
  11067. *)
  11068. export_dynamic_flag_spec_CXX='${wl}-E'
  11069. ;;
  11070. esac
  11071. fi
  11072. case $host_cpu in
  11073. hppa*64*|ia64*)
  11074. hardcode_direct_CXX=no
  11075. hardcode_shlibpath_var_CXX=no
  11076. ;;
  11077. *)
  11078. hardcode_direct_CXX=yes
  11079. hardcode_direct_absolute_CXX=yes
  11080. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11081. # but as the default
  11082. # location of the library.
  11083. ;;
  11084. esac
  11085. case $cc_basename in
  11086. CC*)
  11087. # FIXME: insert proper C++ library support
  11088. ld_shlibs_CXX=no
  11089. ;;
  11090. aCC*)
  11091. case $host_cpu in
  11092. hppa*64*)
  11093. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11094. ;;
  11095. ia64*)
  11096. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11097. ;;
  11098. *)
  11099. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11100. ;;
  11101. esac
  11102. # Commands to make compiler produce verbose output that lists
  11103. # what "hidden" libraries, object files and flags are used when
  11104. # linking a shared library.
  11105. #
  11106. # There doesn't appear to be a way to prevent this compiler from
  11107. # explicitly linking system object files so we need to strip them
  11108. # from the output so that they don't get included in the library
  11109. # dependencies.
  11110. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11111. ;;
  11112. *)
  11113. if test "$GXX" = yes; then
  11114. if test $with_gnu_ld = no; then
  11115. case $host_cpu in
  11116. hppa*64*)
  11117. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11118. ;;
  11119. ia64*)
  11120. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11121. ;;
  11122. *)
  11123. 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'
  11124. ;;
  11125. esac
  11126. fi
  11127. else
  11128. # FIXME: insert proper C++ library support
  11129. ld_shlibs_CXX=no
  11130. fi
  11131. ;;
  11132. esac
  11133. ;;
  11134. interix[3-9]*)
  11135. hardcode_direct_CXX=no
  11136. hardcode_shlibpath_var_CXX=no
  11137. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11138. export_dynamic_flag_spec_CXX='${wl}-E'
  11139. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11140. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11141. # default) and relocated if they conflict, which is a slow very memory
  11142. # consuming and fragmenting process. To avoid this, we pick a random,
  11143. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11144. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11145. 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'
  11146. 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'
  11147. ;;
  11148. irix5* | irix6*)
  11149. case $cc_basename in
  11150. CC*)
  11151. # SGI C++
  11152. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11153. # Archives containing C++ object files must be created using
  11154. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11155. # necessary to make sure instantiated templates are included
  11156. # in the archive.
  11157. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11158. ;;
  11159. *)
  11160. if test "$GXX" = yes; then
  11161. if test "$with_gnu_ld" = no; then
  11162. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11163. else
  11164. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11165. fi
  11166. fi
  11167. link_all_deplibs_CXX=yes
  11168. ;;
  11169. esac
  11170. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11171. hardcode_libdir_separator_CXX=:
  11172. inherit_rpath_CXX=yes
  11173. ;;
  11174. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11175. case $cc_basename in
  11176. KCC*)
  11177. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11178. # KCC will only create a shared library if the output file
  11179. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11180. # to its proper name (with version) after linking.
  11181. 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'
  11182. 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'
  11183. # Commands to make compiler produce verbose output that lists
  11184. # what "hidden" libraries, object files and flags are used when
  11185. # linking a shared library.
  11186. #
  11187. # There doesn't appear to be a way to prevent this compiler from
  11188. # explicitly linking system object files so we need to strip them
  11189. # from the output so that they don't get included in the library
  11190. # dependencies.
  11191. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11192. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11193. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11194. # Archives containing C++ object files must be created using
  11195. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11196. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11197. ;;
  11198. icpc* | ecpc* )
  11199. # Intel C++
  11200. with_gnu_ld=yes
  11201. # version 8.0 and above of icpc choke on multiply defined symbols
  11202. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11203. # earlier do not add the objects themselves.
  11204. case `$CC -V 2>&1` in
  11205. *"Version 7."*)
  11206. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11207. 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'
  11208. ;;
  11209. *) # Version 8.0 or newer
  11210. tmp_idyn=
  11211. case $host_cpu in
  11212. ia64*) tmp_idyn=' -i_dynamic';;
  11213. esac
  11214. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11215. 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'
  11216. ;;
  11217. esac
  11218. archive_cmds_need_lc_CXX=no
  11219. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11220. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11221. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11222. ;;
  11223. pgCC* | pgcpp*)
  11224. # Portland Group C++ compiler
  11225. case `$CC -V` in
  11226. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11227. prelink_cmds_CXX='tpldir=Template.dir~
  11228. rm -rf $tpldir~
  11229. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11230. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11231. old_archive_cmds_CXX='tpldir=Template.dir~
  11232. rm -rf $tpldir~
  11233. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11234. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11235. $RANLIB $oldlib'
  11236. archive_cmds_CXX='tpldir=Template.dir~
  11237. rm -rf $tpldir~
  11238. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11239. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11240. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11241. rm -rf $tpldir~
  11242. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11243. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11244. ;;
  11245. *) # Version 6 and above use weak symbols
  11246. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11247. 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'
  11248. ;;
  11249. esac
  11250. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11251. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11252. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11253. ;;
  11254. cxx*)
  11255. # Compaq C++
  11256. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11257. 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'
  11258. runpath_var=LD_RUN_PATH
  11259. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11260. hardcode_libdir_separator_CXX=:
  11261. # Commands to make compiler produce verbose output that lists
  11262. # what "hidden" libraries, object files and flags are used when
  11263. # linking a shared library.
  11264. #
  11265. # There doesn't appear to be a way to prevent this compiler from
  11266. # explicitly linking system object files so we need to strip them
  11267. # from the output so that they don't get included in the library
  11268. # dependencies.
  11269. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11270. ;;
  11271. xl* | mpixl* | bgxl*)
  11272. # IBM XL 8.0 on PPC, with GNU ld
  11273. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11274. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11275. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11276. if test "x$supports_anon_versioning" = xyes; then
  11277. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11278. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11279. echo "local: *; };" >> $output_objdir/$libname.ver~
  11280. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11281. fi
  11282. ;;
  11283. *)
  11284. case `$CC -V 2>&1 | sed 5q` in
  11285. *Sun\ C*)
  11286. # Sun C++ 5.9
  11287. no_undefined_flag_CXX=' -zdefs'
  11288. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11289. 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'
  11290. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11291. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11292. compiler_needs_object_CXX=yes
  11293. # Not sure whether something based on
  11294. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11295. # would be better.
  11296. output_verbose_link_cmd='func_echo_all'
  11297. # Archives containing C++ object files must be created using
  11298. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11299. # necessary to make sure instantiated templates are included
  11300. # in the archive.
  11301. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11302. ;;
  11303. esac
  11304. ;;
  11305. esac
  11306. ;;
  11307. lynxos*)
  11308. # FIXME: insert proper C++ library support
  11309. ld_shlibs_CXX=no
  11310. ;;
  11311. m88k*)
  11312. # FIXME: insert proper C++ library support
  11313. ld_shlibs_CXX=no
  11314. ;;
  11315. mvs*)
  11316. case $cc_basename in
  11317. cxx*)
  11318. # FIXME: insert proper C++ library support
  11319. ld_shlibs_CXX=no
  11320. ;;
  11321. *)
  11322. # FIXME: insert proper C++ library support
  11323. ld_shlibs_CXX=no
  11324. ;;
  11325. esac
  11326. ;;
  11327. netbsd*)
  11328. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11329. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11330. wlarc=
  11331. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11332. hardcode_direct_CXX=yes
  11333. hardcode_shlibpath_var_CXX=no
  11334. fi
  11335. # Workaround some broken pre-1.5 toolchains
  11336. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11337. ;;
  11338. *nto* | *qnx*)
  11339. ld_shlibs_CXX=yes
  11340. ;;
  11341. openbsd2*)
  11342. # C++ shared libraries are fairly broken
  11343. ld_shlibs_CXX=no
  11344. ;;
  11345. openbsd*)
  11346. if test -f /usr/libexec/ld.so; then
  11347. hardcode_direct_CXX=yes
  11348. hardcode_shlibpath_var_CXX=no
  11349. hardcode_direct_absolute_CXX=yes
  11350. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11351. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11352. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11353. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11354. export_dynamic_flag_spec_CXX='${wl}-E'
  11355. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11356. fi
  11357. output_verbose_link_cmd=func_echo_all
  11358. else
  11359. ld_shlibs_CXX=no
  11360. fi
  11361. ;;
  11362. osf3* | osf4* | osf5*)
  11363. case $cc_basename in
  11364. KCC*)
  11365. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11366. # KCC will only create a shared library if the output file
  11367. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11368. # to its proper name (with version) after linking.
  11369. 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'
  11370. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11371. hardcode_libdir_separator_CXX=:
  11372. # Archives containing C++ object files must be created using
  11373. # the KAI C++ compiler.
  11374. case $host in
  11375. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11376. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11377. esac
  11378. ;;
  11379. RCC*)
  11380. # Rational C++ 2.4.1
  11381. # FIXME: insert proper C++ library support
  11382. ld_shlibs_CXX=no
  11383. ;;
  11384. cxx*)
  11385. case $host in
  11386. osf3*)
  11387. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11388. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11389. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11390. ;;
  11391. *)
  11392. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11393. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11394. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11395. echo "-hidden">> $lib.exp~
  11396. $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~
  11397. $RM $lib.exp'
  11398. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11399. ;;
  11400. esac
  11401. hardcode_libdir_separator_CXX=:
  11402. # Commands to make compiler produce verbose output that lists
  11403. # what "hidden" libraries, object files and flags are used when
  11404. # linking a shared library.
  11405. #
  11406. # There doesn't appear to be a way to prevent this compiler from
  11407. # explicitly linking system object files so we need to strip them
  11408. # from the output so that they don't get included in the library
  11409. # dependencies.
  11410. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11411. ;;
  11412. *)
  11413. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11414. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11415. case $host in
  11416. osf3*)
  11417. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11418. ;;
  11419. *)
  11420. 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11421. ;;
  11422. esac
  11423. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11424. hardcode_libdir_separator_CXX=:
  11425. # Commands to make compiler produce verbose output that lists
  11426. # what "hidden" libraries, object files and flags are used when
  11427. # linking a shared library.
  11428. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11429. else
  11430. # FIXME: insert proper C++ library support
  11431. ld_shlibs_CXX=no
  11432. fi
  11433. ;;
  11434. esac
  11435. ;;
  11436. psos*)
  11437. # FIXME: insert proper C++ library support
  11438. ld_shlibs_CXX=no
  11439. ;;
  11440. sunos4*)
  11441. case $cc_basename in
  11442. CC*)
  11443. # Sun C++ 4.x
  11444. # FIXME: insert proper C++ library support
  11445. ld_shlibs_CXX=no
  11446. ;;
  11447. lcc*)
  11448. # Lucid
  11449. # FIXME: insert proper C++ library support
  11450. ld_shlibs_CXX=no
  11451. ;;
  11452. *)
  11453. # FIXME: insert proper C++ library support
  11454. ld_shlibs_CXX=no
  11455. ;;
  11456. esac
  11457. ;;
  11458. solaris*)
  11459. case $cc_basename in
  11460. CC*)
  11461. # Sun C++ 4.2, 5.x and Centerline C++
  11462. archive_cmds_need_lc_CXX=yes
  11463. no_undefined_flag_CXX=' -zdefs'
  11464. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11465. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11466. $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'
  11467. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11468. hardcode_shlibpath_var_CXX=no
  11469. case $host_os in
  11470. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11471. *)
  11472. # The compiler driver will combine and reorder linker options,
  11473. # but understands `-z linker_flag'.
  11474. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11475. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11476. ;;
  11477. esac
  11478. link_all_deplibs_CXX=yes
  11479. output_verbose_link_cmd='func_echo_all'
  11480. # Archives containing C++ object files must be created using
  11481. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11482. # necessary to make sure instantiated templates are included
  11483. # in the archive.
  11484. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11485. ;;
  11486. gcx*)
  11487. # Green Hills C++ Compiler
  11488. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11489. # The C++ compiler must be used to create the archive.
  11490. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11491. ;;
  11492. *)
  11493. # GNU C++ compiler with Solaris linker
  11494. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11495. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11496. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11497. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11498. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11499. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11500. # Commands to make compiler produce verbose output that lists
  11501. # what "hidden" libraries, object files and flags are used when
  11502. # linking a shared library.
  11503. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11504. else
  11505. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11506. # platform.
  11507. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11508. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11509. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11510. # Commands to make compiler produce verbose output that lists
  11511. # what "hidden" libraries, object files and flags are used when
  11512. # linking a shared library.
  11513. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11514. fi
  11515. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11516. case $host_os in
  11517. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11518. *)
  11519. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11520. ;;
  11521. esac
  11522. fi
  11523. ;;
  11524. esac
  11525. ;;
  11526. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11527. no_undefined_flag_CXX='${wl}-z,text'
  11528. archive_cmds_need_lc_CXX=no
  11529. hardcode_shlibpath_var_CXX=no
  11530. runpath_var='LD_RUN_PATH'
  11531. case $cc_basename in
  11532. CC*)
  11533. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11534. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11535. ;;
  11536. *)
  11537. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11538. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11539. ;;
  11540. esac
  11541. ;;
  11542. sysv5* | sco3.2v5* | sco5v6*)
  11543. # Note: We can NOT use -z defs as we might desire, because we do not
  11544. # link with -lc, and that would cause any symbols used from libc to
  11545. # always be unresolved, which means just about no library would
  11546. # ever link correctly. If we're not using GNU ld we use -z text
  11547. # though, which does catch some bad symbols but isn't as heavy-handed
  11548. # as -z defs.
  11549. no_undefined_flag_CXX='${wl}-z,text'
  11550. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11551. archive_cmds_need_lc_CXX=no
  11552. hardcode_shlibpath_var_CXX=no
  11553. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11554. hardcode_libdir_separator_CXX=':'
  11555. link_all_deplibs_CXX=yes
  11556. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11557. runpath_var='LD_RUN_PATH'
  11558. case $cc_basename in
  11559. CC*)
  11560. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11561. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11562. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11563. '"$old_archive_cmds_CXX"
  11564. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11565. '"$reload_cmds_CXX"
  11566. ;;
  11567. *)
  11568. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11569. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11570. ;;
  11571. esac
  11572. ;;
  11573. tandem*)
  11574. case $cc_basename in
  11575. NCC*)
  11576. # NonStop-UX NCC 3.20
  11577. # FIXME: insert proper C++ library support
  11578. ld_shlibs_CXX=no
  11579. ;;
  11580. *)
  11581. # FIXME: insert proper C++ library support
  11582. ld_shlibs_CXX=no
  11583. ;;
  11584. esac
  11585. ;;
  11586. vxworks*)
  11587. # FIXME: insert proper C++ library support
  11588. ld_shlibs_CXX=no
  11589. ;;
  11590. *)
  11591. # FIXME: insert proper C++ library support
  11592. ld_shlibs_CXX=no
  11593. ;;
  11594. esac
  11595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11596. $as_echo "$ld_shlibs_CXX" >&6; }
  11597. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11598. GCC_CXX="$GXX"
  11599. LD_CXX="$LD"
  11600. ## CAVEAT EMPTOR:
  11601. ## There is no encapsulation within the following macros, do not change
  11602. ## the running order or otherwise move them around unless you know exactly
  11603. ## what you are doing...
  11604. # Dependencies to place before and after the object being linked:
  11605. predep_objects_CXX=
  11606. postdep_objects_CXX=
  11607. predeps_CXX=
  11608. postdeps_CXX=
  11609. compiler_lib_search_path_CXX=
  11610. cat > conftest.$ac_ext <<_LT_EOF
  11611. class Foo
  11612. {
  11613. public:
  11614. Foo (void) { a = 0; }
  11615. private:
  11616. int a;
  11617. };
  11618. _LT_EOF
  11619. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11620. (eval $ac_compile) 2>&5
  11621. ac_status=$?
  11622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11623. test $ac_status = 0; }; then
  11624. # Parse the compiler output and extract the necessary
  11625. # objects, libraries and library flags.
  11626. # Sentinel used to keep track of whether or not we are before
  11627. # the conftest object file.
  11628. pre_test_object_deps_done=no
  11629. for p in `eval "$output_verbose_link_cmd"`; do
  11630. case $p in
  11631. -L* | -R* | -l*)
  11632. # Some compilers place space between "-{L,R}" and the path.
  11633. # Remove the space.
  11634. if test $p = "-L" ||
  11635. test $p = "-R"; then
  11636. prev=$p
  11637. continue
  11638. else
  11639. prev=
  11640. fi
  11641. if test "$pre_test_object_deps_done" = no; then
  11642. case $p in
  11643. -L* | -R*)
  11644. # Internal compiler library paths should come after those
  11645. # provided the user. The postdeps already come after the
  11646. # user supplied libs so there is no need to process them.
  11647. if test -z "$compiler_lib_search_path_CXX"; then
  11648. compiler_lib_search_path_CXX="${prev}${p}"
  11649. else
  11650. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11651. fi
  11652. ;;
  11653. # The "-l" case would never come before the object being
  11654. # linked, so don't bother handling this case.
  11655. esac
  11656. else
  11657. if test -z "$postdeps_CXX"; then
  11658. postdeps_CXX="${prev}${p}"
  11659. else
  11660. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11661. fi
  11662. fi
  11663. ;;
  11664. *.$objext)
  11665. # This assumes that the test object file only shows up
  11666. # once in the compiler output.
  11667. if test "$p" = "conftest.$objext"; then
  11668. pre_test_object_deps_done=yes
  11669. continue
  11670. fi
  11671. if test "$pre_test_object_deps_done" = no; then
  11672. if test -z "$predep_objects_CXX"; then
  11673. predep_objects_CXX="$p"
  11674. else
  11675. predep_objects_CXX="$predep_objects_CXX $p"
  11676. fi
  11677. else
  11678. if test -z "$postdep_objects_CXX"; then
  11679. postdep_objects_CXX="$p"
  11680. else
  11681. postdep_objects_CXX="$postdep_objects_CXX $p"
  11682. fi
  11683. fi
  11684. ;;
  11685. *) ;; # Ignore the rest.
  11686. esac
  11687. done
  11688. # Clean up.
  11689. rm -f a.out a.exe
  11690. else
  11691. echo "libtool.m4: error: problem compiling CXX test program"
  11692. fi
  11693. $RM -f confest.$objext
  11694. # PORTME: override above test on systems where it is broken
  11695. case $host_os in
  11696. interix[3-9]*)
  11697. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11698. # hack all around it, let's just trust "g++" to DTRT.
  11699. predep_objects_CXX=
  11700. postdep_objects_CXX=
  11701. postdeps_CXX=
  11702. ;;
  11703. linux*)
  11704. case `$CC -V 2>&1 | sed 5q` in
  11705. *Sun\ C*)
  11706. # Sun C++ 5.9
  11707. # The more standards-conforming stlport4 library is
  11708. # incompatible with the Cstd library. Avoid specifying
  11709. # it if it's in CXXFLAGS. Ignore libCrun as
  11710. # -library=stlport4 depends on it.
  11711. case " $CXX $CXXFLAGS " in
  11712. *" -library=stlport4 "*)
  11713. solaris_use_stlport4=yes
  11714. ;;
  11715. esac
  11716. if test "$solaris_use_stlport4" != yes; then
  11717. postdeps_CXX='-library=Cstd -library=Crun'
  11718. fi
  11719. ;;
  11720. esac
  11721. ;;
  11722. solaris*)
  11723. case $cc_basename in
  11724. CC*)
  11725. # The more standards-conforming stlport4 library is
  11726. # incompatible with the Cstd library. Avoid specifying
  11727. # it if it's in CXXFLAGS. Ignore libCrun as
  11728. # -library=stlport4 depends on it.
  11729. case " $CXX $CXXFLAGS " in
  11730. *" -library=stlport4 "*)
  11731. solaris_use_stlport4=yes
  11732. ;;
  11733. esac
  11734. # Adding this requires a known-good setup of shared libraries for
  11735. # Sun compiler versions before 5.6, else PIC objects from an old
  11736. # archive will be linked into the output, leading to subtle bugs.
  11737. if test "$solaris_use_stlport4" != yes; then
  11738. postdeps_CXX='-library=Cstd -library=Crun'
  11739. fi
  11740. ;;
  11741. esac
  11742. ;;
  11743. esac
  11744. case " $postdeps_CXX " in
  11745. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11746. esac
  11747. compiler_lib_search_dirs_CXX=
  11748. if test -n "${compiler_lib_search_path_CXX}"; then
  11749. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11750. fi
  11751. lt_prog_compiler_wl_CXX=
  11752. lt_prog_compiler_pic_CXX=
  11753. lt_prog_compiler_static_CXX=
  11754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11755. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11756. # C++ specific cases for pic, static, wl, etc.
  11757. if test "$GXX" = yes; then
  11758. lt_prog_compiler_wl_CXX='-Wl,'
  11759. lt_prog_compiler_static_CXX='-static'
  11760. case $host_os in
  11761. aix*)
  11762. # All AIX code is PIC.
  11763. if test "$host_cpu" = ia64; then
  11764. # AIX 5 now supports IA64 processor
  11765. lt_prog_compiler_static_CXX='-Bstatic'
  11766. fi
  11767. lt_prog_compiler_pic_CXX='-fPIC'
  11768. ;;
  11769. amigaos*)
  11770. case $host_cpu in
  11771. powerpc)
  11772. # see comment about AmigaOS4 .so support
  11773. lt_prog_compiler_pic_CXX='-fPIC'
  11774. ;;
  11775. m68k)
  11776. # FIXME: we need at least 68020 code to build shared libraries, but
  11777. # adding the `-m68020' flag to GCC prevents building anything better,
  11778. # like `-m68040'.
  11779. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11780. ;;
  11781. esac
  11782. ;;
  11783. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11784. # PIC is the default for these OSes.
  11785. ;;
  11786. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11787. # This hack is so that the source file can tell whether it is being
  11788. # built for inclusion in a dll (and should export symbols for example).
  11789. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11790. # (--disable-auto-import) libraries
  11791. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11792. ;;
  11793. darwin* | rhapsody*)
  11794. # PIC is the default on this platform
  11795. # Common symbols not allowed in MH_DYLIB files
  11796. lt_prog_compiler_pic_CXX='-fno-common'
  11797. ;;
  11798. *djgpp*)
  11799. # DJGPP does not support shared libraries at all
  11800. lt_prog_compiler_pic_CXX=
  11801. ;;
  11802. haiku*)
  11803. # PIC is the default for Haiku.
  11804. # The "-static" flag exists, but is broken.
  11805. lt_prog_compiler_static_CXX=
  11806. ;;
  11807. interix[3-9]*)
  11808. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11809. # Instead, we relocate shared libraries at runtime.
  11810. ;;
  11811. sysv4*MP*)
  11812. if test -d /usr/nec; then
  11813. lt_prog_compiler_pic_CXX=-Kconform_pic
  11814. fi
  11815. ;;
  11816. hpux*)
  11817. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11818. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11819. # sets the default TLS model and affects inlining.
  11820. case $host_cpu in
  11821. hppa*64*)
  11822. ;;
  11823. *)
  11824. lt_prog_compiler_pic_CXX='-fPIC'
  11825. ;;
  11826. esac
  11827. ;;
  11828. *qnx* | *nto*)
  11829. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11830. # it will coredump.
  11831. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11832. ;;
  11833. *)
  11834. lt_prog_compiler_pic_CXX='-fPIC'
  11835. ;;
  11836. esac
  11837. else
  11838. case $host_os in
  11839. aix[4-9]*)
  11840. # All AIX code is PIC.
  11841. if test "$host_cpu" = ia64; then
  11842. # AIX 5 now supports IA64 processor
  11843. lt_prog_compiler_static_CXX='-Bstatic'
  11844. else
  11845. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11846. fi
  11847. ;;
  11848. chorus*)
  11849. case $cc_basename in
  11850. cxch68*)
  11851. # Green Hills C++ Compiler
  11852. # _LT_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"
  11853. ;;
  11854. esac
  11855. ;;
  11856. dgux*)
  11857. case $cc_basename in
  11858. ec++*)
  11859. lt_prog_compiler_pic_CXX='-KPIC'
  11860. ;;
  11861. ghcx*)
  11862. # Green Hills C++ Compiler
  11863. lt_prog_compiler_pic_CXX='-pic'
  11864. ;;
  11865. *)
  11866. ;;
  11867. esac
  11868. ;;
  11869. freebsd* | dragonfly*)
  11870. # FreeBSD uses GNU C++
  11871. ;;
  11872. hpux9* | hpux10* | hpux11*)
  11873. case $cc_basename in
  11874. CC*)
  11875. lt_prog_compiler_wl_CXX='-Wl,'
  11876. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11877. if test "$host_cpu" != ia64; then
  11878. lt_prog_compiler_pic_CXX='+Z'
  11879. fi
  11880. ;;
  11881. aCC*)
  11882. lt_prog_compiler_wl_CXX='-Wl,'
  11883. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11884. case $host_cpu in
  11885. hppa*64*|ia64*)
  11886. # +Z the default
  11887. ;;
  11888. *)
  11889. lt_prog_compiler_pic_CXX='+Z'
  11890. ;;
  11891. esac
  11892. ;;
  11893. *)
  11894. ;;
  11895. esac
  11896. ;;
  11897. interix*)
  11898. # This is c89, which is MS Visual C++ (no shared libs)
  11899. # Anyone wants to do a port?
  11900. ;;
  11901. irix5* | irix6* | nonstopux*)
  11902. case $cc_basename in
  11903. CC*)
  11904. lt_prog_compiler_wl_CXX='-Wl,'
  11905. lt_prog_compiler_static_CXX='-non_shared'
  11906. # CC pic flag -KPIC is the default.
  11907. ;;
  11908. *)
  11909. ;;
  11910. esac
  11911. ;;
  11912. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11913. case $cc_basename in
  11914. KCC*)
  11915. # KAI C++ Compiler
  11916. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11917. lt_prog_compiler_pic_CXX='-fPIC'
  11918. ;;
  11919. ecpc* )
  11920. # old Intel C++ for x86_64 which still supported -KPIC.
  11921. lt_prog_compiler_wl_CXX='-Wl,'
  11922. lt_prog_compiler_pic_CXX='-KPIC'
  11923. lt_prog_compiler_static_CXX='-static'
  11924. ;;
  11925. icpc* )
  11926. # Intel C++, used to be incompatible with GCC.
  11927. # ICC 10 doesn't accept -KPIC any more.
  11928. lt_prog_compiler_wl_CXX='-Wl,'
  11929. lt_prog_compiler_pic_CXX='-fPIC'
  11930. lt_prog_compiler_static_CXX='-static'
  11931. ;;
  11932. pgCC* | pgcpp*)
  11933. # Portland Group C++ compiler
  11934. lt_prog_compiler_wl_CXX='-Wl,'
  11935. lt_prog_compiler_pic_CXX='-fpic'
  11936. lt_prog_compiler_static_CXX='-Bstatic'
  11937. ;;
  11938. cxx*)
  11939. # Compaq C++
  11940. # Make sure the PIC flag is empty. It appears that all Alpha
  11941. # Linux and Compaq Tru64 Unix objects are PIC.
  11942. lt_prog_compiler_pic_CXX=
  11943. lt_prog_compiler_static_CXX='-non_shared'
  11944. ;;
  11945. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11946. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11947. lt_prog_compiler_wl_CXX='-Wl,'
  11948. lt_prog_compiler_pic_CXX='-qpic'
  11949. lt_prog_compiler_static_CXX='-qstaticlink'
  11950. ;;
  11951. *)
  11952. case `$CC -V 2>&1 | sed 5q` in
  11953. *Sun\ C*)
  11954. # Sun C++ 5.9
  11955. lt_prog_compiler_pic_CXX='-KPIC'
  11956. lt_prog_compiler_static_CXX='-Bstatic'
  11957. lt_prog_compiler_wl_CXX='-Qoption ld '
  11958. ;;
  11959. esac
  11960. ;;
  11961. esac
  11962. ;;
  11963. lynxos*)
  11964. ;;
  11965. m88k*)
  11966. ;;
  11967. mvs*)
  11968. case $cc_basename in
  11969. cxx*)
  11970. lt_prog_compiler_pic_CXX='-W c,exportall'
  11971. ;;
  11972. *)
  11973. ;;
  11974. esac
  11975. ;;
  11976. netbsd*)
  11977. ;;
  11978. *qnx* | *nto*)
  11979. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11980. # it will coredump.
  11981. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11982. ;;
  11983. osf3* | osf4* | osf5*)
  11984. case $cc_basename in
  11985. KCC*)
  11986. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11987. ;;
  11988. RCC*)
  11989. # Rational C++ 2.4.1
  11990. lt_prog_compiler_pic_CXX='-pic'
  11991. ;;
  11992. cxx*)
  11993. # Digital/Compaq C++
  11994. lt_prog_compiler_wl_CXX='-Wl,'
  11995. # Make sure the PIC flag is empty. It appears that all Alpha
  11996. # Linux and Compaq Tru64 Unix objects are PIC.
  11997. lt_prog_compiler_pic_CXX=
  11998. lt_prog_compiler_static_CXX='-non_shared'
  11999. ;;
  12000. *)
  12001. ;;
  12002. esac
  12003. ;;
  12004. psos*)
  12005. ;;
  12006. solaris*)
  12007. case $cc_basename in
  12008. CC*)
  12009. # Sun C++ 4.2, 5.x and Centerline C++
  12010. lt_prog_compiler_pic_CXX='-KPIC'
  12011. lt_prog_compiler_static_CXX='-Bstatic'
  12012. lt_prog_compiler_wl_CXX='-Qoption ld '
  12013. ;;
  12014. gcx*)
  12015. # Green Hills C++ Compiler
  12016. lt_prog_compiler_pic_CXX='-PIC'
  12017. ;;
  12018. *)
  12019. ;;
  12020. esac
  12021. ;;
  12022. sunos4*)
  12023. case $cc_basename in
  12024. CC*)
  12025. # Sun C++ 4.x
  12026. lt_prog_compiler_pic_CXX='-pic'
  12027. lt_prog_compiler_static_CXX='-Bstatic'
  12028. ;;
  12029. lcc*)
  12030. # Lucid
  12031. lt_prog_compiler_pic_CXX='-pic'
  12032. ;;
  12033. *)
  12034. ;;
  12035. esac
  12036. ;;
  12037. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12038. case $cc_basename in
  12039. CC*)
  12040. lt_prog_compiler_wl_CXX='-Wl,'
  12041. lt_prog_compiler_pic_CXX='-KPIC'
  12042. lt_prog_compiler_static_CXX='-Bstatic'
  12043. ;;
  12044. esac
  12045. ;;
  12046. tandem*)
  12047. case $cc_basename in
  12048. NCC*)
  12049. # NonStop-UX NCC 3.20
  12050. lt_prog_compiler_pic_CXX='-KPIC'
  12051. ;;
  12052. *)
  12053. ;;
  12054. esac
  12055. ;;
  12056. vxworks*)
  12057. ;;
  12058. *)
  12059. lt_prog_compiler_can_build_shared_CXX=no
  12060. ;;
  12061. esac
  12062. fi
  12063. case $host_os in
  12064. # For platforms which do not support PIC, -DPIC is meaningless:
  12065. *djgpp*)
  12066. lt_prog_compiler_pic_CXX=
  12067. ;;
  12068. *)
  12069. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12070. ;;
  12071. esac
  12072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  12073. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12074. #
  12075. # Check to make sure the PIC flag actually works.
  12076. #
  12077. if test -n "$lt_prog_compiler_pic_CXX"; then
  12078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12079. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12080. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  12081. $as_echo_n "(cached) " >&6
  12082. else
  12083. lt_cv_prog_compiler_pic_works_CXX=no
  12084. ac_outfile=conftest.$ac_objext
  12085. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12086. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12087. # Insert the option either (1) after the last *FLAGS variable, or
  12088. # (2) before a word containing "conftest.", or (3) at the end.
  12089. # Note that $ac_compile itself does not contain backslashes and begins
  12090. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12091. # The option is referenced via a variable to avoid confusing sed.
  12092. lt_compile=`echo "$ac_compile" | $SED \
  12093. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12094. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12095. -e 's:$: $lt_compiler_flag:'`
  12096. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12097. (eval "$lt_compile" 2>conftest.err)
  12098. ac_status=$?
  12099. cat conftest.err >&5
  12100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12101. if (exit $ac_status) && test -s "$ac_outfile"; then
  12102. # The compiler can only warn and ignore the option if not recognized
  12103. # So say no if there are warnings other than the usual output.
  12104. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12105. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12106. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12107. lt_cv_prog_compiler_pic_works_CXX=yes
  12108. fi
  12109. fi
  12110. $RM conftest*
  12111. fi
  12112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12113. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12114. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12115. case $lt_prog_compiler_pic_CXX in
  12116. "" | " "*) ;;
  12117. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12118. esac
  12119. else
  12120. lt_prog_compiler_pic_CXX=
  12121. lt_prog_compiler_can_build_shared_CXX=no
  12122. fi
  12123. fi
  12124. #
  12125. # Check to make sure the static flag actually works.
  12126. #
  12127. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12129. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12130. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  12131. $as_echo_n "(cached) " >&6
  12132. else
  12133. lt_cv_prog_compiler_static_works_CXX=no
  12134. save_LDFLAGS="$LDFLAGS"
  12135. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12136. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12137. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12138. # The linker can only warn and ignore the option if not recognized
  12139. # So say no if there are warnings
  12140. if test -s conftest.err; then
  12141. # Append any errors to the config.log.
  12142. cat conftest.err 1>&5
  12143. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12144. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12145. if diff conftest.exp conftest.er2 >/dev/null; then
  12146. lt_cv_prog_compiler_static_works_CXX=yes
  12147. fi
  12148. else
  12149. lt_cv_prog_compiler_static_works_CXX=yes
  12150. fi
  12151. fi
  12152. $RM -r conftest*
  12153. LDFLAGS="$save_LDFLAGS"
  12154. fi
  12155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12156. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12157. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12158. :
  12159. else
  12160. lt_prog_compiler_static_CXX=
  12161. fi
  12162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12163. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12164. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12165. $as_echo_n "(cached) " >&6
  12166. else
  12167. lt_cv_prog_compiler_c_o_CXX=no
  12168. $RM -r conftest 2>/dev/null
  12169. mkdir conftest
  12170. cd conftest
  12171. mkdir out
  12172. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12173. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12174. # Insert the option either (1) after the last *FLAGS variable, or
  12175. # (2) before a word containing "conftest.", or (3) at the end.
  12176. # Note that $ac_compile itself does not contain backslashes and begins
  12177. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12178. lt_compile=`echo "$ac_compile" | $SED \
  12179. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12180. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12181. -e 's:$: $lt_compiler_flag:'`
  12182. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12183. (eval "$lt_compile" 2>out/conftest.err)
  12184. ac_status=$?
  12185. cat out/conftest.err >&5
  12186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12187. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12188. then
  12189. # The compiler can only warn and ignore the option if not recognized
  12190. # So say no if there are warnings
  12191. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12192. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12193. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12194. lt_cv_prog_compiler_c_o_CXX=yes
  12195. fi
  12196. fi
  12197. chmod u+w . 2>&5
  12198. $RM conftest*
  12199. # SGI C++ compiler will create directory out/ii_files/ for
  12200. # template instantiation
  12201. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12202. $RM out/* && rmdir out
  12203. cd ..
  12204. $RM -r conftest
  12205. $RM conftest*
  12206. fi
  12207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12208. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12210. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12211. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12212. $as_echo_n "(cached) " >&6
  12213. else
  12214. lt_cv_prog_compiler_c_o_CXX=no
  12215. $RM -r conftest 2>/dev/null
  12216. mkdir conftest
  12217. cd conftest
  12218. mkdir out
  12219. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12220. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12221. # Insert the option either (1) after the last *FLAGS variable, or
  12222. # (2) before a word containing "conftest.", or (3) at the end.
  12223. # Note that $ac_compile itself does not contain backslashes and begins
  12224. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12225. lt_compile=`echo "$ac_compile" | $SED \
  12226. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12227. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12228. -e 's:$: $lt_compiler_flag:'`
  12229. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12230. (eval "$lt_compile" 2>out/conftest.err)
  12231. ac_status=$?
  12232. cat out/conftest.err >&5
  12233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12234. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12235. then
  12236. # The compiler can only warn and ignore the option if not recognized
  12237. # So say no if there are warnings
  12238. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12239. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12240. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12241. lt_cv_prog_compiler_c_o_CXX=yes
  12242. fi
  12243. fi
  12244. chmod u+w . 2>&5
  12245. $RM conftest*
  12246. # SGI C++ compiler will create directory out/ii_files/ for
  12247. # template instantiation
  12248. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12249. $RM out/* && rmdir out
  12250. cd ..
  12251. $RM -r conftest
  12252. $RM conftest*
  12253. fi
  12254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12255. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12256. hard_links="nottested"
  12257. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12258. # do not overwrite the value of need_locks provided by the user
  12259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12260. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12261. hard_links=yes
  12262. $RM conftest*
  12263. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12264. touch conftest.a
  12265. ln conftest.a conftest.b 2>&5 || hard_links=no
  12266. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12268. $as_echo "$hard_links" >&6; }
  12269. if test "$hard_links" = no; then
  12270. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12271. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12272. need_locks=warn
  12273. fi
  12274. else
  12275. need_locks=no
  12276. fi
  12277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12278. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12279. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12280. case $host_os in
  12281. aix[4-9]*)
  12282. # If we're using GNU nm, then we don't want the "-C" option.
  12283. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12284. # Also, AIX nm treats weak defined symbols like other global defined
  12285. # symbols, whereas GNU nm marks them as "W".
  12286. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12287. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12288. else
  12289. 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'
  12290. fi
  12291. ;;
  12292. pw32*)
  12293. export_symbols_cmds_CXX="$ltdll_cmds"
  12294. ;;
  12295. cygwin* | mingw* | cegcc*)
  12296. 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'
  12297. ;;
  12298. *)
  12299. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12300. ;;
  12301. esac
  12302. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12304. $as_echo "$ld_shlibs_CXX" >&6; }
  12305. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12306. with_gnu_ld_CXX=$with_gnu_ld
  12307. #
  12308. # Do we need to explicitly link libc?
  12309. #
  12310. case "x$archive_cmds_need_lc_CXX" in
  12311. x|xyes)
  12312. # Assume -lc should be added
  12313. archive_cmds_need_lc_CXX=yes
  12314. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12315. case $archive_cmds_CXX in
  12316. *'~'*)
  12317. # FIXME: we may have to deal with multi-command sequences.
  12318. ;;
  12319. '$CC '*)
  12320. # Test whether the compiler implicitly links with -lc since on some
  12321. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12322. # to ld, don't add -lc before -lgcc.
  12323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12324. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12325. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  12326. $as_echo_n "(cached) " >&6
  12327. else
  12328. $RM conftest*
  12329. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12330. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12331. (eval $ac_compile) 2>&5
  12332. ac_status=$?
  12333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12334. test $ac_status = 0; } 2>conftest.err; then
  12335. soname=conftest
  12336. lib=conftest
  12337. libobjs=conftest.$ac_objext
  12338. deplibs=
  12339. wl=$lt_prog_compiler_wl_CXX
  12340. pic_flag=$lt_prog_compiler_pic_CXX
  12341. compiler_flags=-v
  12342. linker_flags=-v
  12343. verstring=
  12344. output_objdir=.
  12345. libname=conftest
  12346. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12347. allow_undefined_flag_CXX=
  12348. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12349. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12350. ac_status=$?
  12351. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12352. test $ac_status = 0; }
  12353. then
  12354. lt_cv_archive_cmds_need_lc_CXX=no
  12355. else
  12356. lt_cv_archive_cmds_need_lc_CXX=yes
  12357. fi
  12358. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12359. else
  12360. cat conftest.err 1>&5
  12361. fi
  12362. $RM conftest*
  12363. fi
  12364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12365. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12366. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12367. ;;
  12368. esac
  12369. fi
  12370. ;;
  12371. esac
  12372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12373. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12374. library_names_spec=
  12375. libname_spec='lib$name'
  12376. soname_spec=
  12377. shrext_cmds=".so"
  12378. postinstall_cmds=
  12379. postuninstall_cmds=
  12380. finish_cmds=
  12381. finish_eval=
  12382. shlibpath_var=
  12383. shlibpath_overrides_runpath=unknown
  12384. version_type=none
  12385. dynamic_linker="$host_os ld.so"
  12386. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12387. need_lib_prefix=unknown
  12388. hardcode_into_libs=no
  12389. # when you set need_version to no, make sure it does not cause -set_version
  12390. # flags to be left without arguments
  12391. need_version=unknown
  12392. case $host_os in
  12393. aix3*)
  12394. version_type=linux
  12395. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12396. shlibpath_var=LIBPATH
  12397. # AIX 3 has no versioning support, so we append a major version to the name.
  12398. soname_spec='${libname}${release}${shared_ext}$major'
  12399. ;;
  12400. aix[4-9]*)
  12401. version_type=linux
  12402. need_lib_prefix=no
  12403. need_version=no
  12404. hardcode_into_libs=yes
  12405. if test "$host_cpu" = ia64; then
  12406. # AIX 5 supports IA64
  12407. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12408. shlibpath_var=LD_LIBRARY_PATH
  12409. else
  12410. # With GCC up to 2.95.x, collect2 would create an import file
  12411. # for dependence libraries. The import file would start with
  12412. # the line `#! .'. This would cause the generated library to
  12413. # depend on `.', always an invalid library. This was fixed in
  12414. # development snapshots of GCC prior to 3.0.
  12415. case $host_os in
  12416. aix4 | aix4.[01] | aix4.[01].*)
  12417. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12418. echo ' yes '
  12419. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12420. :
  12421. else
  12422. can_build_shared=no
  12423. fi
  12424. ;;
  12425. esac
  12426. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12427. # soname into executable. Probably we can add versioning support to
  12428. # collect2, so additional links can be useful in future.
  12429. if test "$aix_use_runtimelinking" = yes; then
  12430. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12431. # instead of lib<name>.a to let people know that these are not
  12432. # typical AIX shared libraries.
  12433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12434. else
  12435. # We preserve .a as extension for shared libraries through AIX4.2
  12436. # and later when we are not doing run time linking.
  12437. library_names_spec='${libname}${release}.a $libname.a'
  12438. soname_spec='${libname}${release}${shared_ext}$major'
  12439. fi
  12440. shlibpath_var=LIBPATH
  12441. fi
  12442. ;;
  12443. amigaos*)
  12444. case $host_cpu in
  12445. powerpc)
  12446. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12447. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12449. ;;
  12450. m68k)
  12451. library_names_spec='$libname.ixlibrary $libname.a'
  12452. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12453. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12454. ;;
  12455. esac
  12456. ;;
  12457. beos*)
  12458. library_names_spec='${libname}${shared_ext}'
  12459. dynamic_linker="$host_os ld.so"
  12460. shlibpath_var=LIBRARY_PATH
  12461. ;;
  12462. bsdi[45]*)
  12463. version_type=linux
  12464. need_version=no
  12465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12466. soname_spec='${libname}${release}${shared_ext}$major'
  12467. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12468. shlibpath_var=LD_LIBRARY_PATH
  12469. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12470. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12471. # the default ld.so.conf also contains /usr/contrib/lib and
  12472. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12473. # libtool to hard-code these into programs
  12474. ;;
  12475. cygwin* | mingw* | pw32* | cegcc*)
  12476. version_type=windows
  12477. shrext_cmds=".dll"
  12478. need_version=no
  12479. need_lib_prefix=no
  12480. case $GCC,$host_os in
  12481. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12482. library_names_spec='$libname.dll.a'
  12483. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12484. postinstall_cmds='base_file=`basename \${file}`~
  12485. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12486. dldir=$destdir/`dirname \$dlpath`~
  12487. test -d \$dldir || mkdir -p \$dldir~
  12488. $install_prog $dir/$dlname \$dldir/$dlname~
  12489. chmod a+x \$dldir/$dlname~
  12490. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12491. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12492. fi'
  12493. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12494. dlpath=$dir/\$dldll~
  12495. $RM \$dlpath'
  12496. shlibpath_overrides_runpath=yes
  12497. case $host_os in
  12498. cygwin*)
  12499. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12500. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12501. ;;
  12502. mingw* | cegcc*)
  12503. # MinGW DLLs use traditional 'lib' prefix
  12504. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12505. ;;
  12506. pw32*)
  12507. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12508. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12509. ;;
  12510. esac
  12511. ;;
  12512. *)
  12513. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12514. ;;
  12515. esac
  12516. dynamic_linker='Win32 ld.exe'
  12517. # FIXME: first we should search . and the directory the executable is in
  12518. shlibpath_var=PATH
  12519. ;;
  12520. darwin* | rhapsody*)
  12521. dynamic_linker="$host_os dyld"
  12522. version_type=darwin
  12523. need_lib_prefix=no
  12524. need_version=no
  12525. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12526. soname_spec='${libname}${release}${major}$shared_ext'
  12527. shlibpath_overrides_runpath=yes
  12528. shlibpath_var=DYLD_LIBRARY_PATH
  12529. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12530. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12531. ;;
  12532. dgux*)
  12533. version_type=linux
  12534. need_lib_prefix=no
  12535. need_version=no
  12536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12537. soname_spec='${libname}${release}${shared_ext}$major'
  12538. shlibpath_var=LD_LIBRARY_PATH
  12539. ;;
  12540. freebsd* | dragonfly*)
  12541. # DragonFly does not have aout. When/if they implement a new
  12542. # versioning mechanism, adjust this.
  12543. if test -x /usr/bin/objformat; then
  12544. objformat=`/usr/bin/objformat`
  12545. else
  12546. case $host_os in
  12547. freebsd[23].*) objformat=aout ;;
  12548. *) objformat=elf ;;
  12549. esac
  12550. fi
  12551. version_type=freebsd-$objformat
  12552. case $version_type in
  12553. freebsd-elf*)
  12554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12555. need_version=no
  12556. need_lib_prefix=no
  12557. ;;
  12558. freebsd-*)
  12559. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12560. need_version=yes
  12561. ;;
  12562. esac
  12563. shlibpath_var=LD_LIBRARY_PATH
  12564. case $host_os in
  12565. freebsd2.*)
  12566. shlibpath_overrides_runpath=yes
  12567. ;;
  12568. freebsd3.[01]* | freebsdelf3.[01]*)
  12569. shlibpath_overrides_runpath=yes
  12570. hardcode_into_libs=yes
  12571. ;;
  12572. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12573. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12574. shlibpath_overrides_runpath=no
  12575. hardcode_into_libs=yes
  12576. ;;
  12577. *) # from 4.6 on, and DragonFly
  12578. shlibpath_overrides_runpath=yes
  12579. hardcode_into_libs=yes
  12580. ;;
  12581. esac
  12582. ;;
  12583. gnu*)
  12584. version_type=linux
  12585. need_lib_prefix=no
  12586. need_version=no
  12587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12588. soname_spec='${libname}${release}${shared_ext}$major'
  12589. shlibpath_var=LD_LIBRARY_PATH
  12590. hardcode_into_libs=yes
  12591. ;;
  12592. haiku*)
  12593. version_type=linux
  12594. need_lib_prefix=no
  12595. need_version=no
  12596. dynamic_linker="$host_os runtime_loader"
  12597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12598. soname_spec='${libname}${release}${shared_ext}$major'
  12599. shlibpath_var=LIBRARY_PATH
  12600. shlibpath_overrides_runpath=yes
  12601. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12602. hardcode_into_libs=yes
  12603. ;;
  12604. hpux9* | hpux10* | hpux11*)
  12605. # Give a soname corresponding to the major version so that dld.sl refuses to
  12606. # link against other versions.
  12607. version_type=sunos
  12608. need_lib_prefix=no
  12609. need_version=no
  12610. case $host_cpu in
  12611. ia64*)
  12612. shrext_cmds='.so'
  12613. hardcode_into_libs=yes
  12614. dynamic_linker="$host_os dld.so"
  12615. shlibpath_var=LD_LIBRARY_PATH
  12616. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12618. soname_spec='${libname}${release}${shared_ext}$major'
  12619. if test "X$HPUX_IA64_MODE" = X32; then
  12620. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12621. else
  12622. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12623. fi
  12624. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12625. ;;
  12626. hppa*64*)
  12627. shrext_cmds='.sl'
  12628. hardcode_into_libs=yes
  12629. dynamic_linker="$host_os dld.sl"
  12630. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12631. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12633. soname_spec='${libname}${release}${shared_ext}$major'
  12634. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12635. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12636. ;;
  12637. *)
  12638. shrext_cmds='.sl'
  12639. dynamic_linker="$host_os dld.sl"
  12640. shlibpath_var=SHLIB_PATH
  12641. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12643. soname_spec='${libname}${release}${shared_ext}$major'
  12644. ;;
  12645. esac
  12646. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12647. postinstall_cmds='chmod 555 $lib'
  12648. # or fails outright, so override atomically:
  12649. install_override_mode=555
  12650. ;;
  12651. interix[3-9]*)
  12652. version_type=linux
  12653. need_lib_prefix=no
  12654. need_version=no
  12655. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12656. soname_spec='${libname}${release}${shared_ext}$major'
  12657. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12658. shlibpath_var=LD_LIBRARY_PATH
  12659. shlibpath_overrides_runpath=no
  12660. hardcode_into_libs=yes
  12661. ;;
  12662. irix5* | irix6* | nonstopux*)
  12663. case $host_os in
  12664. nonstopux*) version_type=nonstopux ;;
  12665. *)
  12666. if test "$lt_cv_prog_gnu_ld" = yes; then
  12667. version_type=linux
  12668. else
  12669. version_type=irix
  12670. fi ;;
  12671. esac
  12672. need_lib_prefix=no
  12673. need_version=no
  12674. soname_spec='${libname}${release}${shared_ext}$major'
  12675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12676. case $host_os in
  12677. irix5* | nonstopux*)
  12678. libsuff= shlibsuff=
  12679. ;;
  12680. *)
  12681. case $LD in # libtool.m4 will add one of these switches to LD
  12682. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12683. libsuff= shlibsuff= libmagic=32-bit;;
  12684. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12685. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12686. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12687. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12688. *) libsuff= shlibsuff= libmagic=never-match;;
  12689. esac
  12690. ;;
  12691. esac
  12692. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12693. shlibpath_overrides_runpath=no
  12694. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12695. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12696. hardcode_into_libs=yes
  12697. ;;
  12698. # No shared lib support for Linux oldld, aout, or coff.
  12699. linux*oldld* | linux*aout* | linux*coff*)
  12700. dynamic_linker=no
  12701. ;;
  12702. # This must be Linux ELF.
  12703. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12704. version_type=linux
  12705. need_lib_prefix=no
  12706. need_version=no
  12707. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12708. soname_spec='${libname}${release}${shared_ext}$major'
  12709. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12710. shlibpath_var=LD_LIBRARY_PATH
  12711. shlibpath_overrides_runpath=no
  12712. # Some binutils ld are patched to set DT_RUNPATH
  12713. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12714. $as_echo_n "(cached) " >&6
  12715. else
  12716. lt_cv_shlibpath_overrides_runpath=no
  12717. save_LDFLAGS=$LDFLAGS
  12718. save_libdir=$libdir
  12719. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12720. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12722. /* end confdefs.h. */
  12723. int
  12724. main ()
  12725. {
  12726. ;
  12727. return 0;
  12728. }
  12729. _ACEOF
  12730. if ac_fn_cxx_try_link "$LINENO"; then :
  12731. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12732. lt_cv_shlibpath_overrides_runpath=yes
  12733. fi
  12734. fi
  12735. rm -f core conftest.err conftest.$ac_objext \
  12736. conftest$ac_exeext conftest.$ac_ext
  12737. LDFLAGS=$save_LDFLAGS
  12738. libdir=$save_libdir
  12739. fi
  12740. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12741. # This implies no fast_install, which is unacceptable.
  12742. # Some rework will be needed to allow for fast_install
  12743. # before this can be enabled.
  12744. hardcode_into_libs=yes
  12745. # Append ld.so.conf contents to the search path
  12746. if test -f /etc/ld.so.conf; then
  12747. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  12748. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12749. fi
  12750. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12751. # powerpc, because MkLinux only supported shared libraries with the
  12752. # GNU dynamic linker. Since this was broken with cross compilers,
  12753. # most powerpc-linux boxes support dynamic linking these days and
  12754. # people can always --disable-shared, the test was removed, and we
  12755. # assume the GNU/Linux dynamic linker is in use.
  12756. dynamic_linker='GNU/Linux ld.so'
  12757. ;;
  12758. netbsd*)
  12759. version_type=sunos
  12760. need_lib_prefix=no
  12761. need_version=no
  12762. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12763. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12764. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12765. dynamic_linker='NetBSD (a.out) ld.so'
  12766. else
  12767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12768. soname_spec='${libname}${release}${shared_ext}$major'
  12769. dynamic_linker='NetBSD ld.elf_so'
  12770. fi
  12771. shlibpath_var=LD_LIBRARY_PATH
  12772. shlibpath_overrides_runpath=yes
  12773. hardcode_into_libs=yes
  12774. ;;
  12775. newsos6)
  12776. version_type=linux
  12777. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12778. shlibpath_var=LD_LIBRARY_PATH
  12779. shlibpath_overrides_runpath=yes
  12780. ;;
  12781. *nto* | *qnx*)
  12782. version_type=qnx
  12783. need_lib_prefix=no
  12784. need_version=no
  12785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12786. soname_spec='${libname}${release}${shared_ext}$major'
  12787. shlibpath_var=LD_LIBRARY_PATH
  12788. shlibpath_overrides_runpath=no
  12789. hardcode_into_libs=yes
  12790. dynamic_linker='ldqnx.so'
  12791. ;;
  12792. openbsd*)
  12793. version_type=sunos
  12794. sys_lib_dlsearch_path_spec="/usr/lib"
  12795. need_lib_prefix=no
  12796. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12797. case $host_os in
  12798. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12799. *) need_version=no ;;
  12800. esac
  12801. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12802. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12803. shlibpath_var=LD_LIBRARY_PATH
  12804. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12805. case $host_os in
  12806. openbsd2.[89] | openbsd2.[89].*)
  12807. shlibpath_overrides_runpath=no
  12808. ;;
  12809. *)
  12810. shlibpath_overrides_runpath=yes
  12811. ;;
  12812. esac
  12813. else
  12814. shlibpath_overrides_runpath=yes
  12815. fi
  12816. ;;
  12817. os2*)
  12818. libname_spec='$name'
  12819. shrext_cmds=".dll"
  12820. need_lib_prefix=no
  12821. library_names_spec='$libname${shared_ext} $libname.a'
  12822. dynamic_linker='OS/2 ld.exe'
  12823. shlibpath_var=LIBPATH
  12824. ;;
  12825. osf3* | osf4* | osf5*)
  12826. version_type=osf
  12827. need_lib_prefix=no
  12828. need_version=no
  12829. soname_spec='${libname}${release}${shared_ext}$major'
  12830. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12831. shlibpath_var=LD_LIBRARY_PATH
  12832. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12833. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12834. ;;
  12835. rdos*)
  12836. dynamic_linker=no
  12837. ;;
  12838. solaris*)
  12839. version_type=linux
  12840. need_lib_prefix=no
  12841. need_version=no
  12842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12843. soname_spec='${libname}${release}${shared_ext}$major'
  12844. shlibpath_var=LD_LIBRARY_PATH
  12845. shlibpath_overrides_runpath=yes
  12846. hardcode_into_libs=yes
  12847. # ldd complains unless libraries are executable
  12848. postinstall_cmds='chmod +x $lib'
  12849. ;;
  12850. sunos4*)
  12851. version_type=sunos
  12852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12853. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12854. shlibpath_var=LD_LIBRARY_PATH
  12855. shlibpath_overrides_runpath=yes
  12856. if test "$with_gnu_ld" = yes; then
  12857. need_lib_prefix=no
  12858. fi
  12859. need_version=yes
  12860. ;;
  12861. sysv4 | sysv4.3*)
  12862. version_type=linux
  12863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12864. soname_spec='${libname}${release}${shared_ext}$major'
  12865. shlibpath_var=LD_LIBRARY_PATH
  12866. case $host_vendor in
  12867. sni)
  12868. shlibpath_overrides_runpath=no
  12869. need_lib_prefix=no
  12870. runpath_var=LD_RUN_PATH
  12871. ;;
  12872. siemens)
  12873. need_lib_prefix=no
  12874. ;;
  12875. motorola)
  12876. need_lib_prefix=no
  12877. need_version=no
  12878. shlibpath_overrides_runpath=no
  12879. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12880. ;;
  12881. esac
  12882. ;;
  12883. sysv4*MP*)
  12884. if test -d /usr/nec ;then
  12885. version_type=linux
  12886. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12887. soname_spec='$libname${shared_ext}.$major'
  12888. shlibpath_var=LD_LIBRARY_PATH
  12889. fi
  12890. ;;
  12891. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12892. version_type=freebsd-elf
  12893. need_lib_prefix=no
  12894. need_version=no
  12895. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12896. soname_spec='${libname}${release}${shared_ext}$major'
  12897. shlibpath_var=LD_LIBRARY_PATH
  12898. shlibpath_overrides_runpath=yes
  12899. hardcode_into_libs=yes
  12900. if test "$with_gnu_ld" = yes; then
  12901. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12902. else
  12903. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12904. case $host_os in
  12905. sco3.2v5*)
  12906. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12907. ;;
  12908. esac
  12909. fi
  12910. sys_lib_dlsearch_path_spec='/usr/lib'
  12911. ;;
  12912. tpf*)
  12913. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12914. version_type=linux
  12915. need_lib_prefix=no
  12916. need_version=no
  12917. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12918. shlibpath_var=LD_LIBRARY_PATH
  12919. shlibpath_overrides_runpath=no
  12920. hardcode_into_libs=yes
  12921. ;;
  12922. uts4*)
  12923. version_type=linux
  12924. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12925. soname_spec='${libname}${release}${shared_ext}$major'
  12926. shlibpath_var=LD_LIBRARY_PATH
  12927. ;;
  12928. *)
  12929. dynamic_linker=no
  12930. ;;
  12931. esac
  12932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12933. $as_echo "$dynamic_linker" >&6; }
  12934. test "$dynamic_linker" = no && can_build_shared=no
  12935. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12936. if test "$GCC" = yes; then
  12937. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12938. fi
  12939. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12940. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12941. fi
  12942. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12943. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12944. fi
  12945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12946. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12947. hardcode_action_CXX=
  12948. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12949. test -n "$runpath_var_CXX" ||
  12950. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12951. # We can hardcode non-existent directories.
  12952. if test "$hardcode_direct_CXX" != no &&
  12953. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12954. # have to relink, otherwise we might link with an installed library
  12955. # when we should be linking with a yet-to-be-installed one
  12956. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12957. test "$hardcode_minus_L_CXX" != no; then
  12958. # Linking always hardcodes the temporary library directory.
  12959. hardcode_action_CXX=relink
  12960. else
  12961. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12962. hardcode_action_CXX=immediate
  12963. fi
  12964. else
  12965. # We cannot hardcode anything, or else we can only hardcode existing
  12966. # directories.
  12967. hardcode_action_CXX=unsupported
  12968. fi
  12969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12970. $as_echo "$hardcode_action_CXX" >&6; }
  12971. if test "$hardcode_action_CXX" = relink ||
  12972. test "$inherit_rpath_CXX" = yes; then
  12973. # Fast installation is not supported
  12974. enable_fast_install=no
  12975. elif test "$shlibpath_overrides_runpath" = yes ||
  12976. test "$enable_shared" = no; then
  12977. # Fast installation is not necessary
  12978. enable_fast_install=needless
  12979. fi
  12980. fi # test -n "$compiler"
  12981. CC=$lt_save_CC
  12982. LDCXX=$LD
  12983. LD=$lt_save_LD
  12984. GCC=$lt_save_GCC
  12985. with_gnu_ld=$lt_save_with_gnu_ld
  12986. lt_cv_path_LDCXX=$lt_cv_path_LD
  12987. lt_cv_path_LD=$lt_save_path_LD
  12988. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12989. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12990. fi # test "$_lt_caught_CXX_error" != yes
  12991. ac_ext=c
  12992. ac_cpp='$CPP $CPPFLAGS'
  12993. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12994. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12995. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12996. ac_config_commands="$ac_config_commands libtool"
  12997. # Only expand once:
  12998. # The tests for host and target for $enable_largefile require
  12999. # canonical names.
  13000. # As the $enable_largefile decision depends on --enable-plugins we must set it
  13001. # even in directories otherwise not depending on the $plugins option.
  13002. maybe_plugins=no
  13003. for ac_header in dlfcn.h
  13004. do :
  13005. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  13006. "
  13007. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  13008. cat >>confdefs.h <<_ACEOF
  13009. #define HAVE_DLFCN_H 1
  13010. _ACEOF
  13011. maybe_plugins=yes
  13012. fi
  13013. done
  13014. for ac_header in windows.h
  13015. do :
  13016. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  13017. "
  13018. if test "x$ac_cv_header_windows_h" = x""yes; then :
  13019. cat >>confdefs.h <<_ACEOF
  13020. #define HAVE_WINDOWS_H 1
  13021. _ACEOF
  13022. maybe_plugins=yes
  13023. fi
  13024. done
  13025. # Check whether --enable-plugins was given.
  13026. if test "${enable_plugins+set}" = set; then :
  13027. enableval=$enable_plugins; case "${enableval}" in
  13028. no) plugins=no ;;
  13029. *) plugins=yes
  13030. if test "$maybe_plugins" != "yes" ; then
  13031. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  13032. fi ;;
  13033. esac
  13034. else
  13035. plugins=$maybe_plugins
  13036. fi
  13037. if test "$plugins" = "yes"; then
  13038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  13039. $as_echo_n "checking for library containing dlopen... " >&6; }
  13040. if test "${ac_cv_search_dlopen+set}" = set; then :
  13041. $as_echo_n "(cached) " >&6
  13042. else
  13043. ac_func_search_save_LIBS=$LIBS
  13044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13045. /* end confdefs.h. */
  13046. /* Override any GCC internal prototype to avoid an error.
  13047. Use char because int might match the return type of a GCC
  13048. builtin and then its argument prototype would still apply. */
  13049. #ifdef __cplusplus
  13050. extern "C"
  13051. #endif
  13052. char dlopen ();
  13053. int
  13054. main ()
  13055. {
  13056. return dlopen ();
  13057. ;
  13058. return 0;
  13059. }
  13060. _ACEOF
  13061. for ac_lib in '' dl; do
  13062. if test -z "$ac_lib"; then
  13063. ac_res="none required"
  13064. else
  13065. ac_res=-l$ac_lib
  13066. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13067. fi
  13068. if ac_fn_c_try_link "$LINENO"; then :
  13069. ac_cv_search_dlopen=$ac_res
  13070. fi
  13071. rm -f core conftest.err conftest.$ac_objext \
  13072. conftest$ac_exeext
  13073. if test "${ac_cv_search_dlopen+set}" = set; then :
  13074. break
  13075. fi
  13076. done
  13077. if test "${ac_cv_search_dlopen+set}" = set; then :
  13078. else
  13079. ac_cv_search_dlopen=no
  13080. fi
  13081. rm conftest.$ac_ext
  13082. LIBS=$ac_func_search_save_LIBS
  13083. fi
  13084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  13085. $as_echo "$ac_cv_search_dlopen" >&6; }
  13086. ac_res=$ac_cv_search_dlopen
  13087. if test "$ac_res" != no; then :
  13088. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13089. fi
  13090. fi
  13091. case "${host}" in
  13092. sparc-*-solaris*|i[3-7]86-*-solaris*)
  13093. # On native 32bit sparc and ia32 solaris, large-file and procfs support
  13094. # are mutually exclusive; and without procfs support, the bfd/ elf module
  13095. # cannot provide certain routines such as elfcore_write_prpsinfo
  13096. # or elfcore_write_prstatus. So unless the user explicitly requested
  13097. # large-file support through the --enable-largefile switch, disable
  13098. # large-file support in favor of procfs support.
  13099. test "${target}" = "${host}" -a "x$plugins" = xno \
  13100. && : ${enable_largefile="no"}
  13101. ;;
  13102. esac
  13103. # Check whether --enable-largefile was given.
  13104. if test "${enable_largefile+set}" = set; then :
  13105. enableval=$enable_largefile;
  13106. fi
  13107. if test "$enable_largefile" != no; then
  13108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  13109. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  13110. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  13111. $as_echo_n "(cached) " >&6
  13112. else
  13113. ac_cv_sys_largefile_CC=no
  13114. if test "$GCC" != yes; then
  13115. ac_save_CC=$CC
  13116. while :; do
  13117. # IRIX 6.2 and later do not support large files by default,
  13118. # so use the C compiler's -n32 option if that helps.
  13119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13120. /* end confdefs.h. */
  13121. #include <sys/types.h>
  13122. /* Check that off_t can represent 2**63 - 1 correctly.
  13123. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13124. since some C++ compilers masquerading as C compilers
  13125. incorrectly reject 9223372036854775807. */
  13126. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13127. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13128. && LARGE_OFF_T % 2147483647 == 1)
  13129. ? 1 : -1];
  13130. int
  13131. main ()
  13132. {
  13133. ;
  13134. return 0;
  13135. }
  13136. _ACEOF
  13137. if ac_fn_c_try_compile "$LINENO"; then :
  13138. break
  13139. fi
  13140. rm -f core conftest.err conftest.$ac_objext
  13141. CC="$CC -n32"
  13142. if ac_fn_c_try_compile "$LINENO"; then :
  13143. ac_cv_sys_largefile_CC=' -n32'; break
  13144. fi
  13145. rm -f core conftest.err conftest.$ac_objext
  13146. break
  13147. done
  13148. CC=$ac_save_CC
  13149. rm -f conftest.$ac_ext
  13150. fi
  13151. fi
  13152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  13153. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  13154. if test "$ac_cv_sys_largefile_CC" != no; then
  13155. CC=$CC$ac_cv_sys_largefile_CC
  13156. fi
  13157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  13158. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  13159. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  13160. $as_echo_n "(cached) " >&6
  13161. else
  13162. while :; do
  13163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13164. /* end confdefs.h. */
  13165. #include <sys/types.h>
  13166. /* Check that off_t can represent 2**63 - 1 correctly.
  13167. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13168. since some C++ compilers masquerading as C compilers
  13169. incorrectly reject 9223372036854775807. */
  13170. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13171. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13172. && LARGE_OFF_T % 2147483647 == 1)
  13173. ? 1 : -1];
  13174. int
  13175. main ()
  13176. {
  13177. ;
  13178. return 0;
  13179. }
  13180. _ACEOF
  13181. if ac_fn_c_try_compile "$LINENO"; then :
  13182. ac_cv_sys_file_offset_bits=no; break
  13183. fi
  13184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13186. /* end confdefs.h. */
  13187. #define _FILE_OFFSET_BITS 64
  13188. #include <sys/types.h>
  13189. /* Check that off_t can represent 2**63 - 1 correctly.
  13190. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13191. since some C++ compilers masquerading as C compilers
  13192. incorrectly reject 9223372036854775807. */
  13193. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13194. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13195. && LARGE_OFF_T % 2147483647 == 1)
  13196. ? 1 : -1];
  13197. int
  13198. main ()
  13199. {
  13200. ;
  13201. return 0;
  13202. }
  13203. _ACEOF
  13204. if ac_fn_c_try_compile "$LINENO"; then :
  13205. ac_cv_sys_file_offset_bits=64; break
  13206. fi
  13207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13208. ac_cv_sys_file_offset_bits=unknown
  13209. break
  13210. done
  13211. fi
  13212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  13213. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  13214. case $ac_cv_sys_file_offset_bits in #(
  13215. no | unknown) ;;
  13216. *)
  13217. cat >>confdefs.h <<_ACEOF
  13218. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  13219. _ACEOF
  13220. ;;
  13221. esac
  13222. rm -rf conftest*
  13223. if test $ac_cv_sys_file_offset_bits = unknown; then
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  13225. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  13226. if test "${ac_cv_sys_large_files+set}" = set; then :
  13227. $as_echo_n "(cached) " >&6
  13228. else
  13229. while :; do
  13230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13231. /* end confdefs.h. */
  13232. #include <sys/types.h>
  13233. /* Check that off_t can represent 2**63 - 1 correctly.
  13234. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13235. since some C++ compilers masquerading as C compilers
  13236. incorrectly reject 9223372036854775807. */
  13237. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13238. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13239. && LARGE_OFF_T % 2147483647 == 1)
  13240. ? 1 : -1];
  13241. int
  13242. main ()
  13243. {
  13244. ;
  13245. return 0;
  13246. }
  13247. _ACEOF
  13248. if ac_fn_c_try_compile "$LINENO"; then :
  13249. ac_cv_sys_large_files=no; break
  13250. fi
  13251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13253. /* end confdefs.h. */
  13254. #define _LARGE_FILES 1
  13255. #include <sys/types.h>
  13256. /* Check that off_t can represent 2**63 - 1 correctly.
  13257. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13258. since some C++ compilers masquerading as C compilers
  13259. incorrectly reject 9223372036854775807. */
  13260. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13261. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13262. && LARGE_OFF_T % 2147483647 == 1)
  13263. ? 1 : -1];
  13264. int
  13265. main ()
  13266. {
  13267. ;
  13268. return 0;
  13269. }
  13270. _ACEOF
  13271. if ac_fn_c_try_compile "$LINENO"; then :
  13272. ac_cv_sys_large_files=1; break
  13273. fi
  13274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13275. ac_cv_sys_large_files=unknown
  13276. break
  13277. done
  13278. fi
  13279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  13280. $as_echo "$ac_cv_sys_large_files" >&6; }
  13281. case $ac_cv_sys_large_files in #(
  13282. no | unknown) ;;
  13283. *)
  13284. cat >>confdefs.h <<_ACEOF
  13285. #define _LARGE_FILES $ac_cv_sys_large_files
  13286. _ACEOF
  13287. ;;
  13288. esac
  13289. rm -rf conftest*
  13290. fi
  13291. fi
  13292. # Check whether --with-lib-path was given.
  13293. if test "${with_lib_path+set}" = set; then :
  13294. withval=$with_lib_path; LIB_PATH=$withval
  13295. fi
  13296. # Check whether --enable-targets was given.
  13297. if test "${enable_targets+set}" = set; then :
  13298. enableval=$enable_targets; case "${enableval}" in
  13299. yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
  13300. ;;
  13301. no) enable_targets= ;;
  13302. *) enable_targets=$enableval ;;
  13303. esac
  13304. fi
  13305. # Check whether --enable-64-bit-bfd was given.
  13306. if test "${enable_64_bit_bfd+set}" = set; then :
  13307. enableval=$enable_64_bit_bfd; case "${enableval}" in
  13308. yes) want64=true ;;
  13309. no) want64=false ;;
  13310. *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
  13311. esac
  13312. else
  13313. want64=false
  13314. fi
  13315. # Check whether --with-sysroot was given.
  13316. if test "${with_sysroot+set}" = set; then :
  13317. withval=$with_sysroot;
  13318. case ${with_sysroot} in
  13319. yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
  13320. *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
  13321. esac
  13322. TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
  13323. use_sysroot=yes
  13324. if test "x$prefix" = xNONE; then
  13325. test_prefix=/usr/local
  13326. else
  13327. test_prefix=$prefix
  13328. fi
  13329. if test "x$exec_prefix" = xNONE; then
  13330. test_exec_prefix=$test_prefix
  13331. else
  13332. test_exec_prefix=$exec_prefix
  13333. fi
  13334. case ${TARGET_SYSTEM_ROOT} in
  13335. "${test_prefix}"|"${test_prefix}/"*|\
  13336. "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
  13337. '${prefix}'|'${prefix}/'*|\
  13338. '${exec_prefix}'|'${exec_prefix}/'*)
  13339. t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
  13340. TARGET_SYSTEM_ROOT_DEFINE="$t"
  13341. ;;
  13342. esac
  13343. else
  13344. use_sysroot=no
  13345. TARGET_SYSTEM_ROOT=
  13346. TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
  13347. fi
  13348. # Check whether --enable-gold was given.
  13349. if test "${enable_gold+set}" = set; then :
  13350. enableval=$enable_gold; case "${enableval}" in
  13351. default)
  13352. install_as_default=no
  13353. installed_linker=ld.bfd
  13354. ;;
  13355. yes|no)
  13356. install_as_default=yes
  13357. installed_linker=ld.bfd
  13358. ;;
  13359. *)
  13360. as_fn_error "invalid --enable-gold argument" "$LINENO" 5
  13361. ;;
  13362. esac
  13363. else
  13364. install_as_default=yes
  13365. installed_linker=ld.bfd
  13366. fi
  13367. # Check whether --enable-got was given.
  13368. if test "${enable_got+set}" = set; then :
  13369. enableval=$enable_got; case "${enableval}" in
  13370. target | single | negative | multigot) got_handling=$enableval ;;
  13371. *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
  13372. esac
  13373. else
  13374. got_handling=target
  13375. fi
  13376. case "${got_handling}" in
  13377. target)
  13378. $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
  13379. ;;
  13380. single)
  13381. $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
  13382. ;;
  13383. negative)
  13384. $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
  13385. ;;
  13386. multigot)
  13387. $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
  13388. ;;
  13389. *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
  13390. esac
  13391. # PR gas/19109
  13392. # Decide the default method for compressing debug sections.
  13393. ac_default_compressed_debug_sections=unset
  13394. # Provide a configure time option to override our default.
  13395. # Check whether --enable-compressed_debug_sections was given.
  13396. if test "${enable_compressed_debug_sections+set}" = set; then :
  13397. enableval=$enable_compressed_debug_sections; case "${enableval}" in
  13398. yes | all | ld) ac_default_compressed_debug_sections=yes ;;
  13399. no | none) ac_default_compressed_debug_sections=no ;;
  13400. *) ac_default_compressed_debug_sections=unset ;;
  13401. esac
  13402. fi
  13403. # Set the 'development' global.
  13404. . $srcdir/../bfd/development.sh
  13405. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  13406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13407. /* end confdefs.h. */
  13408. __GNUC__
  13409. _ACEOF
  13410. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13411. $EGREP "^[0-3]$" >/dev/null 2>&1; then :
  13412. else
  13413. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
  13414. fi
  13415. rm -f conftest*
  13416. # Check whether --enable-werror was given.
  13417. if test "${enable_werror+set}" = set; then :
  13418. enableval=$enable_werror; case "${enableval}" in
  13419. yes | y) ERROR_ON_WARNING="yes" ;;
  13420. no | n) ERROR_ON_WARNING="no" ;;
  13421. *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  13422. esac
  13423. fi
  13424. # Disable -Wformat by default when using gcc on mingw
  13425. case "${host}" in
  13426. *-*-mingw32*)
  13427. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  13428. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
  13429. fi
  13430. ;;
  13431. *) ;;
  13432. esac
  13433. # Enable -Werror by default when using gcc. Turn it off for releases.
  13434. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
  13435. ERROR_ON_WARNING=yes
  13436. fi
  13437. NO_WERROR=
  13438. if test "${ERROR_ON_WARNING}" = yes ; then
  13439. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  13440. NO_WERROR="-Wno-error"
  13441. fi
  13442. if test "${GCC}" = yes ; then
  13443. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  13444. fi
  13445. # Check whether --enable-build-warnings was given.
  13446. if test "${enable_build_warnings+set}" = set; then :
  13447. enableval=$enable_build_warnings; case "${enableval}" in
  13448. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
  13449. no) if test "${GCC}" = yes ; then
  13450. WARN_CFLAGS="-w"
  13451. fi;;
  13452. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  13453. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
  13454. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  13455. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
  13456. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  13457. esac
  13458. fi
  13459. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  13460. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  13461. fi
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  13463. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  13464. if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
  13465. $as_echo_n "(cached) " >&6
  13466. else
  13467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13468. /* end confdefs.h. */
  13469. #include <locale.h>
  13470. int
  13471. main ()
  13472. {
  13473. return LC_MESSAGES
  13474. ;
  13475. return 0;
  13476. }
  13477. _ACEOF
  13478. if ac_fn_c_try_link "$LINENO"; then :
  13479. am_cv_val_LC_MESSAGES=yes
  13480. else
  13481. am_cv_val_LC_MESSAGES=no
  13482. fi
  13483. rm -f core conftest.err conftest.$ac_objext \
  13484. conftest$ac_exeext conftest.$ac_ext
  13485. fi
  13486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  13487. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  13488. if test $am_cv_val_LC_MESSAGES = yes; then
  13489. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  13490. fi
  13491. ac_config_headers="$ac_config_headers config.h:config.in"
  13492. # PR 14072
  13493. if test -z "$target" ; then
  13494. as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
  13495. fi
  13496. if test -z "$host" ; then
  13497. as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
  13498. fi
  13499. # host-specific stuff:
  13500. ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
  13501. # If we haven't got the data from the intl directory,
  13502. # assume NLS is disabled.
  13503. USE_NLS=no
  13504. LIBINTL=
  13505. LIBINTL_DEP=
  13506. INCINTL=
  13507. XGETTEXT=
  13508. GMSGFMT=
  13509. POSUB=
  13510. if test -f ../intl/config.intl; then
  13511. . ../intl/config.intl
  13512. fi
  13513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  13514. $as_echo_n "checking whether NLS is requested... " >&6; }
  13515. if test x"$USE_NLS" != xyes; then
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13517. $as_echo "no" >&6; }
  13518. else
  13519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13520. $as_echo "yes" >&6; }
  13521. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  13522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  13523. $as_echo_n "checking for catalogs to be installed... " >&6; }
  13524. # Look for .po and .gmo files in the source directory.
  13525. CATALOGS=
  13526. XLINGUAS=
  13527. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  13528. # If there aren't any .gmo files the shell will give us the
  13529. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  13530. # weeded out.
  13531. case "$cat" in *\**)
  13532. continue;;
  13533. esac
  13534. # The quadruple backslash is collapsed to a double backslash
  13535. # by the backticks, then collapsed again by the double quotes,
  13536. # leaving us with one backslash in the sed expression (right
  13537. # before the dot that mustn't act as a wildcard).
  13538. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  13539. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  13540. # The user is allowed to set LINGUAS to a list of languages to
  13541. # install catalogs for. If it's empty that means "all of them."
  13542. if test "x$LINGUAS" = x; then
  13543. CATALOGS="$CATALOGS $cat"
  13544. XLINGUAS="$XLINGUAS $lang"
  13545. else
  13546. case "$LINGUAS" in *$lang*)
  13547. CATALOGS="$CATALOGS $cat"
  13548. XLINGUAS="$XLINGUAS $lang"
  13549. ;;
  13550. esac
  13551. fi
  13552. done
  13553. LINGUAS="$XLINGUAS"
  13554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  13555. $as_echo "$LINGUAS" >&6; }
  13556. DATADIRNAME=share
  13557. INSTOBJEXT=.mo
  13558. GENCAT=gencat
  13559. CATOBJEXT=.gmo
  13560. fi
  13561. MKINSTALLDIRS=
  13562. if test -n "$ac_aux_dir"; then
  13563. case "$ac_aux_dir" in
  13564. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  13565. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  13566. esac
  13567. fi
  13568. if test -z "$MKINSTALLDIRS"; then
  13569. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  13570. fi
  13571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  13572. $as_echo_n "checking whether NLS is requested... " >&6; }
  13573. # Check whether --enable-nls was given.
  13574. if test "${enable_nls+set}" = set; then :
  13575. enableval=$enable_nls; USE_NLS=$enableval
  13576. else
  13577. USE_NLS=yes
  13578. fi
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  13580. $as_echo "$USE_NLS" >&6; }
  13581. # Prepare PATH_SEPARATOR.
  13582. # The user is always right.
  13583. if test "${PATH_SEPARATOR+set}" != set; then
  13584. echo "#! /bin/sh" >conf$$.sh
  13585. echo "exit 0" >>conf$$.sh
  13586. chmod +x conf$$.sh
  13587. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  13588. PATH_SEPARATOR=';'
  13589. else
  13590. PATH_SEPARATOR=:
  13591. fi
  13592. rm -f conf$$.sh
  13593. fi
  13594. # Find out how to test for executable files. Don't use a zero-byte file,
  13595. # as systems may use methods other than mode bits to determine executability.
  13596. cat >conf$$.file <<_ASEOF
  13597. #! /bin/sh
  13598. exit 0
  13599. _ASEOF
  13600. chmod +x conf$$.file
  13601. if test -x conf$$.file >/dev/null 2>&1; then
  13602. ac_executable_p="test -x"
  13603. else
  13604. ac_executable_p="test -f"
  13605. fi
  13606. rm -f conf$$.file
  13607. # Extract the first word of "msgfmt", so it can be a program name with args.
  13608. set dummy msgfmt; ac_word=$2
  13609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13610. $as_echo_n "checking for $ac_word... " >&6; }
  13611. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  13612. $as_echo_n "(cached) " >&6
  13613. else
  13614. case "$MSGFMT" in
  13615. [\\/]* | ?:[\\/]*)
  13616. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  13617. ;;
  13618. *)
  13619. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  13620. for ac_dir in $PATH; do
  13621. IFS="$ac_save_IFS"
  13622. test -z "$ac_dir" && ac_dir=.
  13623. for ac_exec_ext in '' $ac_executable_extensions; do
  13624. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  13625. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  13626. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  13627. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  13628. break 2
  13629. fi
  13630. fi
  13631. done
  13632. done
  13633. IFS="$ac_save_IFS"
  13634. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  13635. ;;
  13636. esac
  13637. fi
  13638. MSGFMT="$ac_cv_path_MSGFMT"
  13639. if test "$MSGFMT" != ":"; then
  13640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  13641. $as_echo "$MSGFMT" >&6; }
  13642. else
  13643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13644. $as_echo "no" >&6; }
  13645. fi
  13646. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  13647. set dummy gmsgfmt; ac_word=$2
  13648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13649. $as_echo_n "checking for $ac_word... " >&6; }
  13650. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  13651. $as_echo_n "(cached) " >&6
  13652. else
  13653. case $GMSGFMT in
  13654. [\\/]* | ?:[\\/]*)
  13655. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  13656. ;;
  13657. *)
  13658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13659. for as_dir in $PATH
  13660. do
  13661. IFS=$as_save_IFS
  13662. test -z "$as_dir" && as_dir=.
  13663. for ac_exec_ext in '' $ac_executable_extensions; do
  13664. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13665. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  13666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13667. break 2
  13668. fi
  13669. done
  13670. done
  13671. IFS=$as_save_IFS
  13672. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  13673. ;;
  13674. esac
  13675. fi
  13676. GMSGFMT=$ac_cv_path_GMSGFMT
  13677. if test -n "$GMSGFMT"; then
  13678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  13679. $as_echo "$GMSGFMT" >&6; }
  13680. else
  13681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13682. $as_echo "no" >&6; }
  13683. fi
  13684. # Prepare PATH_SEPARATOR.
  13685. # The user is always right.
  13686. if test "${PATH_SEPARATOR+set}" != set; then
  13687. echo "#! /bin/sh" >conf$$.sh
  13688. echo "exit 0" >>conf$$.sh
  13689. chmod +x conf$$.sh
  13690. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  13691. PATH_SEPARATOR=';'
  13692. else
  13693. PATH_SEPARATOR=:
  13694. fi
  13695. rm -f conf$$.sh
  13696. fi
  13697. # Find out how to test for executable files. Don't use a zero-byte file,
  13698. # as systems may use methods other than mode bits to determine executability.
  13699. cat >conf$$.file <<_ASEOF
  13700. #! /bin/sh
  13701. exit 0
  13702. _ASEOF
  13703. chmod +x conf$$.file
  13704. if test -x conf$$.file >/dev/null 2>&1; then
  13705. ac_executable_p="test -x"
  13706. else
  13707. ac_executable_p="test -f"
  13708. fi
  13709. rm -f conf$$.file
  13710. # Extract the first word of "xgettext", so it can be a program name with args.
  13711. set dummy xgettext; ac_word=$2
  13712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13713. $as_echo_n "checking for $ac_word... " >&6; }
  13714. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  13715. $as_echo_n "(cached) " >&6
  13716. else
  13717. case "$XGETTEXT" in
  13718. [\\/]* | ?:[\\/]*)
  13719. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  13720. ;;
  13721. *)
  13722. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  13723. for ac_dir in $PATH; do
  13724. IFS="$ac_save_IFS"
  13725. test -z "$ac_dir" && ac_dir=.
  13726. for ac_exec_ext in '' $ac_executable_extensions; do
  13727. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  13728. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  13729. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  13730. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  13731. break 2
  13732. fi
  13733. fi
  13734. done
  13735. done
  13736. IFS="$ac_save_IFS"
  13737. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  13738. ;;
  13739. esac
  13740. fi
  13741. XGETTEXT="$ac_cv_path_XGETTEXT"
  13742. if test "$XGETTEXT" != ":"; then
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  13744. $as_echo "$XGETTEXT" >&6; }
  13745. else
  13746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13747. $as_echo "no" >&6; }
  13748. fi
  13749. rm -f messages.po
  13750. # Prepare PATH_SEPARATOR.
  13751. # The user is always right.
  13752. if test "${PATH_SEPARATOR+set}" != set; then
  13753. echo "#! /bin/sh" >conf$$.sh
  13754. echo "exit 0" >>conf$$.sh
  13755. chmod +x conf$$.sh
  13756. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  13757. PATH_SEPARATOR=';'
  13758. else
  13759. PATH_SEPARATOR=:
  13760. fi
  13761. rm -f conf$$.sh
  13762. fi
  13763. # Find out how to test for executable files. Don't use a zero-byte file,
  13764. # as systems may use methods other than mode bits to determine executability.
  13765. cat >conf$$.file <<_ASEOF
  13766. #! /bin/sh
  13767. exit 0
  13768. _ASEOF
  13769. chmod +x conf$$.file
  13770. if test -x conf$$.file >/dev/null 2>&1; then
  13771. ac_executable_p="test -x"
  13772. else
  13773. ac_executable_p="test -f"
  13774. fi
  13775. rm -f conf$$.file
  13776. # Extract the first word of "msgmerge", so it can be a program name with args.
  13777. set dummy msgmerge; ac_word=$2
  13778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13779. $as_echo_n "checking for $ac_word... " >&6; }
  13780. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  13781. $as_echo_n "(cached) " >&6
  13782. else
  13783. case "$MSGMERGE" in
  13784. [\\/]* | ?:[\\/]*)
  13785. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  13786. ;;
  13787. *)
  13788. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  13789. for ac_dir in $PATH; do
  13790. IFS="$ac_save_IFS"
  13791. test -z "$ac_dir" && ac_dir=.
  13792. for ac_exec_ext in '' $ac_executable_extensions; do
  13793. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  13794. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  13795. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  13796. break 2
  13797. fi
  13798. fi
  13799. done
  13800. done
  13801. IFS="$ac_save_IFS"
  13802. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  13803. ;;
  13804. esac
  13805. fi
  13806. MSGMERGE="$ac_cv_path_MSGMERGE"
  13807. if test "$MSGMERGE" != ":"; then
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  13809. $as_echo "$MSGMERGE" >&6; }
  13810. else
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13812. $as_echo "no" >&6; }
  13813. fi
  13814. if test "$GMSGFMT" != ":"; then
  13815. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  13816. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  13817. : ;
  13818. else
  13819. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  13820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  13821. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  13822. GMSGFMT=":"
  13823. fi
  13824. fi
  13825. if test "$XGETTEXT" != ":"; then
  13826. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  13827. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  13828. : ;
  13829. else
  13830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  13831. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  13832. XGETTEXT=":"
  13833. fi
  13834. rm -f messages.po
  13835. fi
  13836. ac_config_commands="$ac_config_commands default-1"
  13837. for ac_prog in 'bison -y' byacc
  13838. do
  13839. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13840. set dummy $ac_prog; ac_word=$2
  13841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13842. $as_echo_n "checking for $ac_word... " >&6; }
  13843. if test "${ac_cv_prog_YACC+set}" = set; then :
  13844. $as_echo_n "(cached) " >&6
  13845. else
  13846. if test -n "$YACC"; then
  13847. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  13848. else
  13849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13850. for as_dir in $PATH
  13851. do
  13852. IFS=$as_save_IFS
  13853. test -z "$as_dir" && as_dir=.
  13854. for ac_exec_ext in '' $ac_executable_extensions; do
  13855. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13856. ac_cv_prog_YACC="$ac_prog"
  13857. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13858. break 2
  13859. fi
  13860. done
  13861. done
  13862. IFS=$as_save_IFS
  13863. fi
  13864. fi
  13865. YACC=$ac_cv_prog_YACC
  13866. if test -n "$YACC"; then
  13867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  13868. $as_echo "$YACC" >&6; }
  13869. else
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13871. $as_echo "no" >&6; }
  13872. fi
  13873. test -n "$YACC" && break
  13874. done
  13875. test -n "$YACC" || YACC="yacc"
  13876. for ac_prog in flex lex
  13877. do
  13878. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13879. set dummy $ac_prog; ac_word=$2
  13880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13881. $as_echo_n "checking for $ac_word... " >&6; }
  13882. if test "${ac_cv_prog_LEX+set}" = set; then :
  13883. $as_echo_n "(cached) " >&6
  13884. else
  13885. if test -n "$LEX"; then
  13886. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  13887. else
  13888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13889. for as_dir in $PATH
  13890. do
  13891. IFS=$as_save_IFS
  13892. test -z "$as_dir" && as_dir=.
  13893. for ac_exec_ext in '' $ac_executable_extensions; do
  13894. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13895. ac_cv_prog_LEX="$ac_prog"
  13896. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13897. break 2
  13898. fi
  13899. done
  13900. done
  13901. IFS=$as_save_IFS
  13902. fi
  13903. fi
  13904. LEX=$ac_cv_prog_LEX
  13905. if test -n "$LEX"; then
  13906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  13907. $as_echo "$LEX" >&6; }
  13908. else
  13909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13910. $as_echo "no" >&6; }
  13911. fi
  13912. test -n "$LEX" && break
  13913. done
  13914. test -n "$LEX" || LEX=":"
  13915. if test "x$LEX" != "x:"; then
  13916. cat >conftest.l <<_ACEOF
  13917. %%
  13918. a { ECHO; }
  13919. b { REJECT; }
  13920. c { yymore (); }
  13921. d { yyless (1); }
  13922. e { yyless (input () != 0); }
  13923. f { unput (yytext[0]); }
  13924. . { BEGIN INITIAL; }
  13925. %%
  13926. #ifdef YYTEXT_POINTER
  13927. extern char *yytext;
  13928. #endif
  13929. int
  13930. main (void)
  13931. {
  13932. return ! yylex () + ! yywrap ();
  13933. }
  13934. _ACEOF
  13935. { { ac_try="$LEX conftest.l"
  13936. case "(($ac_try" in
  13937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13938. *) ac_try_echo=$ac_try;;
  13939. esac
  13940. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13941. $as_echo "$ac_try_echo"; } >&5
  13942. (eval "$LEX conftest.l") 2>&5
  13943. ac_status=$?
  13944. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13945. test $ac_status = 0; }
  13946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  13947. $as_echo_n "checking lex output file root... " >&6; }
  13948. if test "${ac_cv_prog_lex_root+set}" = set; then :
  13949. $as_echo_n "(cached) " >&6
  13950. else
  13951. if test -f lex.yy.c; then
  13952. ac_cv_prog_lex_root=lex.yy
  13953. elif test -f lexyy.c; then
  13954. ac_cv_prog_lex_root=lexyy
  13955. else
  13956. as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
  13957. fi
  13958. fi
  13959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  13960. $as_echo "$ac_cv_prog_lex_root" >&6; }
  13961. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  13962. if test -z "${LEXLIB+set}"; then
  13963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  13964. $as_echo_n "checking lex library... " >&6; }
  13965. if test "${ac_cv_lib_lex+set}" = set; then :
  13966. $as_echo_n "(cached) " >&6
  13967. else
  13968. ac_save_LIBS=$LIBS
  13969. ac_cv_lib_lex='none needed'
  13970. for ac_lib in '' -lfl -ll; do
  13971. LIBS="$ac_lib $ac_save_LIBS"
  13972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13973. /* end confdefs.h. */
  13974. `cat $LEX_OUTPUT_ROOT.c`
  13975. _ACEOF
  13976. if ac_fn_c_try_link "$LINENO"; then :
  13977. ac_cv_lib_lex=$ac_lib
  13978. fi
  13979. rm -f core conftest.err conftest.$ac_objext \
  13980. conftest$ac_exeext conftest.$ac_ext
  13981. test "$ac_cv_lib_lex" != 'none needed' && break
  13982. done
  13983. LIBS=$ac_save_LIBS
  13984. fi
  13985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  13986. $as_echo "$ac_cv_lib_lex" >&6; }
  13987. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  13988. fi
  13989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  13990. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  13991. if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
  13992. $as_echo_n "(cached) " >&6
  13993. else
  13994. # POSIX says lex can declare yytext either as a pointer or an array; the
  13995. # default is implementation-dependent. Figure out which it is, since
  13996. # not all implementations provide the %pointer and %array declarations.
  13997. ac_cv_prog_lex_yytext_pointer=no
  13998. ac_save_LIBS=$LIBS
  13999. LIBS="$LEXLIB $ac_save_LIBS"
  14000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14001. /* end confdefs.h. */
  14002. #define YYTEXT_POINTER 1
  14003. `cat $LEX_OUTPUT_ROOT.c`
  14004. _ACEOF
  14005. if ac_fn_c_try_link "$LINENO"; then :
  14006. ac_cv_prog_lex_yytext_pointer=yes
  14007. fi
  14008. rm -f core conftest.err conftest.$ac_objext \
  14009. conftest$ac_exeext conftest.$ac_ext
  14010. LIBS=$ac_save_LIBS
  14011. fi
  14012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  14013. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  14014. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  14015. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  14016. fi
  14017. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  14018. fi
  14019. if test "$LEX" = :; then
  14020. LEX=${am_missing_run}flex
  14021. fi
  14022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  14023. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  14024. # Check whether --enable-maintainer-mode was given.
  14025. if test "${enable_maintainer_mode+set}" = set; then :
  14026. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  14027. else
  14028. USE_MAINTAINER_MODE=no
  14029. fi
  14030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  14031. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  14032. if test $USE_MAINTAINER_MODE = yes; then
  14033. MAINTAINER_MODE_TRUE=
  14034. MAINTAINER_MODE_FALSE='#'
  14035. else
  14036. MAINTAINER_MODE_TRUE='#'
  14037. MAINTAINER_MODE_FALSE=
  14038. fi
  14039. MAINT=$MAINTAINER_MODE_TRUE
  14040. if false; then
  14041. GENINSRC_NEVER_TRUE=
  14042. GENINSRC_NEVER_FALSE='#'
  14043. else
  14044. GENINSRC_NEVER_TRUE='#'
  14045. GENINSRC_NEVER_FALSE=
  14046. fi
  14047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
  14048. $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
  14049. if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
  14050. $as_echo_n "(cached) " >&6
  14051. else
  14052. echo abfoo >t1
  14053. echo cdfoo >t2
  14054. gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  14055. if cmp t1 t2 2 2 > /dev/null 2>&1; then
  14056. if cmp t1 t2 1 1 > /dev/null 2>&1; then
  14057. :
  14058. else
  14059. gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
  14060. fi
  14061. fi
  14062. if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
  14063. if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
  14064. :
  14065. else
  14066. gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
  14067. fi
  14068. fi
  14069. rm t1 t2
  14070. fi
  14071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
  14072. $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
  14073. do_compare="$gcc_cv_prog_cmp_skip"
  14074. . ${srcdir}/configure.host
  14075. for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
  14076. do :
  14077. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14078. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14079. eval as_val=\$$as_ac_Header
  14080. if test "x$as_val" = x""yes; then :
  14081. cat >>confdefs.h <<_ACEOF
  14082. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14083. _ACEOF
  14084. fi
  14085. done
  14086. for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
  14087. do :
  14088. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14089. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14090. eval as_val=\$$as_ac_Header
  14091. if test "x$as_val" = x""yes; then :
  14092. cat >>confdefs.h <<_ACEOF
  14093. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14094. _ACEOF
  14095. fi
  14096. done
  14097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  14098. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  14099. if test "${gcc_cv_header_string+set}" = set; then :
  14100. $as_echo_n "(cached) " >&6
  14101. else
  14102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14103. /* end confdefs.h. */
  14104. #include <string.h>
  14105. #include <strings.h>
  14106. int
  14107. main ()
  14108. {
  14109. ;
  14110. return 0;
  14111. }
  14112. _ACEOF
  14113. if ac_fn_c_try_compile "$LINENO"; then :
  14114. gcc_cv_header_string=yes
  14115. else
  14116. gcc_cv_header_string=no
  14117. fi
  14118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14119. fi
  14120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  14121. $as_echo "$gcc_cv_header_string" >&6; }
  14122. if test $gcc_cv_header_string = yes; then
  14123. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  14124. fi
  14125. for ac_func in glob mkstemp realpath sbrk setlocale waitpid
  14126. do :
  14127. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14128. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14129. eval as_val=\$$as_ac_var
  14130. if test "x$as_val" = x""yes; then :
  14131. cat >>confdefs.h <<_ACEOF
  14132. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14133. _ACEOF
  14134. fi
  14135. done
  14136. for ac_func in open lseek close
  14137. do :
  14138. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14139. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14140. eval as_val=\$$as_ac_var
  14141. if test "x$as_val" = x""yes; then :
  14142. cat >>confdefs.h <<_ACEOF
  14143. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14144. _ACEOF
  14145. fi
  14146. done
  14147. ac_header_dirent=no
  14148. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  14149. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  14150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  14151. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  14152. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  14153. $as_echo_n "(cached) " >&6
  14154. else
  14155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14156. /* end confdefs.h. */
  14157. #include <sys/types.h>
  14158. #include <$ac_hdr>
  14159. int
  14160. main ()
  14161. {
  14162. if ((DIR *) 0)
  14163. return 0;
  14164. ;
  14165. return 0;
  14166. }
  14167. _ACEOF
  14168. if ac_fn_c_try_compile "$LINENO"; then :
  14169. eval "$as_ac_Header=yes"
  14170. else
  14171. eval "$as_ac_Header=no"
  14172. fi
  14173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14174. fi
  14175. eval ac_res=\$$as_ac_Header
  14176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14177. $as_echo "$ac_res" >&6; }
  14178. eval as_val=\$$as_ac_Header
  14179. if test "x$as_val" = x""yes; then :
  14180. cat >>confdefs.h <<_ACEOF
  14181. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  14182. _ACEOF
  14183. ac_header_dirent=$ac_hdr; break
  14184. fi
  14185. done
  14186. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  14187. if test $ac_header_dirent = dirent.h; then
  14188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  14189. $as_echo_n "checking for library containing opendir... " >&6; }
  14190. if test "${ac_cv_search_opendir+set}" = set; then :
  14191. $as_echo_n "(cached) " >&6
  14192. else
  14193. ac_func_search_save_LIBS=$LIBS
  14194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14195. /* end confdefs.h. */
  14196. /* Override any GCC internal prototype to avoid an error.
  14197. Use char because int might match the return type of a GCC
  14198. builtin and then its argument prototype would still apply. */
  14199. #ifdef __cplusplus
  14200. extern "C"
  14201. #endif
  14202. char opendir ();
  14203. int
  14204. main ()
  14205. {
  14206. return opendir ();
  14207. ;
  14208. return 0;
  14209. }
  14210. _ACEOF
  14211. for ac_lib in '' dir; do
  14212. if test -z "$ac_lib"; then
  14213. ac_res="none required"
  14214. else
  14215. ac_res=-l$ac_lib
  14216. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14217. fi
  14218. if ac_fn_c_try_link "$LINENO"; then :
  14219. ac_cv_search_opendir=$ac_res
  14220. fi
  14221. rm -f core conftest.err conftest.$ac_objext \
  14222. conftest$ac_exeext
  14223. if test "${ac_cv_search_opendir+set}" = set; then :
  14224. break
  14225. fi
  14226. done
  14227. if test "${ac_cv_search_opendir+set}" = set; then :
  14228. else
  14229. ac_cv_search_opendir=no
  14230. fi
  14231. rm conftest.$ac_ext
  14232. LIBS=$ac_func_search_save_LIBS
  14233. fi
  14234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  14235. $as_echo "$ac_cv_search_opendir" >&6; }
  14236. ac_res=$ac_cv_search_opendir
  14237. if test "$ac_res" != no; then :
  14238. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14239. fi
  14240. else
  14241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  14242. $as_echo_n "checking for library containing opendir... " >&6; }
  14243. if test "${ac_cv_search_opendir+set}" = set; then :
  14244. $as_echo_n "(cached) " >&6
  14245. else
  14246. ac_func_search_save_LIBS=$LIBS
  14247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14248. /* end confdefs.h. */
  14249. /* Override any GCC internal prototype to avoid an error.
  14250. Use char because int might match the return type of a GCC
  14251. builtin and then its argument prototype would still apply. */
  14252. #ifdef __cplusplus
  14253. extern "C"
  14254. #endif
  14255. char opendir ();
  14256. int
  14257. main ()
  14258. {
  14259. return opendir ();
  14260. ;
  14261. return 0;
  14262. }
  14263. _ACEOF
  14264. for ac_lib in '' x; do
  14265. if test -z "$ac_lib"; then
  14266. ac_res="none required"
  14267. else
  14268. ac_res=-l$ac_lib
  14269. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14270. fi
  14271. if ac_fn_c_try_link "$LINENO"; then :
  14272. ac_cv_search_opendir=$ac_res
  14273. fi
  14274. rm -f core conftest.err conftest.$ac_objext \
  14275. conftest$ac_exeext
  14276. if test "${ac_cv_search_opendir+set}" = set; then :
  14277. break
  14278. fi
  14279. done
  14280. if test "${ac_cv_search_opendir+set}" = set; then :
  14281. else
  14282. ac_cv_search_opendir=no
  14283. fi
  14284. rm conftest.$ac_ext
  14285. LIBS=$ac_func_search_save_LIBS
  14286. fi
  14287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  14288. $as_echo "$ac_cv_search_opendir" >&6; }
  14289. ac_res=$ac_cv_search_opendir
  14290. if test "$ac_res" != no; then :
  14291. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14292. fi
  14293. fi
  14294. for ac_header in stdlib.h unistd.h
  14295. do :
  14296. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14297. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14298. eval as_val=\$$as_ac_Header
  14299. if test "x$as_val" = x""yes; then :
  14300. cat >>confdefs.h <<_ACEOF
  14301. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14302. _ACEOF
  14303. fi
  14304. done
  14305. for ac_func in getpagesize
  14306. do :
  14307. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14308. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  14309. cat >>confdefs.h <<_ACEOF
  14310. #define HAVE_GETPAGESIZE 1
  14311. _ACEOF
  14312. fi
  14313. done
  14314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14315. $as_echo_n "checking for working mmap... " >&6; }
  14316. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  14317. $as_echo_n "(cached) " >&6
  14318. else
  14319. if test "$cross_compiling" = yes; then :
  14320. ac_cv_func_mmap_fixed_mapped=no
  14321. else
  14322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14323. /* end confdefs.h. */
  14324. $ac_includes_default
  14325. /* malloc might have been renamed as rpl_malloc. */
  14326. #undef malloc
  14327. /* Thanks to Mike Haertel and Jim Avera for this test.
  14328. Here is a matrix of mmap possibilities:
  14329. mmap private not fixed
  14330. mmap private fixed at somewhere currently unmapped
  14331. mmap private fixed at somewhere already mapped
  14332. mmap shared not fixed
  14333. mmap shared fixed at somewhere currently unmapped
  14334. mmap shared fixed at somewhere already mapped
  14335. For private mappings, we should verify that changes cannot be read()
  14336. back from the file, nor mmap's back from the file at a different
  14337. address. (There have been systems where private was not correctly
  14338. implemented like the infamous i386 svr4.0, and systems where the
  14339. VM page cache was not coherent with the file system buffer cache
  14340. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14341. For shared mappings, we should conversely verify that changes get
  14342. propagated back to all the places they're supposed to be.
  14343. Grep wants private fixed already mapped.
  14344. The main things grep needs to know about mmap are:
  14345. * does it exist and is it safe to write into the mmap'd area
  14346. * how to use it (BSD variants) */
  14347. #include <fcntl.h>
  14348. #include <sys/mman.h>
  14349. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14350. char *malloc ();
  14351. #endif
  14352. /* This mess was copied from the GNU getpagesize.h. */
  14353. #ifndef HAVE_GETPAGESIZE
  14354. /* Assume that all systems that can run configure have sys/param.h. */
  14355. # ifndef HAVE_SYS_PARAM_H
  14356. # define HAVE_SYS_PARAM_H 1
  14357. # endif
  14358. # ifdef _SC_PAGESIZE
  14359. # define getpagesize() sysconf(_SC_PAGESIZE)
  14360. # else /* no _SC_PAGESIZE */
  14361. # ifdef HAVE_SYS_PARAM_H
  14362. # include <sys/param.h>
  14363. # ifdef EXEC_PAGESIZE
  14364. # define getpagesize() EXEC_PAGESIZE
  14365. # else /* no EXEC_PAGESIZE */
  14366. # ifdef NBPG
  14367. # define getpagesize() NBPG * CLSIZE
  14368. # ifndef CLSIZE
  14369. # define CLSIZE 1
  14370. # endif /* no CLSIZE */
  14371. # else /* no NBPG */
  14372. # ifdef NBPC
  14373. # define getpagesize() NBPC
  14374. # else /* no NBPC */
  14375. # ifdef PAGESIZE
  14376. # define getpagesize() PAGESIZE
  14377. # endif /* PAGESIZE */
  14378. # endif /* no NBPC */
  14379. # endif /* no NBPG */
  14380. # endif /* no EXEC_PAGESIZE */
  14381. # else /* no HAVE_SYS_PARAM_H */
  14382. # define getpagesize() 8192 /* punt totally */
  14383. # endif /* no HAVE_SYS_PARAM_H */
  14384. # endif /* no _SC_PAGESIZE */
  14385. #endif /* no HAVE_GETPAGESIZE */
  14386. int
  14387. main ()
  14388. {
  14389. char *data, *data2, *data3;
  14390. int i, pagesize;
  14391. int fd;
  14392. pagesize = getpagesize ();
  14393. /* First, make a file with some known garbage in it. */
  14394. data = (char *) malloc (pagesize);
  14395. if (!data)
  14396. return 1;
  14397. for (i = 0; i < pagesize; ++i)
  14398. *(data + i) = rand ();
  14399. umask (0);
  14400. fd = creat ("conftest.mmap", 0600);
  14401. if (fd < 0)
  14402. return 1;
  14403. if (write (fd, data, pagesize) != pagesize)
  14404. return 1;
  14405. close (fd);
  14406. /* Next, try to mmap the file at a fixed address which already has
  14407. something else allocated at it. If we can, also make sure that
  14408. we see the same garbage. */
  14409. fd = open ("conftest.mmap", O_RDWR);
  14410. if (fd < 0)
  14411. return 1;
  14412. data2 = (char *) malloc (2 * pagesize);
  14413. if (!data2)
  14414. return 1;
  14415. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  14416. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14417. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14418. return 1;
  14419. for (i = 0; i < pagesize; ++i)
  14420. if (*(data + i) != *(data2 + i))
  14421. return 1;
  14422. /* Finally, make sure that changes to the mapped area do not
  14423. percolate back to the file as seen by read(). (This is a bug on
  14424. some variants of i386 svr4.0.) */
  14425. for (i = 0; i < pagesize; ++i)
  14426. *(data2 + i) = *(data2 + i) + 1;
  14427. data3 = (char *) malloc (pagesize);
  14428. if (!data3)
  14429. return 1;
  14430. if (read (fd, data3, pagesize) != pagesize)
  14431. return 1;
  14432. for (i = 0; i < pagesize; ++i)
  14433. if (*(data + i) != *(data3 + i))
  14434. return 1;
  14435. close (fd);
  14436. return 0;
  14437. }
  14438. _ACEOF
  14439. if ac_fn_c_try_run "$LINENO"; then :
  14440. ac_cv_func_mmap_fixed_mapped=yes
  14441. else
  14442. ac_cv_func_mmap_fixed_mapped=no
  14443. fi
  14444. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14445. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14446. fi
  14447. fi
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14449. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14450. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14451. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14452. fi
  14453. rm -f conftest.mmap
  14454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  14455. $as_echo_n "checking for library containing dlopen... " >&6; }
  14456. if test "${ac_cv_search_dlopen+set}" = set; then :
  14457. $as_echo_n "(cached) " >&6
  14458. else
  14459. ac_func_search_save_LIBS=$LIBS
  14460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14461. /* end confdefs.h. */
  14462. /* Override any GCC internal prototype to avoid an error.
  14463. Use char because int might match the return type of a GCC
  14464. builtin and then its argument prototype would still apply. */
  14465. #ifdef __cplusplus
  14466. extern "C"
  14467. #endif
  14468. char dlopen ();
  14469. int
  14470. main ()
  14471. {
  14472. return dlopen ();
  14473. ;
  14474. return 0;
  14475. }
  14476. _ACEOF
  14477. for ac_lib in '' dl; do
  14478. if test -z "$ac_lib"; then
  14479. ac_res="none required"
  14480. else
  14481. ac_res=-l$ac_lib
  14482. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14483. fi
  14484. if ac_fn_c_try_link "$LINENO"; then :
  14485. ac_cv_search_dlopen=$ac_res
  14486. fi
  14487. rm -f core conftest.err conftest.$ac_objext \
  14488. conftest$ac_exeext
  14489. if test "${ac_cv_search_dlopen+set}" = set; then :
  14490. break
  14491. fi
  14492. done
  14493. if test "${ac_cv_search_dlopen+set}" = set; then :
  14494. else
  14495. ac_cv_search_dlopen=no
  14496. fi
  14497. rm conftest.$ac_ext
  14498. LIBS=$ac_func_search_save_LIBS
  14499. fi
  14500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  14501. $as_echo "$ac_cv_search_dlopen" >&6; }
  14502. ac_res=$ac_cv_search_dlopen
  14503. if test "$ac_res" != no; then :
  14504. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14505. fi
  14506. if test x$plugins = xyes; then
  14507. ENABLE_PLUGINS_TRUE=
  14508. ENABLE_PLUGINS_FALSE='#'
  14509. else
  14510. ENABLE_PLUGINS_TRUE='#'
  14511. ENABLE_PLUGINS_FALSE=
  14512. fi
  14513. # Check whether --enable-initfini-array was given.
  14514. if test "${enable_initfini_array+set}" = set; then :
  14515. enableval=$enable_initfini_array;
  14516. else
  14517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
  14518. $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
  14519. if test "${gcc_cv_initfini_array+set}" = set; then :
  14520. $as_echo_n "(cached) " >&6
  14521. else
  14522. if test "x${build}" = "x${target}" ; then
  14523. if test "$cross_compiling" = yes; then :
  14524. gcc_cv_initfini_array=no
  14525. else
  14526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14527. /* end confdefs.h. */
  14528. static int x = -1;
  14529. int main (void) { return x; }
  14530. int foo (void) { x = 0; }
  14531. int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
  14532. _ACEOF
  14533. if ac_fn_c_try_run "$LINENO"; then :
  14534. gcc_cv_initfini_array=yes
  14535. else
  14536. gcc_cv_initfini_array=no
  14537. fi
  14538. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14539. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14540. fi
  14541. else
  14542. gcc_cv_initfini_array=no
  14543. fi
  14544. fi
  14545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
  14546. $as_echo "$gcc_cv_initfini_array" >&6; }
  14547. enable_initfini_array=$gcc_cv_initfini_array
  14548. fi
  14549. if test $enable_initfini_array = yes; then
  14550. $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
  14551. fi
  14552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
  14553. $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
  14554. if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
  14555. $as_echo_n "(cached) " >&6
  14556. else
  14557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14558. /* end confdefs.h. */
  14559. #include <unistd.h>
  14560. int
  14561. main ()
  14562. {
  14563. extern int getopt (int, char *const*, const char *);
  14564. ;
  14565. return 0;
  14566. }
  14567. _ACEOF
  14568. if ac_fn_c_try_compile "$LINENO"; then :
  14569. ld_cv_decl_getopt_unistd_h=yes
  14570. else
  14571. ld_cv_decl_getopt_unistd_h=no
  14572. fi
  14573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14574. fi
  14575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
  14576. $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
  14577. if test $ld_cv_decl_getopt_unistd_h = yes; then
  14578. $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
  14579. fi
  14580. case "${host}" in
  14581. *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
  14582. $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
  14583. ;;
  14584. esac
  14585. ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
  14586. if test "x$ac_cv_have_decl_strstr" = x""yes; then :
  14587. ac_have_decl=1
  14588. else
  14589. ac_have_decl=0
  14590. fi
  14591. cat >>confdefs.h <<_ACEOF
  14592. #define HAVE_DECL_STRSTR $ac_have_decl
  14593. _ACEOF
  14594. ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
  14595. if test "x$ac_cv_have_decl_free" = x""yes; then :
  14596. ac_have_decl=1
  14597. else
  14598. ac_have_decl=0
  14599. fi
  14600. cat >>confdefs.h <<_ACEOF
  14601. #define HAVE_DECL_FREE $ac_have_decl
  14602. _ACEOF
  14603. ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
  14604. if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
  14605. ac_have_decl=1
  14606. else
  14607. ac_have_decl=0
  14608. fi
  14609. cat >>confdefs.h <<_ACEOF
  14610. #define HAVE_DECL_SBRK $ac_have_decl
  14611. _ACEOF
  14612. ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
  14613. if test "x$ac_cv_have_decl_getenv" = x""yes; then :
  14614. ac_have_decl=1
  14615. else
  14616. ac_have_decl=0
  14617. fi
  14618. cat >>confdefs.h <<_ACEOF
  14619. #define HAVE_DECL_GETENV $ac_have_decl
  14620. _ACEOF
  14621. ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
  14622. if test "x$ac_cv_have_decl_environ" = x""yes; then :
  14623. ac_have_decl=1
  14624. else
  14625. ac_have_decl=0
  14626. fi
  14627. cat >>confdefs.h <<_ACEOF
  14628. #define HAVE_DECL_ENVIRON $ac_have_decl
  14629. _ACEOF
  14630. # When converting linker scripts into strings for use in emulation
  14631. # files, use astring.sed if the compiler supports ANSI string
  14632. # concatenation, or ostring.sed otherwise. This is to support the
  14633. # broken Microsoft MSVC compiler, which limits the length of string
  14634. # constants, while still supporting pre-ANSI compilers which do not
  14635. # support string concatenation.
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
  14637. $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
  14638. if test "${ld_cv_string_concatenation+set}" = set; then :
  14639. $as_echo_n "(cached) " >&6
  14640. else
  14641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14642. /* end confdefs.h. */
  14643. int
  14644. main ()
  14645. {
  14646. char *a = "a" "a";
  14647. ;
  14648. return 0;
  14649. }
  14650. _ACEOF
  14651. if ac_fn_c_try_compile "$LINENO"; then :
  14652. ld_cv_string_concatenation=yes
  14653. else
  14654. ld_cv_string_concatenation=no
  14655. fi
  14656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14657. fi
  14658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
  14659. $as_echo "$ld_cv_string_concatenation" >&6; }
  14660. if test "$ld_cv_string_concatenation" = "yes"; then
  14661. STRINGIFY=astring.sed
  14662. else
  14663. STRINGIFY=ostring.sed
  14664. fi
  14665. # target-specific stuff:
  14666. all_targets=
  14667. EMUL=
  14668. all_emuls=
  14669. all_emul_extras=
  14670. all_libpath=
  14671. rm -f tdirs
  14672. # If the host is 64-bit, then we enable 64-bit targets by default.
  14673. # This is consistent with what ../bfd/configure.ac does.
  14674. if test x${want64} = xfalse; then
  14675. # The cast to long int works around a bug in the HP C Compiler
  14676. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14677. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14678. # This bug is HP SR number 8606223364.
  14679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  14680. $as_echo_n "checking size of void *... " >&6; }
  14681. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  14682. $as_echo_n "(cached) " >&6
  14683. else
  14684. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  14685. else
  14686. if test "$ac_cv_type_void_p" = yes; then
  14687. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14688. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14689. { as_fn_set_status 77
  14690. as_fn_error "cannot compute sizeof (void *)
  14691. See \`config.log' for more details." "$LINENO" 5; }; }
  14692. else
  14693. ac_cv_sizeof_void_p=0
  14694. fi
  14695. fi
  14696. fi
  14697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  14698. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  14699. cat >>confdefs.h <<_ACEOF
  14700. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  14701. _ACEOF
  14702. if test "x${ac_cv_sizeof_void_p}" = "x8"; then
  14703. want64=true
  14704. fi
  14705. fi
  14706. elf_list_options=FALSE
  14707. elf_shlib_list_options=FALSE
  14708. elf_plt_unwind_list_options=FALSE
  14709. for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
  14710. do
  14711. if test "$targ_alias" = "all"; then
  14712. all_targets=true
  14713. elf_list_options=TRUE
  14714. elf_shlib_list_options=TRUE
  14715. elf_plt_unwind_list_options=TRUE
  14716. else
  14717. # Canonicalize the secondary target names.
  14718. result=`$ac_config_sub $targ_alias 2>/dev/null`
  14719. if test -n "$result"; then
  14720. targ=$result
  14721. else
  14722. targ=$targ_alias
  14723. fi
  14724. . ${srcdir}/configure.tgt
  14725. if test "$targ" = "$target"; then
  14726. EMUL=$targ_emul
  14727. fi
  14728. if test x${want64} = xfalse; then
  14729. . ${srcdir}/../bfd/config.bfd
  14730. fi
  14731. if test x${want64} = xtrue; then
  14732. targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
  14733. targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
  14734. fi
  14735. for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
  14736. case " $all_emuls " in
  14737. *" e${i}.o "*) ;;
  14738. *)
  14739. all_emuls="$all_emuls e${i}.o"
  14740. eval result=\$tdir_$i
  14741. test -z "$result" && result=$targ_alias
  14742. echo tdir_$i=$result >> tdirs
  14743. case "${i}" in
  14744. *elf*)
  14745. elf_list_options=TRUE
  14746. ;;
  14747. *)
  14748. if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
  14749. elf_list_options=TRUE
  14750. fi
  14751. ;;
  14752. esac
  14753. if test "$elf_list_options" = "TRUE"; then
  14754. . ${srcdir}/emulparams/${i}.sh
  14755. if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
  14756. elf_shlib_list_options=TRUE
  14757. fi
  14758. if test x${PLT_UNWIND} = xyes; then
  14759. elf_plt_unwind_list_options=TRUE
  14760. fi
  14761. fi
  14762. ;;
  14763. esac
  14764. done
  14765. for i in $targ_emul $targ_extra_libpath; do
  14766. case " $all_libpath " in
  14767. *" ${i} "*) ;;
  14768. *)
  14769. if test -z "$all_libpath"; then
  14770. all_libpath=${i}
  14771. else
  14772. all_libpath="$all_libpath ${i}"
  14773. fi
  14774. ;;
  14775. esac
  14776. done
  14777. for i in $targ_extra_ofiles; do
  14778. case " $all_emul_extras " in
  14779. *" ${i} "*) ;;
  14780. *)
  14781. all_emul_extras="$all_emul_extras ${i}"
  14782. ;;
  14783. esac
  14784. done
  14785. fi
  14786. done
  14787. if test x$ac_default_compressed_debug_sections == xyes ; then
  14788. $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
  14789. fi
  14790. TDIRS=tdirs
  14791. if test x${all_targets} = xtrue; then
  14792. if test x${want64} = xtrue; then
  14793. EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
  14794. EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
  14795. else
  14796. EMULATION_OFILES='$(ALL_EMULATIONS)'
  14797. EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
  14798. fi
  14799. else
  14800. EMULATION_OFILES=$all_emuls
  14801. EMUL_EXTRA_OFILES=$all_emul_extras
  14802. fi
  14803. EMULATION_LIBPATH=$all_libpath
  14804. if test x${enable_static} = xno; then
  14805. TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
  14806. else
  14807. TESTBFDLIB="../bfd/.libs/libbfd.a"
  14808. fi
  14809. target_vendor=${target_vendor=$host_vendor}
  14810. case "$target_vendor" in
  14811. hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
  14812. *) EXTRA_SHLIB_EXTENSION= ;;
  14813. esac
  14814. case "$target_os" in
  14815. lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
  14816. esac
  14817. if test x${EXTRA_SHLIB_EXTENSION} != x ; then
  14818. cat >>confdefs.h <<_ACEOF
  14819. #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
  14820. _ACEOF
  14821. fi
  14822. ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
  14823. cat >confcache <<\_ACEOF
  14824. # This file is a shell script that caches the results of configure
  14825. # tests run on this system so they can be shared between configure
  14826. # scripts and configure runs, see configure's option --config-cache.
  14827. # It is not useful on other systems. If it contains results you don't
  14828. # want to keep, you may remove or edit it.
  14829. #
  14830. # config.status only pays attention to the cache file if you give it
  14831. # the --recheck option to rerun configure.
  14832. #
  14833. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14834. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14835. # following values.
  14836. _ACEOF
  14837. # The following way of writing the cache mishandles newlines in values,
  14838. # but we know of no workaround that is simple, portable, and efficient.
  14839. # So, we kill variables containing newlines.
  14840. # Ultrix sh set writes to stderr and can't be redirected directly,
  14841. # and sets the high bit in the cache file unless we assign to the vars.
  14842. (
  14843. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14844. eval ac_val=\$$ac_var
  14845. case $ac_val in #(
  14846. *${as_nl}*)
  14847. case $ac_var in #(
  14848. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14849. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14850. esac
  14851. case $ac_var in #(
  14852. _ | IFS | as_nl) ;; #(
  14853. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14854. *) { eval $ac_var=; unset $ac_var;} ;;
  14855. esac ;;
  14856. esac
  14857. done
  14858. (set) 2>&1 |
  14859. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14860. *${as_nl}ac_space=\ *)
  14861. # `set' does not quote correctly, so add quotes: double-quote
  14862. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14863. sed -n \
  14864. "s/'/'\\\\''/g;
  14865. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14866. ;; #(
  14867. *)
  14868. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14869. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14870. ;;
  14871. esac |
  14872. sort
  14873. ) |
  14874. sed '
  14875. /^ac_cv_env_/b end
  14876. t clear
  14877. :clear
  14878. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14879. t end
  14880. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14881. :end' >>confcache
  14882. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14883. if test -w "$cache_file"; then
  14884. test "x$cache_file" != "x/dev/null" &&
  14885. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14886. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14887. cat confcache >$cache_file
  14888. else
  14889. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14890. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14891. fi
  14892. fi
  14893. rm -f confcache
  14894. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14895. # Let make expand exec_prefix.
  14896. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14897. DEFS=-DHAVE_CONFIG_H
  14898. ac_libobjs=
  14899. ac_ltlibobjs=
  14900. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14901. # 1. Remove the extension, and $U if already installed.
  14902. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14903. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14904. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14905. # will be set to the directory where LIBOBJS objects are built.
  14906. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14907. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14908. done
  14909. LIBOBJS=$ac_libobjs
  14910. LTLIBOBJS=$ac_ltlibobjs
  14911. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14912. as_fn_error "conditional \"AMDEP\" was never defined.
  14913. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14914. fi
  14915. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14916. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  14917. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14918. fi
  14919. if test -n "$EXEEXT"; then
  14920. am__EXEEXT_TRUE=
  14921. am__EXEEXT_FALSE='#'
  14922. else
  14923. am__EXEEXT_TRUE='#'
  14924. am__EXEEXT_FALSE=
  14925. fi
  14926. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14927. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  14928. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14929. fi
  14930. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14931. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  14932. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14933. fi
  14934. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14935. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  14936. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14937. fi
  14938. if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
  14939. as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
  14940. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14941. fi
  14942. if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
  14943. as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
  14944. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14945. fi
  14946. : ${CONFIG_STATUS=./config.status}
  14947. ac_write_fail=0
  14948. ac_clean_files_save=$ac_clean_files
  14949. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14950. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14951. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14952. as_write_fail=0
  14953. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14954. #! $SHELL
  14955. # Generated by $as_me.
  14956. # Run this file to recreate the current configuration.
  14957. # Compiler output produced by configure, useful for debugging
  14958. # configure, is in config.log if it exists.
  14959. debug=false
  14960. ac_cs_recheck=false
  14961. ac_cs_silent=false
  14962. SHELL=\${CONFIG_SHELL-$SHELL}
  14963. export SHELL
  14964. _ASEOF
  14965. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14966. ## -------------------- ##
  14967. ## M4sh Initialization. ##
  14968. ## -------------------- ##
  14969. # Be more Bourne compatible
  14970. DUALCASE=1; export DUALCASE # for MKS sh
  14971. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14972. emulate sh
  14973. NULLCMD=:
  14974. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14975. # is contrary to our usage. Disable this feature.
  14976. alias -g '${1+"$@"}'='"$@"'
  14977. setopt NO_GLOB_SUBST
  14978. else
  14979. case `(set -o) 2>/dev/null` in #(
  14980. *posix*) :
  14981. set -o posix ;; #(
  14982. *) :
  14983. ;;
  14984. esac
  14985. fi
  14986. as_nl='
  14987. '
  14988. export as_nl
  14989. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14990. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14991. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14992. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14993. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14994. # but without wasting forks for bash or zsh.
  14995. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14996. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14997. as_echo='print -r --'
  14998. as_echo_n='print -rn --'
  14999. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15000. as_echo='printf %s\n'
  15001. as_echo_n='printf %s'
  15002. else
  15003. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15004. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15005. as_echo_n='/usr/ucb/echo -n'
  15006. else
  15007. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15008. as_echo_n_body='eval
  15009. arg=$1;
  15010. case $arg in #(
  15011. *"$as_nl"*)
  15012. expr "X$arg" : "X\\(.*\\)$as_nl";
  15013. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15014. esac;
  15015. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15016. '
  15017. export as_echo_n_body
  15018. as_echo_n='sh -c $as_echo_n_body as_echo'
  15019. fi
  15020. export as_echo_body
  15021. as_echo='sh -c $as_echo_body as_echo'
  15022. fi
  15023. # The user is always right.
  15024. if test "${PATH_SEPARATOR+set}" != set; then
  15025. PATH_SEPARATOR=:
  15026. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15027. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15028. PATH_SEPARATOR=';'
  15029. }
  15030. fi
  15031. # IFS
  15032. # We need space, tab and new line, in precisely that order. Quoting is
  15033. # there to prevent editors from complaining about space-tab.
  15034. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15035. # splitting by setting IFS to empty value.)
  15036. IFS=" "" $as_nl"
  15037. # Find who we are. Look in the path if we contain no directory separator.
  15038. case $0 in #((
  15039. *[\\/]* ) as_myself=$0 ;;
  15040. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15041. for as_dir in $PATH
  15042. do
  15043. IFS=$as_save_IFS
  15044. test -z "$as_dir" && as_dir=.
  15045. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15046. done
  15047. IFS=$as_save_IFS
  15048. ;;
  15049. esac
  15050. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15051. # in which case we are not to be found in the path.
  15052. if test "x$as_myself" = x; then
  15053. as_myself=$0
  15054. fi
  15055. if test ! -f "$as_myself"; then
  15056. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15057. exit 1
  15058. fi
  15059. # Unset variables that we do not need and which cause bugs (e.g. in
  15060. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15061. # suppresses any "Segmentation fault" message there. '((' could
  15062. # trigger a bug in pdksh 5.2.14.
  15063. for as_var in BASH_ENV ENV MAIL MAILPATH
  15064. do eval test x\${$as_var+set} = xset \
  15065. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15066. done
  15067. PS1='$ '
  15068. PS2='> '
  15069. PS4='+ '
  15070. # NLS nuisances.
  15071. LC_ALL=C
  15072. export LC_ALL
  15073. LANGUAGE=C
  15074. export LANGUAGE
  15075. # CDPATH.
  15076. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15077. # as_fn_error ERROR [LINENO LOG_FD]
  15078. # ---------------------------------
  15079. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15080. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15081. # script with status $?, using 1 if that was 0.
  15082. as_fn_error ()
  15083. {
  15084. as_status=$?; test $as_status -eq 0 && as_status=1
  15085. if test "$3"; then
  15086. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15087. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  15088. fi
  15089. $as_echo "$as_me: error: $1" >&2
  15090. as_fn_exit $as_status
  15091. } # as_fn_error
  15092. # as_fn_set_status STATUS
  15093. # -----------------------
  15094. # Set $? to STATUS, without forking.
  15095. as_fn_set_status ()
  15096. {
  15097. return $1
  15098. } # as_fn_set_status
  15099. # as_fn_exit STATUS
  15100. # -----------------
  15101. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15102. as_fn_exit ()
  15103. {
  15104. set +e
  15105. as_fn_set_status $1
  15106. exit $1
  15107. } # as_fn_exit
  15108. # as_fn_unset VAR
  15109. # ---------------
  15110. # Portably unset VAR.
  15111. as_fn_unset ()
  15112. {
  15113. { eval $1=; unset $1;}
  15114. }
  15115. as_unset=as_fn_unset
  15116. # as_fn_append VAR VALUE
  15117. # ----------------------
  15118. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15119. # advantage of any shell optimizations that allow amortized linear growth over
  15120. # repeated appends, instead of the typical quadratic growth present in naive
  15121. # implementations.
  15122. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15123. eval 'as_fn_append ()
  15124. {
  15125. eval $1+=\$2
  15126. }'
  15127. else
  15128. as_fn_append ()
  15129. {
  15130. eval $1=\$$1\$2
  15131. }
  15132. fi # as_fn_append
  15133. # as_fn_arith ARG...
  15134. # ------------------
  15135. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15136. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15137. # must be portable across $(()) and expr.
  15138. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15139. eval 'as_fn_arith ()
  15140. {
  15141. as_val=$(( $* ))
  15142. }'
  15143. else
  15144. as_fn_arith ()
  15145. {
  15146. as_val=`expr "$@" || test $? -eq 1`
  15147. }
  15148. fi # as_fn_arith
  15149. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15150. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15151. as_expr=expr
  15152. else
  15153. as_expr=false
  15154. fi
  15155. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15156. as_basename=basename
  15157. else
  15158. as_basename=false
  15159. fi
  15160. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15161. as_dirname=dirname
  15162. else
  15163. as_dirname=false
  15164. fi
  15165. as_me=`$as_basename -- "$0" ||
  15166. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15167. X"$0" : 'X\(//\)$' \| \
  15168. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15169. $as_echo X/"$0" |
  15170. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15171. s//\1/
  15172. q
  15173. }
  15174. /^X\/\(\/\/\)$/{
  15175. s//\1/
  15176. q
  15177. }
  15178. /^X\/\(\/\).*/{
  15179. s//\1/
  15180. q
  15181. }
  15182. s/.*/./; q'`
  15183. # Avoid depending upon Character Ranges.
  15184. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15185. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15186. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15187. as_cr_digits='0123456789'
  15188. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15189. ECHO_C= ECHO_N= ECHO_T=
  15190. case `echo -n x` in #(((((
  15191. -n*)
  15192. case `echo 'xy\c'` in
  15193. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15194. xy) ECHO_C='\c';;
  15195. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15196. ECHO_T=' ';;
  15197. esac;;
  15198. *)
  15199. ECHO_N='-n';;
  15200. esac
  15201. rm -f conf$$ conf$$.exe conf$$.file
  15202. if test -d conf$$.dir; then
  15203. rm -f conf$$.dir/conf$$.file
  15204. else
  15205. rm -f conf$$.dir
  15206. mkdir conf$$.dir 2>/dev/null
  15207. fi
  15208. if (echo >conf$$.file) 2>/dev/null; then
  15209. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15210. as_ln_s='ln -s'
  15211. # ... but there are two gotchas:
  15212. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15213. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15214. # In both cases, we have to default to `cp -p'.
  15215. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15216. as_ln_s='cp -p'
  15217. elif ln conf$$.file conf$$ 2>/dev/null; then
  15218. as_ln_s=ln
  15219. else
  15220. as_ln_s='cp -p'
  15221. fi
  15222. else
  15223. as_ln_s='cp -p'
  15224. fi
  15225. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15226. rmdir conf$$.dir 2>/dev/null
  15227. # as_fn_mkdir_p
  15228. # -------------
  15229. # Create "$as_dir" as a directory, including parents if necessary.
  15230. as_fn_mkdir_p ()
  15231. {
  15232. case $as_dir in #(
  15233. -*) as_dir=./$as_dir;;
  15234. esac
  15235. test -d "$as_dir" || eval $as_mkdir_p || {
  15236. as_dirs=
  15237. while :; do
  15238. case $as_dir in #(
  15239. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15240. *) as_qdir=$as_dir;;
  15241. esac
  15242. as_dirs="'$as_qdir' $as_dirs"
  15243. as_dir=`$as_dirname -- "$as_dir" ||
  15244. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15245. X"$as_dir" : 'X\(//\)[^/]' \| \
  15246. X"$as_dir" : 'X\(//\)$' \| \
  15247. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15248. $as_echo X"$as_dir" |
  15249. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15250. s//\1/
  15251. q
  15252. }
  15253. /^X\(\/\/\)[^/].*/{
  15254. s//\1/
  15255. q
  15256. }
  15257. /^X\(\/\/\)$/{
  15258. s//\1/
  15259. q
  15260. }
  15261. /^X\(\/\).*/{
  15262. s//\1/
  15263. q
  15264. }
  15265. s/.*/./; q'`
  15266. test -d "$as_dir" && break
  15267. done
  15268. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15269. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  15270. } # as_fn_mkdir_p
  15271. if mkdir -p . 2>/dev/null; then
  15272. as_mkdir_p='mkdir -p "$as_dir"'
  15273. else
  15274. test -d ./-p && rmdir ./-p
  15275. as_mkdir_p=false
  15276. fi
  15277. if test -x / >/dev/null 2>&1; then
  15278. as_test_x='test -x'
  15279. else
  15280. if ls -dL / >/dev/null 2>&1; then
  15281. as_ls_L_option=L
  15282. else
  15283. as_ls_L_option=
  15284. fi
  15285. as_test_x='
  15286. eval sh -c '\''
  15287. if test -d "$1"; then
  15288. test -d "$1/.";
  15289. else
  15290. case $1 in #(
  15291. -*)set "./$1";;
  15292. esac;
  15293. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15294. ???[sx]*):;;*)false;;esac;fi
  15295. '\'' sh
  15296. '
  15297. fi
  15298. as_executable_p=$as_test_x
  15299. # Sed expression to map a string onto a valid CPP name.
  15300. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15301. # Sed expression to map a string onto a valid variable name.
  15302. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15303. exec 6>&1
  15304. ## ----------------------------------- ##
  15305. ## Main body of $CONFIG_STATUS script. ##
  15306. ## ----------------------------------- ##
  15307. _ASEOF
  15308. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15309. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15310. # Save the log message, to keep $0 and so on meaningful, and to
  15311. # report actual input values of CONFIG_FILES etc. instead of their
  15312. # values after options handling.
  15313. ac_log="
  15314. This file was extended by ld $as_me 2.25.51, which was
  15315. generated by GNU Autoconf 2.64. Invocation command line was
  15316. CONFIG_FILES = $CONFIG_FILES
  15317. CONFIG_HEADERS = $CONFIG_HEADERS
  15318. CONFIG_LINKS = $CONFIG_LINKS
  15319. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15320. $ $0 $@
  15321. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15322. "
  15323. _ACEOF
  15324. case $ac_config_files in *"
  15325. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15326. esac
  15327. case $ac_config_headers in *"
  15328. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15329. esac
  15330. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15331. # Files that config.status was made for.
  15332. config_files="$ac_config_files"
  15333. config_headers="$ac_config_headers"
  15334. config_commands="$ac_config_commands"
  15335. _ACEOF
  15336. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15337. ac_cs_usage="\
  15338. \`$as_me' instantiates files and other configuration actions
  15339. from templates according to the current configuration. Unless the files
  15340. and actions are specified as TAGs, all are instantiated by default.
  15341. Usage: $0 [OPTION]... [TAG]...
  15342. -h, --help print this help, then exit
  15343. -V, --version print version number and configuration settings, then exit
  15344. -q, --quiet, --silent
  15345. do not print progress messages
  15346. -d, --debug don't remove temporary files
  15347. --recheck update $as_me by reconfiguring in the same conditions
  15348. --file=FILE[:TEMPLATE]
  15349. instantiate the configuration file FILE
  15350. --header=FILE[:TEMPLATE]
  15351. instantiate the configuration header FILE
  15352. Configuration files:
  15353. $config_files
  15354. Configuration headers:
  15355. $config_headers
  15356. Configuration commands:
  15357. $config_commands
  15358. Report bugs to the package provider."
  15359. _ACEOF
  15360. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15361. ac_cs_version="\\
  15362. ld config.status 2.25.51
  15363. configured by $0, generated by GNU Autoconf 2.64,
  15364. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  15365. Copyright (C) 2009 Free Software Foundation, Inc.
  15366. This config.status script is free software; the Free Software Foundation
  15367. gives unlimited permission to copy, distribute and modify it."
  15368. ac_pwd='$ac_pwd'
  15369. srcdir='$srcdir'
  15370. INSTALL='$INSTALL'
  15371. MKDIR_P='$MKDIR_P'
  15372. AWK='$AWK'
  15373. test -n "\$AWK" || AWK=awk
  15374. _ACEOF
  15375. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15376. # The default lists apply if the user does not specify any file.
  15377. ac_need_defaults=:
  15378. while test $# != 0
  15379. do
  15380. case $1 in
  15381. --*=*)
  15382. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15383. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15384. ac_shift=:
  15385. ;;
  15386. *)
  15387. ac_option=$1
  15388. ac_optarg=$2
  15389. ac_shift=shift
  15390. ;;
  15391. esac
  15392. case $ac_option in
  15393. # Handling of the options.
  15394. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15395. ac_cs_recheck=: ;;
  15396. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15397. $as_echo "$ac_cs_version"; exit ;;
  15398. --debug | --debu | --deb | --de | --d | -d )
  15399. debug=: ;;
  15400. --file | --fil | --fi | --f )
  15401. $ac_shift
  15402. case $ac_optarg in
  15403. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15404. esac
  15405. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15406. ac_need_defaults=false;;
  15407. --header | --heade | --head | --hea )
  15408. $ac_shift
  15409. case $ac_optarg in
  15410. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15411. esac
  15412. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15413. ac_need_defaults=false;;
  15414. --he | --h)
  15415. # Conflict between --help and --header
  15416. as_fn_error "ambiguous option: \`$1'
  15417. Try \`$0 --help' for more information.";;
  15418. --help | --hel | -h )
  15419. $as_echo "$ac_cs_usage"; exit ;;
  15420. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15421. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15422. ac_cs_silent=: ;;
  15423. # This is an error.
  15424. -*) as_fn_error "unrecognized option: \`$1'
  15425. Try \`$0 --help' for more information." ;;
  15426. *) as_fn_append ac_config_targets " $1"
  15427. ac_need_defaults=false ;;
  15428. esac
  15429. shift
  15430. done
  15431. ac_configure_extra_args=
  15432. if $ac_cs_silent; then
  15433. exec 6>/dev/null
  15434. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15435. fi
  15436. _ACEOF
  15437. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15438. if \$ac_cs_recheck; then
  15439. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15440. shift
  15441. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15442. CONFIG_SHELL='$SHELL'
  15443. export CONFIG_SHELL
  15444. exec "\$@"
  15445. fi
  15446. _ACEOF
  15447. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15448. exec 5>>config.log
  15449. {
  15450. echo
  15451. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15452. ## Running $as_me. ##
  15453. _ASBOX
  15454. $as_echo "$ac_log"
  15455. } >&5
  15456. _ACEOF
  15457. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15458. #
  15459. # INIT-COMMANDS
  15460. #
  15461. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15462. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15463. # if CDPATH is set.
  15464. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15465. sed_quote_subst='$sed_quote_subst'
  15466. double_quote_subst='$double_quote_subst'
  15467. delay_variable_subst='$delay_variable_subst'
  15468. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15469. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15470. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15471. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15472. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15473. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15474. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15475. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15476. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15477. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15478. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15479. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15480. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15481. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15482. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15483. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15484. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15485. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15486. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15487. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15488. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15489. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15490. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15491. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15492. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15493. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15494. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15495. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15496. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15497. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15498. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15499. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15500. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15501. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15502. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15503. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15504. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15505. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15506. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15507. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15508. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15509. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15510. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15511. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15512. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15513. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15514. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15515. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15516. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15517. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15518. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15519. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15520. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15521. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15522. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15523. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15524. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15525. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15526. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15527. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15528. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15529. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15530. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15531. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15532. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15533. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15534. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15535. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15536. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15537. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15538. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15539. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15540. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15541. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15542. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15543. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15544. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15545. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15546. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15547. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15548. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15549. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15550. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15551. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15552. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15553. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15554. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15555. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15556. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15557. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  15558. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15559. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15560. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15561. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15562. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15563. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15564. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15565. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15566. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15567. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15568. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15569. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15570. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15571. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15572. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15573. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15574. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15575. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15576. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15577. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15578. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15579. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15580. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15581. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15582. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15583. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15584. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15585. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15586. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15587. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15588. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15589. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15590. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15591. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15592. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15593. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15594. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15595. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15596. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15597. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15598. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15599. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15600. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15601. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15602. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15603. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15604. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15605. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15606. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15607. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15608. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15609. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15610. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15611. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15612. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15613. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15614. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15615. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15616. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15617. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15618. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15619. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15620. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15621. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15622. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15623. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15624. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15625. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15626. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15627. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15628. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15629. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  15630. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15631. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15632. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15633. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15634. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15635. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15636. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15637. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15638. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15639. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15640. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15641. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15642. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15643. LTCC='$LTCC'
  15644. LTCFLAGS='$LTCFLAGS'
  15645. compiler='$compiler_DEFAULT'
  15646. # A function that is used when there is no print builtin or printf.
  15647. func_fallback_echo ()
  15648. {
  15649. eval 'cat <<_LTECHO_EOF
  15650. \$1
  15651. _LTECHO_EOF'
  15652. }
  15653. # Quote evaled strings.
  15654. for var in SHELL \
  15655. ECHO \
  15656. SED \
  15657. GREP \
  15658. EGREP \
  15659. FGREP \
  15660. LD \
  15661. NM \
  15662. LN_S \
  15663. lt_SP2NL \
  15664. lt_NL2SP \
  15665. reload_flag \
  15666. OBJDUMP \
  15667. deplibs_check_method \
  15668. file_magic_cmd \
  15669. AR \
  15670. AR_FLAGS \
  15671. STRIP \
  15672. RANLIB \
  15673. CC \
  15674. CFLAGS \
  15675. compiler \
  15676. lt_cv_sys_global_symbol_pipe \
  15677. lt_cv_sys_global_symbol_to_cdecl \
  15678. lt_cv_sys_global_symbol_to_c_name_address \
  15679. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15680. lt_prog_compiler_no_builtin_flag \
  15681. lt_prog_compiler_wl \
  15682. lt_prog_compiler_pic \
  15683. lt_prog_compiler_static \
  15684. lt_cv_prog_compiler_c_o \
  15685. need_locks \
  15686. DSYMUTIL \
  15687. NMEDIT \
  15688. LIPO \
  15689. OTOOL \
  15690. OTOOL64 \
  15691. shrext_cmds \
  15692. export_dynamic_flag_spec \
  15693. whole_archive_flag_spec \
  15694. compiler_needs_object \
  15695. with_gnu_ld \
  15696. allow_undefined_flag \
  15697. no_undefined_flag \
  15698. hardcode_libdir_flag_spec \
  15699. hardcode_libdir_flag_spec_ld \
  15700. hardcode_libdir_separator \
  15701. fix_srcfile_path \
  15702. exclude_expsyms \
  15703. include_expsyms \
  15704. file_list_spec \
  15705. variables_saved_for_relink \
  15706. libname_spec \
  15707. library_names_spec \
  15708. soname_spec \
  15709. install_override_mode \
  15710. finish_eval \
  15711. old_striplib \
  15712. striplib \
  15713. compiler_lib_search_dirs \
  15714. predep_objects \
  15715. postdep_objects \
  15716. predeps \
  15717. postdeps \
  15718. compiler_lib_search_path \
  15719. LD_CXX \
  15720. reload_flag_CXX \
  15721. compiler_CXX \
  15722. lt_prog_compiler_no_builtin_flag_CXX \
  15723. lt_prog_compiler_wl_CXX \
  15724. lt_prog_compiler_pic_CXX \
  15725. lt_prog_compiler_static_CXX \
  15726. lt_cv_prog_compiler_c_o_CXX \
  15727. export_dynamic_flag_spec_CXX \
  15728. whole_archive_flag_spec_CXX \
  15729. compiler_needs_object_CXX \
  15730. with_gnu_ld_CXX \
  15731. allow_undefined_flag_CXX \
  15732. no_undefined_flag_CXX \
  15733. hardcode_libdir_flag_spec_CXX \
  15734. hardcode_libdir_flag_spec_ld_CXX \
  15735. hardcode_libdir_separator_CXX \
  15736. fix_srcfile_path_CXX \
  15737. exclude_expsyms_CXX \
  15738. include_expsyms_CXX \
  15739. file_list_spec_CXX \
  15740. compiler_lib_search_dirs_CXX \
  15741. predep_objects_CXX \
  15742. postdep_objects_CXX \
  15743. predeps_CXX \
  15744. postdeps_CXX \
  15745. compiler_lib_search_path_CXX; do
  15746. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15747. *[\\\\\\\`\\"\\\$]*)
  15748. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15749. ;;
  15750. *)
  15751. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15752. ;;
  15753. esac
  15754. done
  15755. # Double-quote double-evaled strings.
  15756. for var in reload_cmds \
  15757. old_postinstall_cmds \
  15758. old_postuninstall_cmds \
  15759. old_archive_cmds \
  15760. extract_expsyms_cmds \
  15761. old_archive_from_new_cmds \
  15762. old_archive_from_expsyms_cmds \
  15763. archive_cmds \
  15764. archive_expsym_cmds \
  15765. module_cmds \
  15766. module_expsym_cmds \
  15767. export_symbols_cmds \
  15768. prelink_cmds \
  15769. postinstall_cmds \
  15770. postuninstall_cmds \
  15771. finish_cmds \
  15772. sys_lib_search_path_spec \
  15773. sys_lib_dlsearch_path_spec \
  15774. reload_cmds_CXX \
  15775. old_archive_cmds_CXX \
  15776. old_archive_from_new_cmds_CXX \
  15777. old_archive_from_expsyms_cmds_CXX \
  15778. archive_cmds_CXX \
  15779. archive_expsym_cmds_CXX \
  15780. module_cmds_CXX \
  15781. module_expsym_cmds_CXX \
  15782. export_symbols_cmds_CXX \
  15783. prelink_cmds_CXX; do
  15784. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15785. *[\\\\\\\`\\"\\\$]*)
  15786. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15787. ;;
  15788. *)
  15789. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15790. ;;
  15791. esac
  15792. done
  15793. ac_aux_dir='$ac_aux_dir'
  15794. xsi_shell='$xsi_shell'
  15795. lt_shell_append='$lt_shell_append'
  15796. # See if we are running on zsh, and set the options which allow our
  15797. # commands through without removal of \ escapes INIT.
  15798. if test -n "\${ZSH_VERSION+set}" ; then
  15799. setopt NO_GLOB_SUBST
  15800. fi
  15801. PACKAGE='$PACKAGE'
  15802. VERSION='$VERSION'
  15803. TIMESTAMP='$TIMESTAMP'
  15804. RM='$RM'
  15805. ofile='$ofile'
  15806. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  15807. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  15808. # from automake.
  15809. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  15810. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  15811. LINGUAS="${LINGUAS-%UNSET%}"
  15812. _ACEOF
  15813. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15814. # Handling of arguments.
  15815. for ac_config_target in $ac_config_targets
  15816. do
  15817. case $ac_config_target in
  15818. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15819. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15820. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  15821. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  15822. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15823. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  15824. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15825. esac
  15826. done
  15827. # If the user did not use the arguments to specify the items to instantiate,
  15828. # then the envvar interface is used. Set only those that are not.
  15829. # We use the long form for the default assignment because of an extremely
  15830. # bizarre bug on SunOS 4.1.3.
  15831. if $ac_need_defaults; then
  15832. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15833. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15834. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15835. fi
  15836. # Have a temporary directory for convenience. Make it in the build tree
  15837. # simply because there is no reason against having it here, and in addition,
  15838. # creating and moving files from /tmp can sometimes cause problems.
  15839. # Hook for its removal unless debugging.
  15840. # Note that there is a small window in which the directory will not be cleaned:
  15841. # after its creation but before its name has been assigned to `$tmp'.
  15842. $debug ||
  15843. {
  15844. tmp=
  15845. trap 'exit_status=$?
  15846. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  15847. ' 0
  15848. trap 'as_fn_exit 1' 1 2 13 15
  15849. }
  15850. # Create a (secure) tmp directory for tmp files.
  15851. {
  15852. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15853. test -n "$tmp" && test -d "$tmp"
  15854. } ||
  15855. {
  15856. tmp=./conf$$-$RANDOM
  15857. (umask 077 && mkdir "$tmp")
  15858. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  15859. # Set up the scripts for CONFIG_FILES section.
  15860. # No need to generate them if there are no CONFIG_FILES.
  15861. # This happens for instance with `./config.status config.h'.
  15862. if test -n "$CONFIG_FILES"; then
  15863. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  15864. ac_cs_awk_getline=:
  15865. ac_cs_awk_pipe_init=
  15866. ac_cs_awk_read_file='
  15867. while ((getline aline < (F[key])) > 0)
  15868. print(aline)
  15869. close(F[key])'
  15870. ac_cs_awk_pipe_fini=
  15871. else
  15872. ac_cs_awk_getline=false
  15873. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  15874. ac_cs_awk_read_file='
  15875. print "|#_!!_#|"
  15876. print "cat " F[key] " &&"
  15877. '$ac_cs_awk_pipe_init
  15878. # The final `:' finishes the AND list.
  15879. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  15880. fi
  15881. ac_cr=`echo X | tr X '\015'`
  15882. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15883. # But we know of no other shell where ac_cr would be empty at this
  15884. # point, so we can use a bashism as a fallback.
  15885. if test "x$ac_cr" = x; then
  15886. eval ac_cr=\$\'\\r\'
  15887. fi
  15888. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15889. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15890. ac_cs_awk_cr='\r'
  15891. else
  15892. ac_cs_awk_cr=$ac_cr
  15893. fi
  15894. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  15895. _ACEOF
  15896. # Create commands to substitute file output variables.
  15897. {
  15898. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  15899. echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
  15900. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  15901. echo "_ACAWK" &&
  15902. echo "_ACEOF"
  15903. } >conf$$files.sh &&
  15904. . ./conf$$files.sh ||
  15905. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15906. rm -f conf$$files.sh
  15907. {
  15908. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15909. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15910. echo "_ACEOF"
  15911. } >conf$$subs.sh ||
  15912. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15913. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  15914. ac_delim='%!_!# '
  15915. for ac_last_try in false false false false false :; do
  15916. . ./conf$$subs.sh ||
  15917. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15918. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15919. if test $ac_delim_n = $ac_delim_num; then
  15920. break
  15921. elif $ac_last_try; then
  15922. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15923. else
  15924. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15925. fi
  15926. done
  15927. rm -f conf$$subs.sh
  15928. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15929. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15930. _ACEOF
  15931. sed -n '
  15932. h
  15933. s/^/S["/; s/!.*/"]=/
  15934. p
  15935. g
  15936. s/^[^!]*!//
  15937. :repl
  15938. t repl
  15939. s/'"$ac_delim"'$//
  15940. t delim
  15941. :nl
  15942. h
  15943. s/\(.\{148\}\).*/\1/
  15944. t more1
  15945. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15946. p
  15947. n
  15948. b repl
  15949. :more1
  15950. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15951. p
  15952. g
  15953. s/.\{148\}//
  15954. t nl
  15955. :delim
  15956. h
  15957. s/\(.\{148\}\).*/\1/
  15958. t more2
  15959. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15960. p
  15961. b
  15962. :more2
  15963. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15964. p
  15965. g
  15966. s/.\{148\}//
  15967. t delim
  15968. ' <conf$$subs.awk | sed '
  15969. /^[^""]/{
  15970. N
  15971. s/\n//
  15972. }
  15973. ' >>$CONFIG_STATUS || ac_write_fail=1
  15974. rm -f conf$$subs.awk
  15975. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15976. _ACAWK
  15977. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15978. for (key in S) S_is_set[key] = 1
  15979. FS = ""
  15980. \$ac_cs_awk_pipe_init
  15981. }
  15982. {
  15983. line = $ 0
  15984. nfields = split(line, field, "@")
  15985. substed = 0
  15986. len = length(field[1])
  15987. for (i = 2; i < nfields; i++) {
  15988. key = field[i]
  15989. keylen = length(key)
  15990. if (S_is_set[key]) {
  15991. value = S[key]
  15992. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15993. len += length(value) + length(field[++i])
  15994. substed = 1
  15995. } else
  15996. len += 1 + keylen
  15997. }
  15998. if (nfields == 3 && !substed) {
  15999. key = field[2]
  16000. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  16001. \$ac_cs_awk_read_file
  16002. next
  16003. }
  16004. }
  16005. print line
  16006. }
  16007. \$ac_cs_awk_pipe_fini
  16008. _ACAWK
  16009. _ACEOF
  16010. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16011. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16012. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16013. else
  16014. cat
  16015. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  16016. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  16017. _ACEOF
  16018. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  16019. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  16020. # trailing colons and then remove the whole line if VPATH becomes empty
  16021. # (actually we leave an empty line to preserve line numbers).
  16022. if test "x$srcdir" = x.; then
  16023. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  16024. s/:*\$(srcdir):*/:/
  16025. s/:*\${srcdir}:*/:/
  16026. s/:*@srcdir@:*/:/
  16027. s/^\([^=]*=[ ]*\):*/\1/
  16028. s/:*$//
  16029. s/^[^=]*=[ ]*$//
  16030. }'
  16031. fi
  16032. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16033. fi # test -n "$CONFIG_FILES"
  16034. # Set up the scripts for CONFIG_HEADERS section.
  16035. # No need to generate them if there are no CONFIG_HEADERS.
  16036. # This happens for instance with `./config.status Makefile'.
  16037. if test -n "$CONFIG_HEADERS"; then
  16038. cat >"$tmp/defines.awk" <<\_ACAWK ||
  16039. BEGIN {
  16040. _ACEOF
  16041. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16042. # here-document in config.status, that substitutes the proper values into
  16043. # config.h.in to produce config.h.
  16044. # Create a delimiter string that does not exist in confdefs.h, to ease
  16045. # handling of long lines.
  16046. ac_delim='%!_!# '
  16047. for ac_last_try in false false :; do
  16048. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  16049. if test -z "$ac_t"; then
  16050. break
  16051. elif $ac_last_try; then
  16052. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  16053. else
  16054. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16055. fi
  16056. done
  16057. # For the awk script, D is an array of macro values keyed by name,
  16058. # likewise P contains macro parameters if any. Preserve backslash
  16059. # newline sequences.
  16060. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16061. sed -n '
  16062. s/.\{148\}/&'"$ac_delim"'/g
  16063. t rset
  16064. :rset
  16065. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16066. t def
  16067. d
  16068. :def
  16069. s/\\$//
  16070. t bsnl
  16071. s/["\\]/\\&/g
  16072. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16073. D["\1"]=" \3"/p
  16074. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16075. d
  16076. :bsnl
  16077. s/["\\]/\\&/g
  16078. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16079. D["\1"]=" \3\\\\\\n"\\/p
  16080. t cont
  16081. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16082. t cont
  16083. d
  16084. :cont
  16085. n
  16086. s/.\{148\}/&'"$ac_delim"'/g
  16087. t clear
  16088. :clear
  16089. s/\\$//
  16090. t bsnlc
  16091. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16092. d
  16093. :bsnlc
  16094. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16095. b cont
  16096. ' <confdefs.h | sed '
  16097. s/'"$ac_delim"'/"\\\
  16098. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16099. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16100. for (key in D) D_is_set[key] = 1
  16101. FS = ""
  16102. }
  16103. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16104. line = \$ 0
  16105. split(line, arg, " ")
  16106. if (arg[1] == "#") {
  16107. defundef = arg[2]
  16108. mac1 = arg[3]
  16109. } else {
  16110. defundef = substr(arg[1], 2)
  16111. mac1 = arg[2]
  16112. }
  16113. split(mac1, mac2, "(") #)
  16114. macro = mac2[1]
  16115. prefix = substr(line, 1, index(line, defundef) - 1)
  16116. if (D_is_set[macro]) {
  16117. # Preserve the white space surrounding the "#".
  16118. print prefix "define", macro P[macro] D[macro]
  16119. next
  16120. } else {
  16121. # Replace #undef with comments. This is necessary, for example,
  16122. # in the case of _POSIX_SOURCE, which is predefined and required
  16123. # on some systems where configure will not decide to define it.
  16124. if (defundef == "undef") {
  16125. print "/*", prefix defundef, macro, "*/"
  16126. next
  16127. }
  16128. }
  16129. }
  16130. { print }
  16131. _ACAWK
  16132. _ACEOF
  16133. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16134. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  16135. fi # test -n "$CONFIG_HEADERS"
  16136. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16137. shift
  16138. for ac_tag
  16139. do
  16140. case $ac_tag in
  16141. :[FHLC]) ac_mode=$ac_tag; continue;;
  16142. esac
  16143. case $ac_mode$ac_tag in
  16144. :[FHL]*:*);;
  16145. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16146. :[FH]-) ac_tag=-:-;;
  16147. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16148. esac
  16149. ac_save_IFS=$IFS
  16150. IFS=:
  16151. set x $ac_tag
  16152. IFS=$ac_save_IFS
  16153. shift
  16154. ac_file=$1
  16155. shift
  16156. case $ac_mode in
  16157. :L) ac_source=$1;;
  16158. :[FH])
  16159. ac_file_inputs=
  16160. for ac_f
  16161. do
  16162. case $ac_f in
  16163. -) ac_f="$tmp/stdin";;
  16164. *) # Look for the file first in the build tree, then in the source tree
  16165. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16166. # because $ac_f cannot contain `:'.
  16167. test -f "$ac_f" ||
  16168. case $ac_f in
  16169. [\\/$]*) false;;
  16170. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16171. esac ||
  16172. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16173. esac
  16174. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16175. as_fn_append ac_file_inputs " '$ac_f'"
  16176. done
  16177. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16178. # use $as_me), people would be surprised to read:
  16179. # /* config.h. Generated by config.status. */
  16180. configure_input='Generated from '`
  16181. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16182. `' by configure.'
  16183. if test x"$ac_file" != x-; then
  16184. configure_input="$ac_file. $configure_input"
  16185. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16186. $as_echo "$as_me: creating $ac_file" >&6;}
  16187. fi
  16188. # Neutralize special characters interpreted by sed in replacement strings.
  16189. case $configure_input in #(
  16190. *\&* | *\|* | *\\* )
  16191. ac_sed_conf_input=`$as_echo "$configure_input" |
  16192. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16193. *) ac_sed_conf_input=$configure_input;;
  16194. esac
  16195. case $ac_tag in
  16196. *:-:* | *:-) cat >"$tmp/stdin" \
  16197. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  16198. esac
  16199. ;;
  16200. esac
  16201. ac_dir=`$as_dirname -- "$ac_file" ||
  16202. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16203. X"$ac_file" : 'X\(//\)[^/]' \| \
  16204. X"$ac_file" : 'X\(//\)$' \| \
  16205. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16206. $as_echo X"$ac_file" |
  16207. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16208. s//\1/
  16209. q
  16210. }
  16211. /^X\(\/\/\)[^/].*/{
  16212. s//\1/
  16213. q
  16214. }
  16215. /^X\(\/\/\)$/{
  16216. s//\1/
  16217. q
  16218. }
  16219. /^X\(\/\).*/{
  16220. s//\1/
  16221. q
  16222. }
  16223. s/.*/./; q'`
  16224. as_dir="$ac_dir"; as_fn_mkdir_p
  16225. ac_builddir=.
  16226. case "$ac_dir" in
  16227. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16228. *)
  16229. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16230. # A ".." for each directory in $ac_dir_suffix.
  16231. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16232. case $ac_top_builddir_sub in
  16233. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16234. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16235. esac ;;
  16236. esac
  16237. ac_abs_top_builddir=$ac_pwd
  16238. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16239. # for backward compatibility:
  16240. ac_top_builddir=$ac_top_build_prefix
  16241. case $srcdir in
  16242. .) # We are building in place.
  16243. ac_srcdir=.
  16244. ac_top_srcdir=$ac_top_builddir_sub
  16245. ac_abs_top_srcdir=$ac_pwd ;;
  16246. [\\/]* | ?:[\\/]* ) # Absolute name.
  16247. ac_srcdir=$srcdir$ac_dir_suffix;
  16248. ac_top_srcdir=$srcdir
  16249. ac_abs_top_srcdir=$srcdir ;;
  16250. *) # Relative name.
  16251. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16252. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16253. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16254. esac
  16255. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16256. case $ac_mode in
  16257. :F)
  16258. #
  16259. # CONFIG_FILE
  16260. #
  16261. case $INSTALL in
  16262. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16263. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16264. esac
  16265. ac_MKDIR_P=$MKDIR_P
  16266. case $MKDIR_P in
  16267. [\\/$]* | ?:[\\/]* ) ;;
  16268. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16269. esac
  16270. _ACEOF
  16271. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16272. # If the template does not know about datarootdir, expand it.
  16273. # FIXME: This hack should be removed a few years after 2.60.
  16274. ac_datarootdir_hack=; ac_datarootdir_seen=
  16275. ac_sed_dataroot='
  16276. /datarootdir/ {
  16277. p
  16278. q
  16279. }
  16280. /@datadir@/p
  16281. /@docdir@/p
  16282. /@infodir@/p
  16283. /@localedir@/p
  16284. /@mandir@/p'
  16285. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16286. *datarootdir*) ac_datarootdir_seen=yes;;
  16287. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16289. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16290. _ACEOF
  16291. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16292. ac_datarootdir_hack='
  16293. s&@datadir@&$datadir&g
  16294. s&@docdir@&$docdir&g
  16295. s&@infodir@&$infodir&g
  16296. s&@localedir@&$localedir&g
  16297. s&@mandir@&$mandir&g
  16298. s&\\\${datarootdir}&$datarootdir&g' ;;
  16299. esac
  16300. _ACEOF
  16301. # Neutralize VPATH when `$srcdir' = `.'.
  16302. # Shell code in configure.ac might set extrasub.
  16303. # FIXME: do we really want to maintain this feature?
  16304. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16305. ac_sed_extra="$ac_vpsub
  16306. $extrasub
  16307. _ACEOF
  16308. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16309. :t
  16310. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16311. s|@configure_input@|$ac_sed_conf_input|;t t
  16312. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16313. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16314. s&@srcdir@&$ac_srcdir&;t t
  16315. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16316. s&@top_srcdir@&$ac_top_srcdir&;t t
  16317. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16318. s&@builddir@&$ac_builddir&;t t
  16319. s&@abs_builddir@&$ac_abs_builddir&;t t
  16320. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16321. s&@INSTALL@&$ac_INSTALL&;t t
  16322. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16323. $ac_datarootdir_hack
  16324. "
  16325. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  16326. if $ac_cs_awk_getline; then
  16327. $AWK -f "$tmp/subs.awk"
  16328. else
  16329. $AWK -f "$tmp/subs.awk" | $SHELL
  16330. fi >$tmp/out \
  16331. || as_fn_error "could not create $ac_file" "$LINENO" 5
  16332. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16333. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  16334. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  16335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16336. which seems to be undefined. Please make sure it is defined." >&5
  16337. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16338. which seems to be undefined. Please make sure it is defined." >&2;}
  16339. rm -f "$tmp/stdin"
  16340. case $ac_file in
  16341. -) cat "$tmp/out" && rm -f "$tmp/out";;
  16342. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  16343. esac \
  16344. || as_fn_error "could not create $ac_file" "$LINENO" 5
  16345. ;;
  16346. :H)
  16347. #
  16348. # CONFIG_HEADER
  16349. #
  16350. if test x"$ac_file" != x-; then
  16351. {
  16352. $as_echo "/* $configure_input */" \
  16353. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  16354. } >"$tmp/config.h" \
  16355. || as_fn_error "could not create $ac_file" "$LINENO" 5
  16356. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  16357. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16358. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16359. else
  16360. rm -f "$ac_file"
  16361. mv "$tmp/config.h" "$ac_file" \
  16362. || as_fn_error "could not create $ac_file" "$LINENO" 5
  16363. fi
  16364. else
  16365. $as_echo "/* $configure_input */" \
  16366. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  16367. || as_fn_error "could not create -" "$LINENO" 5
  16368. fi
  16369. # Compute "$ac_file"'s index in $config_headers.
  16370. _am_arg="$ac_file"
  16371. _am_stamp_count=1
  16372. for _am_header in $config_headers :; do
  16373. case $_am_header in
  16374. $_am_arg | $_am_arg:* )
  16375. break ;;
  16376. * )
  16377. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16378. esac
  16379. done
  16380. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16381. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16382. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16383. X"$_am_arg" : 'X\(//\)$' \| \
  16384. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16385. $as_echo X"$_am_arg" |
  16386. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16387. s//\1/
  16388. q
  16389. }
  16390. /^X\(\/\/\)[^/].*/{
  16391. s//\1/
  16392. q
  16393. }
  16394. /^X\(\/\/\)$/{
  16395. s//\1/
  16396. q
  16397. }
  16398. /^X\(\/\).*/{
  16399. s//\1/
  16400. q
  16401. }
  16402. s/.*/./; q'`/stamp-h$_am_stamp_count
  16403. ;;
  16404. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16405. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16406. ;;
  16407. esac
  16408. case $ac_file$ac_mode in
  16409. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16410. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16411. # are listed without --file. Let's play safe and only enable the eval
  16412. # if we detect the quoting.
  16413. case $CONFIG_FILES in
  16414. *\'*) eval set x "$CONFIG_FILES" ;;
  16415. *) set x $CONFIG_FILES ;;
  16416. esac
  16417. shift
  16418. for mf
  16419. do
  16420. # Strip MF so we end up with the name of the file.
  16421. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16422. # Check whether this is an Automake generated Makefile or not.
  16423. # We used to match only the files named `Makefile.in', but
  16424. # some people rename them; so instead we look at the file content.
  16425. # Grep'ing the first line is not enough: some people post-process
  16426. # each Makefile.in and add a new line on top of each file to say so.
  16427. # Grep'ing the whole file is not good either: AIX grep has a line
  16428. # limit of 2048, but all sed's we know have understand at least 4000.
  16429. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16430. dirpart=`$as_dirname -- "$mf" ||
  16431. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16432. X"$mf" : 'X\(//\)[^/]' \| \
  16433. X"$mf" : 'X\(//\)$' \| \
  16434. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16435. $as_echo X"$mf" |
  16436. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16437. s//\1/
  16438. q
  16439. }
  16440. /^X\(\/\/\)[^/].*/{
  16441. s//\1/
  16442. q
  16443. }
  16444. /^X\(\/\/\)$/{
  16445. s//\1/
  16446. q
  16447. }
  16448. /^X\(\/\).*/{
  16449. s//\1/
  16450. q
  16451. }
  16452. s/.*/./; q'`
  16453. else
  16454. continue
  16455. fi
  16456. # Extract the definition of DEPDIR, am__include, and am__quote
  16457. # from the Makefile without running `make'.
  16458. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16459. test -z "$DEPDIR" && continue
  16460. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16461. test -z "am__include" && continue
  16462. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16463. # When using ansi2knr, U may be empty or an underscore; expand it
  16464. U=`sed -n 's/^U = //p' < "$mf"`
  16465. # Find all dependency output files, they are included files with
  16466. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16467. # simplest approach to changing $(DEPDIR) to its actual value in the
  16468. # expansion.
  16469. for file in `sed -n "
  16470. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16471. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16472. # Make sure the directory exists.
  16473. test -f "$dirpart/$file" && continue
  16474. fdir=`$as_dirname -- "$file" ||
  16475. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16476. X"$file" : 'X\(//\)[^/]' \| \
  16477. X"$file" : 'X\(//\)$' \| \
  16478. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16479. $as_echo X"$file" |
  16480. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16481. s//\1/
  16482. q
  16483. }
  16484. /^X\(\/\/\)[^/].*/{
  16485. s//\1/
  16486. q
  16487. }
  16488. /^X\(\/\/\)$/{
  16489. s//\1/
  16490. q
  16491. }
  16492. /^X\(\/\).*/{
  16493. s//\1/
  16494. q
  16495. }
  16496. s/.*/./; q'`
  16497. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16498. # echo "creating $dirpart/$file"
  16499. echo '# dummy' > "$dirpart/$file"
  16500. done
  16501. done
  16502. }
  16503. ;;
  16504. "libtool":C)
  16505. # See if we are running on zsh, and set the options which allow our
  16506. # commands through without removal of \ escapes.
  16507. if test -n "${ZSH_VERSION+set}" ; then
  16508. setopt NO_GLOB_SUBST
  16509. fi
  16510. cfgfile="${ofile}T"
  16511. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16512. $RM "$cfgfile"
  16513. cat <<_LT_EOF >> "$cfgfile"
  16514. #! $SHELL
  16515. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16516. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16517. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16518. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16519. #
  16520. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16521. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  16522. # Written by Gordon Matzigkeit, 1996
  16523. #
  16524. # This file is part of GNU Libtool.
  16525. #
  16526. # GNU Libtool is free software; you can redistribute it and/or
  16527. # modify it under the terms of the GNU General Public License as
  16528. # published by the Free Software Foundation; either version 2 of
  16529. # the License, or (at your option) any later version.
  16530. #
  16531. # As a special exception to the GNU General Public License,
  16532. # if you distribute this file as part of a program or library that
  16533. # is built using GNU Libtool, you may include this file under the
  16534. # same distribution terms that you use for the rest of that program.
  16535. #
  16536. # GNU Libtool is distributed in the hope that it will be useful,
  16537. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16538. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16539. # GNU General Public License for more details.
  16540. #
  16541. # You should have received a copy of the GNU General Public License
  16542. # along with GNU Libtool; see the file COPYING. If not, a copy
  16543. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16544. # obtained by writing to the Free Software Foundation, Inc.,
  16545. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16546. # The names of the tagged configurations supported by this script.
  16547. available_tags="CXX "
  16548. # ### BEGIN LIBTOOL CONFIG
  16549. # Which release of libtool.m4 was used?
  16550. macro_version=$macro_version
  16551. macro_revision=$macro_revision
  16552. # Whether or not to build shared libraries.
  16553. build_libtool_libs=$enable_shared
  16554. # Whether or not to build static libraries.
  16555. build_old_libs=$enable_static
  16556. # What type of objects to build.
  16557. pic_mode=$pic_mode
  16558. # Whether or not to optimize for fast installation.
  16559. fast_install=$enable_fast_install
  16560. # Shell to use when invoking shell scripts.
  16561. SHELL=$lt_SHELL
  16562. # An echo program that protects backslashes.
  16563. ECHO=$lt_ECHO
  16564. # The host system.
  16565. host_alias=$host_alias
  16566. host=$host
  16567. host_os=$host_os
  16568. # The build system.
  16569. build_alias=$build_alias
  16570. build=$build
  16571. build_os=$build_os
  16572. # A sed program that does not truncate output.
  16573. SED=$lt_SED
  16574. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16575. Xsed="\$SED -e 1s/^X//"
  16576. # A grep program that handles long lines.
  16577. GREP=$lt_GREP
  16578. # An ERE matcher.
  16579. EGREP=$lt_EGREP
  16580. # A literal string matcher.
  16581. FGREP=$lt_FGREP
  16582. # A BSD- or MS-compatible name lister.
  16583. NM=$lt_NM
  16584. # Whether we need soft or hard links.
  16585. LN_S=$lt_LN_S
  16586. # What is the maximum length of a command?
  16587. max_cmd_len=$max_cmd_len
  16588. # Object file suffix (normally "o").
  16589. objext=$ac_objext
  16590. # Executable file suffix (normally "").
  16591. exeext=$exeext
  16592. # whether the shell understands "unset".
  16593. lt_unset=$lt_unset
  16594. # turn spaces into newlines.
  16595. SP2NL=$lt_lt_SP2NL
  16596. # turn newlines into spaces.
  16597. NL2SP=$lt_lt_NL2SP
  16598. # An object symbol dumper.
  16599. OBJDUMP=$lt_OBJDUMP
  16600. # Method to check whether dependent libraries are shared objects.
  16601. deplibs_check_method=$lt_deplibs_check_method
  16602. # Command to use when deplibs_check_method == "file_magic".
  16603. file_magic_cmd=$lt_file_magic_cmd
  16604. # The archiver.
  16605. AR=$lt_AR
  16606. AR_FLAGS=$lt_AR_FLAGS
  16607. # A symbol stripping program.
  16608. STRIP=$lt_STRIP
  16609. # Commands used to install an old-style archive.
  16610. RANLIB=$lt_RANLIB
  16611. old_postinstall_cmds=$lt_old_postinstall_cmds
  16612. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16613. # Whether to use a lock for old archive extraction.
  16614. lock_old_archive_extraction=$lock_old_archive_extraction
  16615. # A C compiler.
  16616. LTCC=$lt_CC
  16617. # LTCC compiler flags.
  16618. LTCFLAGS=$lt_CFLAGS
  16619. # Take the output of nm and produce a listing of raw symbols and C names.
  16620. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16621. # Transform the output of nm in a proper C declaration.
  16622. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16623. # Transform the output of nm in a C name address pair.
  16624. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16625. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16626. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16627. # The name of the directory that contains temporary libtool files.
  16628. objdir=$objdir
  16629. # Used to examine libraries when file_magic_cmd begins with "file".
  16630. MAGIC_CMD=$MAGIC_CMD
  16631. # Must we lock files when doing compilation?
  16632. need_locks=$lt_need_locks
  16633. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16634. DSYMUTIL=$lt_DSYMUTIL
  16635. # Tool to change global to local symbols on Mac OS X.
  16636. NMEDIT=$lt_NMEDIT
  16637. # Tool to manipulate fat objects and archives on Mac OS X.
  16638. LIPO=$lt_LIPO
  16639. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16640. OTOOL=$lt_OTOOL
  16641. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16642. OTOOL64=$lt_OTOOL64
  16643. # Old archive suffix (normally "a").
  16644. libext=$libext
  16645. # Shared library suffix (normally ".so").
  16646. shrext_cmds=$lt_shrext_cmds
  16647. # The commands to extract the exported symbol list from a shared archive.
  16648. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16649. # Variables whose values should be saved in libtool wrapper scripts and
  16650. # restored at link time.
  16651. variables_saved_for_relink=$lt_variables_saved_for_relink
  16652. # Do we need the "lib" prefix for modules?
  16653. need_lib_prefix=$need_lib_prefix
  16654. # Do we need a version for libraries?
  16655. need_version=$need_version
  16656. # Library versioning type.
  16657. version_type=$version_type
  16658. # Shared library runtime path variable.
  16659. runpath_var=$runpath_var
  16660. # Shared library path variable.
  16661. shlibpath_var=$shlibpath_var
  16662. # Is shlibpath searched before the hard-coded library search path?
  16663. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16664. # Format of library name prefix.
  16665. libname_spec=$lt_libname_spec
  16666. # List of archive names. First name is the real one, the rest are links.
  16667. # The last name is the one that the linker finds with -lNAME
  16668. library_names_spec=$lt_library_names_spec
  16669. # The coded name of the library, if different from the real name.
  16670. soname_spec=$lt_soname_spec
  16671. # Permission mode override for installation of shared libraries.
  16672. install_override_mode=$lt_install_override_mode
  16673. # Command to use after installation of a shared archive.
  16674. postinstall_cmds=$lt_postinstall_cmds
  16675. # Command to use after uninstallation of a shared archive.
  16676. postuninstall_cmds=$lt_postuninstall_cmds
  16677. # Commands used to finish a libtool library installation in a directory.
  16678. finish_cmds=$lt_finish_cmds
  16679. # As "finish_cmds", except a single script fragment to be evaled but
  16680. # not shown.
  16681. finish_eval=$lt_finish_eval
  16682. # Whether we should hardcode library paths into libraries.
  16683. hardcode_into_libs=$hardcode_into_libs
  16684. # Compile-time system search path for libraries.
  16685. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16686. # Run-time system search path for libraries.
  16687. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16688. # Whether dlopen is supported.
  16689. dlopen_support=$enable_dlopen
  16690. # Whether dlopen of programs is supported.
  16691. dlopen_self=$enable_dlopen_self
  16692. # Whether dlopen of statically linked programs is supported.
  16693. dlopen_self_static=$enable_dlopen_self_static
  16694. # Commands to strip libraries.
  16695. old_striplib=$lt_old_striplib
  16696. striplib=$lt_striplib
  16697. # The linker used to build libraries.
  16698. LD=$lt_LD
  16699. # How to create reloadable object files.
  16700. reload_flag=$lt_reload_flag
  16701. reload_cmds=$lt_reload_cmds
  16702. # Commands used to build an old-style archive.
  16703. old_archive_cmds=$lt_old_archive_cmds
  16704. # A language specific compiler.
  16705. CC=$lt_compiler
  16706. # Is the compiler the GNU compiler?
  16707. with_gcc=$GCC
  16708. # Compiler flag to turn off builtin functions.
  16709. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16710. # How to pass a linker flag through the compiler.
  16711. wl=$lt_lt_prog_compiler_wl
  16712. # Additional compiler flags for building library objects.
  16713. pic_flag=$lt_lt_prog_compiler_pic
  16714. # Compiler flag to prevent dynamic linking.
  16715. link_static_flag=$lt_lt_prog_compiler_static
  16716. # Does compiler simultaneously support -c and -o options?
  16717. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16718. # Whether or not to add -lc for building shared libraries.
  16719. build_libtool_need_lc=$archive_cmds_need_lc
  16720. # Whether or not to disallow shared libs when runtime libs are static.
  16721. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16722. # Compiler flag to allow reflexive dlopens.
  16723. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16724. # Compiler flag to generate shared objects directly from archives.
  16725. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16726. # Whether the compiler copes with passing no objects directly.
  16727. compiler_needs_object=$lt_compiler_needs_object
  16728. # Create an old-style archive from a shared archive.
  16729. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16730. # Create a temporary old-style archive to link instead of a shared archive.
  16731. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16732. # Commands used to build a shared archive.
  16733. archive_cmds=$lt_archive_cmds
  16734. archive_expsym_cmds=$lt_archive_expsym_cmds
  16735. # Commands used to build a loadable module if different from building
  16736. # a shared archive.
  16737. module_cmds=$lt_module_cmds
  16738. module_expsym_cmds=$lt_module_expsym_cmds
  16739. # Whether we are building with GNU ld or not.
  16740. with_gnu_ld=$lt_with_gnu_ld
  16741. # Flag that allows shared libraries with undefined symbols to be built.
  16742. allow_undefined_flag=$lt_allow_undefined_flag
  16743. # Flag that enforces no undefined symbols.
  16744. no_undefined_flag=$lt_no_undefined_flag
  16745. # Flag to hardcode \$libdir into a binary during linking.
  16746. # This must work even if \$libdir does not exist
  16747. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16748. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16749. # during linking. This must work even if \$libdir does not exist.
  16750. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16751. # Whether we need a single "-rpath" flag with a separated argument.
  16752. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16753. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16754. # DIR into the resulting binary.
  16755. hardcode_direct=$hardcode_direct
  16756. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16757. # DIR into the resulting binary and the resulting library dependency is
  16758. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16759. # library is relocated.
  16760. hardcode_direct_absolute=$hardcode_direct_absolute
  16761. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16762. # into the resulting binary.
  16763. hardcode_minus_L=$hardcode_minus_L
  16764. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16765. # into the resulting binary.
  16766. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16767. # Set to "yes" if building a shared library automatically hardcodes DIR
  16768. # into the library and all subsequent libraries and executables linked
  16769. # against it.
  16770. hardcode_automatic=$hardcode_automatic
  16771. # Set to yes if linker adds runtime paths of dependent libraries
  16772. # to runtime path list.
  16773. inherit_rpath=$inherit_rpath
  16774. # Whether libtool must link a program against all its dependency libraries.
  16775. link_all_deplibs=$link_all_deplibs
  16776. # Fix the shell variable \$srcfile for the compiler.
  16777. fix_srcfile_path=$lt_fix_srcfile_path
  16778. # Set to "yes" if exported symbols are required.
  16779. always_export_symbols=$always_export_symbols
  16780. # The commands to list exported symbols.
  16781. export_symbols_cmds=$lt_export_symbols_cmds
  16782. # Symbols that should not be listed in the preloaded symbols.
  16783. exclude_expsyms=$lt_exclude_expsyms
  16784. # Symbols that must always be exported.
  16785. include_expsyms=$lt_include_expsyms
  16786. # Commands necessary for linking programs (against libraries) with templates.
  16787. prelink_cmds=$lt_prelink_cmds
  16788. # Specify filename containing input files.
  16789. file_list_spec=$lt_file_list_spec
  16790. # How to hardcode a shared library path into an executable.
  16791. hardcode_action=$hardcode_action
  16792. # The directories searched by this compiler when creating a shared library.
  16793. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16794. # Dependencies to place before and after the objects being linked to
  16795. # create a shared library.
  16796. predep_objects=$lt_predep_objects
  16797. postdep_objects=$lt_postdep_objects
  16798. predeps=$lt_predeps
  16799. postdeps=$lt_postdeps
  16800. # The library search path used internally by the compiler when linking
  16801. # a shared library.
  16802. compiler_lib_search_path=$lt_compiler_lib_search_path
  16803. # ### END LIBTOOL CONFIG
  16804. _LT_EOF
  16805. case $host_os in
  16806. aix3*)
  16807. cat <<\_LT_EOF >> "$cfgfile"
  16808. # AIX sometimes has problems with the GCC collect2 program. For some
  16809. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16810. # vanish in a puff of smoke.
  16811. if test "X${COLLECT_NAMES+set}" != Xset; then
  16812. COLLECT_NAMES=
  16813. export COLLECT_NAMES
  16814. fi
  16815. _LT_EOF
  16816. ;;
  16817. esac
  16818. ltmain="$ac_aux_dir/ltmain.sh"
  16819. # We use sed instead of cat because bash on DJGPP gets confused if
  16820. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16821. # text mode, it properly converts lines to CR/LF. This bash problem
  16822. # is reportedly fixed, but why not run on old versions too?
  16823. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16824. || (rm -f "$cfgfile"; exit 1)
  16825. case $xsi_shell in
  16826. yes)
  16827. cat << \_LT_EOF >> "$cfgfile"
  16828. # func_dirname file append nondir_replacement
  16829. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16830. # otherwise set result to NONDIR_REPLACEMENT.
  16831. func_dirname ()
  16832. {
  16833. case ${1} in
  16834. */*) func_dirname_result="${1%/*}${2}" ;;
  16835. * ) func_dirname_result="${3}" ;;
  16836. esac
  16837. }
  16838. # func_basename file
  16839. func_basename ()
  16840. {
  16841. func_basename_result="${1##*/}"
  16842. }
  16843. # func_dirname_and_basename file append nondir_replacement
  16844. # perform func_basename and func_dirname in a single function
  16845. # call:
  16846. # dirname: Compute the dirname of FILE. If nonempty,
  16847. # add APPEND to the result, otherwise set result
  16848. # to NONDIR_REPLACEMENT.
  16849. # value returned in "$func_dirname_result"
  16850. # basename: Compute filename of FILE.
  16851. # value retuned in "$func_basename_result"
  16852. # Implementation must be kept synchronized with func_dirname
  16853. # and func_basename. For efficiency, we do not delegate to
  16854. # those functions but instead duplicate the functionality here.
  16855. func_dirname_and_basename ()
  16856. {
  16857. case ${1} in
  16858. */*) func_dirname_result="${1%/*}${2}" ;;
  16859. * ) func_dirname_result="${3}" ;;
  16860. esac
  16861. func_basename_result="${1##*/}"
  16862. }
  16863. # func_stripname prefix suffix name
  16864. # strip PREFIX and SUFFIX off of NAME.
  16865. # PREFIX and SUFFIX must not contain globbing or regex special
  16866. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16867. # dot (in which case that matches only a dot).
  16868. func_stripname ()
  16869. {
  16870. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16871. # positional parameters, so assign one to ordinary parameter first.
  16872. func_stripname_result=${3}
  16873. func_stripname_result=${func_stripname_result#"${1}"}
  16874. func_stripname_result=${func_stripname_result%"${2}"}
  16875. }
  16876. # func_opt_split
  16877. func_opt_split ()
  16878. {
  16879. func_opt_split_opt=${1%%=*}
  16880. func_opt_split_arg=${1#*=}
  16881. }
  16882. # func_lo2o object
  16883. func_lo2o ()
  16884. {
  16885. case ${1} in
  16886. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16887. *) func_lo2o_result=${1} ;;
  16888. esac
  16889. }
  16890. # func_xform libobj-or-source
  16891. func_xform ()
  16892. {
  16893. func_xform_result=${1%.*}.lo
  16894. }
  16895. # func_arith arithmetic-term...
  16896. func_arith ()
  16897. {
  16898. func_arith_result=$(( $* ))
  16899. }
  16900. # func_len string
  16901. # STRING may not start with a hyphen.
  16902. func_len ()
  16903. {
  16904. func_len_result=${#1}
  16905. }
  16906. _LT_EOF
  16907. ;;
  16908. *) # Bourne compatible functions.
  16909. cat << \_LT_EOF >> "$cfgfile"
  16910. # func_dirname file append nondir_replacement
  16911. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16912. # otherwise set result to NONDIR_REPLACEMENT.
  16913. func_dirname ()
  16914. {
  16915. # Extract subdirectory from the argument.
  16916. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  16917. if test "X$func_dirname_result" = "X${1}"; then
  16918. func_dirname_result="${3}"
  16919. else
  16920. func_dirname_result="$func_dirname_result${2}"
  16921. fi
  16922. }
  16923. # func_basename file
  16924. func_basename ()
  16925. {
  16926. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  16927. }
  16928. # func_stripname prefix suffix name
  16929. # strip PREFIX and SUFFIX off of NAME.
  16930. # PREFIX and SUFFIX must not contain globbing or regex special
  16931. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16932. # dot (in which case that matches only a dot).
  16933. # func_strip_suffix prefix name
  16934. func_stripname ()
  16935. {
  16936. case ${2} in
  16937. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  16938. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  16939. esac
  16940. }
  16941. # sed scripts:
  16942. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16943. my_sed_long_arg='1s/^-[^=]*=//'
  16944. # func_opt_split
  16945. func_opt_split ()
  16946. {
  16947. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  16948. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  16949. }
  16950. # func_lo2o object
  16951. func_lo2o ()
  16952. {
  16953. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  16954. }
  16955. # func_xform libobj-or-source
  16956. func_xform ()
  16957. {
  16958. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  16959. }
  16960. # func_arith arithmetic-term...
  16961. func_arith ()
  16962. {
  16963. func_arith_result=`expr "$@"`
  16964. }
  16965. # func_len string
  16966. # STRING may not start with a hyphen.
  16967. func_len ()
  16968. {
  16969. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16970. }
  16971. _LT_EOF
  16972. esac
  16973. case $lt_shell_append in
  16974. yes)
  16975. cat << \_LT_EOF >> "$cfgfile"
  16976. # func_append var value
  16977. # Append VALUE to the end of shell variable VAR.
  16978. func_append ()
  16979. {
  16980. eval "$1+=\$2"
  16981. }
  16982. _LT_EOF
  16983. ;;
  16984. *)
  16985. cat << \_LT_EOF >> "$cfgfile"
  16986. # func_append var value
  16987. # Append VALUE to the end of shell variable VAR.
  16988. func_append ()
  16989. {
  16990. eval "$1=\$$1\$2"
  16991. }
  16992. _LT_EOF
  16993. ;;
  16994. esac
  16995. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16996. || (rm -f "$cfgfile"; exit 1)
  16997. mv -f "$cfgfile" "$ofile" ||
  16998. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16999. chmod +x "$ofile"
  17000. cat <<_LT_EOF >> "$ofile"
  17001. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17002. # The linker used to build libraries.
  17003. LD=$lt_LD_CXX
  17004. # How to create reloadable object files.
  17005. reload_flag=$lt_reload_flag_CXX
  17006. reload_cmds=$lt_reload_cmds_CXX
  17007. # Commands used to build an old-style archive.
  17008. old_archive_cmds=$lt_old_archive_cmds_CXX
  17009. # A language specific compiler.
  17010. CC=$lt_compiler_CXX
  17011. # Is the compiler the GNU compiler?
  17012. with_gcc=$GCC_CXX
  17013. # Compiler flag to turn off builtin functions.
  17014. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17015. # How to pass a linker flag through the compiler.
  17016. wl=$lt_lt_prog_compiler_wl_CXX
  17017. # Additional compiler flags for building library objects.
  17018. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17019. # Compiler flag to prevent dynamic linking.
  17020. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17021. # Does compiler simultaneously support -c and -o options?
  17022. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17023. # Whether or not to add -lc for building shared libraries.
  17024. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17025. # Whether or not to disallow shared libs when runtime libs are static.
  17026. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17027. # Compiler flag to allow reflexive dlopens.
  17028. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17029. # Compiler flag to generate shared objects directly from archives.
  17030. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17031. # Whether the compiler copes with passing no objects directly.
  17032. compiler_needs_object=$lt_compiler_needs_object_CXX
  17033. # Create an old-style archive from a shared archive.
  17034. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17035. # Create a temporary old-style archive to link instead of a shared archive.
  17036. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17037. # Commands used to build a shared archive.
  17038. archive_cmds=$lt_archive_cmds_CXX
  17039. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17040. # Commands used to build a loadable module if different from building
  17041. # a shared archive.
  17042. module_cmds=$lt_module_cmds_CXX
  17043. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17044. # Whether we are building with GNU ld or not.
  17045. with_gnu_ld=$lt_with_gnu_ld_CXX
  17046. # Flag that allows shared libraries with undefined symbols to be built.
  17047. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17048. # Flag that enforces no undefined symbols.
  17049. no_undefined_flag=$lt_no_undefined_flag_CXX
  17050. # Flag to hardcode \$libdir into a binary during linking.
  17051. # This must work even if \$libdir does not exist
  17052. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17053. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17054. # during linking. This must work even if \$libdir does not exist.
  17055. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  17056. # Whether we need a single "-rpath" flag with a separated argument.
  17057. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17058. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17059. # DIR into the resulting binary.
  17060. hardcode_direct=$hardcode_direct_CXX
  17061. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17062. # DIR into the resulting binary and the resulting library dependency is
  17063. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17064. # library is relocated.
  17065. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17066. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17067. # into the resulting binary.
  17068. hardcode_minus_L=$hardcode_minus_L_CXX
  17069. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17070. # into the resulting binary.
  17071. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17072. # Set to "yes" if building a shared library automatically hardcodes DIR
  17073. # into the library and all subsequent libraries and executables linked
  17074. # against it.
  17075. hardcode_automatic=$hardcode_automatic_CXX
  17076. # Set to yes if linker adds runtime paths of dependent libraries
  17077. # to runtime path list.
  17078. inherit_rpath=$inherit_rpath_CXX
  17079. # Whether libtool must link a program against all its dependency libraries.
  17080. link_all_deplibs=$link_all_deplibs_CXX
  17081. # Fix the shell variable \$srcfile for the compiler.
  17082. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  17083. # Set to "yes" if exported symbols are required.
  17084. always_export_symbols=$always_export_symbols_CXX
  17085. # The commands to list exported symbols.
  17086. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17087. # Symbols that should not be listed in the preloaded symbols.
  17088. exclude_expsyms=$lt_exclude_expsyms_CXX
  17089. # Symbols that must always be exported.
  17090. include_expsyms=$lt_include_expsyms_CXX
  17091. # Commands necessary for linking programs (against libraries) with templates.
  17092. prelink_cmds=$lt_prelink_cmds_CXX
  17093. # Specify filename containing input files.
  17094. file_list_spec=$lt_file_list_spec_CXX
  17095. # How to hardcode a shared library path into an executable.
  17096. hardcode_action=$hardcode_action_CXX
  17097. # The directories searched by this compiler when creating a shared library.
  17098. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17099. # Dependencies to place before and after the objects being linked to
  17100. # create a shared library.
  17101. predep_objects=$lt_predep_objects_CXX
  17102. postdep_objects=$lt_postdep_objects_CXX
  17103. predeps=$lt_predeps_CXX
  17104. postdeps=$lt_postdeps_CXX
  17105. # The library search path used internally by the compiler when linking
  17106. # a shared library.
  17107. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17108. # ### END LIBTOOL TAG CONFIG: CXX
  17109. _LT_EOF
  17110. ;;
  17111. "default-1":C)
  17112. for ac_file in $CONFIG_FILES; do
  17113. # Support "outfile[:infile[:infile...]]"
  17114. case "$ac_file" in
  17115. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  17116. esac
  17117. # PO directories have a Makefile.in generated from Makefile.in.in.
  17118. case "$ac_file" in */Makefile.in)
  17119. # Adjust a relative srcdir.
  17120. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  17121. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  17122. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  17123. # In autoconf-2.13 it is called $ac_given_srcdir.
  17124. # In autoconf-2.50 it is called $srcdir.
  17125. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  17126. case "$ac_given_srcdir" in
  17127. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  17128. /*) top_srcdir="$ac_given_srcdir" ;;
  17129. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  17130. esac
  17131. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  17132. rm -f "$ac_dir/POTFILES"
  17133. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  17134. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  17135. POMAKEFILEDEPS="POTFILES.in"
  17136. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  17137. # on $ac_dir but don't depend on user-specified configuration
  17138. # parameters.
  17139. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  17140. # The LINGUAS file contains the set of available languages.
  17141. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  17142. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  17143. fi
  17144. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  17145. # Hide the ALL_LINGUAS assigment from automake.
  17146. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  17147. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  17148. else
  17149. # The set of available languages was given in configure.ac.
  17150. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  17151. fi
  17152. case "$ac_given_srcdir" in
  17153. .) srcdirpre= ;;
  17154. *) srcdirpre='$(srcdir)/' ;;
  17155. esac
  17156. POFILES=
  17157. GMOFILES=
  17158. UPDATEPOFILES=
  17159. DUMMYPOFILES=
  17160. for lang in $ALL_LINGUAS; do
  17161. POFILES="$POFILES $srcdirpre$lang.po"
  17162. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  17163. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  17164. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  17165. done
  17166. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  17167. # environment variable.
  17168. INST_LINGUAS=
  17169. if test -n "$ALL_LINGUAS"; then
  17170. for presentlang in $ALL_LINGUAS; do
  17171. useit=no
  17172. if test "%UNSET%" != "$LINGUAS"; then
  17173. desiredlanguages="$LINGUAS"
  17174. else
  17175. desiredlanguages="$ALL_LINGUAS"
  17176. fi
  17177. for desiredlang in $desiredlanguages; do
  17178. # Use the presentlang catalog if desiredlang is
  17179. # a. equal to presentlang, or
  17180. # b. a variant of presentlang (because in this case,
  17181. # presentlang can be used as a fallback for messages
  17182. # which are not translated in the desiredlang catalog).
  17183. case "$desiredlang" in
  17184. "$presentlang"*) useit=yes;;
  17185. esac
  17186. done
  17187. if test $useit = yes; then
  17188. INST_LINGUAS="$INST_LINGUAS $presentlang"
  17189. fi
  17190. done
  17191. fi
  17192. CATALOGS=
  17193. if test -n "$INST_LINGUAS"; then
  17194. for lang in $INST_LINGUAS; do
  17195. CATALOGS="$CATALOGS $lang.gmo"
  17196. done
  17197. fi
  17198. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  17199. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  17200. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  17201. if test -f "$f"; then
  17202. case "$f" in
  17203. *.orig | *.bak | *~) ;;
  17204. *) cat "$f" >> "$ac_dir/Makefile" ;;
  17205. esac
  17206. fi
  17207. done
  17208. fi
  17209. ;;
  17210. esac
  17211. done ;;
  17212. esac
  17213. done # for ac_tag
  17214. as_fn_exit 0
  17215. _ACEOF
  17216. ac_clean_files=$ac_clean_files_save
  17217. test $ac_write_fail = 0 ||
  17218. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17219. # configure is writing to config.log, and then calls config.status.
  17220. # config.status does its own redirection, appending to config.log.
  17221. # Unfortunately, on DOS this fails, as config.log is still kept open
  17222. # by configure, so config.status won't be able to write to it; its
  17223. # output is simply discarded. So we exec the FD to /dev/null,
  17224. # effectively closing config.log, so it can be properly (re)opened and
  17225. # appended to by config.status. When coming back to configure, we
  17226. # need to make the FD available again.
  17227. if test "$no_create" != yes; then
  17228. ac_cs_success=:
  17229. ac_config_status_args=
  17230. test "$silent" = yes &&
  17231. ac_config_status_args="$ac_config_status_args --quiet"
  17232. exec 5>/dev/null
  17233. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17234. exec 5>>config.log
  17235. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17236. # would make configure fail if this is the last instruction.
  17237. $ac_cs_success || as_fn_exit $?
  17238. fi
  17239. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17241. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17242. fi